From 85228495bd34c5a3b87dfb81c45dc2bfaef721a4 Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期四, 18 四月 2024 17:18:47 +0800
Subject: [PATCH] style:修改工单数据高度问题

---
 src/views/screen/components/screen-map-three/index.vue |   31 +++++++++++++++++++++++++++----
 1 files changed, 27 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..af189c1 100644
--- a/src/views/screen/components/screen-map-three/index.vue
+++ b/src/views/screen/components/screen-map-three/index.vue
@@ -1,16 +1,31 @@
 <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',
+  props: {
+    loadEnd: {
+      type: Boolean,
+      default: false
+    },
+  },
+  watch: {
+    loadEnd: {
+      handler(newVal) {
+        console.log(newVal);
+        if(newVal) {
+          world = new Experience(this.$refs.worldContainer);
+        }
+      }
+    }
+  },
   mounted() {
-    world = new World(this.$refs.mapContainer);
   }
 }
 </script>
@@ -19,5 +34,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