<template>
<map id="map"
:longitude="longitude"
:latitude="latitude"
scale="14"
:controls="controls"
@controltap="controltap"
:markers="markers"
:polyline="polyline"
show-location
style="width: 100%; height: 60%;">
<cover-view class="saoma" @tap="takeScan">
<cover-image src="/static/saoma.png"></cover-image>
扫码开锁
</cover-view>
</map>
</template>
我map设置的高60%,剩下的40%我想写其他东西可以吗?还是说map只能100%全屏?
给map一个position:absolute
组件的宽高推荐写直接量,比如:750rpx,不要设置百分比值。官网文档