From 1ab49de173e2adac697499c613ab911cd59223ab Mon Sep 17 00:00:00 2001 From: hisoka0728 <1399952343@qq.com> Date: Thu, 4 Jul 2024 09:44:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A1=A8=E6=A0=BC=E6=BB=9A=E5=8A=A8?= =?UTF-8?q?=E6=9D=A1=E6=94=AF=E6=8C=81=E8=83=8C=E6=99=AF=E9=A2=9C=E8=89=B2?= =?UTF-8?q?=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/control/grid/grid/grid.scss | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/control/grid/grid/grid.scss b/src/control/grid/grid/grid.scss index 3c054a83..52a3a4be 100644 --- a/src/control/grid/grid/grid.scss +++ b/src/control/grid/grid/grid.scss @@ -12,6 +12,9 @@ $control-grid: ( row-expand-icon-margin: getCssVar('spacing','none') getCssVar('spacing','none') getCssVar('spacing','none') getCssVar(spacing, tight), now-header-height: auto, scrollbar-width: 4px, + scrollbar-bg-color: rgb(46 50 55 / 13%), + scrollbar-bg-hover-opacity: 0.5, + scrollbar-bg-hover-color: rgb(46 50 55 / 13%), ); $control-grid-header: ( text-color: getCssVar(color, text, 2), @@ -298,6 +301,15 @@ font-weight: getCssVar(font-weight, bold), .el-scrollbar__bar.is-vertical{ width: getCssVar(control-grid, scrollbar-width); } + + .el-scrollbar__thumb{ + background-color: getCssVar(control-grid, scrollbar-bg-color); + + &:hover{ + background-color: getCssVar(control-grid, scrollbar-bg-hover-color); + opacity: getCssVar(control-grid, scrollbar-bg-hover-opacity); + } + } } @include e(load-more-button) { -- Gitee