You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
/**
|
|
|
|
|
* @name AutoImportDeps
|
|
|
|
|
* @description 按需加载,自动引入
|
|
|
|
|
*/
|
|
|
|
|
import AutoImport from 'unplugin-auto-import/vite';
|
|
|
|
|
// import { AntDesignVueResolver} from 'unplugin-vue-components/resolvers';
|
|
|
|
|
|
|
|
|
|
export const AutoImportDeps = () => {
|
|
|
|
|
return AutoImport({
|
|
|
|
|
dts: 'types/auto-imports.d.ts',
|
|
|
|
|
imports: [
|
|
|
|
|
'vue',
|
|
|
|
|
'pinia',
|
|
|
|
|
'vue-router',
|
|
|
|
|
{
|
|
|
|
|
'@vueuse/core': [],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'naive-ui': ['useDialog', 'useMessage', 'useNotification', 'useLoadingBar'],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
resolvers: [
|
|
|
|
|
// AntDesignVueResolver(),
|
|
|
|
|
],
|
|
|
|
|
});
|
|
|
|
|
};
|