From bc1f0838aa98637feac655428a8dacc904201920 Mon Sep 17 00:00:00 2001 From: Flex <q1406482700@163.com> Date: 星期三, 18 六月 2025 10:01:22 +0800 Subject: [PATCH] Merge branch 'main' of http://yykjgit.sdyyst.com/r/school-ai --- ruoyi-ui/apps/web-antd/src/views/tool/dynamicForm/index.vue | 26 +++++++++++--------------- 1 files changed, 11 insertions(+), 15 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 a96107f..a80a4e3 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" @save="handleSave" :config="config" /> + <fc-designer ref="designer" :config="config" @save="handleSave" /> </template> <script setup> @@ -16,20 +16,16 @@ 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 -} ) +const config = ref({ + showSaveBtn: true, //淇濆瓨鎸夐挳 + showPreviewBtn: true, //棰勮鎸夐挳 +}); +// 淇濆瓨 +// https://view.form-create.com/save#%E4%BF%9D%E5%AD%98%E6%95%B0%E6%8D%AE%E7%A4%BA%E4%BE%8B +function handleSave(data) { + //淇濆瓨璁捐瑙勫垯 + console.log(data); +} </script> -- Gitblit v1.9.3