chore(examples): update color selector node example
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user