Commit 9ae67bf9cab14f5dcef64aa43154de99a94f156b

Authored by Wit〆苗大
Committed by GitHub
1 parent 8ba4fb24

fix: inputNumberGroup(前置/后置标签) span 不起作用的问题,增加样式之后可以根据Span动态适应 (#2325)

Showing 1 changed file with 4 additions and 8 deletions
src/design/ant/input.less
... ... @@ -2,8 +2,11 @@
2 2  
3 3 // input
4 4 .ant-input {
5   - &-number {
  5 + &-number,
  6 + &-number-group-wrapper {
6 7 min-width: 110px;
  8 + width: 100% !important;
  9 + max-width: 100%;
7 10 }
8 11 }
9 12  
... ... @@ -22,10 +25,3 @@
22 25 padding: 4px;
23 26 }
24 27 }
25   -
26   -.ant-input-number {
27   - width: 100% !important;
28   - max-width: 100%;
29   -}
30   -
31   -
... ...