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

表格行拖动表格数据只更新一次 #45

Closed
IPageBear opened this issue Jun 7, 2022 · 3 comments
Closed

表格行拖动表格数据只更新一次 #45

IPageBear opened this issue Jun 7, 2022 · 3 comments

Comments

@IPageBear
Copy link

表格行拖动时表格数据dataSource中数据的位置只更新一次。第一次拖动行时数据顺序会更新,但是再次拖动行时,数据顺序就不更新了。

@tangjinzhou
Copy link
Contributor

https://surely.cool/doc/dragable#drag-row 示例没问题啊
如果你的有问题们请提供复现示例

@IPageBear
Copy link
Author

我这边有问题的不是说页面显示,而是dataSource的数据。如下图实例为你提供的连接,只是增加了rowDragEnd方法打印了data的值。data值在第二次拖动时值不改变。
image
image

@tangjinzhou
Copy link
Contributor

升级 vue 到 3.2.34+ 和 surely 到 2.4.0

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