Browse Source

use key instead of track-by in benchmark

dev
Evan You 9 years ago
parent
commit
c995e1eaca
  1. 2
      benchmarks/reorder-list/index.html

2
benchmarks/reorder-list/index.html

@ -20,7 +20,7 @@
<button @click="shuffle">shuffle</button> <button @click="shuffle">shuffle</button>
<button @click="add">add</button> <button @click="add">add</button>
<table class="table table-hover table-striped test-data"> <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 }" :class="{ danger: item.id === selected }"
:item="item" :item="item"
@select="select(item)" @select="select(item)"

Loading…
Cancel
Save