瀏覽代碼

feat:新增小地图功能

zhu.yawen 1 年之前
父節點
當前提交
ddaa166716
共有 1 個文件被更改,包括 4 次插入5 次删除
  1. 4 5
      data-room-ui/packages/BigScreenDesign/RulerTool/SketchRuler.vue

+ 4 - 5
data-room-ui/packages/BigScreenDesign/RulerTool/SketchRuler.vue

@@ -55,7 +55,7 @@
           <slot />
           <slot />
         </div>
         </div>
       </div>
       </div>
-      <!-- <div
+      <div
         id="minimap"
         id="minimap"
         class="minimap"
         class="minimap"
       >
       >
@@ -79,7 +79,7 @@
           />
           />
         </div>
         </div>
         <div class="miniView" />
         <div class="miniView" />
-      </div> -->
+      </div>
     </div>
     </div>
   </div>
   </div>
 </template>
 </template>
@@ -163,8 +163,7 @@ export default {
     },
     },
     mapShow (value) {
     mapShow (value) {
       const mapElement = document.getElementById('minimap')
       const mapElement = document.getElementById('minimap')
-      const selectElement = document.getElementById('selectWin')
-      console.log(value, selectElement.getBoundingClientRect().height)
+      // const selectElement = document.getElementById('selectWin')
       if (!value) {
       if (!value) {
         mapElement.style.bottom = parseFloat(window.getComputedStyle(mapElement).bottom) + 150 + 'px'
         mapElement.style.bottom = parseFloat(window.getComputedStyle(mapElement).bottom) + 150 + 'px'
       } else {
       } else {
@@ -214,7 +213,7 @@ export default {
     this.listenSize()
     this.listenSize()
     this.initRuleHeight()
     this.initRuleHeight()
     this.throttleScroll()
     this.throttleScroll()
-    // this.throttleDrag()
+    this.throttleDrag()
   },
   },
   methods: {
   methods: {
     ...mapMutations('bigScreen', [
     ...mapMutations('bigScreen', [