update: 兼容旧版本上传 增加ImageUploadOld/FileUploadOld(下个版本将移除)

This commit is contained in:
dap
2025-04-03 15:26:00 +08:00
parent 2577ba5500
commit 36683dd218
10 changed files with 751 additions and 7 deletions

View File

@@ -40,6 +40,7 @@ import {
import { Tinymce as RichTextarea } from '#/components/tinymce';
import { FileUpload, ImageUpload } from '#/components/upload';
import { FileUploadOld, ImageUploadOld } from '#/components/upload-old';
const withDefaultPlaceholder = <T extends Component>(
component: T,
@@ -99,8 +100,10 @@ export type ComponentType =
| 'DefaultButton'
| 'Divider'
| 'FileUpload'
| 'FileUploadOld'
| 'IconPicker'
| 'ImageUpload'
| 'ImageUploadOld'
| 'Input'
| 'InputNumber'
| 'InputPassword'
@@ -175,6 +178,8 @@ async function initComponentAdapter() {
ImageUpload,
FileUpload,
RichTextarea,
ImageUploadOld,
FileUploadOld,
};
// 将组件注册到全局共享状态中