Parcourir la source

feat: 添加自定义属性

Gaokun Wang il y a 1 semaine
Parent
commit
36b068e585
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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子流程'