From 9aaacb9937c238a31838b00b6746a84f38e89571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=81=8C=E7=B3=96=E5=8C=85=E5=AD=90?= Date: Wed, 1 Apr 2026 14:21:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=A1=A8=E6=A0=BC=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=B8=83=E5=B1=80=E6=A0=B7=E5=BC=8F=EF=BC=8C=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E8=A1=A8=E6=A0=BC=E5=AE=B9=E5=99=A8=E4=B8=8E=E5=88=86?= =?UTF-8?q?=E9=A1=B5=E3=80=81=E6=93=8D=E4=BD=9C=E6=A0=8F=E7=BB=93=E6=9E=84?= =?UTF-8?q?=EF=BC=8C=E8=B0=83=E6=95=B4=E7=9B=B8=E5=85=B3=20.vue=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=A1=A8=E6=A0=BC=E7=BB=93=E6=9E=84=E4=BB=A5?= =?UTF-8?q?=E9=80=82=E9=85=8D=E6=96=B0=E6=A0=B7=E5=BC=8F=E3=80=82\n\n-=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=20src/static/common.less=20=E7=9A=84?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E3=80=81=E5=88=86=E9=A1=B5=E3=80=81=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=A0=8F=E6=A0=B7=E5=BC=8F=E7=BB=93=E6=9E=84\n-=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4=20src/views/api/Hitokoto.vue=E3=80=81Music.v?= =?UTF-8?q?ue=E3=80=81PhotoWall.vue=E3=80=81SourceImage.vue=E3=80=81Articl?= =?UTF-8?q?e.vue=E3=80=81SystemConfig.vue=E3=80=81SystemRole.vue=E3=80=81S?= =?UTF-8?q?ystemUser.vue=20=E7=9A=84=E8=A1=A8=E6=A0=BC=E7=BB=93=E6=9E=84?= =?UTF-8?q?=EF=BC=8C=E7=BB=9F=E4=B8=80=E4=BD=BF=E7=94=A8=20.table-containe?= =?UTF-8?q?r=20=E7=B1=BB\n\nCo-authored-by:=20Copilot=20<223556219+Copilot?= =?UTF-8?q?@users.noreply.github.com>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/static/common.less | 65 +++++++++------------ src/views/api/Hitokoto.vue | 36 ++++++------ src/views/api/Music.vue | 94 +++++++++++++++---------------- src/views/api/PhotoWall.vue | 28 +++++---- src/views/api/SourceImage.vue | 54 +++++++++--------- src/views/system/Article.vue | 4 +- src/views/system/SystemConfig.vue | 62 ++++++++++---------- src/views/system/SystemRole.vue | 50 ++++++++-------- src/views/system/SystemUser.vue | 42 +++++++------- 9 files changed, 204 insertions(+), 231 deletions(-) diff --git a/src/static/common.less b/src/static/common.less index a4893ab..eef75a2 100644 --- a/src/static/common.less +++ b/src/static/common.less @@ -63,9 +63,9 @@ html, body, #app, .layout { } /* ===== 主内容区 ===== */ -.layout-main { - padding: 0 !important; - display: flex !important; +.el-main.layout-main { + --el-main-padding: 0; + display: flex; flex-direction: column; background: var(--el-fill-color); @@ -85,29 +85,19 @@ html, body, #app, .layout { } > .layout-copy { text-align: center; - padding: 8px 0 12px; + padding-bottom: 12px; color: var(--el-text-color-placeholder); font-size: var(--el-font-size-extra-small); } -} -/* ===== 页面布局(用于带分页的表格页面)===== */ -.page-wrapper { - display: flex; - flex-direction: column; - height: 100%; -} + /* ===== 页面布局(用于带分页的表格页面)===== */ + .page-wrapper { + display: flex; + flex-direction: column; + height: 100%; + } -/* ===== 表格美化 ===== */ -.table-container { - position: relative; - flex: 1; - overflow: hidden; - margin-bottom: 12px; - display: flex; - flex-direction: column; - - .el-table { + .table-container { // CSS 变量覆盖:表头背景/文字色、行悬停色、边框色、正文色 --el-table-header-bg-color: var(--el-fill-color-light); --el-table-header-text-color: var(--el-text-color-regular); @@ -119,7 +109,9 @@ html, body, #app, .layout { flex: 1; border-radius: var(--el-border-radius-base); overflow: hidden; - border: 1px solid var(--el-border-color-lighter); + border-left: 1px solid var(--el-border-color-lighter); + border-right: 1px solid var(--el-border-color-lighter); + border-top: 1px solid var(--el-border-color-lighter); &::before { display: none; @@ -141,25 +133,22 @@ html, body, #app, .layout { padding: 4px 6px; } } -} - -/* ===== 操作栏 ===== */ -.btn-container { - margin-bottom: 14px; - display: flex; - align-items: center; - - .search-btn { - margin-left: auto; + /* ===== 分页 ===== */ + .page-container { + margin-top: 20px; display: flex; + justify-content: center; } -} + /* ===== 操作栏 ===== */ + .btn-container { + margin-bottom: 14px; + display: flex; + align-items: center; -/* ===== 分页 ===== */ -.page-container { - padding: 16px 0 4px; - display: flex; - justify-content: center; + .search-btn { + margin-left: auto; + } + } } /* ===== 表单弹窗 ===== */ diff --git a/src/views/api/Hitokoto.vue b/src/views/api/Hitokoto.vue index 8c5462f..9654e03 100644 --- a/src/views/api/Hitokoto.vue +++ b/src/views/api/Hitokoto.vue @@ -26,25 +26,23 @@ 重置 -
- - - - - - - - - - - - - -
+ + + + + + + + + + + + +
重置
-
- - - - - -