Skip to content

Commit

Permalink
fix: 补全 cover-view 在配合 map 组件使用时的特殊属性
Browse files Browse the repository at this point in the history
  • Loading branch information
jay4q authored and Chen-jj committed Apr 25, 2021
1 parent e924f14 commit 624e98d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/shared/src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ const CoverImage = {

const CoverView = {
'scroll-top': 'false',
'marker-id': '',
'slot': '',
...touchEvents
}

Expand Down
11 changes: 11 additions & 0 deletions packages/taro-components/types/CoverView.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ interface CoverViewProps extends ViewProps {
* @supported weapp
*/
scrollTop?: number

/**
* 适用于地图组件 map 的自定义气泡 customCallout
* @supported weapp
*/
markerId?: string

/**
* @supported weapp
*/
slot?: string
}

/** 覆盖在原生组件之上的文本视图。可覆盖的原生组件包括 map、video、canvas、camera、live-player、live-pusher 只支持嵌套 cover-view、cover-image,可在 cover-view 中使用 button。
Expand Down

0 comments on commit 624e98d

Please sign in to comment.