mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
chore: clean withDefaults
This commit is contained in:
@@ -45,7 +45,11 @@ import { reactivePick } from '@vueuse/core'
|
||||
import { useAppConfig } from '#app'
|
||||
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>()
|
||||
defineSlots<ModalSlots>()
|
||||
|
||||
|
||||
@@ -37,7 +37,11 @@ import { useForwardPropsEmits } from 'radix-vue'
|
||||
import { Popover, HoverCard } from 'radix-vue/namespaced'
|
||||
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>()
|
||||
defineSlots<PopoverSlots>()
|
||||
|
||||
|
||||
@@ -45,7 +45,12 @@ import { reactivePick } from '@vueuse/core'
|
||||
import { useAppConfig } from '#app'
|
||||
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>()
|
||||
defineSlots<SlideoverSlots>()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user