Browse Source

stepper添加min监测

杨小璐 5 years ago
parent
commit
fd28bce3db
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/packages/stepper/stepper.vue

+ 8 - 0
src/packages/stepper/stepper.vue

@@ -117,6 +117,14 @@ export default {
                 this.$emit('change', this.num);
             },
             immediate: true
+        },
+        min:{
+            handler(v, ov) {
+                if(v < this.max){
+                    this.minNum = v
+                }
+            },
+            immediate: true
         }
     },
     computed: {