We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://vxetable.cn/#/component/grid/rowDrag/sort
拖拽开始时,浏览器默认的拖拽预览图标会从浏览器左上角移动到拖拽目标,能不能直接隐藏这个拖拽预览图标 可以在拖拽开始事件中添加下面的代码 const transparentImage = new Image() transparentImage.src = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==' // 透明图片 event.dataTransfer.setDragImage(transparentImage, 0, 0) 放到表格提供的拖拽开始事件的时候,第一次不会生效,第二次之后就生效了,所以是慢一步的,所以只能在源码上去修改
const transparentImage = new Image() transparentImage.src = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==' // 透明图片 event.dataTransfer.setDragImage(transparentImage, 0, 0)
拖拽的时候不会有这个图标出现
macos
chrome 131.0.6778.86
3.4.37
4.3.24
4.9.20
The text was updated successfully, but these errors were encountered:
我重新看了一下新的官网的示例,第一次还是会出现这个问题,但是拖拽完第一次之后,就不会出现了 @xuliangzhan
Sorry, something went wrong.
No branches or pull requests
可复现的链接(包含复现链接与示例代码):
https://vxetable.cn/#/component/grid/rowDrag/sort
问题描述与截图:
拖拽开始时,浏览器默认的拖拽预览图标会从浏览器左上角移动到拖拽目标,能不能直接隐藏这个拖拽预览图标
可以在拖拽开始事件中添加下面的代码
const transparentImage = new Image() transparentImage.src = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==' // 透明图片 event.dataTransfer.setDragImage(transparentImage, 0, 0)
放到表格提供的拖拽开始事件的时候,第一次不会生效,第二次之后就生效了,所以是慢一步的,所以只能在源码上去修改
期望的结果:
拖拽的时候不会有这个图标出现
操作系统:
macos
浏览器版本:
chrome 131.0.6778.86
vue 版本:
3.4.37
vxe-pc-ui 版本:
4.3.24
vxe-table 版本:
4.9.20
是否使用当前最新版本?
The text was updated successfully, but these errors were encountered: