Procházet zdrojové kódy

use key instead of track-by in benchmark

Evan You před 10 roky
rodič
revize
c995e1eaca
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)"