From 21b529f55edad1f52afdb14d12be1c9cd450de43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com> Date: Fri, 3 Nov 2023 14:07:14 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=8A=A5=E8=A1=A8=E3=80=91=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E8=AE=BE=E7=BD=AEbug=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/columnFilter/index.vue | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/PC/UI.WinIn.FasterZ.AgGridReport/src/components/columnFilter/index.vue b/PC/UI.WinIn.FasterZ.AgGridReport/src/components/columnFilter/index.vue index f9d513a..e9bde69 100644 --- a/PC/UI.WinIn.FasterZ.AgGridReport/src/components/columnFilter/index.vue +++ b/PC/UI.WinIn.FasterZ.AgGridReport/src/components/columnFilter/index.vue @@ -33,7 +33,7 @@ export default { // this.columnCopy = JSON.parse(JSON.stringify(this.columnList)) this.columnCopy = [] this.columnList.forEach(item=>{ - let _item = JSON.parse(JSON.stringify(item)) + let _item = Object.assign({}, item) if(item.hide){ _item.hide = true }else{ @@ -58,6 +58,32 @@ export default { .columnFilterList{ margin:0; padding:0; + max-height:calc(100vh - 200px); + overflow:auto; + + /* 滚动条 */ + &::-webkit-scrollbar { + width: 5px; + height: 5px; + background: transparent; + border-radius: 5px; + } + + /* 内层轨道,它会覆盖外层轨道的样式 */ + &::-webkit-scrollbar-track-piece { + // background-color: #f3f3f3; + height: 5px; + width: 5px; + margin: 0 -2px 0; + } + + /* 滑块 */ + &::-webkit-scrollbar-thumb { + background-color: #ccc; + min-height: 60px; + min-width: 60px; + border-radius: 5px; + } li{ display:flex;