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