@@ -73,9 +73,9 @@ const NodeWrapper = defineComponent({
73
73
} ,
74
74
} )
75
75
76
- const getClass = computed ( ( ) => ( node . class instanceof Function ? node . class ( node ) : node . class ) )
76
+ const getClass = $ computed( ( ) => ( node . class instanceof Function ? node . class ( node ) : node . class ) )
77
77
78
- const getStyle = computed ( ( ) => {
78
+ const getStyle = $ computed( ( ) => {
79
79
const styles = ( node . style instanceof Function ? node . style ( node ) : node . style ) || { }
80
80
81
81
const width = node . width instanceof Function ? node . width ( node ) : node . width
@@ -88,7 +88,7 @@ const NodeWrapper = defineComponent({
88
88
return styles
89
89
} )
90
90
91
- const zIndex = computed ( ( ) => Number ( node . zIndex ?? getStyle . value . zIndex ?? 0 ) )
91
+ const zIndex = computed ( ( ) => Number ( node . zIndex ?? getStyle . zIndex ?? 0 ) )
92
92
93
93
onUpdateNodeInternals ( ( updateIds ) => {
94
94
if ( updateIds . includes ( props . id ) ) {
@@ -176,14 +176,14 @@ const NodeWrapper = defineComponent({
176
176
`vue-flow__node-${ props . type === false ? 'default' : props . name } ` ,
177
177
{
178
178
[ noPanClassName ] : props . draggable ,
179
- dragging,
179
+ dragging : dragging ?. value ,
180
180
selected : node . selected ,
181
181
selectable : props . selectable ,
182
182
} ,
183
183
getClass ,
184
184
] ,
185
185
'style' : {
186
- zIndex : node . computedPosition . z ?? zIndex ,
186
+ zIndex : node . computedPosition . z ?? zIndex . value ,
187
187
transform : `translate(${ node . computedPosition . x } px,${ node . computedPosition . y } px)` ,
188
188
pointerEvents : props . selectable || props . draggable ? 'all' : 'none' ,
189
189
visibility : node . initialized ? 'visible' : 'hidden' ,
@@ -209,13 +209,13 @@ const NodeWrapper = defineComponent({
209
209
events : { ...node . events , ...on } ,
210
210
selected : ! ! node . selected ,
211
211
resizing : ! ! node . resizing ,
212
- dragging,
212
+ dragging : dragging ?. value ,
213
213
connectable : props . connectable ,
214
214
position : node . position ,
215
215
dimensions : node . dimensions ,
216
216
isValidTargetPos : node . isValidTargetPos ,
217
217
isValidSourcePos : node . isValidSourcePos ,
218
- parentNode : node . parentNode ,
218
+ parentFoo : node . parentNode ,
219
219
zIndex : node . computedPosition . z ,
220
220
targetPosition : node . targetPosition ,
221
221
sourcePosition : node . sourcePosition ,
0 commit comments