From 1122de7de0148a6253587aae82b77229e05c7601 Mon Sep 17 00:00:00 2001
From: Flex <q1406482700@163.com>
Date: 星期二, 17 六月 2025 16:56:11 +0800
Subject: [PATCH] 修改保存

---
 ruoyi-ui/apps/web-antd/src/views/tool/dynamicForm/index.vue |   18 +++++++++++++++++-
 1 files changed, 17 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..a96107f 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" @save="handleSave"  :config="config" />
 </template>
 
 <script setup>
@@ -16,4 +16,20 @@
 const loadJson = (json) => {
   designer.value.setJson(json);
 };
+
+// 淇濆瓨鏂规硶
+// https://view.form-create.com/save#%E4%BF%9D%E5%AD%98%E6%95%B0%E6%8D%AE%E7%A4%BA%E4%BE%8B
+const handleSave = ({rule, options}) => {
+  console.log("浣犵偣鍑讳簡淇濆瓨鎸夐挳")
+  console.log("rule", rule)
+  console.log("options", options)
+}
+
+// 閰嶇疆椤�
+// 璇﹁https://view.form-create.com/ts#%E8%AE%BE%E8%AE%A1%E5%99%A8%E9%85%8D%E7%BD%AE
+const config = ref( {
+  // 鏄剧ず淇濆瓨鎸夐挳
+  showSaveBtn: true
+} )
+
 </script>

--
Gitblit v1.9.3