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

拖拽源使用element-plus的table组件,导致拖拽源的拖拽预览dom高度超出如何解决? #23

Closed
liuuky opened this issue Jun 29, 2022 · 8 comments

Comments

@liuuky
Copy link

liuuky commented Jun 29, 2022

table的body内容可滑动

IMG101

超出dom高度依赖于table的body内容的高度

IMG103

拖拽其他元素对比

IMG102

@hcg1023
Copy link
Owner

hcg1023 commented Jun 29, 2022

可以提供一个复现的链接吗?git仓库就可以

@liuuky
Copy link
Author

liuuky commented Jun 29, 2022

仓库地址:https://github.com/liuuky/vue3-dnd-test

git仓库就可以提供一个复现的链接吗?

@hcg1023
Copy link
Owner

hcg1023 commented Jun 30, 2022

@liuuky 我测试了react-dnd,它也存在同样的问题,问题主要出现在chrome浏览器,safari没有发现同样的问题,目前已经提交给了react-dnd,react-dnd/react-dnd#3471

@hcg1023
Copy link
Owner

hcg1023 commented Jun 30, 2022

@liuuky 我觉得我找到了解决方案
可以给drag元素添加transform: translateZ(0);或者transform: translate3d(0, 0, 0);就可以解决这个问题
react-dnd/react-dnd#832
react-dnd/react-dnd#1608

@liuuky
Copy link
Author

liuuky commented Jun 30, 2022

@liuuky 我觉得我找到了解决方案 可以给drag元素添加transform: translateZ(0);或者transform: translate3d(0, 0, 0);就可以解决这个问题 react-dnd/react-dnd#832 react-dnd/react-dnd#1608

这个方法可以解决,感谢您的回复和帮助!

@hcg1023 hcg1023 closed this as completed Jun 30, 2022
@hcg1023
Copy link
Owner

hcg1023 commented Jun 30, 2022

@liuuky 我觉得我找到了解决方案 可以给drag元素添加transform: translateZ(0);或者transform: translate3d(0, 0, 0);就可以解决这个问题 react-dnd/react-dnd#832 react-dnd/react-dnd#1608

这个方法可以解决,感谢您的回复和帮助!

没关系,有帮助的话可以点个star

@liuuky
Copy link
Author

liuuky commented Jun 30, 2022

@liuuky 我觉得我找到了解决方案 可以给drag元素添加transform: translateZ(0);或者transform: translate3d(0, 0, 0);就可以解决这个问题 react-dnd/react-dnd#832 react-dnd/react-dnd#1608

这个方法可以解决,感谢您的回复和帮助!

没关系,有帮助的话可以点个star

👌🏻用的时候已star过

@hcg1023
Copy link
Owner

hcg1023 commented Jun 30, 2022

👌🏻用的时候已star过

感谢

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

2 participants