- 更新表名和字段名为小写格式 - 修正字段类型以匹配实体类定义 - 新增缺失字段:scheme_type, down_payment_ratio等 - 添加索引优化查询性能 - 完善表和字段注释
21 lines
698 B
TypeScript
21 lines
698 B
TypeScript
import AutoImport from 'unplugin-auto-import/vite';
|
|
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers';
|
|
|
|
export default (path: any) => {
|
|
return AutoImport({
|
|
// 自动导入 Vue 相关函数
|
|
imports: ['vue', 'vue-router', '@vueuse/core', 'pinia'],
|
|
eslintrc: {
|
|
enabled: true,
|
|
filepath: './.eslintrc-auto-import.json',
|
|
globalsPropValue: true
|
|
},
|
|
resolvers: [
|
|
// 自动导入 Element Plus 相关函数ElMessage, ElMessageBox... (带样式)
|
|
ElementPlusResolver()
|
|
],
|
|
vueTemplate: true, // 是否在 vue 模板中自动导入
|
|
dts: path.resolve(path.resolve(__dirname, '../../src'), 'types', 'auto-imports.d.ts')
|
|
});
|
|
};
|