update(examples): unidirectional example

Signed-off-by: bcakmakoglu <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
bcakmakoglu
2022-03-08 11:06:45 +01:00
parent 36ac64f054
commit 158f81d5e5
2 changed files with 19 additions and 27 deletions
+5 -2
View File
@@ -1,9 +1,12 @@
<script lang="ts" setup>
import { CSSProperties } from 'vue'
import { Handle, Position } from '~/index'
import type { NodeProps } from '~/index'
const props = defineProps<NodeProps>()
interface Props {
id: string
}
const props = defineProps<Props>()
const nodeStyles: CSSProperties = { padding: '10px 15px', border: '1px solid #ddd' }
</script>
<template>