From 7c13492cc5895dc6a6de898170a6e6d40240c54e Mon Sep 17 00:00:00 2001 From: CHUZHI <1207800711@qq.com> Date: Sat, 12 Oct 2024 13:11:30 +0800 Subject: [PATCH 1/2] feat: add form slot for action area --- .../form-ui/src/components/form-actions.vue | 18 +++- .../ui-kit/form-ui/src/vben-use-form.vue | 27 +++--- .../plugins/src/vxe-table/use-vxe-grid.vue | 90 +++++++------------ 3 files changed, 61 insertions(+), 74 deletions(-) diff --git a/packages/@core/ui-kit/form-ui/src/components/form-actions.vue b/packages/@core/ui-kit/form-ui/src/components/form-actions.vue index 0ac5b24ec25..719f59dd9a0 100644 --- a/packages/@core/ui-kit/form-ui/src/components/form-actions.vue +++ b/packages/@core/ui-kit/form-ui/src/components/form-actions.vue @@ -73,16 +73,17 @@ watch( if (props.collapseTriggerResize) { triggerWindowResize(); } - }, + } ); diff --git a/packages/@core/ui-kit/form-ui/src/vben-use-form.vue b/packages/@core/ui-kit/form-ui/src/vben-use-form.vue index ffe2a0d0f94..ef05c22293d 100644 --- a/packages/@core/ui-kit/form-ui/src/vben-use-form.vue +++ b/packages/@core/ui-kit/form-ui/src/vben-use-form.vue @@ -7,11 +7,7 @@ import { useForwardPriorityValues } from '@vben-core/composables'; // import { isFunction } from '@vben-core/shared/utils'; import FormActions from './components/form-actions.vue'; -import { - COMPONENT_BIND_EVENT_MAP, - COMPONENT_MAP, - DEFAULT_FORM_COMMON_CONFIG, -} from './config'; +import { COMPONENT_BIND_EVENT_MAP, COMPONENT_MAP, DEFAULT_FORM_COMMON_CONFIG } from './config'; import { Form } from './form-render'; import { provideFormProps, useFormInitial } from './use-form-context'; // 通过 extends 会导致热更新卡死,所以重复写了一遍 @@ -45,11 +41,7 @@ const handleUpdateCollapsed = (value: boolean) => { :form="form" :global-common-config="DEFAULT_FORM_COMMON_CONFIG" > -