fix(Stepper): incorrect button disable status (#6652)

This commit is contained in:
neverland 2020-06-30 14:23:58 +08:00 committed by GitHub
parent 1509795937
commit cd7013648d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,12 +86,14 @@ export default createComponent({
computed: {
minusDisabled() {
return (
this.disabled || this.disableMinus || this.currentValue <= this.min
this.disabled || this.disableMinus || this.currentValue <= +this.min
);
},
plusDisabled() {
return this.disabled || this.disablePlus || this.currentValue >= this.max;
return (
this.disabled || this.disablePlus || this.currentValue >= +this.max
);
},
inputStyle() {