From ebfcb569e154fcae6867a7a593faea6fc88b9fa7 Mon Sep 17 00:00:00 2001 From: wangxingkang Date: Thu, 23 Nov 2023 13:02:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=8C=E5=96=84=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/types/map/point-mark/MarkerCluster.d.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/types/map/point-mark/MarkerCluster.d.ts b/packages/types/map/point-mark/MarkerCluster.d.ts index f233cb49..77c66349 100644 --- a/packages/types/map/point-mark/MarkerCluster.d.ts +++ b/packages/types/map/point-mark/MarkerCluster.d.ts @@ -1,7 +1,15 @@ declare namespace AMap { namespace MarkerCluster { + interface ClickEvent { + cluster: MarkerCluster, + lnglat: AMap.LngLat, + target: I, + markers: AMap.Marker[], + clusterData: any[]; + } + interface EventMap { - click: (data: { cluster: MarkerCluster, lnglat: AMap.LngLat,target: I, markers: AMap.Marker[]}) => void; + click: (data: ClickEvent) => void; } interface Style {