refactor(flow): Watch models

* replace model value after re-setting elements/nodes/edges

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-20 19:29:52 +01:00
parent 5457106905
commit ee6bf3252e
4 changed files with 72 additions and 43 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ export type FlowInstance<N = any, E = N> = {
} & UseZoomPanHelper
export interface FlowProps<N = any, E = N> {
modelValue?: any[]
modelValue: Elements
nodes?: Node<N>[]
edges?: Edge<E>[]
id?: string