chore(examples): update color selector node example

This commit is contained in:
braks
2023-05-25 20:35:01 +02:00
committed by Braks
parent 94b43a68d6
commit 4336ff7578
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ interface Data {
onChange: (event: InputEvent) => void
}
interface ColorSelectorNodeProps extends NodeProps<Data, {}, 'selectorNode'> {
interface ColorSelectorNodeProps extends Pick<NodeProps<Data, {}, 'selectorNode'>, 'data'> {
data: Data
}

View File

@@ -89,7 +89,7 @@ function onChange(event: InputEvent) {
<template>
<VueFlow v-model="elements" fit-view-on-init :style="{ backgroundColor: bgColor }">
<template #node-selectorNode="props">
<ColorSelectorNode :data="props.data" :parent-node="props.parentNode" :position="props.position" />
<ColorSelectorNode :data="props.data" />
</template>
<MiniMap :node-stroke-color="nodeStroke" :node-color="nodeColor" />
<Controls />