This commit is contained in:
theluyuan 2024-09-23 10:49:45 +08:00
parent 3785a86ac4
commit 378db9dd75
8 changed files with 18 additions and 15 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -53,7 +53,8 @@ const _sfc_main = defineComponent({
text: null,
dragText: null,
modelValue: { default: null },
auto: { type: Boolean, default: true }
auto: { type: Boolean, default: true },
sizeOutMsg: null
},
emits: [
"choose",
@ -258,7 +259,7 @@ const _sfc_main = defineComponent({
let _file = _files[i];
let _size = _file.size;
if (_size > props.size * 1024) {
errorF(occurFileSizeErrorMsg.value);
errorF(props.sizeOutMsg || occurFileSizeErrorMsg.value);
return;
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -73,6 +73,7 @@ export interface UploadProps {
dragText?: string;
modelValue?: any;
auto?: boolean;
sizeOutMsg?: string;
}
const getCutDownResult = () => {
@ -337,7 +338,7 @@ const uploadChange = (e: any) => {
let _file = _files[i];
let _size = _file.size;
if (_size > props.size * 1024) {
errorF(occurFileSizeErrorMsg.value);
errorF(props.sizeOutMsg || occurFileSizeErrorMsg.value);
return;
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long