From 891d0312127d2cb9a1a5449ef2843b99aae03033 Mon Sep 17 00:00:00 2001 From: chaos-zhu Date: Wed, 29 Oct 2025 23:32:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../terminal/components/terminal-setting.vue | 80 ++++++++++++++----- 1 file changed, 60 insertions(+), 20 deletions(-) diff --git a/web/src/views/terminal/components/terminal-setting.vue b/web/src/views/terminal/components/terminal-setting.vue index 0017958..f5ece68 100644 --- a/web/src/views/terminal/components/terminal-setting.vue +++ b/web/src/views/terminal/components/terminal-setting.vue @@ -16,17 +16,40 @@ :show-message="false" > - + + > +
+
+ Aa +
+ {{ key }} +
+
- + { // 如果有自定义颜色,显示自定义颜色;否则显示上次选择的颜色 - if (fontColor.value) { - lastCustomColor.value = fontColor.value - return fontColor.value - } - return lastCustomColor.value + return fontColor.value || lastCustomColor.value }, set: (newVal) => { lastCustomColor.value = newVal @@ -215,10 +234,6 @@ const setThemeColor = () => { fontColor.value = '' } -const setCustomColor = (color) => { - fontColor.value = color -} - const handleColorChange = (color) => { if (color) { fontColor.value = color @@ -232,11 +247,7 @@ const cursorColor = computed({ const customCursorColor = computed({ get: () => { - if (cursorColor.value) { - lastCustomCursorColor.value = cursorColor.value - return cursorColor.value - } - return lastCustomCursorColor.value + return cursorColor.value || lastCustomCursorColor.value }, set: (newVal) => { lastCustomCursorColor.value = newVal @@ -265,6 +276,35 @@ const changeBackground = (item) => {