chore: add description to OptionalWrapper
continuous-integration/drone/pr Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
This commit is contained in:
parent
65c176d18c
commit
de7d004c6e
|
@ -1,11 +1,22 @@
|
||||||
<!-- https://github.com/vuejs/rfcs/pull/449 -->
|
|
||||||
<!-- https://github.com/vuejs/rfcs/discussions/448#discussioncomment-2769396= -->
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default { inheritAttrs: false }
|
export default { inheritAttrs: false }
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<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<{
|
||||||
|
/**
|
||||||
|
* 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>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
Reference in New Issue