We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
描述这个bug Select控件选择后文字向右多偏移了5px
重现步骤 步骤:
期望行为 Select选择后,文字的位置应该和选择之前的placeholder位置一致
截图
请完整的描述以下信息
补充信息 原因我大致看了下, 没选择之前dom如下:
<div class="h-select-placeholder">select</div>
h-select-placeholder 的padding-left为5px
选择后dom如下:
<div class="h-select-value-single"> <div class="h-select-value-single">demo1</div> </div>
而h-select-value-single的样式padding-left: 5px,所以嵌套了两层后选中之后padding-left就叠加到了10px。 这里应该是多嵌套了一层h-select-value-single吧。
对用的代码位置在这里: src/components/select/select.vue#L36
为了消除这个影响,我自己添加了一个css
.h-select-value-single { .h-select-value-single { padding-left: 0; } }
别告诉我亲就是这样设计的,哈哈。
The text was updated successfully, but these errors were encountered:
应该是我多嵌套了一层class了。 我修正一下。
Sorry, something went wrong.
No branches or pull requests
描述这个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: