From 99ff903c8261dbc6e377c5ce07db9cbc3e490c07 Mon Sep 17 00:00:00 2001 From: rex-zsd Date: Thu, 5 Dec 2019 17:16:21 +0800 Subject: [PATCH] build: compile 0.5.25 --- dist/stepper/index.js | 8 +++++--- lib/stepper/index.js | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/dist/stepper/index.js b/dist/stepper/index.js index 0bae3261..247eece8 100644 --- a/dist/stepper/index.js +++ b/dist/stepper/index.js @@ -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: { diff --git a/lib/stepper/index.js b/lib/stepper/index.js index bbe57768..3ee5b445 100644 --- a/lib/stepper/index.js +++ b/lib/stepper/index.js @@ -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: {