Skip to content

Commit bd2e191

Browse files
authored
fix: fix CoverView some types lose problem (#18022)
1 parent 789a3d0 commit bd2e191

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

packages/taro-components/types/CoverView.d.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,22 @@ interface CoverViewProps extends ViewProps {
114114
* @supported alipay
115115
*/
116116
onTouchCancel?: CommonEventFunction
117+
/**
118+
* 标记点 ID
119+
* @description 用于地图组件的标记点识别
120+
* @supported weapp
121+
* @example
122+
* <CoverView markerId={123} />
123+
*/
124+
markerId?: number
125+
/**
126+
* 插槽名称
127+
* @description 用于组件间的内容分发
128+
* @supported weapp
129+
* @example
130+
* <CoverView slot="header" />
131+
*/
132+
slot?: string
117133
}
118134
/** 覆盖在原生组件之上的文本视图。可覆盖的原生组件包括 map、video、canvas、camera、live-player、live-pusher 只支持嵌套 cover-view、cover-image,可在 cover-view 中使用 button。
119135
* @classification viewContainer

0 commit comments

Comments
 (0)