<a-checkbox-group v-model="defaultCheckedList" :options="plainOptions" @change="onChange" />
<script>
const plainOptions = [ { label: '读', value: '1' },
{ label: '写', value: '2' },
{ label: '删', value: '3' }];
const defaultCheckedList = ['1', '2'] //默认选中 的项
export default {
data() {
return {
plainOptions,
defaultCheckedList,
}
}
}
</script>
ant a-checkbox-group多选框组默认选中
最新推荐文章于 2024-08-15 11:10:34 发布