wujingjing
2024-12-16 890adec7fddfe9d5f5da4511343ac6e8341d46b3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<template>
    <NodeBasicLayout
        v-model:title="data.title"
        :type="NodeType.End"
        
        :showOffset="false"
        :description="VueFlowHelper.getConfigValue(data, 'description', '工作流运行到此结束。')"
    >
        <Handle :id="handleId" type="target"  :position="Position.Left" />
    </NodeBasicLayout>
</template>
 
<script lang="ts" setup>
import type { NodeProps } from '@vue-flow/core';
import { Handle, Position, useNode, useVueFlow } from '@vue-flow/core';
import { ref } from 'vue';
import { VueFlowHelper } from '../../VueFlowHelper';
import { NodeType } from '../../vueFlowEnum';
 
import { LLMNodeData, LLMNodeEvents } from './index';
import NodeBasicLayout from './components/NodeBasicLayout.vue';
defineProps<NodeProps<LLMNodeData, LLMNodeEvents>>();
 
const node = useNode();
const handleId = ref(VueFlowHelper.getHandleId(node.node, 'target'));
 
const data = ref(node.node.data);
</script>