-
Notifications
You must be signed in to change notification settings - Fork 264
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控件选择后文字向右多偏移了5px #306
Labels
Comments
应该是我多嵌套了一层class了。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
描述这个bug
Select控件选择后文字向右多偏移了5px
重现步骤
步骤:
期望行为
Select选择后,文字的位置应该和选择之前的placeholder位置一致
截图
请完整的描述以下信息
补充信息
原因我大致看了下,
没选择之前dom如下:
h-select-placeholder 的padding-left为5px
选择后dom如下:
而h-select-value-single的样式padding-left: 5px,所以嵌套了两层后选中之后padding-left就叠加到了10px。
这里应该是多嵌套了一层h-select-value-single吧。
对用的代码位置在这里:
src/components/select/select.vue#L36
为了消除这个影响,我自己添加了一个css
别告诉我亲就是这样设计的,哈哈。
The text was updated successfully, but these errors were encountered: