事件
小于 1 分钟
节点双击事件
- 事件名称:currentNodeDoubleClick
- 作用:节点双击事件,可用于在节点双击时触发自定义操作
- 类型:Function(nodeData:[])
- 默认值:(nodeData:[]) => {}
示例
<template>
<dawnFlow @currentNodeDoubleClick="currentNodeClick"></dawnFlow>
</template>
<script lang="ts" setup>
const currentNodeClick = (nodeData) => {
//打印节点数据
console.log(nodeData);
};
</script>连线双击事件
- 事件名称:currentEdgeDoubleClick
- 作用:连线双击事件,可用于在连线双击时触发自定义操作
- 类型:Function(edgeData:[])
- 默认值:(edgeData:[]) => {}
示例
<template>
<dawnFlow @currentEdgeDoubleClick="currentEdgeClick"></dawnFlow>
</template>
<script lang="ts" setup>
const currentEdgeClick = (edgeData) => {
//打印连线数据
console.log(edgeData);
};
</script>