1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| <template>
| <PortalConsumer :manager="portalContext">
| <template #default>
| <slot />
| </template>
| </PortalConsumer>
| </template>
|
| <script setup lang="ts">
| import PortalConsumer from './portal-consumer.vue';
| // import PortalContainer from './portal-container';
| import { portal, usePortalContext } from './portal';
|
| defineOptions({
| name: 'Portal',
| });
|
| const portalContext = usePortalContext();
| </script>
|
|