diff --git a/package.json b/package.json
index cf1244b9c587f72e09c0f8fc7712c27a0ae6c45c..b5e698249b3446c795f4fc4e91caafd9a2d1c54c 100644
--- a/package.json
+++ b/package.json
@@ -20,6 +20,7 @@
"@babel/plugin-transform-runtime": "^7.25.9",
"@babel/preset-env": "^7.26.0",
"@codemirror/lang-json": "^6.0.1",
+ "@codemirror/lang-yaml": "^6.1.2",
"@codemirror/theme-one-dark": "^6.1.2",
"@computing/opendesign-icons": "file:lib\\opendesign-icons-1.0.3.tgz",
"@computing/opendesign2": "file:lib\\opendesign2-2.0.11.tgz",
@@ -31,6 +32,7 @@
"echarts": "^5.5.1",
"element-plus": "2.8.0",
"highlight.js": "11.10.0",
+ "js-yaml": "^4.1.0",
"marked": "4.3",
"pinia": "2.1.6",
"sass": "1.62.0",
diff --git a/src/views/createapp/components/codeMirror/mirrorTextArea.vue b/src/views/createapp/components/codeMirror/mirrorTextArea.vue
new file mode 100644
index 0000000000000000000000000000000000000000..36d5b0b0cb873d687accd3312a35cbfd688b347c
--- /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 0e20d77d40d1b368badcf62d94340ba572fe53ed..e7b01047d194a46ec11ef9db2f0a1fdabf25fa1f 100644
--- a/src/views/createapp/components/workFlow.vue
+++ b/src/views/createapp/components/workFlow.vue
@@ -14,6 +14,8 @@ import useDragAndDrop from './workFlowConfig/useDnD';
import WorkFlowDialog from './workFlowConfig/workFlowDialog.vue';
import { useLayout } from './workFlowConfig/useLayout';
import { IconSearch, IconCaretRight, IconCaretDown, IconPlusCircle } from '@computing/opendesign-icons';
+import EditYamlDrawer from './workFlowConfig/yamlEditDrawer.vue';
+
const { t } = useI18n();
const copilotAside = ref();
const isCopilotAsideVisible = ref(true);
@@ -24,6 +26,7 @@ const workFlowItem = ref();
const isAddWorkFlow = ref(false);
const editData = ref();
const dialogType = ref('');
+const isEditYaml = ref(false);
const flowZoom = ref(1);
function hanleAsideVisible(): void {
if (!copilotAside.value) return;
@@ -132,6 +135,14 @@ const delNode = id => {
node ? removeNodes(node) : '';
}
};
+// 编辑yaml
+const editYamlDrawer = id => {
+ isEditYaml.value = true;
+};
+// 关闭抽屉
+const closeDrawer = () => {
+ isEditYaml.value = false;
+};
const handleZommOnScroll = () => {
const zoomObj = getViewport();
@@ -213,7 +224,7 @@ async function layoutGraph(direction) {
-
+
@@ -258,6 +269,7 @@ async function layoutGraph(direction) {
@handleClose="handleClose"
>
+