mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-10-15 05:02:09 +08:00
build: compile 0.5.25
This commit is contained in:
parent
84fa1b00c9
commit
99ff903c82
8
dist/stepper/index.js
vendored
8
dist/stepper/index.js
vendored
@ -32,14 +32,16 @@ VantComponent({
|
|||||||
showMinus: {
|
showMinus: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
value: true
|
value: true
|
||||||
}
|
},
|
||||||
|
disablePlus: Boolean,
|
||||||
|
disableMinus: Boolean
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
minusDisabled() {
|
minusDisabled() {
|
||||||
return this.data.disabled || this.data.value <= this.data.min;
|
return this.data.disabled || this.data.disableMinus || this.data.value <= this.data.min;
|
||||||
},
|
},
|
||||||
plusDisabled() {
|
plusDisabled() {
|
||||||
return this.data.disabled || this.data.value >= this.data.max;
|
return this.data.disabled || this.data.disablePlus || this.data.value >= this.data.max;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
@ -34,14 +34,16 @@ component_1.VantComponent({
|
|||||||
showMinus: {
|
showMinus: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
value: true
|
value: true
|
||||||
}
|
},
|
||||||
|
disablePlus: Boolean,
|
||||||
|
disableMinus: Boolean
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
minusDisabled: function () {
|
minusDisabled: function () {
|
||||||
return this.data.disabled || this.data.value <= this.data.min;
|
return this.data.disabled || this.data.disableMinus || this.data.value <= this.data.min;
|
||||||
},
|
},
|
||||||
plusDisabled: function () {
|
plusDisabled: function () {
|
||||||
return this.data.disabled || this.data.value >= this.data.max;
|
return this.data.disabled || this.data.disablePlus || this.data.value >= this.data.max;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user