Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rfc]: 一个完善的 table 应该具有的功能 ? #1

Open
vaynevayne opened this issue Jul 12, 2023 · 0 comments
Open

[rfc]: 一个完善的 table 应该具有的功能 ? #1

vaynevayne opened this issue Jul 12, 2023 · 0 comments

Comments

@vaynevayne
Copy link
Owner

vaynevayne commented Jul 12, 2023

// 列显隐,排序都直接修改columns, 考虑受控非受控
allColumns: Record<string,any>[]  render 函数的 全量 columns
columns:Record<string,any>[] 没有函数属性的 columns, 便于存储和回显
  1. 列支持排序, 受控非受控, 排序字段不要放 column 上, 且排序时可以过滤掉总计行

  2. 列支持拖拽排序, 直接更改数组位置

  3. 列支持拖拽调整宽度

  4. 列支持显隐

  5. 固定多行( 支持函数过滤row.total === true)

  6. 列 dom 上注入 data-dataIndexdata-title

  7. 列隐藏的方式: 拖拽到 table 外

  8. 滚动条始终显示在可视区域

  9. 支持右键菜单

  10. 行拖拽排序

  11. excel 导出(考虑 excel 的 fmt)

  12. 固定表头 支持 css 的方式

  13. 列撑满整个宽度: 列少直接撑满整个宽度, 列多时使用width 属性自动滚动, 没有 width 时保持不换行(考虑内容和标题最长字符串)

@vaynevayne vaynevayne changed the title [rfc]: 完成的table 应该具有的功能 [rfc]: 完整的table 应该具有的功能 Jul 12, 2023
@vaynevayne vaynevayne changed the title [rfc]: 完整的table 应该具有的功能 [rfc]: 一个完善的 table 应该具有的功能 ? Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant