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

[t-input] value值为0时不显示值,而显示placeholder #2103

Closed
nanhupatar opened this issue Jun 18, 2023 · 4 comments · Fixed by #2108
Closed

[t-input] value值为0时不显示值,而显示placeholder #2103

nanhupatar opened this issue Jun 18, 2023 · 4 comments · Fixed by #2108
Assignees

Comments

@nanhupatar
Copy link

tdesign-miniprogram 版本

1.1.9

重现链接

No response

重现步骤

    <t-input label="起始数值" placeholder="请输入数字" maxlength="{{3}}" align="right" suffixIcon="edit" type="number" bind:change="inputChange" value="{{0}}" />

期望结果

No response

实际结果

No response

基础库版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

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

@nanhupatar
Copy link
Author

按照逻辑,永远无法输入0 因为会被转译为'' 不符合输入数字的情况

@anlyyao
Copy link
Collaborator

anlyyao commented Jun 19, 2023

@nanhupatar 收到反馈,今天处理~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants