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-30 12:48:26 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c2729a913769c108a8b046102821af3f58ab91ef
c2729a91
1 parent
9580bc4d
fix
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
src/components/FileUploaderField/index.vue
src/components/FileUploaderField/index.vue
View file @
c2729a9
<!--
* @Date: 2022-08-31 16:16:49
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-12-30 1
0:32:42
* @LastEditTime: 2022-12-30 1
2:46:21
* @FilePath: /data-table/src/components/FileUploaderField/index.vue
* @Description: 文件上传控件
-->
...
...
@@ -23,7 +23,7 @@
:key="index"
style="padding-left: 1rem; margin-bottom: 0.5rem"
>
<span style="font-size: 1rem">{{ file.filename }}</span
<span style="font-size: 1rem">{{ file.filename }}
{{ (file.size / 1024 / 1024).toFixed(2) }}MB
</span
>
<span style="color: #e32525; font-size: 0.85rem" @click="beforeDelete(file)"
>移除</span
...
...
@@ -157,6 +157,7 @@ const afterRead = async (files) => {
// meta_id: imgUrl.meta_id,
filename: files.file.name,
url: imgUrl.src,
size: files.file.size
// isImage: true,
});
loading.value = false;
...
...
@@ -255,6 +256,7 @@ var muliUpload = async (files) => {
// meta_id: res.meta_id,
filename: item.file.name,
url: res.src,
size: files.file.size
// isImage: true,
});
loading.value = false;
...
...
Please
register
or
login
to post a comment