Skip to content

table 组件 row-selection 添加多选和单选列功能,如果是类型是多选,选中一行等于勾选当前行。点击其他行,则增加勾选和选中,再次点击勾选行,则取消选中;如果类型是单选,选中一行等于勾选当前行。点击其他行,则切换勾选和选中 #7389

@David-TechNomad

Description

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

What problem does this feature solve?

table 组件 row-selection 添加多选和单选列功能,如果是类型是多选,选中一行等于勾选当前行,点击其他行,则增加勾选和选中,再次点击勾选行,则取消选中;如果类型是单选,选中一行等于勾选当前行,点击其他行,则切换勾选和选中

What does the proposed API look like?

:row-selection="{ type:'radio/checkbox',labelField: '显示的字段名,比如:name', trigger: 'default(默认), cell(点击单元格触发), row(点击行触发)'}"

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