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

[Input] prefix/suffix 字体大小未跟随组件 size 设定 #3171

Closed
fython opened this issue May 12, 2024 · 3 comments
Closed

[Input] prefix/suffix 字体大小未跟随组件 size 设定 #3171

fython opened this issue May 12, 2024 · 3 comments
Labels
🎨 design the issue about design or style to be published fixed, not be published

Comments

@fython
Copy link
Contributor

fython commented May 12, 2024

tdesign-vue 版本

1.9.3

重现链接

https://stackblitz.com/edit/yo4rvx?file=src%2Fdemo.vue

重现步骤

同时使用 prefix/suffixsize 属性:

<t-input
  v-model="count"
  size="small"
  label="价格:"
  type="number"
  suffix=""
/>

期望结果

prefix/suffix 字体大小对齐

实际结果

image

实际渲染时 .t-input.t-size-s 定义的 font-size 值被 .t-input.t-input--prefix > .t-input__prefix 覆盖:

image

框架版本

Vue 2.x

浏览器版本

Chrome(124.0.6367.158)

系统版本

Windows 11

Node版本

No response

补充说明

No response

Copy link
Contributor

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

@fython
Copy link
Contributor Author

fython commented May 12, 2024

.t-input.t-input--prefix > .t-input__prefix 是否不需要单独定义 font-size?

@uyarn
Copy link
Collaborator

uyarn commented May 13, 2024

确实可以去掉 应该是没必要的 这个PR一起处理下? https://github.com/Tencent/tdesign-common/pull/1793/files

@uyarn uyarn added the 🎨 design the issue about design or style label May 13, 2024
fython added a commit to fython/tdesign-common that referenced this issue May 13, 2024
@uyarn uyarn added the to be published fixed, not be published label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎨 design the issue about design or style to be published fixed, not be published
Projects
None yet
Development

No branches or pull requests

2 participants