mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-29 11:20:36 +01:00
chore: clean withDefaults
This commit is contained in:
@@ -45,7 +45,11 @@ import { reactivePick } from '@vueuse/core'
|
|||||||
import { useAppConfig } from '#app'
|
import { useAppConfig } from '#app'
|
||||||
import UButton from '#ui/components/Button.vue'
|
import UButton from '#ui/components/Button.vue'
|
||||||
|
|
||||||
const props = withDefaults(defineProps<ModalProps>(), { portal: true, overlay: true, transition: true })
|
const props = withDefaults(defineProps<ModalProps>(), {
|
||||||
|
portal: true,
|
||||||
|
overlay: true,
|
||||||
|
transition: true
|
||||||
|
})
|
||||||
const emits = defineEmits<ModalEmits>()
|
const emits = defineEmits<ModalEmits>()
|
||||||
defineSlots<ModalSlots>()
|
defineSlots<ModalSlots>()
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,11 @@ import { useForwardPropsEmits } from 'radix-vue'
|
|||||||
import { Popover, HoverCard } from 'radix-vue/namespaced'
|
import { Popover, HoverCard } from 'radix-vue/namespaced'
|
||||||
import { reactivePick } from '@vueuse/core'
|
import { reactivePick } from '@vueuse/core'
|
||||||
|
|
||||||
const props = withDefaults(defineProps<PopoverProps>(), { mode: 'click', openDelay: 0, closeDelay: 0 })
|
const props = withDefaults(defineProps<PopoverProps>(), {
|
||||||
|
mode: 'click',
|
||||||
|
openDelay: 0,
|
||||||
|
closeDelay: 0
|
||||||
|
})
|
||||||
const emits = defineEmits<PopoverEmits>()
|
const emits = defineEmits<PopoverEmits>()
|
||||||
defineSlots<PopoverSlots>()
|
defineSlots<PopoverSlots>()
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,12 @@ import { reactivePick } from '@vueuse/core'
|
|||||||
import { useAppConfig } from '#app'
|
import { useAppConfig } from '#app'
|
||||||
import UButton from '#ui/components/Button.vue'
|
import UButton from '#ui/components/Button.vue'
|
||||||
|
|
||||||
const props = withDefaults(defineProps<SlideoverProps>(), { portal: true, overlay: true, transition: true, side: 'right' })
|
const props = withDefaults(defineProps<SlideoverProps>(), {
|
||||||
|
portal: true,
|
||||||
|
overlay: true,
|
||||||
|
transition: true,
|
||||||
|
side: 'right'
|
||||||
|
})
|
||||||
const emits = defineEmits<SlideoverEmits>()
|
const emits = defineEmits<SlideoverEmits>()
|
||||||
defineSlots<SlideoverSlots>()
|
defineSlots<SlideoverSlots>()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user