cover-view
覆盖在原生组件之上的文本视图。可覆盖 map 原生组件,小程序基础库 1.10.0 及以上版本开始支持嵌套。
| 属性名 | 类型 | 默认值 | 描述 | 最低版本 |
|---|---|---|---|---|
| onTap | EventHandle | - | 点击事件回调 | 1.9.0 |
cover-image
覆盖在原生组件之上的图片视图,可覆盖的原生组件同 cover-view,小程序基础库 1.10.0 及以上版本开始支持嵌套。
| 属性名 | 类型 | 默认值 | 描述 | 最低版本 |
|---|---|---|---|---|
| src | String | - | 图片地址,支持的地址格式同 image 一致 | 1.9.0 |
| onTap | EventHandle | - | 点击事件回调 | 1.9.0 |
代码示例
<view class="page"><view class="page-description">cover-view</view><view class="page-section"><view class="page-section-demo" style="position: relative;"><maplongitude="{{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>
该文章对您有帮助吗?