瀏覽代碼

行政区选择

drew 6 年之前
父節點
當前提交
71490af933
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      src/main/vue/src/components/DistrictChoose.vue

+ 6 - 1
src/main/vue/src/components/DistrictChoose.vue

@@ -8,6 +8,10 @@
         props: {
         props: {
             value: {
             value: {
                 type: Array
                 type: Array
+            },
+            checkStrictly: {
+                type: Boolean,
+                default: false
             }
             }
         },
         },
         data() {
         data() {
@@ -28,7 +32,8 @@
                     },
                     },
                     value: 'id',
                     value: 'id',
                     label: 'fullName',
                     label: 'fullName',
-                    leaf: 'leaf'
+                    leaf: 'leaf',
+                    checkStrictly: this.checkStrictly
                 },
                 },
                 emiting: false
                 emiting: false
             };
             };