通过UI组件生成的不会怎么赋值,不用ui组件循环遍历不会写,
2条回答 默认 最新
崽崽的谷雨 2021-05-17 11:45关注用:checked属性就行啊,不循环遍历写死的?
<a-table :columns="columns" :data-source="data"> <a slot="name" slot-scope="status"> <span slot="zy" slot-scope="status ,record"> <a-checkbox :checked="status" @change="onChange(record)"> </a-checkbox> </span> </a> </a-table> //然后你每个数据要有status数据例如[{status:true,id:1},{status:false,id:2}]解决 无用评论 打赏 举报