Skip to content

Commit

Permalink
Updated deprecated-in-Vue3 slot and slot-scope attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
sronveaux committed Nov 17, 2023
1 parent 8571561 commit 3fb6002
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
23 changes: 16 additions & 7 deletions app-starter/WguAppTemplate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,21 @@

<wgu-app-header>
<!-- forward the slots of AppHeader -->
<slot name="wgu-tb-start" slot="wgu-tb-start" />
<slot name="wgu-tb-after-title" slot="wgu-tb-after-title" />
<slot name="wgu-tb-before-auto-buttons" slot="wgu-tb-before-auto-buttons" />
<slot name="wgu-tb-after-auto-buttons" slot="wgu-tb-after-auto-buttons" />
<slot name="wgu-tb-end" slot="wgu-tb-end" />
<template v-slot:wgu-tb-start>
<slot name="wgu-tb-start" />
</template>
<template v-slot:wgu-tb-after-title>
<slot name="wgu-tb-after-title" />
</template>
<template v-slot:wgu-tb-before-auto-buttons>
<slot name="wgu-tb-before-auto-buttons" />
</template>
<template v-slot:wgu-tb-after-auto-buttons>
<slot name="wgu-tb-after-auto-buttons" />
</template>
<template v-slot:wgu-tb-end>
<slot name="wgu-tb-end" />
</template>
</wgu-app-header>

<slot name="wgu-after-header" />
Expand All @@ -29,8 +39,7 @@
<wgu-map />
<!-- layer loading indicator -->
<wgu-maploading-status />
<slot name="wgu-after-map">
</slot>
<slot name="wgu-after-map" />
<!-- Portal to overlay the map content from an application module -->
<portal-target name="map-overlay" />
<wgu-app-logo />
Expand Down
3 changes: 2 additions & 1 deletion src/components/ol/HoverTooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
:autoPanDuration="250"
positioning="top-center"
:offset="[0, 20]"
v-slot="{feature, hoverAttribute}"
>
<v-sheet slot-scope="{feature, hoverAttribute}" v-if="feature"
<v-sheet v-if="feature"
class="pa-2 text-center" max-width=200 >
{{ feature.get(hoverAttribute) }}
</v-sheet>
Expand Down

0 comments on commit 3fb6002

Please sign in to comment.