What problem does this feature solve?
table组件中有使用customRender回调函数设置attrs的 rowSpan/colSpan和并行列的方法;
但是这种方法给操作按钮添加事件的时候很不方便
是否存在使用 scopedSlots templete 合并表格行列 并自定义列内容的方法,我在文档中未找到相关api
What does the proposed API look like?
===Columns
{
title: '操作',
dataIndex: 'operation',
fixed: 'right',
width: 190,
scopedSlots: { customRender: 'operation' }
}
===vue template
<a href="javascript:;" class="operateBtn" @click="onShowProjectDetail(record, null)">查看
<a href="javascript:;" class="operateBtn" @click="onChangeAfter(record, 2)">编辑