mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +00:00
fix(Stepper): incorrect button disable status (#6652)
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user