Files
jeecgboot-vue3/src/components/JVxeCustom/index.ts
zhangdaiscott c402eec726 【重要升级】3.4.4 online低代码功能,依赖升级 & 升级封装组件库
具体升级内容:
支持高级查询控件
online表单附表支持省市区组件
online表单开发是否支持多租户
online表单,支持快速配置菜单
online报表,支持快速配置菜单
online表单扩展配置优化使用体验
online表单 js增强输入多个hook报错处理
online表单,值规则的JS增强写法执行报错 #251
online表单,用户选择 控件的单选控制没有效果 #242
2022-11-24 10:27:53 +08:00

28 lines
1.5 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { registerComponent, registerAsyncComponent } from '/@/components/jeecg/JVxeTable';
import { JVxeTypes } from '/@/components/jeecg/JVxeTable/types';
import { DictSearchSpanCell, DictSearchInputCell } from './src/components/JVxeSelectDictSearchCell';
export async function registerJVxeCustom() {
// ----------------- ⚠ 注意事项 ⚠ -----------------
// 当组件内包含 BasicModal 时,必须使用异步引入!
// 否则将会导致 i18n 失效!
// ----------------- ⚠ 注意事项 ⚠ -----------------
// 注册【Popup】普通封装方式
await registerAsyncComponent(JVxeTypes.popup, import('./src/components/JVxePopupCell.vue'));
// 注册【字典搜索下拉】组件(高级封装方式)
registerComponent(JVxeTypes.selectDictSearch, DictSearchInputCell, DictSearchSpanCell);
// 注册【文件上传】组件
await registerAsyncComponent(JVxeTypes.file, import('./src/components/JVxeFileCell.vue'));
// 注册【图片上传】组件
await registerAsyncComponent(JVxeTypes.image, import('./src/components/JVxeImageCell.vue'));
// 注册【用户选择】组件
await registerAsyncComponent(JVxeTypes.userSelect, import('./src/components/JVxeUserSelectCell.vue'));
// 注册【部门选择】组件
await registerAsyncComponent(JVxeTypes.departSelect, import('./src/components/JVxeDepartSelectCell.vue'));
// 注册【省市区选择】组件
await registerAsyncComponent(JVxeTypes.pca, import('./src/components/JVxePcaCell.vue'));
}