cover-view
Text view overlaid on native components. map
native components can be overlaid. Embedding applies to base library 1.10.0 and later versions of the Mini Program.
Attribute | Type | Default value | Description | Minimum version |
---|---|---|---|---|
onTap | EventHandle | - | Tapping event callback. | 1.9.0 |
cover-image
Image view overlaid on native components. cover-view
native components can be overlaid. Embedding applies to base library 1.10.0 and later versions of the Mini Program.
Attribute | Type | Default value | Description | Minimum version |
---|---|---|---|---|
src | String | - | Image address. The address format supported is the same as that of image. | 1.9.0 |
onTap | EventHandle | - | Tapping event callback. | 1.9.0 |
Code sample
<view class="page">
<view class="page-description">cover-view</view>
<view class="page-section">
<view class="page-section-demo" style="position: relative;">
<map
longitude="{{longitude}}"
latitude="{{latitude}}"
scale="{{scale}}"
style="width: 100%; height: 200px;"
include-points="{{includePoints}}"
/>
<cover-view class="cover-view">
<cover-view class="cover-view-item cover-view-item-1"></cover-view>
<cover-view class="cover-view-item cover-view-item-2"></cover-view>
<cover-view class="cover-view-item cover-view-item-3"></cover-view>
</cover-view>
<cover-image style="" src="/image/ant.png" />
</view>
</view>
</view>