Explorar o código

feat: 添加自定义属性

Gaokun Wang hai 1 semana
pai
achega
36b068e585
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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子流程'