feat: 增加 file 文件上传 50%

This commit is contained in:
YunaiV
2025-04-17 23:30:34 +08:00
parent 54f9d0c10f
commit f6e2dc55ff
11 changed files with 390 additions and 2 deletions

View File

@@ -21,6 +21,8 @@ import { $t } from '@vben/locales';
import { notification } from 'ant-design-vue';
import { FileUpload, ImageUpload } from '#/components/upload';
const AutoComplete = defineAsyncComponent(
() => import('ant-design-vue/es/auto-complete'),
);
@@ -129,6 +131,8 @@ export type ComponentType =
| 'TimePicker'
| 'TreeSelect'
| 'Upload'
| 'FileUpload'
| 'ImageUpload'
| BaseFormComponentType;
async function initComponentAdapter() {
@@ -183,6 +187,8 @@ async function initComponentAdapter() {
TimePicker,
TreeSelect: withDefaultPlaceholder(TreeSelect, 'select'),
Upload,
FileUpload,
ImageUpload,
};
// 将组件注册到全局共享状态中