1. 更新框架
2. 修复框架更新后导致的问题
This commit is contained in:
李琦
2026-08-10 18:44:39 +08:00
parent 3547c53f89
commit f0a33a628b
150 changed files with 1005 additions and 811 deletions

View File

@@ -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);