|
3 | 3 | <div class="table-header"> |
4 | 4 | <span class="table-title">{{title}}</span> |
5 | 5 | <div class="actions"> |
6 | | - <a v-for="button in customButtons" href="javascript:undefined" |
| 6 | + <a v-for="(button, index) in customButtons" href="javascript:undefined" |
7 | 7 | class="waves-effect btn-flat nopadding" |
8 | 8 | v-if="button.hide ? !button.hide : true" |
9 | | - @click="button.onclick"> |
| 9 | + @click="button.onclick" |
| 10 | + :key="index" |
| 11 | + > |
10 | 12 | <i class="material-icons">{{button.icon}}</i> |
11 | 13 | </a> |
12 | 14 | <a href="javascript:undefined" |
|
42 | 44 | <thead> |
43 | 45 | <tr> |
44 | 46 | <th v-for="(column, index) in columns" |
| 47 | + :key="index" |
45 | 48 | @click="sort(index)" |
46 | 49 | :class="(sortable ? 'sorting ' : '') |
47 | 50 | + (sortColumn === index ? |
|
56 | 59 | </thead> |
57 | 60 |
|
58 | 61 | <tbody> |
59 | | - <tr v-for="(row, index) in paginated" :class="{ clickable : clickable }" @click="click(row)"> |
60 | | - <td v-for="column in columns" :class=" { numeric : column.numeric } "> |
| 62 | + <tr v-for="(row, index) in paginated" :class="{ clickable : clickable }" :key="index" @click="click(row)"> |
| 63 | + <td v-for="column in columns" :class=" { numeric : column.numeric } " :key="index"> |
61 | 64 | <div v-if="!column.html"> {{ collect(row, column.field) }} </div> |
62 | 65 | <div v-if="column.html" v-html="collect(row, column.field)"></div> |
63 | 66 | </td> |
|
71 | 74 | <label> |
72 | 75 | <span>{{lang['rows_per_page']}}:</span> |
73 | 76 | <select class="browser-default" @change="onTableLength"> |
74 | | - <option v-for="option in perPageOptions" :value="option" :selected="option == currentPerPage"> |
| 77 | + <option v-for="option in perPageOptions" :value="option" :selected="option == currentPerPage" :key="index"> |
75 | 78 | {{ option === -1 ? lang['all'] : option }} |
76 | 79 | </option> |
77 | 80 | </select> |
|
0 commit comments