浏览代码

stepper添加min监测

杨小璐 5 年之前
父节点
当前提交
fd28bce3db
共有 1 个文件被更改,包括 8 次插入0 次删除
  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: {