Replies: 3 comments
-
这样应该能有类似的效果 const count = ref(0)
const getNode: any = inject('getNode')
onMounted(() => {
const node = getNode() as Node
const data = node.getData()
count.value = data.count
node.on('change:data', ({ current }) => {
count.value = current.count
})
}) |
Beta Was this translation helpful? Give feedback.
0 replies
-
可以借鉴下这篇文档里面的方法:https://www.yuque.com/sxd_panda/antv/vue-node |
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
-
在官网文档中没有找到明确提示,antv/x6-vue-shape 的 register 方法中好像也没有类似 React 组件中 effect 字段的功能
Beta Was this translation helpful? Give feedback.
All reactions