parent
bb56898edc
commit
958e5e488e
|
@ -48,7 +48,10 @@ const InputNumber = {
|
||||||
},
|
},
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { prefixCls: customizePrefixCls, size, ...others } = getOptionProps(this);
|
const { prefixCls: customizePrefixCls, size, ...others } = {
|
||||||
|
...getOptionProps(this),
|
||||||
|
...this.$attrs,
|
||||||
|
};
|
||||||
const getPrefixCls = this.configProvider.getPrefixCls;
|
const getPrefixCls = this.configProvider.getPrefixCls;
|
||||||
const prefixCls = getPrefixCls('input-number', customizePrefixCls);
|
const prefixCls = getPrefixCls('input-number', customizePrefixCls);
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ const inputNumberProps = {
|
||||||
disabled: PropTypes.bool,
|
disabled: PropTypes.bool,
|
||||||
// onFocus: PropTypes.func,
|
// onFocus: PropTypes.func,
|
||||||
// onBlur: PropTypes.func,
|
// onBlur: PropTypes.func,
|
||||||
readOnly: PropTypes.bool,
|
readonly: PropTypes.bool,
|
||||||
max: PropTypes.number,
|
max: PropTypes.number,
|
||||||
min: PropTypes.number,
|
min: PropTypes.number,
|
||||||
step: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
step: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
||||||
|
@ -637,7 +637,7 @@ export default {
|
||||||
const {
|
const {
|
||||||
prefixCls,
|
prefixCls,
|
||||||
disabled,
|
disabled,
|
||||||
readOnly,
|
readonly,
|
||||||
useTouch,
|
useTouch,
|
||||||
autoComplete,
|
autoComplete,
|
||||||
upHandler,
|
upHandler,
|
||||||
|
@ -666,7 +666,7 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const editable = !this.readOnly && !this.disabled;
|
const editable = !this.readonly && !this.disabled;
|
||||||
|
|
||||||
// focus state, show input value
|
// focus state, show input value
|
||||||
// unfocus state, show valid value
|
// unfocus state, show valid value
|
||||||
|
@ -695,8 +695,8 @@ export default {
|
||||||
mouseleave: this.stop,
|
mouseleave: this.stop,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
const isUpDisabled = !!upDisabledClass || disabled || readOnly;
|
const isUpDisabled = !!upDisabledClass || disabled || readonly;
|
||||||
const isDownDisabled = !!downDisabledClass || disabled || readOnly;
|
const isDownDisabled = !!downDisabledClass || disabled || readonly;
|
||||||
const {
|
const {
|
||||||
mouseenter = noop,
|
mouseenter = noop,
|
||||||
mouseleave = noop,
|
mouseleave = noop,
|
||||||
|
@ -778,7 +778,7 @@ export default {
|
||||||
onBlur={this.onBlur}
|
onBlur={this.onBlur}
|
||||||
onKeydown={editable ? this.onKeyDown : noop}
|
onKeydown={editable ? this.onKeyDown : noop}
|
||||||
onKeyup={editable ? this.onKeyUp : noop}
|
onKeyup={editable ? this.onKeyUp : noop}
|
||||||
readOnly={this.readOnly}
|
readonly={this.readonly}
|
||||||
disabled={this.disabled}
|
disabled={this.disabled}
|
||||||
max={this.max}
|
max={this.max}
|
||||||
min={this.min}
|
min={this.min}
|
||||||
|
|
Loading…
Reference in New Issue