ant-design-vue的table组件customRender 与 scopedSlots 如何共存?
答案是 不可共存,但是可以在customRender里面写jsx,例如:
{
title: '模块',
dataIndex: 'name',
// scopedSlots: { customRender: 'name' },
customRender: (text, record, index) => {
return {
children: (
<a-checkbox
indeterminate={record.indeterminate}
checked={record.isCheckAllLv2}
vOn:change={(e) => this.onCheckRoleChange(e, index)}
>
{{ text }}
</a-checkbox>
),
attrs: {
rowSpan: 1,
},
}
},
},