From cd7013648d1c286992aad71879c6e4f894f63c2a Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 30 Jun 2020 14:23:58 +0800 Subject: [PATCH] fix(Stepper): incorrect button disable status (#6652) --- src/stepper/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/stepper/index.js b/src/stepper/index.js index 2943a000f..1d4ec2830 100644 --- a/src/stepper/index.js +++ b/src/stepper/index.js @@ -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() {