Skip to content

🎨 add database ord #10991

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

Closed

Conversation

silent-tan
Copy link
Contributor

  • Please commit to the dev branch
  • For contributing new features, please supplement and improve the corresponding user guide documents
  • For bug fixes, please describe the problem and solution via code comments
  • For text improvements (such as typos and wording adjustments), please submit directly

有两种大方向实现:

  1. 只保留属性配置(是否显示行号),其他全部交给前端处理
  2. 后端保存列配置信息,这个方向又有两个实现
    • 直接预设一个列(类似创建时间,更新时间)
    • 预设一个不可编辑的列类型由用户创建,内容渲染可以和模板保持一致

这个 PR 是第一种,相对来说简单,对后端入侵小。缺点是这个列宽度无法编辑,需要通过 css 进行编辑

#10574

Sorry, something went wrong.

@88250
Copy link
Member

88250 commented Apr 12, 2024

首先感谢花时间贡献代码,目前只是大致浏览了一下代码部分,没有实际测试,有两个疑问:

  • 似乎不支持调整列位置,比如放到最右边
  • 似乎没有处理分页加载

另外,支持调整列宽应该是需要的,所以估计还是只能用后端加列类型的方案。

@silent-tan
Copy link
Contributor Author

silent-tan commented Apr 12, 2024

如果要支持定宽,列顺序,要增加一种新的类型,见新的 PR #11008 。我把这个关掉了

@silent-tan silent-tan closed this Apr 12, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants