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

table 拖拽样式异常 #35384

Closed
chenjh-8 opened this issue May 5, 2022 · 4 comments · Fixed by #40346
Closed

table 拖拽样式异常 #35384

chenjh-8 opened this issue May 5, 2022 · 4 comments · Fixed by #40346
Labels

Comments

@chenjh-8
Copy link

chenjh-8 commented May 5, 2022

跟这个问题一模一样 ant-design/pro-components#3296
image
按照这个https://ant.design/components/table-cn/#components-table-demo-drag-sorting也一样

"name": "ant-design-pro",
"version": "5.2.0",
"antd": "^4.19.0",

@github-actions
Copy link
Contributor

github-actions bot commented May 5, 2022

Hello @chenjh-8, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you!

你好 @chenjh-8,为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为不符合要求而被自动关闭。你可以通过 issue 助手 来创建 issue 以方便我们定位错误。谢谢配合!

@MrHuang123
Copy link

这个最后有什么好的解决方案吗

@ohhoney1
Copy link
Contributor

提供一个思路:onSortStart 中获取th td的宽度,然后遍历拖拽行的td,依次赋值th td 中的offsetWidth 即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants