docs: 注释补充

Former-commit-id: c318089cd34ea11370d9e21777f898e4cf1fb250
This commit is contained in:
haoxr
2023-03-12 22:19:11 +08:00
parent f2f03ccce6
commit ba399ff4e2

View File

@@ -64,9 +64,9 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
// 自动导入 Vue 相关函数ref, reactive, toRef 等 // 自动导入 Vue 相关函数ref, reactive, toRef 等
imports: ['vue', '@vueuse/core'], imports: ['vue', '@vueuse/core'],
eslintrc: { eslintrc: {
enabled: false, // true用于生成eslint配置,生成后改回false避免重复生成消耗 enabled: false, // Default `false`
filepath: './.eslintrc-auto-import.json', filepath: './.eslintrc-auto-import.json', // Default `./.eslintrc-auto-import.json`
globalsPropValue: true globalsPropValue: true // Default `true`, (true | false | 'readonly' | 'readable' | 'writable' | 'writeable')
}, },
resolvers: [ resolvers: [
// 自动导入 Element Plus 相关函数ElMessage, ElMessageBox... (带样式) // 自动导入 Element Plus 相关函数ElMessage, ElMessageBox... (带样式)
@@ -76,10 +76,8 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
prefix: 'Icon' prefix: 'Icon'
}) })
], ],
vueTemplate: true, // 是否在 vue 模板中自动导入
// 是否在vue模板中自动导入 dts: path.resolve(pathSrc, 'types', 'auto-imports.d.ts') // (false) 配置文件生成位置,默认是根目录 /auto-imports.d.ts
vueTemplate: true,
dts: path.resolve(pathSrc, 'types', 'auto-imports.d.ts') // 配置文件生成位置,默认是根目录 /auto-imports.d.ts
}), }),
Components({ Components({
@@ -91,7 +89,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
// 自动导入 Element Plus 组件 // 自动导入 Element Plus 组件
ElementPlusResolver() ElementPlusResolver()
], ],
dts: path.resolve(pathSrc, 'types', 'components.d.ts') // 配置文件生成位置,默认是根目录 /components.d.ts dts: path.resolve(pathSrc, 'types', 'components.d.ts') // (false) 配置文件生成位置,默认是根目录 /components.d.ts
}), }),
Icons({ Icons({