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

[FormItem] name 数组嵌套, Number数值键导致稀疏数组问题

Open Except10n opened this issue 1 year ago • 4 comments

tdesign-react 版本

1.9

重现链接

https://stackblitz.com/edit/vitejs-vite-fv3ufe?file=src%2FApp.tsx

重现步骤

<Form.FormItem label="姓名" name={['user', '123456','name']}> <Input /> </Form.FormItem>

期望结果

No response

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

需要额外编码处理这个123456的key,能否在组件层面解决?

Except10n avatar Oct 08 '24 01:10 Except10n

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

github-actions[bot] avatar Oct 08 '24 01:10 github-actions[bot]

@HaixingOoO

Except10n avatar Oct 12 '24 08:10 Except10n

@Except10n 能否提供個demo來看看是怎麼樣的,最近忙,不好意思

HaixingOoO avatar Oct 12 '24 09:10 HaixingOoO

https://stackblitz.com/edit/vitejs-vite-fv3ufe?file=src%2FApp.tsx

@HaixingOoO 已补充demo, 麻烦有空查看下 :)

Except10n avatar Oct 12 '24 15:10 Except10n

fixed 1.9.3

uyarn avatar Oct 31 '24 11:10 uyarn