Browse Source

新增加载

master
zhang_li 8 months ago
parent
commit
e9069bd712
  1. 3
      src/components/BasicForm/src/BasicForm.vue
  2. 1
      src/components/Dialog/src/Dialog.vue

3
src/components/BasicForm/src/BasicForm.vue

@ -10,7 +10,6 @@
style="max-height: 60vh;overflow-y: auto;"> style="max-height: 60vh;overflow-y: auto;">
<Form <Form
ref="formRef" ref="formRef"
v-loading="formLoading"
:rules="rules" :rules="rules"
:schema="formSchema" :schema="formSchema"
:is-col="true" :is-col="true"
@ -457,7 +456,7 @@ const submitForm = async () => {
const data = unref(formRef)?.formModel const data = unref(formRef)?.formModel
emit('success', formType.value, data) emit('success', formType.value, data)
} finally { } finally {
formLoading.value = false // formLoading.value = false
} }
} }
} }

1
src/components/Dialog/src/Dialog.vue

@ -89,6 +89,7 @@ const initDialog = () => {
draggable draggable
class="com-dialog" class="com-dialog"
:show-close="false" :show-close="false"
custom-class="loading"
> >
<template #header="{ close }"> <template #header="{ close }">
<div class="relative h-54px flex items-center justify-between pl-15px pr-15px"> <div class="relative h-54px flex items-center justify-between pl-15px pr-15px">

Loading…
Cancel
Save