feat:新增小地图功能

main
zhu.yawen 1 year ago
parent 0bb185de40
commit ddaa166716

@ -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') // const selectElement = document.getElementById('selectWin')
console.log(value, selectElement.getBoundingClientRect().height)
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', [

Loading…
Cancel
Save