We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5587f1 commit 0f51e2cCopy full SHA for 0f51e2c
docs/examples/custom-node/OutputNode.vue
@@ -5,10 +5,10 @@ const connections = useHandleConnections({
5
type: 'target',
6
})
7
8
-const data = useNodesData(() => connections.value[0]?.source)
+const nodesData = useNodesData(() => connections.value[0]?.source)
9
</script>
10
11
<template>
12
- <Handle type="target" :position="Position.Left" :style="{ backgroundColor: data?.color, filter: 'invert(100%)' }" />
13
- {{ data?.isGradient ? 'GRADIENT' : data?.color }}
+ <Handle type="target" :position="Position.Left" :style="{ backgroundColor: nodesData.data?.color, filter: 'invert(100%)' }" />
+ {{ nodesData.data?.isGradient ? 'GRADIENT' : nodesData.data?.color }}
14
</template>
0 commit comments