Skip to content

Commit 0f51e2c

Browse files
committed
chore(docs): update custom node example
1 parent d5587f1 commit 0f51e2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/examples/custom-node/OutputNode.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ const connections = useHandleConnections({
55
type: 'target',
66
})
77
8-
const data = useNodesData(() => connections.value[0]?.source)
8+
const nodesData = useNodesData(() => connections.value[0]?.source)
99
</script>
1010
1111
<template>
12-
<Handle type="target" :position="Position.Left" :style="{ backgroundColor: data?.color, filter: 'invert(100%)' }" />
13-
{{ data?.isGradient ? 'GRADIENT' : data?.color }}
12+
<Handle type="target" :position="Position.Left" :style="{ backgroundColor: nodesData.data?.color, filter: 'invert(100%)' }" />
13+
{{ nodesData.data?.isGradient ? 'GRADIENT' : nodesData.data?.color }}
1414
</template>

0 commit comments

Comments
 (0)