From f6b85106a26cd801c2c30f2e09fd68a74a0ff101 Mon Sep 17 00:00:00 2001 From: Jokul Date: Sat, 11 Jul 2026 14:55:39 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BC=98=E5=8C=96=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=20-=20=E5=88=86=E5=8C=BA=E6=8A=98=E5=8F=A0?= =?UTF-8?q?=20+=20=E8=A7=86=E8=A7=89=E5=B1=82=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 基本连接信息始终显示, 带卡片背景和图标标题 - TLS/Sentinel/Cluster/SSH 改为可折叠面板, 默认折叠 - 折叠标题显示已启用标签 (Enabled tag) - 内联样式替换为 CSS 类 (.file-input-row, .form-input) - 弹窗宽度 520px -> 580px - 深色/浅色主题适配 --- .../src/components/NewConnectionDialog.vue | 377 ++++++++++++------ 1 file changed, 264 insertions(+), 113 deletions(-) diff --git a/src/renderer/src/components/NewConnectionDialog.vue b/src/renderer/src/components/NewConnectionDialog.vue index 9427ec5..6833f85 100644 --- a/src/renderer/src/components/NewConnectionDialog.vue +++ b/src/renderer/src/components/NewConnectionDialog.vue @@ -40,9 +40,11 @@ const form = reactive({ const saving = ref(false) const testing = ref(false) const isEdit = ref(false) +const activeCollapses = ref([]) watch(() => props.visible, async (v) => { if (v) { + activeCollapses.value = [] if (props.connection) { isEdit.value = true const decryptedAuth = await connStore.decryptPassword(props.connection.auth || '') @@ -219,128 +221,183 @@ async function handleSave() { - - - - - - - - + + +
+
+
🔌
+ Basic Connection +
+
+ + - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - {{ t('connection.tls') }} - - + - - - - {{ t('connection.sentinel') }} - - - - - - - {{ t('connection.cluster') }} - - - - - - {{ t('connection.ssh') }} - - + + + + + +
+ + {{ t('connection.cluster') }} + +
+
+ + + + +
+ + {{ t('connection.ssh') }} + + +
+
+