mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-18 14:08:06 +01:00
chore(components): improve imports
This commit is contained in:
@@ -4,7 +4,7 @@ import type { DialogRootProps, DialogRootEmits, DialogContentProps } from 'radix
|
||||
import type { AppConfig } from '@nuxt/schema'
|
||||
import _appConfig from '#build/app.config'
|
||||
import theme from '#build/ui/modal'
|
||||
import type { ButtonProps } from '#ui/components/Button.vue'
|
||||
import type { ButtonProps } from '#ui/types'
|
||||
|
||||
const appConfig = _appConfig as AppConfig & { ui: { modal: Partial<typeof theme> } }
|
||||
|
||||
@@ -42,8 +42,8 @@ export interface ModalSlots {
|
||||
import { computed, toRef } from 'vue'
|
||||
import { DialogRoot, DialogTrigger, DialogPortal, DialogOverlay, DialogContent, DialogTitle, DialogDescription, DialogClose, useForwardPropsEmits } from 'radix-vue'
|
||||
import { reactivePick } from '@vueuse/core'
|
||||
import { useAppConfig } from '#app'
|
||||
import UButton from '#ui/components/Button.vue'
|
||||
import { useAppConfig } from '#imports'
|
||||
import { UButton } from '#components'
|
||||
|
||||
const props = withDefaults(defineProps<ModalProps>(), {
|
||||
portal: true,
|
||||
|
||||
Reference in New Issue
Block a user