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] 初次加载,value绑定选中值,父节点状态不正确 #1754

Closed
Reg1350 opened this issue Sep 27, 2022 · 5 comments
Closed

[tree] 初次加载,value绑定选中值,父节点状态不正确 #1754

Reg1350 opened this issue Sep 27, 2022 · 5 comments
Assignees
Labels
to be published to be published

Comments

@Reg1350
Copy link
Contributor

Reg1350 commented Sep 27, 2022

tdesign-vue-next 版本

0.22.1

重现链接

https://stackblitz.com/edit/angular-xaletm?file=package.json

重现步骤

初次加载tree组件,value中选中所有子节点,父节点的状态显示不正确

期望结果

父节点显示选中

实际结果

父节点显示未选中

框架版本

3.2.37

浏览器版本

105.0.5195.127

系统版本

Windows

Node版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

♥️ 有劳 @LeeJim @PengYYYYY 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @Reg1350

@yusongh
Copy link
Contributor

yusongh commented Sep 28, 2022

是因为你配置了checkStrictlytrue @Reg1350

image

image

@Reg1350
Copy link
Contributor Author

Reg1350 commented Sep 28, 2022

企业微信截图_16643437725452
改成false,没有效果,刷新后初次加载还是显示不正确。

@Reg1350
Copy link
Contributor Author

Reg1350 commented Sep 29, 2022

image
企业微信截图_16644373447998
补充上这行代码后,效果达到预期
@PengYYYYY

Reg1350 pushed a commit to Reg1350/tdesign-vue-next that referenced this issue Oct 12, 2022
PengYYYYY pushed a commit that referenced this issue Oct 12, 2022
Co-authored-by: Chenfs <chenfusheng@qgjx2.wecom.work>
@PengYYYYY PengYYYYY added the to be published to be published label Oct 12, 2022
@github-actions github-actions bot mentioned this issue Oct 17, 2022
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be published to be published
Projects
None yet
Development

No branches or pull requests

4 participants