tdesign-vue-next icon indicating copy to clipboard operation
tdesign-vue-next copied to clipboard

[TCheckbox] 重置后绑定值为undefined

Open raohuiyong opened this issue 1 year ago • 7 comments

tdesign-vue-next 版本

1.9.5

重现链接

https://codesandbox.io/p/devbox/yan-zheng-fu-xuan-kuang-chong-zhi-rzx6zk

重现步骤

点击重置按钮后,其复选框绑定的active值为undefined

期望结果

重置后绑定至active为默认值true

实际结果

No response

框架版本

3.4.27

浏览器版本

No response

系统版本

No response

Node版本

18

补充说明

No response

raohuiyong avatar May 29 '24 03:05 raohuiyong

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

github-actions[bot] avatar May 29 '24 03:05 github-actions[bot]

麻烦把devbox权限设为Public 不然看不到呢

uyarn avatar May 30 '24 11:05 uyarn

麻烦把devbox权限设为Public 不然看不到呢

@uyarn 已开放权限

raohuiyong avatar May 30 '24 11:05 raohuiyong

image

ZTH520 avatar May 31 '24 01:05 ZTH520

image

的确可以解决问题,有办法全局配置下默认为initial吗?

raohuiyong avatar May 31 '24 02:05 raohuiyong

什么全局配置?

uyarn avatar Jun 19 '24 17:06 uyarn

什么全局配置?

@uyarn 简单的说就是把resetType默认为initial,从实际使用上来说,重置表单的时候更希望重置为初始值,而不是为空。

raohuiyong avatar Jul 08 '24 08:07 raohuiyong