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

Tree组件数据渲染错误问题 #5217

Closed
moshuchao opened this issue Sep 8, 2023 · 3 comments · Fixed by #5296
Closed

Tree组件数据渲染错误问题 #5217

moshuchao opened this issue Sep 8, 2023 · 3 comments · Fixed by #5296
Labels
bug Something isn't working

Comments

@moshuchao
Copy link

TuSimple/naive-ui version (版本)

2.34.4

Vue version (Vue 版本)

3.2.47

Browser and its version (浏览器及其版本)

Chrome(114.0.5735.90)

System and its version (系统及其版本)

MacOS(10.15.7)

Node version (Node 版本)

Reappearance link (重现链接)

https://codesandbox.io/p/sandbox/cocky-sammet-5mz9qd?file=/src/App.vue

Reappearance steps (重现步骤)

点击tab“我是1” > 点击tab“我是2” > 点击tab“我是3” ,
点击tab“我是3” > 点击tab“我是2” > 点击tab“我是1” ,此时第一个tab对应的数据没有更新。

Expected results (期望的结果)

第一个tab对应的数据是data1

Actual results (实际的结果)

第一个tab对应的数据是data2

Remarks (补充说明)

并且从vue开发工具看出Tree data值是没有问题的。

@github-actions github-actions bot added the untriaged need to sort label Sep 8, 2023
@shaoerkuai
Copy link

试了下,出现了2次,整体概率挺低。。不是一直会这样。

@07akioni
Copy link
Collaborator

厉害,能发现这种 bug 也是挺厉害的

@07akioni
Copy link
Collaborator

好他妈奇怪的问题,按理说不应该来着

07akioni pushed a commit that referenced this issue Dec 20, 2023
) (#5296)

* fix(n-tree):  解决issue #5217中所提的-Tree组件数据
渲染错误问题 (#5217)

* docs(changelog): 添加相应的变更日志说明
liuzw2579 pushed a commit to liuzw2579/ithinkdt-ui that referenced this issue Dec 21, 2023
…sen-ai#5217) (tusen-ai#5296)

* fix(n-tree):  解决issue #5217中所提的-Tree组件数据
渲染错误问题 (tusen-ai#5217)

* docs(changelog): 添加相应的变更日志说明
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants