From 45987fc1e33693389d267f3429921b3d14e851ee Mon Sep 17 00:00:00 2001
From: CHUZHI <129144584+CHUZHI-L@users.noreply.github.com>
Date: Mon, 14 Oct 2024 22:35:01 +0800
Subject: [PATCH] feat: add form slot for action area (#4621)
* feat: add form slot for action area
* fix: fixed rename and lint
---
.../form-ui/src/components/form-actions.vue | 12 ++++++++++++
.../@core/ui-kit/form-ui/src/vben-use-form.vue | 15 ++++++++++++++-
.../plugins/src/vxe-table/use-vxe-grid.vue | 12 ++++++++++++
3 files changed, 38 insertions(+), 1 deletion(-)
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 3e08b471935..1b1cbef9597 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
@@ -83,6 +83,9 @@ watch(
"
:style="queryFormStyle"
>
+
+
+
+
+
+
+
+
+
{{ collapsed ? $t('expand') : $t('collapse') }}
+
+
+
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..0c63eddb55f 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
@@ -58,7 +58,20 @@ const handleUpdateCollapsed = (value: boolean) => {
v-if="forward.showDefaultActions"
:model-value="state.collapsed"
@update:model-value="handleUpdateCollapsed"
- />
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/effects/plugins/src/vxe-table/use-vxe-grid.vue b/packages/effects/plugins/src/vxe-table/use-vxe-grid.vue
index cedb44229f4..323c483c6eb 100644
--- a/packages/effects/plugins/src/vxe-table/use-vxe-grid.vue
+++ b/packages/effects/plugins/src/vxe-table/use-vxe-grid.vue
@@ -272,6 +272,18 @@ onMounted(() => {
v-bind="slotProps"
>
+
+
+
+
+
+
+
+
+
+
+
+