From 10ab6a46af767c69c290e9baf07079910e282a4e Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期一, 16 十二月 2024 17:31:44 +0800
Subject: [PATCH] 发布、调整输入框大小

---
 src/components/vue-flow/vueFlowEnum.ts |  102 +++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 98 insertions(+), 4 deletions(-)

diff --git a/src/components/vue-flow/vueFlowEnum.ts b/src/components/vue-flow/vueFlowEnum.ts
index dabd789..ce460e7 100644
--- a/src/components/vue-flow/vueFlowEnum.ts
+++ b/src/components/vue-flow/vueFlowEnum.ts
@@ -5,16 +5,21 @@
 }
 
 export const parameterTypeMap = {
-	[ParameterType.String]: 'string',
-	[ParameterType.Number]: 'number',
-	[ParameterType.Boolean]: 'boolean',
+	[ParameterType.String]: '瀛楃涓�',
+	[ParameterType.Number]: '鏁板瓧',
+	[ParameterType.Boolean]: '甯冨皵鍊�',
 };
 
 export const enum NodeType {
 	LLM = 'LLM',
 	Start = 'start',
 	End = 'end',
-	Condition='condition'
+	Condition = 'condition',
+	Knowledge = 'knowledge',
+	Output = 'output_msg',
+	Agent = 'agent',
+	Func = 'func',
+	Code = 'code',
 }
 
 export const nodeTypeMap = {
@@ -22,5 +27,94 @@
 	[NodeType.Start]: '寮�濮�',
 	[NodeType.End]: '缁撴潫',
 	[NodeType.Condition]: '鏉′欢鍒ゆ柇',
+	[NodeType.Knowledge]: '鐭ヨ瘑搴�',
+	[NodeType.Output]: '瀵硅瘽',
+	[NodeType.Agent]: '浠g悊',
+	[NodeType.Func]: '鎵ц鍔熻兘',
+	[NodeType.Code]: '浠g爜',
+};
 
+export const enum CompareOperation {
+	/** @description 鍖呭惈 */
+	include = 'include',
+	/** @description 涓嶅寘鍚� */
+	notInclude = 'notInclude',
+	/** @description 涓虹┖ */
+	empty = 'empty',
+	/** @description 涓嶄负绌� */
+	notEmpty = 'notEmpty',
+	/** @description 寮�濮嬩负 */
+	startWith = 'startWith',
+	/** @description 缁撴潫涓� */
+	endWith = 'endWith',
+
+	/** @description 闈炲紑濮嬩负 */
+	notStartWith = 'notStartWith',
+	/** @description 闈炵粨鏉熶负 */
+	notEndWith = 'notEndWith',
+
+	/** @description 绛変簬 */
+	eq = 'eq',
+	/** @description 涓嶇瓑浜� */
+	neq = 'neq',
+	/** @description 澶т簬 */
+	gt = 'gt',
+	/** @description 灏忎簬 */
+	lt = 'lt',
+	/** @description 澶т簬鎴栫瓑浜� */
+	gte = 'gte',
+	/** @description 灏忎簬鎴栫瓑浜� */
+	lte = 'lte',
+}
+export const compareOperationMap = {
+	[CompareOperation.gt]: '澶т簬',
+	[CompareOperation.lt]: '灏忎簬',
+	[CompareOperation.gte]: '澶т簬鎴栫瓑浜�',
+	[CompareOperation.lte]: '灏忎簬鎴栫瓑浜�',
+	[CompareOperation.eq]: '绛変簬',
+	[CompareOperation.neq]: '涓嶇瓑浜�',
+	[CompareOperation.include]: '鍖呭惈',
+	[CompareOperation.notInclude]: '涓嶅寘鍚�',
+	[CompareOperation.empty]: '涓虹┖',
+	[CompareOperation.notEmpty]: '涓嶄负绌�',
+	[CompareOperation.startWith]: '寮�濮嬩负',
+	[CompareOperation.endWith]: '缁撴潫涓�',
+	[CompareOperation.notStartWith]: '闈炲紑濮嬩负',
+	[CompareOperation.notEndWith]: '闈炵粨鏉熶负',
+};
+
+export const enum VarType {
+	Input = 'input',
+	Reference = 'reference',
+}
+
+export const varTypeMap = {
+	[VarType.Input]: '杈撳叆',
+	[VarType.Reference]: '寮曠敤',
+};
+
+export const enum ConditionOperator {
+	And = 'and',
+	Or = 'or',
+}
+
+export const conditionOperatorMap = {
+	[ConditionOperator.And]: '涓�',
+	[ConditionOperator.Or]: '鎴�',
+};
+
+// 浜や簰绫诲瀷
+export const enum InteractionType {
+	// 鏃犱氦浜�
+	None = 'none',
+	// 閫夋嫨鍨嬩氦浜�
+	Select = 'select',
+	// 杈撳叆鍨嬩氦浜�
+	Input = 'input',
+}
+
+export const interactionTypeMap = {
+	[InteractionType.None]: '鏃犱氦浜�',
+	[InteractionType.Select]: '閫夋嫨鍨嬩氦浜�',
+	[InteractionType.Input]: '杈撳叆鍨嬩氦浜�',
 };

--
Gitblit v1.9.3