diff --git a/packages/ui/src/components/variable/VariableManagerModal.vue b/packages/ui/src/components/variable/VariableManagerModal.vue index e180317d..98129d34 100644 --- a/packages/ui/src/components/variable/VariableManagerModal.vue +++ b/packages/ui/src/components/variable/VariableManagerModal.vue @@ -52,8 +52,12 @@ - - + + + + (null); const exportFormat = ref<"csv" | "txt">("csv"); +// 默认折叠预定义变量列表(很少需要查看/编辑) +const isPredefinedExpanded = ref(false); + // 内联编辑状态 const editingRowKey = ref(null); const editingValue = ref(""); @@ -418,6 +463,15 @@ const buttonSize = computed(() => { : responsiveButtonSize.value; }); +watch( + () => localVisible.value, + (visible) => { + if (visible) { + isPredefinedExpanded.value = false; + } + }, +); + const allVariables = computed(() => { const manager = props.variableManager?.variableManager.value; if (!manager) return [];