mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-24 10:20:19 +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: {
|
computed: {
|
||||||
minusDisabled() {
|
minusDisabled() {
|
||||||
return (
|
return (
|
||||||
this.disabled || this.disableMinus || this.currentValue <= this.min
|
this.disabled || this.disableMinus || this.currentValue <= +this.min
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
plusDisabled() {
|
plusDisabled() {
|
||||||
return this.disabled || this.disablePlus || this.currentValue >= this.max;
|
return (
|
||||||
|
this.disabled || this.disablePlus || this.currentValue >= +this.max
|
||||||
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
inputStyle() {
|
inputStyle() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user