From ee17debc7eff4af0bbfc1f28a256f2a05993b0c5 Mon Sep 17 00:00:00 2001 From: ZhangXianQiang <1135831638@qq.com> Date: 星期二, 16 四月 2024 17:19:36 +0800 Subject: [PATCH] feat:添加圆环 --- src/views/screen/components/screen-map-three/index.vue | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/views/screen/components/screen-map-three/index.vue b/src/views/screen/components/screen-map-three/index.vue index 9d6eedf..a117a58 100644 --- a/src/views/screen/components/screen-map-three/index.vue +++ b/src/views/screen/components/screen-map-three/index.vue @@ -1,16 +1,16 @@ <template> - <div class="map-container" ref="mapContainer"> - + <div class="map-container" > + <canvas class="world" ref="worldContainer"></canvas> </div> </template> <script> -import World from './world/world'; +import Experience from './experience/index'; let world = null; export default { name: 'ScreenMapThree', mounted() { - world = new World(this.$refs.mapContainer); + world = new Experience(this.$refs.worldContainer); } } </script> @@ -19,5 +19,13 @@ .map-container { width: 100%; height: 100%; + position: absolute; + left: 0; + top: 0; + z-index: 0; + .world { + width: 100%; + height: 100%; + } } </style> \ No newline at end of file -- Gitblit v1.8.0