浏览代码

feat: 添加自定义属性

Gaokun Wang 1 周之前
父节点
当前提交
36b068e585
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/views/test/flow.vue

+ 3 - 0
src/views/test/flow.vue

@@ -53,6 +53,9 @@ const initGraph = () => {
     if (item != id) {
       const s1 = graph.value.createNode({
         shape: 'sub-flow-rect',
+        data: {
+          flowId: item
+        },
         attrs: {
           title: {
             text: 'XX子流程'