Explorar o código

dialog重新渲染使用v-if代替destroy-on-close

tongshangming %!s(int64=2) %!d(string=hai) anos
pai
achega
28e0e98c17
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/core/ProTable.vue

+ 1 - 1
src/components/core/ProTable.vue

@@ -333,6 +333,7 @@ defineExpose({
 
     <dialog-form
       v-model="dialogVisible"
+      v-if="dialogVisible"
       :dialogConfig="dialogConfig"
       :formConfig="formConfig"
       :formData="formData"
@@ -340,7 +341,6 @@ defineExpose({
       :create="crud.create"
       :update="crud.update"
       @success="handleFormSuccess"
-      destroy-on-close
     >
       <template #[slot.alias]="slotProps" v-for="slot in formSlots" :key="slot.alias">
         <slot :name="slot.alias" v-bind="slotProps"></slot>