From 624e98d0b5093e1432e0532b2fba46a907707c78 Mon Sep 17 00:00:00 2001 From: jay4q Date: Tue, 23 Mar 2021 10:22:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A5=E5=85=A8=20cover-view=20?= =?UTF-8?q?=E5=9C=A8=E9=85=8D=E5=90=88=20map=20=E7=BB=84=E4=BB=B6=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E6=97=B6=E7=9A=84=E7=89=B9=E6=AE=8A=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/shared/src/components.ts | 2 ++ packages/taro-components/types/CoverView.d.ts | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/packages/shared/src/components.ts b/packages/shared/src/components.ts index 70c029a51108..ab776856db00 100644 --- a/packages/shared/src/components.ts +++ b/packages/shared/src/components.ts @@ -251,6 +251,8 @@ const CoverImage = { const CoverView = { 'scroll-top': 'false', + 'marker-id': '', + 'slot': '', ...touchEvents } diff --git a/packages/taro-components/types/CoverView.d.ts b/packages/taro-components/types/CoverView.d.ts index 49a007fe608f..24c8155d53f9 100644 --- a/packages/taro-components/types/CoverView.d.ts +++ b/packages/taro-components/types/CoverView.d.ts @@ -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。