mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 16:28:49 +08:00
优化unplugin-auto-import插件配置
This commit is contained in:
@@ -5,8 +5,21 @@ export default function createAutoImport() {
|
||||
return autoImport({
|
||||
imports: [
|
||||
'vue',
|
||||
'vue-router'
|
||||
'vue-router',
|
||||
{
|
||||
'vue': [
|
||||
'defineProps',
|
||||
'defineEmits',
|
||||
'defineExpose',
|
||||
'withDefaults'
|
||||
]
|
||||
}
|
||||
],
|
||||
eslintrc: {
|
||||
enabled: true,
|
||||
filepath: './.eslintrc-auto-import.json',
|
||||
globalsPropValue: true
|
||||
},
|
||||
resolvers: [
|
||||
ElementPlusResolver()
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user