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,