Skip to content

Commit

Permalink
fix: add naive hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
chansee97 committed May 23, 2024
1 parent bdc8764 commit 4959d0f
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion build/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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$/,
Expand Down

0 comments on commit 4959d0f

Please sign in to comment.