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: { 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: {

View File

@ -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: {