checking the check box for adding new lines in the following code will cause other check boxes to be ticked together with
excuse me, what"s going on and how to solve it? Thank you
< template >
<div>
<div v-for="(v,i) in dataList">
<input v-model="checkedList" :value="v" type="checkbox"/>{{v.s}}
</div>
<button @click="addRow">addRow</button>
</div>
< / template >
< script >
export default{
data () {
return {
checkedList: [],
dataList: []
}
},
methods:{
addRow(){
let d={s:new Date()};
this.dataList.push(d);
}
}
}
< / script >