diff --git a/src/components/input-number/index.js b/src/components/input-number/index.js index 15b5d25ec..d79112390 100644 --- a/src/components/input-number/index.js +++ b/src/components/input-number/index.js @@ -70,8 +70,11 @@ class AtInputNumber extends Taro.Component { rootCls.push('at-input-number--lg') } return - - + + - - = max || disabled ? '#ccc' : '#6190e8'} size='18' /> + = max || disabled ? 'at-input-number__btn at-input-number--disabled' : 'at-input-number__btn'} + onClick={this.handlePlus.bind(this)} + > + } diff --git a/src/components/input-number/index.scss b/src/components/input-number/index.scss index f555b3e8d..5e04bdbde 100644 --- a/src/components/input-number/index.scss +++ b/src/components/input-number/index.scss @@ -21,9 +21,10 @@ $input-number-size-min-lg: 120px; align-items: center; justify-content: center; padding: $input-number-btn-padding; - font-size: $font-size-sm; + font-size: 0; + color: $color-brand; text-align: center; - line-height: 1; + line-height: $line-height-base; overflow: hidden; @include active; } @@ -38,6 +39,14 @@ $input-number-size-min-lg: 120px; @include border-thin($width: 1PX, $directions: left right); } + &--disabled { + color: $color-text-disabled; + + &:active { + background-color: inherit; + } + } + &--lg { .at-input-number__btn { padding: $input-number-btn-padding-lg;