Skip to content

Commit 5846638

Browse files
committed
更新 ExpressionEditor 组件:将 horizontalLayout 默认值改为 true,以确保初始布局为水平。
1 parent 17704d8 commit 5846638

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/ExpressionEditor.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ const formulaTextRef = ref<HTMLDivElement | null>(null);
300300
const fontSize = ref(MAX_FONT_SIZE);
301301
const isCircleStyle = ref(false);
302302
const showExpression = ref(false);
303-
const horizontalLayout = ref(false); // 添加horizontalLayout变量
303+
const horizontalLayout = ref(true); // 添加horizontalLayout变量
304304
305305
// 计算属性
306306
const canUndo = computed(() => historyIndex.value > 0);
@@ -1412,7 +1412,7 @@ const loadSettings = () => {
14121412
autoCompleteBrackets: localSettings.autoCompleteBrackets ?? false,
14131413
bracketColorEnabled: localSettings.bracketColorEnabled ?? false,
14141414
isDarkMode: localSettings.isDarkMode ?? false,
1415-
horizontalLayout: localSettings.horizontalLayout ?? false
1415+
horizontalLayout: localSettings.horizontalLayout ?? true
14161416
};
14171417
14181418
autoCompleteBrackets.value = settings.autoCompleteBrackets;

0 commit comments

Comments
 (0)