feat:
1. 更新框架 2. 修复框架更新后导致的问题
This commit is contained in:
@@ -68,6 +68,8 @@ import { isEmpty } from '@vben/utils';
|
||||
|
||||
import { message, Modal, notification } from 'ant-design-vue';
|
||||
|
||||
import { registerComponent } from '#/components/form/component-map';
|
||||
|
||||
type AdapterUploadProps = UploadProps & {
|
||||
aspectRatio?: string;
|
||||
crop?: boolean;
|
||||
@@ -620,6 +622,8 @@ export type ComponentType =
|
||||
| 'DatePicker'
|
||||
| 'DefaultButton'
|
||||
| 'Divider'
|
||||
/** OA 场景表单的图片/文件素材选择(透传 acceptTypes 过滤类型) */
|
||||
| 'GalleryPickLink'
|
||||
| 'IconPicker'
|
||||
| 'Input'
|
||||
| 'InputNumber'
|
||||
@@ -637,6 +641,10 @@ export type ComponentType =
|
||||
| 'TimePicker'
|
||||
| 'TreeSelect'
|
||||
| 'Upload'
|
||||
| 'UploadImage'
|
||||
| 'UploadImageSortable'
|
||||
| 'UploadOssFile'
|
||||
| 'UploadDraggerPaste'
|
||||
| BaseFormComponentType;
|
||||
|
||||
/**
|
||||
@@ -737,6 +745,8 @@ async function initComponentAdapter() {
|
||||
Upload: withPreviewUpload(),
|
||||
};
|
||||
|
||||
// 自动注册 components/form 与 views/**/components/form 下的业务表单组件(如 Editor、Avatar)
|
||||
registerComponent(components);
|
||||
// 将组件注册到全局共享状态中
|
||||
globalShareState.setComponents(components);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user