mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Stepper): incorrect button disable status (#6652)
This commit is contained in:
parent
1509795937
commit
cd7013648d
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user