feat: 新增文件上传组件

This commit is contained in:
胡少翔
2024-07-25 14:53:37 +08:00
parent 14858b2cf2
commit 67d22d6e60
4 changed files with 46 additions and 100 deletions

View File

@@ -108,7 +108,7 @@ const props = defineProps({
default: true,
},
/**
* 单张图片最大大小
* 单个文件上传大小限制(单位byte)
*/
uploadMaxSize: {
type: Number,
@@ -154,7 +154,7 @@ const props = defineProps({
},
},
/**
* 请求参数
* 请求携带的额外参数
*/
data: {
type: Object,
@@ -163,7 +163,7 @@ const props = defineProps({
},
},
/**
* 上传文件字段
* 上传文件的参数
*/
name: {
type: String,