diff --git a/packages/ui/src/components/TestAreaPanel.vue b/packages/ui/src/components/TestAreaPanel.vue index c1d80e75..9d6c8375 100644 --- a/packages/ui/src/components/TestAreaPanel.vue +++ b/packages/ui/src/components/TestAreaPanel.vue @@ -1,7 +1,7 @@ + + + +
+ + + + + + + 🗑️ + + + + 💾 + +
+ + + + + + + + + {{ t("test.variables.addVariable") }} + + +
+ -
+ -
+ ]; "compare-toggle": []; "open-variable-manager": []; + "open-global-variables": []; "variable-change": [name: string, value: string]; "save-to-global": [name: string, value: string]; "temporary-variable-remove": [name: string]; @@ -432,9 +435,6 @@ const { setVariableValues, } = variableManager; -// 是否显示变量表单 -const showVariableForm = computed(() => true); - // 开发环境下的性能调试 if (import.meta.env.DEV) { const logPerformance = debounce( diff --git a/packages/ui/src/components/context-mode/ContextUserWorkspace.vue b/packages/ui/src/components/context-mode/ContextUserWorkspace.vue index d7fbcd16..e12ffb56 100644 --- a/packages/ui/src/components/context-mode/ContextUserWorkspace.vue +++ b/packages/ui/src/components/context-mode/ContextUserWorkspace.vue @@ -107,113 +107,83 @@ - - - - - - {{ $t("test.areaTitle") }} + + - - - - - - {{ - $t("contextMode.actions.globalVariables") - }} - + + - - - + - - - - - - - - - - - - - - - - + + + - + -
- - - - - -
- - - - - - - 🗑️ - - - - 💾 - -
- - - + + + {{ t("test.variables.tempCount", { count: displayVariables.length }) }} + + - - - - - - {{ t("test.variables.addVariable") }} - - + quaternary + @click="handleClearAllVariables" + > + {{ t("test.variables.clearAll") }} + + + {{ t("contextMode.actions.globalVariables") }} + -
-
+ + + + +
+ + + + + + + 🗑️ + + + + 💾 + +
+ + + + + + + + + {{ t("test.variables.addVariable") }} + + +
+ -
+ -
+ { return sortedTestVariables.value; }); -// 是否显示变量表单 -const showVariableForm = computed(() => { - return !props.isTestRunning; -}); - // 获取变量的显示值 const getVariableDisplayValue = (varName: string): string => { return mergedVariables.value[varName] || ""; diff --git a/packages/ui/src/components/image-mode/ImageWorkspace.vue b/packages/ui/src/components/image-mode/ImageWorkspace.vue index 4d3c0b13..1834e2f1 100644 --- a/packages/ui/src/components/image-mode/ImageWorkspace.vue +++ b/packages/ui/src/components/image-mode/ImageWorkspace.vue @@ -308,17 +308,17 @@
- - - -
+ + -
+
- + -
- + diff --git a/packages/web/src/App.vue b/packages/web/src/App.vue index eacf3aad..3a386054 100644 --- a/packages/web/src/App.vue +++ b/packages/web/src/App.vue @@ -577,198 +577,194 @@ - - - - - + + - - + + - - + + - - + + - -