vue 表格根据后端数据渲染Checkbox要怎么实现

通过UI组件生成的不会怎么赋值,不用ui组件循环遍历不会写,

用: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}]