fix!: props and composable not merging together properly
* Add getter for node/edge types * change nodeTypes prop type to only Record<string, NodeType> - same for edges * Add rgb example * remove v-model for elements Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<script lang="ts" setup>
|
||||
import { Handle, NodeProps, Position } from '~/index'
|
||||
|
||||
interface RBGOutputNodeProps extends NodeProps {
|
||||
rgb: string
|
||||
}
|
||||
|
||||
const props = defineProps<RBGOutputNodeProps>()
|
||||
</script>
|
||||
<template>
|
||||
<div :style="{ backgroundColor: props.rgb }" class="p-3 rounded-xl text-left text-white">
|
||||
<div class="text-md uppercase">{{ props.rgb }}</div>
|
||||
<Handle type="source" :position="Position.Left" />
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user