LogicFlow的实例化对象与vue3中的ref #1836
Unanswered
xingzilong
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
1、const lf = ref(new LogicFlow());

2、const lf =new LogicFlow();
在vue3中创建的logicflow实例对象要不要使用ref进行创建?使用ref创建与否两种情况有什么别吗?
我遇到了一下情况,我无法理解,希望有人能够解答!
vue3+logicflow1.2.26
我使用ref创建logicflow的实例对象,并且创建了一个自定义的html节点。此时在MyNode组件中可已经监听到model、graphModel、isSelected、isHovered这四个props的值的变化。
当我不使用ref创建logicflow对象时,此时在MyNode组件中就无法监听到model、graphModel、isSelected、isHovered这四个props的值的变化。
vue3+logicflow2.0.3
在这种环境下无论logicflow对象的创建有没有使用ref,MyNode组件中都无法监听到props的值的变化。
希望能够解惑
Beta Was this translation helpful? Give feedback.
All reactions