From 6a4ed80b5f8a075161363ac514de30506316c8cd Mon Sep 17 00:00:00 2001 From: li-shengren-123456 Date: Fri, 17 Jan 2025 16:28:50 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E6=B7=BB=E5=8A=A0yaml=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E6=8A=BD=E5=B1=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/codeMirror/mirrorTextArea.vue | 40 ++++++++++ src/views/createapp/components/workFlow.vue | 13 +++- .../components/workFlowConfig/CustomNode.vue | 9 ++- .../workFlowConfig/yamlEditDialog.vue | 73 +++++++++++++++++++ 4 files changed, 132 insertions(+), 3 deletions(-) create mode 100644 src/views/createapp/components/codeMirror/mirrorTextArea.vue create mode 100644 src/views/createapp/components/workFlowConfig/yamlEditDialog.vue diff --git a/src/views/createapp/components/codeMirror/mirrorTextArea.vue b/src/views/createapp/components/codeMirror/mirrorTextArea.vue new file mode 100644 index 0000000..36d5b0b --- /dev/null +++ b/src/views/createapp/components/codeMirror/mirrorTextArea.vue @@ -0,0 +1,40 @@ + + + diff --git a/src/views/createapp/components/workFlow.vue b/src/views/createapp/components/workFlow.vue index 896d3bb..47c580a 100644 --- a/src/views/createapp/components/workFlow.vue +++ b/src/views/createapp/components/workFlow.vue @@ -12,6 +12,7 @@ import CustomSaENode from './workFlowConfig/CustomSaENode.vue'; import useDragAndDrop from './workFlowConfig/useDnD'; import WorkFlowDialog from './workFlowConfig/workFlowDialog.vue'; import { IconSearch, IconCaretRight, IconCaretDown, IconPlusCircle } from '@computing/opendesign-icons'; +import EditYamlDia from './workFlowConfig/yamlEditDialog.vue'; const { t } = useI18n(); const copilotAside = ref(); @@ -23,6 +24,7 @@ const workFlowItem = ref(); const isAddWorkFlow = ref(false); const editData = ref(); const dialogType = ref(''); +const isEditYaml = ref(false); function hanleAsideVisible(): void { if (!copilotAside.value) return; if (isCopilotAsideVisible.value) { @@ -120,6 +122,14 @@ const delNode = id => { node ? removeNodes(node) : ''; } }; +// 编辑yaml +const editYamlDrawer = id => { + isEditYaml.value = true; +}; +// 关闭抽屉 +const closeDrawer = () => { + isEditYaml.value = false; +};