vue备用
handleCheck (item) {if (item.isChecked) {
this.checkData.push(item.id)
this.checkData = _.uniqWith(this.checkData, _.isEqual)
} else {
this.checkData = _.remove(this.checkData, i => i !== item.id)
}
},
<template slot="checkBox" slot-scope="props"><Checkbox v-model="props.scope.isChecked" @on-change="handleCheck(props.scope)"></Checkbox>
</template>
{title: '选择',
width: 50,
type: 'template',
slot: 'checkBox'
},
以上是 vue备用 的全部内容, 来源链接: utcz.com/z/377458.html