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
Unverified
Commit
c47aabe8
authored
Dec 03, 2023
by
芋道源码
Committed by
Gitee
Dec 03, 2023
Browse files
Options
Browse Files
Download
Plain Diff
!333 文件列表增加图片的展示和预览
Merge pull request !333 from boide/file-preview
parents
f9994c58
a711e96b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
src/views/infra/file/index.vue
+15
-0
No files found.
src/views/infra/file/index.vue
View file @
c47aabe8
...
@@ -59,6 +59,21 @@
...
@@ -59,6 +59,21 @@
:formatter=
"fileSizeFormatter"
:formatter=
"fileSizeFormatter"
/>
/>
<el-table-column
label=
"文件类型"
align=
"center"
prop=
"type"
width=
"180px"
/>
<el-table-column
label=
"文件类型"
align=
"center"
prop=
"type"
width=
"180px"
/>
<el-table-column
label=
"文件内容"
align=
"center"
prop=
"url"
width=
"110px"
>
<template
#
default=
"
{ row }">
<el-image
v-if=
"row.type.includes('image')"
class=
"h-80px w-80px"
lazy
:src=
"row.url"
:preview-src-list=
"[row.url]"
preview-teleported
fit=
"cover"
/>
<el-link
v-else-if=
"row.type.includes('pdf')"
type=
"primary"
:href=
"row.url"
:underline=
"false"
target=
"_blank"
>
预览
</el-link>
<el-link
v-else
type=
"primary"
download
:href=
"row.url"
:underline=
"false"
target=
"_blank"
>
下载
</el-link>
</
template
>
</el-table-column>
<el-table-column
<el-table-column
label=
"上传时间"
label=
"上传时间"
align=
"center"
align=
"center"
...
...
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