feat: 更新分期方案初始化脚本,匹配最新表结构
- 更新表名和字段名为小写格式 - 修正字段类型以匹配实体类定义 - 新增缺失字段:scheme_type, down_payment_ratio等 - 添加索引优化查询性能 - 完善表和字段注释
This commit is contained in:
17
LCXiaoguan-ui/vite/plugins/components.ts
Normal file
17
LCXiaoguan-ui/vite/plugins/components.ts
Normal file
@ -0,0 +1,17 @@
|
||||
import Components from 'unplugin-vue-components/vite';
|
||||
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers';
|
||||
import IconsResolver from 'unplugin-icons/resolver';
|
||||
|
||||
export default (path: any) => {
|
||||
return Components({
|
||||
resolvers: [
|
||||
// 自动导入 Element Plus 组件
|
||||
ElementPlusResolver(),
|
||||
// 自动注册图标组件
|
||||
IconsResolver({
|
||||
enabledCollections: ['ep']
|
||||
})
|
||||
],
|
||||
dts: path.resolve(path.resolve(__dirname, '../../src'), 'types', 'components.d.ts')
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user