Skip to content

Data-table supports more methods #3704

@laterdays

Description

@laterdays

This function solves the problem (这个功能解决的问题)

The table does not seem to clear multiple options at the moment

  • Used for selecting multiple tables, toggle select all and select none

  • Used for multiple selection tables to clear the user's choices

  • This parameter is used to select multiple tables to switch the selection status of a row. If the second parameter is used, you can directly set whether this row is selected or not

  • Used for extensible tables or tree tables, switching if a row is extended. With the second parameter, you can directly set whether the row should be expanded or collapsed.

Expected API (期望的 API)

The table does not seem to clear multiple options at the moment

toggleAllSelection : Used for selecting multiple tables, toggle select all and select none

clearSelection : Used for multiple selection tables to clear the user's choices

toggleRowSelection: This parameter is used to select multiple tables to switch the selection status of a row. If the second parameter is used, you can directly set whether this row is selected or not

toggleRowExpansion :Used for extensible tables or tree tables, switching if a row is extended. With the second parameter, you can directly set whether the row should be expanded or collapsed.

Expect support from naiveUI, which seems to be important at work

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions