| | |
| | | <div class="flex flex-col gap-y-2"> |
| | | <div class="flex justify-between flex-0"> |
| | | <div class="flex items-center gap-x-2"> |
| | | <img src="/@/components/vue-flow/ui/assets/images/icon_End.png" class="h-4 w-4" alt="Start icon" /> |
| | | <YWIcon |
| | | :name="VueFlowConfig.nodeStyleMap.get(NodeType.End).icon" |
| | | :fontSize="VueFlowConfig.nodeStyleMap.get(NodeType.End).fontSize" |
| | | :color="VueFlowConfig.nodeStyleMap.get(NodeType.End).color" |
| | | class="rounded-lg p-1.5" |
| | | :class="VueFlowConfig.nodeStyleMap.get(NodeType.End).class" |
| | | /> |
| | | <div class="flex flex-col gap-y-1"> |
| | | <p v-if="!titleIsEdit" class="text-xl font-bold text-gray-500" @click="titleIsEdit = true">{{ data.title }}</p> |
| | | <el-input v-elInputFocus="false" v-else v-model="data.title" @blur="() => (titleIsEdit = false)"></el-input> |
| | |
| | | import { computed, ref } from 'vue'; |
| | | import { VueFlowConstant } from '../../VueFlowConstant'; |
| | | import { VueFlowHelper } from '../../VueFlowHelper'; |
| | | import { VueFlowConfig } from '../VueFlowConfig'; |
| | | import { NodeType } from '../../vueFlowEnum'; |
| | | |
| | | import { LLMNodeData, LLMNodeEvents } from './index'; |
| | | import { deepClone } from '/@/utils/other'; |
| | | |
| | | defineProps<NodeProps<LLMNodeData, LLMNodeEvents>>(); |
| | | |
| | | |
| | | const node = useNode(); |
| | | const handleId = ref(VueFlowHelper.getHandleId(node.node, 'target')); |
| | | |