<script setup>
import { useVueFlow } from '@vue-flow/core'

const props = defineProps({
    id: {
        type: String,
        required: true,
    },
    data: {
        type: Object,
        required: true,
    },
})

const { updateNodeData } = useVueFlow()

function onSelect(color) {
    updateNodeData(props.id, { color, isGradient: false })

    const connectedEdges = getConnectedEdges(props.id)
    for (const edge of connectedEdges) {
        edge.style = {
            stroke: color,
        }
    }
}


</script>

<template>
    <div>接口哈哈哈</div>
</template>