Parcourir la source

use key instead of track-by in benchmark

Evan You il y a 10 ans
Parent
commit
c995e1eaca
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      benchmarks/reorder-list/index.html

+ 1 - 1
benchmarks/reorder-list/index.html

@@ -20,7 +20,7 @@
         <button @click="shuffle">shuffle</button>
         <button @click="add">add</button>
         <table class="table table-hover table-striped test-data">
-          <row v-for="item in items" track-by="item.id"
+          <row v-for="item in items" :key="item.id"
             :class="{ danger: item.id === selected }"
             :item="item"
             @select="select(item)"