Browse Source

feat: 添加自定义属性

Gaokun Wang 1 week ago
parent
commit
36b068e585
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/views/test/flow.vue

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

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