feat: file upload

This commit is contained in:
dap
2024-10-08 13:37:14 +08:00
parent b696456350
commit 621baef3eb
7 changed files with 304 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ import {
import { isArray } from 'lodash-es';
import { Tinymce as RichTextarea } from '#/components/tinymce';
import { ImageUpload } from '#/components/upload';
import { FileUpload, ImageUpload } from '#/components/upload';
// 这里需要自行根据业务组件库进行适配,需要用到的组件都需要在这里类型说明
export type FormComponentType =
@@ -45,6 +45,7 @@ export type FormComponentType =
| 'CheckboxGroup'
| 'DatePicker'
| 'Divider'
| 'FileUpload'
| 'ImageUpload'
| 'Input'
| 'InputNumber'
@@ -107,6 +108,7 @@ setupVbenForm<FormComponentType>({
TreeSelect: withDefaultPlaceholder(TreeSelect, 'select'),
Upload,
ImageUpload,
FileUpload,
},
config: {
// ant design vue组件库默认都是 v-model:value