Skip to content

Table component about the problem of merging rows in the operation bar #4775

@been-qi

Description

@been-qi
  • I have searched the issues of this repository and believe that this is not a duplicate.

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)">编辑

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions