Replies: 1 comment
-
2.x 中 shape 就像你给节点形状自定义的名称。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
1.x 版本中vue组件使用
Graph.registerVueComponent('start-node', {
template:
<start-node></start-node>
,components: {
StartNode
}
}, true)
graph.createNode({
shape: 'vue-shape',
component: 'virtual-node',
width: 180,
height: 36,
ports: ports
})
这样是不是就没法升级到 2.x版本了。2.x注册VUE组件的 shape是自定义的,1.x中我的shape都是 'vue-shape'
Beta Was this translation helpful? Give feedback.
All reactions