From f89534460a4b54670b0abffb347030f04349bdc8 Mon Sep 17 00:00:00 2001
From: du <13220750630.163.com>
Date: 星期二, 17 六月 2025 15:43:24 +0800
Subject: [PATCH] 表单设计器保存按钮

---
 ruoyi-ui/apps/web-antd/src/views/tool/dynamicForm/index.vue |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/ruoyi-ui/apps/web-antd/src/views/tool/dynamicForm/index.vue b/ruoyi-ui/apps/web-antd/src/views/tool/dynamicForm/index.vue
index 0bd9f76..aba7965 100644
--- a/ruoyi-ui/apps/web-antd/src/views/tool/dynamicForm/index.vue
+++ b/ruoyi-ui/apps/web-antd/src/views/tool/dynamicForm/index.vue
@@ -1,5 +1,5 @@
 <template>
-  <fc-designer ref="designer" />
+  <fc-designer ref="designer" :config="config"  @save="handleSave" />
 </template>
 
 <script setup>
@@ -16,4 +16,12 @@
 const loadJson = (json) => {
   designer.value.setJson(json);
 };
+const config = ref({
+  showSaveBtn: true,
+  showPreviewBtn: true,
+});
+function handleSave(data) {
+  //淇濆瓨璁捐瑙勫垯
+  console.log(data);
+}
 </script>

--
Gitblit v1.9.3