use key properly
This commit is contained in:
parent
e0b2463750
commit
f6e9f28745
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="selectable-list">
|
<div class="selectable-list">
|
||||||
<div v-for="item in items">
|
<div v-for="item in items" :key="getKey(item)">
|
||||||
<Checkbox :checked="isChecked(item)" @change="checked => toggle(checked, item)" />
|
<Checkbox :checked="isChecked(item)" @change="checked => toggle(checked, item)" />
|
||||||
<slot name="item" :item="item" />
|
<slot name="item" :item="item" />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue