update(script-setup): Refactor remaining files to script setup style

This commit is contained in:
Braks
2021-10-20 22:39:54 +02:00
parent 9b2f4b7406
commit 560bdc203b
62 changed files with 1683 additions and 1425 deletions
+22
View File
@@ -0,0 +1,22 @@
<script lang="ts" setup>
import Handle from '~/components/Handle/Handle.vue'
import { NodeProps, Position } from '~/types'
interface OutputNodeProps {
data?: NodeProps['data']
connectable?: NodeProps['connectable']
targetPosition?: NodeProps['targetPosition']
}
const props = withDefaults(defineProps<OutputNodeProps>(), {
data: () => {},
connectable: false,
targetPosition: Position.Top,
})
</script>
<template>
<div class="revue-flow__node-output">
{{ props.data?.label }}
<Handle type="source" :position="props.targetPosition" :is-connectable="props.connectable" />
</div>
</template>