build: compile 0.5.25

This commit is contained in:
rex-zsd 2019-12-05 17:16:21 +08:00
parent 84fa1b00c9
commit 99ff903c82
2 changed files with 10 additions and 6 deletions

View File

@ -32,14 +32,16 @@ VantComponent({
showMinus: {
type: Boolean,
value: true
}
},
disablePlus: Boolean,
disableMinus: Boolean
},
computed: {
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() {
return this.data.disabled || this.data.value >= this.data.max;
return this.data.disabled || this.data.disablePlus || this.data.value >= this.data.max;
}
},
watch: {

View File

@ -34,14 +34,16 @@ component_1.VantComponent({
showMinus: {
type: Boolean,
value: true
}
},
disablePlus: Boolean,
disableMinus: Boolean
},
computed: {
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 () {
return this.data.disabled || this.data.value >= this.data.max;
return this.data.disabled || this.data.disablePlus || this.data.value >= this.data.max;
}
},
watch: {