Skip to content

表头行合并(Grouping columns) #73

@yesmeck

Description

@yesmeck

现在表头已经可以列合并了,不知道有没有考虑过行合并?

我大概看了下代码,感觉按现在的 API 设计通过 rowspan 去做合并会比较难实现,是不是可以参考ag-grid的设计,比如要实现下面这样的表头合并:

姓名 其它
年龄 住址

可以写成这样:

const columns = [{
  title: '姓名',
  dataIndex: 'name',
}, {
  title: '其它',
  children: [
    {
      title: '年龄',
      dataIndex: 'age',
    }, {
      title: '住址',
      dataIndex: 'address',
    }
  ]
}];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions