From 63e3f352b27bc0f19b0e9ddf58463d8af58b250f Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Tue, 12 Dec 2023 12:14:20 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E8=A1=A8=E6=A0=BC=E5=A4=B4=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E5=93=8D=E5=BA=94=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 70 ++++++++++++++-------------------- src/views/neUser/sub/index.vue | 18 ++++----- 2 files changed, 35 insertions(+), 53 deletions(-) diff --git a/src/App.vue b/src/App.vue index c41f50d9..17a8eed9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -93,60 +93,46 @@ body .ant-pro-basicLayout { padding: 6px !important; } +/** ==== 表格头按钮区域 S === **/ +/* 默认 */ .button-container { display: flex; flex-wrap: wrap; - justify-content: space-around; - margin-bottom: 20px; + justify-content: flex-start; + align-items: center; } -.primary-button, -.danger-button, -.dashed-button { - margin-bottom: 10px; - margin-right: 10px; +.button-container > button { + margin-right: 12px; + margin-bottom: 12px; } -.primary-button:last-child, -.danger-button:last-child, -.dashed-button:last-child { +.button-container > button:last-child { margin-right: 0; } - -.primary-button, -.danger-button, -.dashed-button { - padding: 8px 16px; -} - -.primary-button { - background-color: #1890ff; - color: #fff; - border: none; -} - -.danger-button { - background-color: #ff4d4f; - color: #fff; - border: none; -} - -.dashed-button { - background-color: #f0f2f5; - color: #333; - border: 1px dashed #ccc; -} - -@media (max-width: 768px) { +/* 平板端 */ +@media (max-width: 992px) { .button-container { - flex-direction: column; + flex-direction: row; + align-items: flex-start; align-items: center; } - - .primary-button, - .danger-button, - .dashed-button { - margin-right: 0; + .button-container > button { + margin-right: 12px; + margin-bottom: 12px; } } +/* 手机端 */ +@media (max-width: 576px) { + .button-container { + flex-direction: column; + align-items: flex-start; + align-items: center; + } + .button-container > button { + margin-right: 0px; + margin-bottom: 12px; + } +} +/** ==== 表格头按钮区域 E === **/ diff --git a/src/views/neUser/sub/index.vue b/src/views/neUser/sub/index.vue index 2327e684..048818be 100644 --- a/src/views/neUser/sub/index.vue +++ b/src/views/neUser/sub/index.vue @@ -962,16 +962,15 @@ onMounted(() => {