Explorar el Código

feat: 添加自定义属性

Gaokun Wang hace 1 semana
padre
commit
36b068e585
Se han modificado 1 ficheros con 3 adiciones y 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子流程'