From 088a427770e9e71867a6bc1f11b1972c999c6cc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E6=88=90=E5=BC=BA?= Date: Tue, 17 Nov 2020 15:48:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/style/common.less | 30 ++++++++++++++++----- src/views/kpi/assessment/stepList/index.vue | 1 + src/views/kpi/report/home/index.vue | 3 ++- 3 files changed, 27 insertions(+), 7 deletions(-) diff --git a/src/style/common.less b/src/style/common.less index 0a931e0..b18639b 100644 --- a/src/style/common.less +++ b/src/style/common.less @@ -64,9 +64,27 @@ } -// ::-webkit-scrollbar { -// width: 0 !important; -// } -// ::-webkit-scrollbar { -// width: 0 !important;height: 0; -// } + +/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/ +::-webkit-scrollbar +{ + width: 2px; + height: 2px; + background: #409EFF; +} + +/*定义滚动条轨道 内阴影+圆角*/ +::-webkit-scrollbar-track +{ + -webkit-box-shadow: inset 0 0 2px rgba(231, 231, 231, 0.3); + border-radius: 1px; + background-color: #F5F5F5; +} + +/*定义滑块 内阴影+圆角*/ +::-webkit-scrollbar-thumb +{ + border-radius: 1px; + -webkit-box-shadow: inset 0 0 2px #409EFF; + background: #409EFF; +} \ No newline at end of file diff --git a/src/views/kpi/assessment/stepList/index.vue b/src/views/kpi/assessment/stepList/index.vue index c7d1a9f..3deffcc 100644 --- a/src/views/kpi/assessment/stepList/index.vue +++ b/src/views/kpi/assessment/stepList/index.vue @@ -256,6 +256,7 @@ export default { props: { value: 'startId', label: 'time', + expandTrigger: 'hover', level: true }, tableData: [], diff --git a/src/views/kpi/report/home/index.vue b/src/views/kpi/report/home/index.vue index 9132300..94f4d09 100644 --- a/src/views/kpi/report/home/index.vue +++ b/src/views/kpi/report/home/index.vue @@ -120,7 +120,8 @@ export default { // props: { value: 'startId', - label: 'time' + label: 'time', + expandTrigger: 'hover' }, // 考核人数报表持有类 option: {