jd-opensource / jd-opensource/nutui
Table 表格需要进一步加强功能
Open
Feature Request
- Dominant language
- Vue
- Stars
- 6.5k
- Forks
- 835
- PR merge metrics
- No merged PRs in 30d
Description
### What problem does this feature solve?(这个功能解决的问题)
目前的表格只能用于展示内容,当需要有操作的时候(比如,删除,审核等),需要使用render来进行自定义处理。一般在后端给数据之后,再去数据里面加入render函数,使用起来特别不方便。
目前希望能加强一下Table组件的功能,1、加入索引配置:目前要实现索引也需要使用render;2、加入行点击事件;3、加入开启选择配置:就是在第一列加入checkbox,可以用于选择当前行数据,以及全选,同时配置select、select-all、select-change的事件;4:自定义内容使用slot自由的进行配置而不是render
### What does the proposed API look like?(期望的 API)
1、index=true/false;2、@row-click=func 3、selection=true/false @select=function @select-change=function @select-all=function 4、在columns配置slot:true,即可开启当前列的slot
Contributor guide
Assessment
This issue has not been assessed yet.