| | |
| | | <img src="/@/components/vue-flow/ui/assets/images/icon_Start.png" class="h-4 w-4" alt="Start icon" /> |
| | | <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-else v-elInputFocus v-model="data.title" @blur="() => (titleIsEdit = false)"></el-input> |
| | | <el-input v-else v-elInputFocus="true" v-model="data.title" @blur="() => (titleIsEdit = false)"></el-input> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | <script lang="ts" setup> |
| | | import { Handle, Position, useNode, useVueFlow } from '@vue-flow/core'; |
| | | import { ref, watchEffect } from 'vue'; |
| | | import { ref } from 'vue'; |
| | | |
| | | import type { NodeProps } from '@vue-flow/core'; |
| | | import { computed } from 'vue'; |
| | | import { VueFlowConstant } from '../../VueFlowConstant'; |
| | | import { VueFlowHelper } from '../../VueFlowHelper'; |
| | | import { parameterTypeMap } from '../../vueFlowEnum'; |
| | | import { LLMNodeData, LLMNodeEvents } from './index'; |
| | | import { deepClone } from '/@/utils/other'; |
| | | |
| | |
| | | const titleIsEdit = ref(false); |
| | | |
| | | const modelSetting = ref(VueFlowHelper.getGroupParam(data.value, 0)); |
| | | const prompt = ref(VueFlowHelper.getGroupParam(data.value,1)); |
| | | const prompt = ref(VueFlowHelper.getGroupParam(data.value, 1)); |
| | | |
| | | const { removeNodes, nodes, addNodes } = useVueFlow(); |
| | | |