fix: dialog props missing (#242)
This commit is contained in:
parent
0f0f1ef3ca
commit
9d9a6f929c
|
|
@ -1,9 +1,14 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { DialogRoot } from 'radix-vue'
|
import { DialogRoot, type DialogRootEmits, type DialogRootProps, useForwardPropsEmits } from 'radix-vue'
|
||||||
</script>
|
|
||||||
|
const props = defineProps<DialogRootProps>()
|
||||||
<template>
|
const emits = defineEmits<DialogRootEmits>()
|
||||||
<DialogRoot>
|
|
||||||
<slot />
|
const forwarded = useForwardPropsEmits(props, emits)
|
||||||
</DialogRoot>
|
</script>
|
||||||
</template>
|
|
||||||
|
<template>
|
||||||
|
<DialogRoot v-bind="forwarded">
|
||||||
|
<slot />
|
||||||
|
</DialogRoot>
|
||||||
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,14 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { DialogRoot } from 'radix-vue'
|
import { DialogRoot, type DialogRootEmits, type DialogRootProps, useForwardPropsEmits } from 'radix-vue'
|
||||||
|
|
||||||
|
const props = defineProps<DialogRootProps>()
|
||||||
|
const emits = defineEmits<DialogRootEmits>()
|
||||||
|
|
||||||
|
const forwarded = useForwardPropsEmits(props, emits)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<DialogRoot>
|
<DialogRoot v-bind="forwarded">
|
||||||
<slot />
|
<slot />
|
||||||
</DialogRoot>
|
</DialogRoot>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user