| | |
| | | <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-elInputFocus v-else v-model="data.title" @blur="() => (titleIsEdit = false)"></el-input> |
| | | <el-input v-elInputFocus="true" v-else 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'; |
| | |
| | | |
| | | const data = ref(node.node.data); |
| | | |
| | | const getVarList = () =>{ |
| | | const getVarList = () => { |
| | | const varList = data.value[VueFlowConstant.GROUP_PARAMS_KEY][0][VueFlowConstant.PARAMS_KEY].find( |
| | | (item) => item.key === 'condition' |
| | | ).value; |
| | | return varList; |
| | | } |
| | | }; |
| | | |
| | | const varList = ref(VueFlowHelper.getFieldValue(data.value,'var_list')); |
| | | const varList = ref(VueFlowHelper.getFieldValue(data.value, 'var_list')); |
| | | const titleIsEdit = ref(false); |
| | | |
| | | function handleClickAddBtn() { |
| | | |
| | | |
| | | varList.value.push({ |
| | | name: '', |
| | | description: '', |
| | |
| | | const clickDeleteBtn = () => { |
| | | removeNodes(node.id); |
| | | }; |
| | | |
| | | |
| | | |
| | | </script> |