chore(examples): add cdn example file

This commit is contained in:
braks
2024-02-03 16:51:32 +01:00
committed by Braks
parent fc2f36b419
commit 10060064f2
4 changed files with 54 additions and 3 deletions

View File

@@ -112,7 +112,7 @@ function onGradient() {
fit-view-on-init
>
<template #node-color-selector="{ data }">
<ColorSelectorNode :data="data" @change="onChange" @gradient="onGradient" />
<ColorSelectorNode :data="data" />
</template>
<MiniMap :node-stroke-color="nodeStroke" :node-color="nodeColor" />

View File

@@ -1,4 +1,17 @@
<script setup>
const props = defineProps();
import { useHandleConnections, useNodesData } from '@vue-flow/core'
const { }
const props = defineProps({
id: {
type: String,
required: true,
},
})
const connections = useHandleConnections({
nodeId: props.id,
type: 'target',
})
const data = useNodesData()
</script>