From 675bd11fa9543b24eec510576c75cc9852c1789f Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Wed, 2 Nov 2022 17:16:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E5=88=86=E9=A1=B5=E7=BB=84=E4=BB=B6=E5=9C=A8=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E9=A1=B5=E9=9D=A2=E8=B6=85=E5=87=BA=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/element-plus.scss | 15 +++++++++++++++ src/styles/vxe-table.scss | 7 +++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/styles/element-plus.scss b/src/styles/element-plus.scss index c0bc03d..ae5bf6b 100644 --- a/src/styles/element-plus.scss +++ b/src/styles/element-plus.scss @@ -1,8 +1,23 @@ /** 自定义 Element Plus 样式 */ +// 表格 .el-table { // 表头 th.el-table__cell { background-color: var(--el-fill-color-light) !important; } } + +// 分页 +.el-pagination { + // 参考 Bootstrap 的响应式设计 WIDTH = 768 + @media screen and (max-width: 768px) { + .el-pagination__total, + .el-pagination__sizes, + .el-pagination__jump, + .btn-prev, + .btn-next { + display: none !important; + } + } +} diff --git a/src/styles/vxe-table.scss b/src/styles/vxe-table.scss index 79c347d..684cf39 100644 --- a/src/styles/vxe-table.scss +++ b/src/styles/vxe-table.scss @@ -22,10 +22,13 @@ height: 70px !important; padding: 0 20px !important; &--wrapper { - @media screen and (max-width: 750px) { + // 参考 Bootstrap 的响应式设计 WIDTH = 768 + @media screen and (max-width: 768px) { .vxe-pager--total, .vxe-pager--sizes, - .vxe-pager--jump { + .vxe-pager--jump, + .vxe-pager--jump-prev, + .vxe-pager--jump-next { display: none !important; } }