Skip to content

Commit c2f8a8b

Browse files
authored
fix(google-maps): remove redundant slot props from OverlayView (#666)
1 parent 8deacfb commit c2f8a8b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

playground/pages/third-parties/google-maps/overlay-animated.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ function close(id: number) {
5151
:offset="{ x: 0, y: -50 }"
5252
@update:open="(v: boolean) => { if (!v) close(place.id) }"
5353
>
54-
<template #default="{ dataState }">
55-
<div class="overlay-popup" :data-state="dataState">
54+
<div class="overlay-popup">
5655
<div class="flex items-start justify-between gap-2">
5756
<h3 class="text-sm font-semibold text-gray-900">
5857
{{ place.name }}
@@ -74,7 +73,6 @@ function close(id: number) {
7473
{{ place.desc }}
7574
</p>
7675
</div>
77-
</template>
7876
</ScriptGoogleMapsOverlayView>
7977
</ScriptGoogleMapsAdvancedMarkerElement>
8078
</ScriptGoogleMaps>

src/runtime/components/GoogleMaps/ScriptGoogleMapsOverlayView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ defineExpose({ overlay, dataState })
318318
<template>
319319
<div style="display: none;">
320320
<div ref="overlay-content" :data-state="dataState">
321-
<slot :data-state="dataState" :open="isPositioned" />
321+
<slot />
322322
</div>
323323
</div>
324324
</template>

0 commit comments

Comments
 (0)