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

强烈建议增加column move(列拖拽排序)功能 #48306

Closed
Shen120 opened this issue Apr 7, 2024 · 9 comments
Closed

强烈建议增加column move(列拖拽排序)功能 #48306

Shen120 opened this issue Apr 7, 2024 · 9 comments

Comments

@Shen120
Copy link

Shen120 commented Apr 7, 2024

What problem does this feature solve?

可以对列进行拖拽排序,我们因为没有这个功能而没有使用antd的表格,太难受了;如下图,图中是ag-grid的表格

column-animation 5d473ccc

What does the proposed API look like?

可配置,也可手动调用set和get方法更新/获取

@Shen120
Copy link
Author

Shen120 commented Apr 7, 2024

示例地址

@crazyair
Copy link
Member

crazyair commented Apr 7, 2024

@afc163
Copy link
Member

afc163 commented Apr 7, 2024

来个 PR?

@Shen120
Copy link
Author

Shen120 commented Apr 7, 2024

image

https://procomponents.ant.design/components/table?tab=api&current=1&pageSize=5

我知道有这个,但是不符合需求,想要的是能够直接在表格中拖动,类似行拖动那种

@Shen120
Copy link
Author

Shen120 commented Apr 7, 2024

来个 PR?

代码写得撇,没脸

@crazyair
Copy link
Member

crazyair commented Apr 7, 2024

可以参考行拖拽,再增加个列拖拽的 demo

@Shen120
Copy link
Author

Shen120 commented Apr 7, 2024

可以参考行拖拽,再增加个列拖拽的 demo

空了搞搞

@GeorgeHcc
Copy link
Contributor

i wanna try it 😃

@afc163
Copy link
Member

afc163 commented Apr 29, 2024

Added a demo in #48434

@afc163 afc163 closed this as completed Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants