变更
This commit is contained in:
parent
3785a86ac4
commit
378db9dd75
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -53,7 +53,8 @@ const _sfc_main = defineComponent({
|
|||||||
text: null,
|
text: null,
|
||||||
dragText: null,
|
dragText: null,
|
||||||
modelValue: { default: null },
|
modelValue: { default: null },
|
||||||
auto: { type: Boolean, default: true }
|
auto: { type: Boolean, default: true },
|
||||||
|
sizeOutMsg: null
|
||||||
},
|
},
|
||||||
emits: [
|
emits: [
|
||||||
"choose",
|
"choose",
|
||||||
@ -258,7 +259,7 @@ const _sfc_main = defineComponent({
|
|||||||
let _file = _files[i];
|
let _file = _files[i];
|
||||||
let _size = _file.size;
|
let _size = _file.size;
|
||||||
if (_size > props.size * 1024) {
|
if (_size > props.size * 1024) {
|
||||||
errorF(occurFileSizeErrorMsg.value);
|
errorF(props.sizeOutMsg || occurFileSizeErrorMsg.value);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -73,6 +73,7 @@ export interface UploadProps {
|
|||||||
dragText?: string;
|
dragText?: string;
|
||||||
modelValue?: any;
|
modelValue?: any;
|
||||||
auto?: boolean;
|
auto?: boolean;
|
||||||
|
sizeOutMsg?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const getCutDownResult = () => {
|
const getCutDownResult = () => {
|
||||||
@ -337,7 +338,7 @@ const uploadChange = (e: any) => {
|
|||||||
let _file = _files[i];
|
let _file = _files[i];
|
||||||
let _size = _file.size;
|
let _size = _file.size;
|
||||||
if (_size > props.size * 1024) {
|
if (_size > props.size * 1024) {
|
||||||
errorF(occurFileSizeErrorMsg.value);
|
errorF(props.sizeOutMsg || occurFileSizeErrorMsg.value);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user