chore(examples): add cdn example file
This commit is contained in:
@@ -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" />
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user