use key properly

This commit is contained in:
taehoon 2019-04-03 23:29:24 -04:00
parent e0b2463750
commit f6e9f28745

View File

@ -1,6 +1,6 @@
<template>
<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)" />
<slot name="item" :item="item" />
</div>