ソースを参照

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