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-number] input框默认宽度过短 #623

Closed
lanniuniu opened this issue Mar 23, 2022 · 3 comments
Closed

[t-input-number] input框默认宽度过短 #623

lanniuniu opened this issue Mar 23, 2022 · 3 comments

Comments

@lanniuniu
Copy link
Contributor

tdesign-vue 版本

0.37.2

重现链接

https://codesandbox.io/s/tdesign-vue-demo-forked-zx7snm

重现步骤

当t-input-number 值为undefined时,placeholder显示不全。
image

期望结果

调整默认宽度,至少能容下3个字。

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

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

@xiaosansiji
Copy link
Collaborator

默认宽度 120 确实短了一点,可以考虑下个迭代里调整下,你可以先用下 autoWidth 属性,官网最后的例子,自适应内容宽度
<t-input-number v-model="value" :min="0" :autoWidth="true"></t-input-number>
image

@xiaosansiji
Copy link
Collaborator

已在 0.38.0 版本中修复

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

No branches or pull requests

2 participants