From 1f2a2b5f470489b96e4dc8d38e483f1f2df1dbef Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Tue, 2 Aug 2022 16:09:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E7=82=AE=E7=AD=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/scss/modules/visual/c/common.scss | 20 +++++ src/views/modules/visual/command/cpts/map.vue | 37 ++++++-- .../modules/visual/command/cpts/popup.vue | 88 +++++++++++++++---- 3 files changed, 122 insertions(+), 23 deletions(-) diff --git a/src/assets/scss/modules/visual/c/common.scss b/src/assets/scss/modules/visual/c/common.scss index 0f86e52d..c7900667 100644 --- a/src/assets/scss/modules/visual/c/common.scss +++ b/src/assets/scss/modules/visual/c/common.scss @@ -17,3 +17,23 @@ background: darken(#0c81fe, 20); } } + +@mixin scrollBar2 { + &::-webkit-scrollbar { + /*滚动条整体样式*/ + width: 8px; /*高宽分别对应横竖滚动条的尺寸*/ + height: 1px; + } + &::-webkit-scrollbar-thumb { + /*滚动条里面小方块*/ + border-radius: 8px; + box-shadow: inset 0 0 5px rgba(#000, 0.1); + background: linear-gradient(270deg, #999, #ddd); + } + &::-webkit-scrollbar-track { + /*滚动条里面轨道*/ + box-shadow: inset 0 0 5px rgba(#000, 0.1); + border-radius: 8px; + background: darken(#999, 20); + } +} diff --git a/src/views/modules/visual/command/cpts/map.vue b/src/views/modules/visual/command/cpts/map.vue index cb8530ce..8fdc9c92 100644 --- a/src/views/modules/visual/command/cpts/map.vue +++ b/src/views/modules/visual/command/cpts/map.vue @@ -10,7 +10,11 @@