From 50ff1b8f9fec9f5cfa20cae11d9f6f7795418353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=AF=BA?= <1253070437@qq.com> Date: Mon, 27 Mar 2023 23:44:49 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=9B=B4=E6=96=B0=E3=80=91=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC{=20x:=201200,=20y:=20300=20}=E4=B8=8D=E7=94=9F?= =?UTF-8?q?=E6=95=88=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- snowy-admin-web/src/components/global.less | 13 ------------- snowy-admin-web/src/style/index.less | 19 ++++++++++++++++++- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/snowy-admin-web/src/components/global.less b/snowy-admin-web/src/components/global.less index 74c17c38..fda31967 100644 --- a/snowy-admin-web/src/components/global.less +++ b/snowy-admin-web/src/components/global.less @@ -27,19 +27,6 @@ body { margin: 24px 0 0; } } - - /** - * ant-table-wrapper - * 覆盖的表格手机模式样式,如果想修改在手机上表格最低宽度,可以在这里改动 - */ - .ant-table-wrapper { - .ant-table-content { - overflow-y: auto; - } - .ant-table-body { - min-width: 800px; - } - } .topmenu { /* 必须为 topmenu 才能启用流式布局 */ &.content-width-Fluid { diff --git a/snowy-admin-web/src/style/index.less b/snowy-admin-web/src/style/index.less index ee405d2d..2f40e334 100644 --- a/snowy-admin-web/src/style/index.less +++ b/snowy-admin-web/src/style/index.less @@ -398,6 +398,24 @@ a, button, input, textarea { padding: 12px 0!important; } +/* 重写antdv的表格滚动条 */ +.ant-table-body { + &::-webkit-scrollbar { + height: 10px; + width: 10px; + } + &::-webkit-scrollbar-thumb { + border-radius: 10px; + -webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1); + background: @border-color-split; + } + &::-webkit-scrollbar-track { + -webkit-box-shadow: 0; + border-radius: 10px; + background: @background-color-base; + } +} + // 滚动条,需要哪里,加哪个class body, .ant-drawer-wrapper-body, @@ -417,7 +435,6 @@ body, .org-table, .pos-table, .poi-list, -.ant-table-body, .snowy-orgpos-vis, .index-message-list, .ant-picker-time-panel-column,