fix: add naive hooks

This commit is contained in:
chansee97 2024-05-23 08:43:47 +08:00
parent bdc8764a2b
commit 4959d0f1b9

View File

@ -29,7 +29,22 @@ export function createVitePlugins(env: ImportMetaEnv) {
// auto import api of lib
AutoImport({
imports: ['vue', 'vue-router', 'pinia', '@vueuse/core', 'vue-i18n'],
imports: [
'vue',
'vue-router',
'pinia',
'@vueuse/core',
'vue-i18n',
{
'naive-ui': [
'useDialog',
'useMessage',
'useNotification',
'useLoadingBar',
'useModal',
],
},
],
include: [
/\.[tj]sx?$/,
/\.vue$/,