Skip to content

Table组件showExpandColumn可以增加函数支持吗? #8376

@ty-lq

Description

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

What problem does this feature solve?

这样我可以根据data-source的每一行的值判断是否需要展示行展开列

What does the proposed API look like?

这是旧版:showExpandColumn="false"
这是新版:showExpandColumn="(record) => record.children && record.children.length > 0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions