From 3a51b1f823582e6f1938a5ef78d228d8aa4d0c6d Mon Sep 17 00:00:00 2001 From: Jin Lei <jinlei_182@163.com> Date: 星期三, 15 十一月 2023 16:54:38 +0800 Subject: [PATCH] [问题修复]1.滚动条样式修改 --- static/SmartEarthSDK/Workers/TreeTool.js | 2 +- index.html | 1 + src/components/map/viewer.vue | 3 ++- static/css/style.css | 26 ++++++++++++++++++++++++++ 4 files changed, 30 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index a6447be..e049551 100644 --- a/index.html +++ b/index.html @@ -9,6 +9,7 @@ <link rel="stylesheet" href="./static/SmartEarthSDK/Cesium/Widgets/widgets.css"> <link rel="stylesheet" href="./static/iconfont/iconfont.css"> <link rel="stylesheet" href="./static/CimSDK/CimSDK.min.css"> + <link rel="stylesheet" href="./static/css/style.css"> <style> #qjMap { width: 100%; diff --git a/src/components/map/viewer.vue b/src/components/map/viewer.vue index af1005d..33d48fa 100644 --- a/src/components/map/viewer.vue +++ b/src/components/map/viewer.vue @@ -162,7 +162,8 @@ } ); window.Viewer = sgworld._Viewer; - window.sgwfs = new SmartEarth.WFSTool(sgworld._Viewer); + + window.sgwfs = new SmartEarth.WFSTool(sgworld._Viewer,Cesium); Viewer.shadows = false; //娣卞害妫�娴� sgworld.Analysis.depthTestAgainstTerrain(true); diff --git a/static/SmartEarthSDK/Workers/TreeTool.js b/static/SmartEarthSDK/Workers/TreeTool.js index f651658..93a91a1 100644 --- a/static/SmartEarthSDK/Workers/TreeTool.js +++ b/static/SmartEarthSDK/Workers/TreeTool.js @@ -9,7 +9,7 @@ this.sgworld = sgworld this.treeData = new Map() this.colorTool = sgworld.Core.gradientColor(); - this.sgwfs = new window.SmartEarth.WFSTool(sgworld._Viewer) + this.sgwfs = new window.SmartEarth.WFSTool(sgworld._Viewer,Cesium) } /** diff --git a/static/css/style.css b/static/css/style.css new file mode 100644 index 0000000..bcf42e3 --- /dev/null +++ b/static/css/style.css @@ -0,0 +1,26 @@ + +::-webkit-scrollbar { + /*婊氬姩鏉℃暣浣撴牱寮�*/ + width: 5px; + /*楂樺鍒嗗埆瀵瑰簲妯珫婊氬姩鏉$殑灏哄*/ + height: 8px; + scrollbar-arrow-color: red; + } + + /* 婊氬姩鏉� */ +::-webkit-scrollbar-thumb { + border-radius: 5px; + -webkit-box-shadow: inset 0 0 5px rgba(218, 218, 218, 0.2); + box-shadow: inset 0 0 5px rgba(218, 218, 218, 0.2); + background: rgba(218, 218, 218, 0.5); + cursor: pointer; + scrollbar-arrow-color: red; + } + + /* 婊氬姩妲� */ +::-webkit-scrollbar-track { + -webkit-box-shadow: inset 0 0 5px rgba(218, 218, 218, 0.2); + box-shadow: inset 0 0 5px rgba(218, 218, 218, 0.2); + border-radius: 0; + background: rgba(218, 218, 218, 0.1); + } \ No newline at end of file -- Gitblit v1.9.3