Ver Fonte

close-on-content-click只能false,否则二级无法展开

lifanagju_citu há 7 meses atrás
pai
commit
27c6af989f
1 ficheiros alterados com 3 adições e 2 exclusões
  1. 3 2
      src/components/FormUI/nestedListGroup/index.vue

+ 3 - 2
src/components/FormUI/nestedListGroup/index.vue

@@ -28,7 +28,8 @@
       @update:modelValue="modelValueUpDate"
     >
     </v-text-field>
-    <v-menu activator="#menu-activator" :close-on-content-click="item.closeOnContentClick">
+    <!-- close-on-content-click只能false,否则二级无法展开 -->
+    <v-menu activator="#menu-activator" :close-on-content-click="false">
       <listGroup
         :list="item.items"
         :option="option"
@@ -69,7 +70,7 @@ const clickUpdate = (val) => {
   emit('update:modelValue', value.value)
   emit('change', value.value)
 }
-const closeOnContentClick = ref(false) // multiple
+// const closeOnContentClick = ref(false) // multiple
 
 // 回显label
 const chosen = ref(null)