Skip to content
New issue

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

[select] 输入值为 null 时错误显示字符串 null #1668

Closed
sagittarius-rev opened this issue Oct 21, 2022 · 3 comments · Fixed by #1667
Closed

[select] 输入值为 null 时错误显示字符串 null #1668

sagittarius-rev opened this issue Oct 21, 2022 · 3 comments · Fixed by #1667
Assignees
Labels
to be published fixed, not be published

Comments

@sagittarius-rev
Copy link

tdesign-vue 版本

tdesign-vue 0.48.5

重现链接

https://codesandbox.io/s/tdesign-vue-demo-forked-o86u4v?file=/src/demo.vue

重现步骤

使用 TSelect 的组件,将组件的输入值( valuev-model )置为 null

期望结果

输入值为 null 时, Select 组件应当显示为“未选择”状态,和输入值为 undefined 时保持一致。
因为 nullundefined 在很多场景时作用都是类似的。
特别地,考虑到 JSON 的因素, JSON 只支持 null ,不支持 undefined ,因此组件对于 null 的支持应当是必要的。

实际结果

Select 组件显示了字符串 "null" ,实际上不存在这样一个选项。

框架版本

Vue(2.6.14)

浏览器版本

Chrome(104.0.5112.102)

系统版本

Windows 10

Node版本

14.15.1

补充说明

No response

@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

♥️ 有劳 @geff1991 @skytt @uyarn 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @sagittarius-rev

@uyarn
Copy link
Collaborator

uyarn commented Oct 26, 2022

fixed 0.49.1

@uyarn uyarn closed this as completed Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be published fixed, not be published
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants