[Feature] rowSeriesNumber设置拖拽时,希望将位置信息以及原来行数据和目标行数据通过回调函数暴露出来
What problem does this feature solve?
比如有两行数据,type不一致, 让用户通过拖拽,比如把type=2的拖到type=1上面, 我通过拖拽毁回调强制修改数据。其他的比如文件移动等等都可以自定义实现了。
What does the proposed API look like?
onStart, onDrag, onEnd(oldRow, targetRow, x, y位置,行列 ), 参数尽量全一点
感谢你的反馈!我们已经收到你的问题,并将在后续进行处理。
如果有开发者对这个 issue 感兴趣,请在issue下方留言“认领该issue”,留言后开始你的创作提pr给我们!
欢迎大家参与开源共建!我们非常感激每一位贡献者,提交pr后我们将为参与共建的开发者准备一份礼品。
参与共建可参考:https://visactor.io/vtable/guide/Contribution_Guide
与官方开发者交流问题可以下载飞书app扫码加入飞书群:
再次感谢你的支持!
Thank you for your feedback! We have received your question and will deal with it later. If any developer is interested in this issue, please leave a message "claim this issue" below the issue. Welcome to participate in open source co-construction! We are very grateful to every contributor. After submitting the PR, we will prepare a gift for the developers who participated in the co-construction. For participation in co-construction, please refer to: https://visactor.io/vtable/guide/Contribution_Guide To communicate with official developers, you can download the Feishu app and scan the QR code to join the Feishu group! Thank you again for your support!
@onDragSelectEnd="dragSelect"
function dragSelect(e: any) {
if (e.cells && e.cells.length > 0) {
let src = e.cells[0][0].originData;
let targetRow = e.row;
if (src && targetRow) {
let target = r_files.value[targetRow - 1];
dragRow(src, target)
}
}
}
目前通过这个方法可以获取到前后移动的元素,但是没有动画效果