Skip to content

Commit

Permalink
fix(input-number): 修改错误的小驼峰写法
Browse files Browse the repository at this point in the history
  • Loading branch information
melchior-voidwolf committed Mar 8, 2019
1 parent 3b2dd28 commit a29702c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/input-number/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ class AtInputNumber extends AtComponent {
handleClick (clickType) {
const { disabled, value, min, max, step } = this.props
const lowThanMin = (clickType === 'minus' && value <= min)
const OverThanMax = (clickType === 'plus' && value >= max)
if (lowThanMin || OverThanMax || disabled) {
const overThanMax = (clickType === 'plus' && value >= max)
if (lowThanMin || overThanMax || disabled) {
const deltaValue = clickType === 'minus' ? -step : step
const errorValue = addNum(value, deltaValue)
if (disabled) {
Expand Down

0 comments on commit a29702c

Please sign in to comment.