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] 本地数据分页表格中使用拖拽排序,排序结果不正确 #1342

Closed
ghost opened this issue Aug 21, 2022 · 10 comments
Closed
Assignees
Labels
to be published fixed, not be published

Comments

@ghost
Copy link

ghost commented Aug 21, 2022

tdesign-vue 版本

0.46.1

重现链接

https://codesandbox.io/s/tdesign-vue-demo-forked-9td89w?file=/src/demo.vue

重现步骤

操作:在第二页中,将集群名称为“JQTest6”的数据拖拽到集群名称为”JQTest7“的那行数据。

期望结果

”JQTest6“和”JQTest7“交换位置。

实际结果

【CodeSandbox环境下会有延迟卡顿,并非无法复现问题,等待页面加载完后,随后切换到第一页即可看到问题所在。】
第二页数据顺序未产生变化,第一页集群名称为”JQTest1“和”JQTest2“的数据交换了位置。
切换回第二页,可以看到”JQTest6“和”JQTest7“的位置并未改变。

框架版本

vue~2.6.14

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

@ghost ghost changed the title [Table] 描述问题的标题 [Table] 分页表格中使用拖拽排序 Aug 21, 2022
@github-actions
Copy link
Contributor

👋 @zc001111,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@github-actions
Copy link
Contributor

github-actions bot commented Aug 21, 2022

♥️ 有劳 @realyuyanan @chaishi @cool-518 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @zc001111 。

@chaishi
Copy link
Collaborator

chaishi commented Aug 21, 2022

这个 提问很眼熟,像是重复 issue。我刚刚打开看顺序,是正常的

2022-08-21.9.53.21.mov

@chaishi chaishi added the need more info need more info label Aug 21, 2022
@chaishi chaishi changed the title [Table] 分页表格中使用拖拽排序 [Table] 分页表格中使用拖拽排序(访问提供的链接,无法复现问题描述,请再次确认自己提供的链接是否正确) Aug 21, 2022
@ghost
Copy link
Author

ghost commented Aug 22, 2022

@chaishi
链接是正确的。
github无法reopen Collaborator关闭的issue,只能重新提一个。
CodeSandbox环境下会有延迟卡顿,并非无法复现问题。
【等待页面加载完,随后切换到第一页即可看到问题所在】

@chaishi
Copy link
Collaborator

chaishi commented Aug 23, 2022

如果 codesandbox 链接无法复现,这个链接就没有意义了。

再有,记得我上次是复制代码在本地跑的,没发现问题

@ghost
Copy link
Author

ghost commented Aug 23, 2022

@chaishi
下方是链接的复现视频。
00:04~00:20一直是卡顿状态,20s后卡顿结束才能看到问题出现

2022-08-23.10-50-15.mov

下方是本地的复现视频。

2022-08-23.11-16-13.mov

@ghost
Copy link
Author

ghost commented Aug 23, 2022

说的更直白一些,在拖拽第二页的JQTest6到JQTest7之后。
行拖拽操作触发的方法:onDragSort({ currentIndex, current, targetIndex, target, data, newData, e }){}
该方法console.log()结果:current(左)和target(右)如下图所示:
~YMIVOBT3G{KZ3(~6 R4E83
data如下图所示:
image
newData如下图所示:
image

@chaishi
Copy link
Collaborator

chaishi commented Aug 26, 2022

@chaishi 下方是链接的复现视频。 00:04~00:20一直是卡顿状态,20s后卡顿结束才能看到问题出现

codesandbox 本身卡

@chaishi
Copy link
Collaborator

chaishi commented Aug 26, 2022

我再跑下看看吧

本地复现了

resolved in 95f35c1

#1702

@github-actions github-actions bot added the Stale label Sep 25, 2022
@Tencent Tencent deleted a comment from github-actions bot Oct 30, 2022
@chaishi chaishi added to be published fixed, not be published and removed need more info need more info Stale labels Oct 30, 2022
@chaishi chaishi changed the title [Table] 分页表格中使用拖拽排序(访问提供的链接,无法复现问题描述,请再次确认自己提供的链接是否正确) [Table] 分页表格中使用拖拽排序 Oct 30, 2022
@chaishi chaishi changed the title [Table] 分页表格中使用拖拽排序 [Table] 本地数据分页表格中使用拖拽排序,排序结果不正确 Oct 30, 2022
@uyarn
Copy link
Collaborator

uyarn commented Nov 2, 2022

fixed 0.49.3

@uyarn uyarn closed this as completed Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be published fixed, not be published
Projects
None yet
Development

No branches or pull requests

2 participants