diff --git a/src/runtime/composables/useUI.ts b/src/runtime/composables/useUI.ts index b19107c5..3a425e66 100644 --- a/src/runtime/composables/useUI.ts +++ b/src/runtime/composables/useUI.ts @@ -2,9 +2,9 @@ import { computed, toValue, useAttrs } from 'vue' import type { Ref } from 'vue' import { useAppConfig } from '#imports' import { mergeConfig, omit, get } from '../utils' -import type { Strategy } from '../types/index' +import type { DeepPartial, Strategy } from '../types/index' -export const useUI = (key, $ui?: Ref & { strategy?: Strategy } | undefined>, $config?: Ref | T, $wrapperClass?: Ref, withAppConfig: boolean = false) => { +export const useUI = (key, $ui?: Ref & { strategy?: Strategy } | undefined>, $config?: Ref | T, $wrapperClass?: Ref, withAppConfig: boolean = false) => { const $attrs = useAttrs() const appConfig = useAppConfig() @@ -17,7 +17,7 @@ export const useUI = (key, $ui?: Ref & { strategy?: Strategy } | u _ui?.strategy || (appConfig.ui?.strategy as Strategy), _wrapperClass ? { wrapper: _wrapperClass } : {}, _ui || {}, - (process.dev || withAppConfig) ? get(appConfig.ui, key, {}) : {}, + (import.meta.dev || withAppConfig) ? get(appConfig.ui, key, {}) : {}, _config || {} ) })