Tencent / tdesign-vue-next

A Vue3.x UI components lib for TDesign.
https://tdesign.tencent.com/vue-next
MIT License
1.46k stars 474 forks source link

[Cascader] 组件传入的options的某一option的value为0时,选择该option,选中态不会被改变 #4021

Closed kkk48ku closed 7 months ago

kkk48ku commented 8 months ago

tdesign-vue-next 版本

1.9.0

重现链接

https://stackblitz.com/edit/aqa5w4?file=package.json,src%2Fdemo.vue

重现步骤

image

期望结果

No response

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

github-actions[bot] commented 8 months ago

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

XBIsland commented 8 months ago

treeStoreExpendEffect 忽略了 val = 0 的情况 https://github.com/Tencent/tdesign-vue-next/blob/e43d9b64fab33eccafddbcdf0ddc9912c4115737/src/cascader/core/effect.ts#L207

getTreeValue 函数同上 https://github.com/Tencent/tdesign-vue-next/blob/e43d9b64fab33eccafddbcdf0ddc9912c4115737/src/cascader/core/helper.ts#L100

uyarn commented 7 months ago

fixed in 1.9.1