WIP: feat: route modals everywhere #2735
|
@ -1,11 +1,22 @@
|
|||
<!-- https://github.com/vuejs/rfcs/pull/449 -->
|
||||
<!-- https://github.com/vuejs/rfcs/discussions/448#discussioncomment-2769396= -->
|
||||
<script lang="ts">
|
||||
dpschen marked this conversation as resolved
Outdated
|
||||
export default { inheritAttrs: false }
|
||||
</script>
|
||||
|
||||
<script setup lang="ts">
|
||||
defineProps<{ is: any }>()
|
||||
/**
|
||||
* This component makes it possible to optionally wrap around another component.
|
||||
* It's based on these ideas:
|
||||
*
|
||||
* - https://github.com/vuejs/rfcs/pull/449
|
||||
* - https://github.com/vuejs/rfcs/discussions/448#discussioncomment-2769396=
|
||||
*/
|
||||
defineProps<{
|
||||
dpschen marked this conversation as resolved
Outdated
|
||||
/**
|
||||
* If the `is` prop defines a component it will be rendered as a wrapper around the slot content.
|
||||
* If the `is` prop is undefined there won't be any wrapper.
|
||||
*/
|
||||
is: any,
|
||||
}>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
Reference in New Issue
This component makes it possible to optionally wrap around another component. If the
is
prop defines a component it will be rendered as a wrapper around the slot content. If theis
prop is undefined there won't be any wrapper.