x6-vue-shape 使用自定义渲染节点时初始化传值可以,如何动态传值 #1772
SmallBlockCat
started this conversation in
General
Replies: 2 comments
-
可以参考这个 demo,通过事件监听方式。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
@SmallBlockCat
|
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
-
graph.addNode({
shape: 'vue-shape',
x: 32,
y: 48,
width: 180,
height: 40,
component: {
template:
<hello-world :name="name"></hello-world>
,data() {
return {
name: 'x6',
}
},
components: {
HelloWorld,
}
},
})
这是demo的例子,我也是这样实现的name传参,新建node节点的时候可以传过去,后面再修改name的值时却修改不了了,请问是什么问题?
Beta Was this translation helpful? Give feedback.
All reactions