We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
tdesign-vue 0.48.5
https://codesandbox.io/s/tdesign-vue-demo-forked-o86u4v?file=/src/demo.vue
使用 TSelect 的组件,将组件的输入值( value 或 v-model )置为 null 。
value
v-model
null
输入值为 null 时, Select 组件应当显示为“未选择”状态,和输入值为 undefined 时保持一致。 因为 null 和 undefined 在很多场景时作用都是类似的。 特别地,考虑到 JSON 的因素, JSON 只支持 null ,不支持 undefined ,因此组件对于 null 的支持应当是必要的。
undefined
Select 组件显示了字符串 "null" ,实际上不存在这样一个选项。
"null"
Vue(2.6.14)
Chrome(104.0.5112.102)
Windows 10
14.15.1
No response
The text was updated successfully, but these errors were encountered:
👋 @sagittarius-rev,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
Sorry, something went wrong.
♥️ 有劳 @geff1991 @skytt @uyarn 尽快确认问题。 确认有效后将下一步计划和可能需要的时间回复给 @sagittarius-rev 。
fixed 0.49.1
uyarn
Successfully merging a pull request may close this issue.
tdesign-vue 版本
tdesign-vue 0.48.5
重现链接
https://codesandbox.io/s/tdesign-vue-demo-forked-o86u4v?file=/src/demo.vue
重现步骤
使用 TSelect 的组件,将组件的输入值(
value
或v-model
)置为null
。期望结果
输入值为
null
时, Select 组件应当显示为“未选择”状态,和输入值为undefined
时保持一致。因为
null
和undefined
在很多场景时作用都是类似的。特别地,考虑到 JSON 的因素, JSON 只支持
null
,不支持undefined
,因此组件对于null
的支持应当是必要的。实际结果
Select 组件显示了字符串
"null"
,实际上不存在这样一个选项。框架版本
Vue(2.6.14)
浏览器版本
Chrome(104.0.5112.102)
系统版本
Windows 10
Node版本
14.15.1
补充说明
No response
The text was updated successfully, but these errors were encountered: