Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2022-12-05 16:38:51 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4270280798ca999a6340f6ff17852fedd860fe80
42702807
1 parent
dadfab3f
fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/components/ImageUploaderField/index.vue
src/components/ImageUploaderField/index.vue
View file @
4270280
...
...
@@ -99,7 +99,7 @@ const beforeRead = (file) => {
if (fileList.value.length + file.length > props.item.component_props.max_count) {
// 数量限制
flag = false;
showToast(`最大上传数量为${props.item.component_props.max_count}
个
`);
showToast(`最大上传数量为${props.item.component_props.max_count}
张
`);
}
} else {
if (!_.includes(image_types, file.type)) {
...
...
@@ -109,7 +109,7 @@ const beforeRead = (file) => {
if (fileList.value.length + 1 > props.item.component_props.max_count) {
// 数量限制
flag = false;
showToast(`最大上传数量为${props.item.component_props.max_count}
个
`);
showToast(`最大上传数量为${props.item.component_props.max_count}
张
`);
}
if (file.size > props.item.component_props.max_size) {
// 体积限制
...
...
Please
register
or
login
to post a comment