-
-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(Toast): improve `Toast` to use Portal * chore: docs gen --------- Co-authored-by: malik jouda <m.jouda@approved.tech>
- Loading branch information
1 parent
1714513
commit 8860c10
Showing
5 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!-- This file was automatic generated. Do not edit it manually --> | ||
|
||
<PropsTable :data="[ | ||
{ | ||
'name': 'disabled', | ||
'description': '<p>Disable teleport and render the component inline</p>\n<p><a href=\'https://vuejs.org/guide/built-ins/teleport.html#disabling-teleport\' target=\'_blank\'>reference</a></p>\n', | ||
'type': 'boolean', | ||
'required': false | ||
}, | ||
{ | ||
'name': 'forceMount', | ||
'description': '<p>Used to force mounting when more control is needed. Useful when\ncontrolling animation with Vue animation libraries.</p>\n', | ||
'type': 'boolean', | ||
'required': false | ||
}, | ||
{ | ||
'name': 'to', | ||
'description': '<p>Vue native teleport component prop <code>:to</code></p>\n<p><a href=\'https://vuejs.org/guide/built-ins/teleport.html#basic-usage\' target=\'_blank\'>reference</a></p>\n', | ||
'type': 'string | HTMLElement', | ||
'required': false | ||
} | ||
]" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<script lang="ts"> | ||
import type { TeleportProps } from '@/Teleport' | ||
export interface ToastPortalProps extends TeleportProps {} | ||
</script> | ||
|
||
<script setup lang="ts"> | ||
import { TeleportPrimitive } from '@/Teleport' | ||
const props = defineProps<ToastPortalProps>() | ||
</script> | ||
|
||
<template> | ||
<TeleportPrimitive v-bind="props"> | ||
<slot /> | ||
</TeleportPrimitive> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters