Skip to content

Commit

Permalink
fix: 修复IE placeholder兼容问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lucian55 committed Jul 20, 2020
1 parent 02e1a87 commit 3a9a13b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions dist/demo.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/demo.css.map

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions src/InputNumber.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@ $disable-border-color:#dfe1e6;
position: absolute;
z-index: 2;
font-size: 12px;
width: calc(100% - 44px);
white-space: nowrap;
overflow: hidden;
}
&.u-input-group.simple .u-input-number-placeholder{
left: 12px;
top: 8px;
}
&.u-input-number-sm {
.u-input-number-placeholder{
left: 30px;
left: 31px;
top: 4px;
width: calc(100% - 63px);
text-align: center;
Expand All @@ -45,7 +48,7 @@ $disable-border-color:#dfe1e6;
}
&.u-input-number-lg {
.u-input-number-placeholder{
left: 30px;
left: 31px;
top: 12px;
width: calc(100% - 63px);
text-align: center;
Expand Down

0 comments on commit 3a9a13b

Please sign in to comment.