tdesign-react icon indicating copy to clipboard operation
tdesign-react copied to clipboard

[cascader] : value值需要唯一的(也就是Key唯一)

Open duxphp opened this issue 1 year ago • 4 comments

tdesign-react 版本

18

重现链接

No response

重现步骤

使用load 和全路径模式加载异步省市区数据, 但是 北京市/北京市 无法进行设置 也就是省和市的值都为北京市 则无法再加载下级数据

期望结果

使用全路径模式返回的值应该是 ['北京市', '北京市', '东城区']

实际结果

实际无法展开二级数据,因为 value 和省的名称冲突了

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

duxphp avatar Dec 29 '23 09:12 duxphp

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

github-actions[bot] avatar Dec 29 '23 09:12 github-actions[bot]

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

github-actions[bot] avatar Dec 29 '23 09:12 github-actions[bot]

https://stackblitz.com/edit/react-rveapf?file=src%2Fdemo.jsx

duxphp avatar Dec 29 '23 09:12 duxphp

@duxphp 您好,目前Cascader的value是要唯一的(也就是Key唯一),所以这个issue暂不处理,谢谢!!!

HaixingOoO avatar Jan 24 '24 07:01 HaixingOoO