From e9b9e9414213d3b85e52d3c5196d0a2c2822cc22 Mon Sep 17 00:00:00 2001 From: OrzMiku Date: Thu, 31 Jul 2025 01:53:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(ui):=20=E4=BC=98=E5=8C=96=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AF=E9=80=82=E9=85=8D=E5=92=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?PC=E7=AB=AF=E5=B8=83=E5=B1=80=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 本次提交主要对上一个移动端适配commit进行了优化和问题修复。 - **PC端布局修复**: - 修复了密钥表格在PC端显示为2列的问题,恢复为3列布局,优化了视觉效果。 - 重新设计了日志页面的筛选器布局,从多行改为响应式网格布局,解决了PC端筛选栏显示混乱的问题。 - **移动端适配优化**: - 完善了页脚(Footer)在移动端的显示,确保所有链接和信息都能完整展示。 - 对编辑分组的表单进行了移动端适配,优化了表单项的排列方式,提升了在小屏幕上的可用性。 - **代码优化**: - 在分组表单中为配置项增加了提示(Tooltip),增强了用户体验。 - 统一和优化了部分组件的样式,使其在不同设备上表现更一致。 --- web/src/components/AppFooter.vue | 8 +- web/src/components/keys/GroupFormModal.vue | 76 +++++++- web/src/components/keys/KeyTable.vue | 4 +- web/src/components/logs/LogTable.vue | 194 +++++++++------------ 4 files changed, 159 insertions(+), 123 deletions(-) diff --git a/web/src/components/AppFooter.vue b/web/src/components/AppFooter.vue index 86df4d2..15410d9 100644 --- a/web/src/components/AppFooter.vue +++ b/web/src/components/AppFooter.vue @@ -218,7 +218,7 @@ onMounted(() => { border-top: 1px solid rgba(0, 0, 0, 0.08); padding: 12px 24px; font-size: 14px; - height: 52px; + min-height: 52px; } .footer-container { @@ -231,7 +231,6 @@ onMounted(() => { align-items: center; justify-content: center; gap: 16px; - flex-wrap: wrap; line-height: 1.4; } @@ -269,6 +268,7 @@ onMounted(() => { font-weight: 500; font-size: 13px; color: #666; + white-space: nowrap; } .version-clickable { @@ -301,6 +301,7 @@ onMounted(() => { border-radius: 4px; transition: all 0.2s ease; font-size: 13px; + white-space: nowrap; } .footer-link:hover { @@ -345,6 +346,7 @@ onMounted(() => { @media (max-width: 768px) { .app-footer { padding: 10px 16px; + height: auto; } .footer-main { @@ -353,7 +355,7 @@ onMounted(() => { text-align: center; } - .divider { + .footer-main :deep(.n-divider) { display: none; } diff --git a/web/src/components/keys/GroupFormModal.vue b/web/src/components/keys/GroupFormModal.vue index 1b60c53..f4654e1 100644 --- a/web/src/components/keys/GroupFormModal.vue +++ b/web/src/components/keys/GroupFormModal.vue @@ -366,6 +366,10 @@ function handleConfigKeyChange(index: number, key: string) { } } +const getConfigOption = (key: string) => { + return configOptions.value.find(opt => opt.key === key); +}; + // 关闭弹窗 function handleClose() { emit("update:show", false); @@ -440,7 +444,7 @@ async function handleSubmit() {