2021-10-18 13:39:53 +00:00
|
|
|
import type { AutoImportSource } from '@nuxt/kit'
|
|
|
|
|
|
|
|
export const Nuxt3AutoImports: AutoImportSource[] = [
|
|
|
|
// #app
|
|
|
|
{
|
|
|
|
from: '#app',
|
|
|
|
names: [
|
|
|
|
'useAsyncData',
|
|
|
|
'defineNuxtComponent',
|
|
|
|
'useNuxtApp',
|
|
|
|
'defineNuxtPlugin',
|
|
|
|
'useRuntimeConfig',
|
|
|
|
'useState',
|
|
|
|
'useFetch'
|
|
|
|
]
|
|
|
|
},
|
|
|
|
// #meta
|
|
|
|
{
|
|
|
|
from: '#meta',
|
|
|
|
names: [
|
|
|
|
'useMeta'
|
|
|
|
]
|
|
|
|
},
|
|
|
|
// vue-router
|
|
|
|
{
|
|
|
|
from: 'vue-router',
|
|
|
|
names: [
|
|
|
|
'useRoute',
|
|
|
|
'useRouter'
|
|
|
|
]
|
|
|
|
},
|
|
|
|
// vue
|
|
|
|
{
|
|
|
|
from: 'vue',
|
|
|
|
names: [
|
2021-11-05 14:39:14 +00:00
|
|
|
// <script setup>
|
|
|
|
'defineEmits',
|
|
|
|
'defineExpose',
|
|
|
|
'defineProps',
|
|
|
|
'withCtx',
|
|
|
|
'withDefaults',
|
|
|
|
'withDirectives',
|
|
|
|
'withKeys',
|
|
|
|
'withMemo',
|
|
|
|
'withModifiers',
|
|
|
|
'withScopeId',
|
|
|
|
|
2021-10-18 13:39:53 +00:00
|
|
|
// Lifecycle
|
|
|
|
'onActivated',
|
|
|
|
'onBeforeMount',
|
|
|
|
'onBeforeUnmount',
|
|
|
|
'onBeforeUpdate',
|
|
|
|
'onDeactivated',
|
|
|
|
'onErrorCaptured',
|
|
|
|
'onMounted',
|
2021-11-05 14:39:14 +00:00
|
|
|
'onRenderTracked',
|
|
|
|
'onRenderTriggered',
|
2021-10-18 13:39:53 +00:00
|
|
|
'onServerPrefetch',
|
|
|
|
'onUnmounted',
|
|
|
|
'onUpdated',
|
|
|
|
|
|
|
|
// Reactivity
|
|
|
|
'computed',
|
|
|
|
'customRef',
|
2021-11-05 14:39:14 +00:00
|
|
|
'isProxy',
|
|
|
|
'isReactive',
|
2021-10-18 13:39:53 +00:00
|
|
|
'isReadonly',
|
|
|
|
'isRef',
|
|
|
|
'markRaw',
|
2021-11-05 14:39:14 +00:00
|
|
|
'proxyRefs',
|
2021-10-18 13:39:53 +00:00
|
|
|
'reactive',
|
|
|
|
'readonly',
|
|
|
|
'ref',
|
|
|
|
'shallowReactive',
|
|
|
|
'shallowReadonly',
|
|
|
|
'shallowRef',
|
2021-11-05 14:39:14 +00:00
|
|
|
'stop',
|
2021-10-18 13:39:53 +00:00
|
|
|
'toRaw',
|
|
|
|
'toRef',
|
|
|
|
'toRefs',
|
|
|
|
'triggerRef',
|
|
|
|
'unref',
|
|
|
|
'watch',
|
|
|
|
'watchEffect',
|
|
|
|
|
2021-11-05 14:39:14 +00:00
|
|
|
// effect
|
|
|
|
'effect',
|
|
|
|
'effectScope',
|
|
|
|
'getCurrentScope',
|
|
|
|
'onScopeDispose',
|
|
|
|
|
2021-10-18 13:39:53 +00:00
|
|
|
// Component
|
|
|
|
'defineComponent',
|
|
|
|
'defineAsyncComponent',
|
|
|
|
'getCurrentInstance',
|
|
|
|
'h',
|
|
|
|
'inject',
|
|
|
|
'nextTick',
|
|
|
|
'provide',
|
2021-11-05 14:39:14 +00:00
|
|
|
'useAttrs',
|
|
|
|
'useCssModule',
|
|
|
|
'useCssVars',
|
|
|
|
'useSlots',
|
|
|
|
'useTransitionState'
|
|
|
|
] as Array<keyof typeof import('vue')>
|
2021-10-18 13:39:53 +00:00
|
|
|
}
|
|
|
|
]
|