Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ae53ca6f
authored
Apr 25, 2024
by
puhui999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:文件上传组件的文件列表拓展一个下载
parent
9a36d9d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
src/components/UploadFile/src/UploadFile.vue
+19
-0
No files found.
src/components/UploadFile/src/UploadFile.vue
View file @
ae53ca6f
...
@@ -32,6 +32,25 @@
...
@@ -32,6 +32,25 @@
格式为
<b
style=
"color: #f56c6c"
>
{{
fileType
.
join
(
'/'
)
}}
</b>
的文件
格式为
<b
style=
"color: #f56c6c"
>
{{
fileType
.
join
(
'/'
)
}}
</b>
的文件
</div>
</div>
</
template
>
</
template
>
<
template
#
file=
"row"
>
<div
class=
"flex items-center"
>
<span>
{{
row
.
file
.
name
}}
</span>
<div
class=
"ml-10px"
>
<el-link
:href=
"row.file.url"
:underline=
"false"
download
target=
"_blank"
type=
"primary"
>
下载
</el-link>
</div>
<div
class=
"ml-10px"
>
<el-button
link
type=
"danger"
@
click=
"handleRemove(row.file)"
>
删除
</el-button>
</div>
</div>
</
template
>
</el-upload>
</el-upload>
</div>
</div>
</template>
</template>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment