Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
中汽测评-信息安全测评系统
web
Commits
20f11a7e
Commit
20f11a7e
authored
Feb 02, 2024
by
mzx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图片上传公共样式修改
parent
17cea665
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
7 deletions
+40
-7
closeIcon.jpg
src/assets/images/closeIcon.jpg
+0
-0
index.vue
src/components/ImageUpload/index.vue
+40
-7
No files found.
src/assets/images/closeIcon.jpg
0 → 100644
View file @
20f11a7e
3.19 KB
src/components/ImageUpload/index.vue
View file @
20f11a7e
...
@@ -18,23 +18,34 @@
...
@@ -18,23 +18,34 @@
:class=
"
{ hide: this.fileList.length >= this.limit }"
:class=
"
{ hide: this.fileList.length >= this.limit }"
>
>
<i
class=
"el-icon-plus"
></i>
<i
class=
"el-icon-plus"
></i>
<span
class=
"upload-span-color"
>
上传图片
</span>
</el-upload>
</el-upload>
<!-- 上传提示 -->
<!-- 上传提示 -->
<!--
<div
class=
"el-upload__tip"
slot=
"tip"
v-if=
"showTip"
>
-->
<!-- 请上传-->
<!--
<template
v-if=
"fileSize"
>
-->
<!-- 大小不超过
<b
style=
"color: #f56c6c"
>
{{
fileSize
}}
MB
</b>
-->
<!--
</
template
>
-->
<!-- <template v-if="fileType">-->
<!-- 格式为 <b style="color: #f56c6c">{{ fileType.join('/') }}</b>-->
<!-- </template>-->
<!-- 的文件-->
<!-- </div>-->
<div
class=
"el-upload__tip"
slot=
"tip"
v-if=
"showTip"
>
<div
class=
"el-upload__tip"
slot=
"tip"
v-if=
"showTip"
>
请上传
只能上传
<template
v-if=
"fileSize"
>
大小不超过
<b
style=
"color: #f56c6c"
>
{{
fileSize
}}
MB
</b>
</
template
>
<
template
v-if=
"fileType"
>
<
template
v-if=
"fileType"
>
格式为
<b
style=
"color: #f56c6c"
>
{{
fileType
.
join
(
'/'
)
}}
</b>
{{
fileType
.
join
(
'/'
)
}}
</
template
>
文件,
<
template
v-if=
"fileSize"
>
且不得超过
{{
fileSize
}}
MB
</
template
>
</
template
>
的文件
</div>
</div>
<el-dialog
<el-dialog
:visible
.
sync=
"dialogVisible"
:visible
.
sync=
"dialogVisible"
title=
"预览"
width=
"800"
width=
"800"
append-to-body
append-to-body
>
>
...
@@ -230,4 +241,26 @@ export default {
...
@@ -230,4 +241,26 @@ export default {
opacity
:
0
;
opacity
:
0
;
transform
:
translateY
(
0
);
transform
:
translateY
(
0
);
}
}
::v-deep
.el-upload--picture-card
{
justify-content
:
center
;
flex-direction
:
column
;
display
:
flex
;
line-height
:
normal
;
}
.upload-span-color
{
color
:
#8c939d
;
}
::v-deep
.el-dialog
{
background
:
none
;
width
:
100%
;
}
::v-deep
.el-dialog__headerbtn
{
top
:
8px
!
important
;
background
:
url('../../assets/images/closeIcon.jpg')
left
no-repeat
;
background-size
:
cover
;
}
::v-deep
.el-dialog__headerbtn
i
{
font-size
:
25px
;
visibility
:
hidden
;
}
</
style
>
</
style
>
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