Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
quantum-blocks
Commits
7f02c92a
Commit
7f02c92a
authored
May 27, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 图片地址修复
parent
a75f9001
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
36 deletions
+43
-36
index.vue
...e/editor/component/DynamicForm/component/Upload/index.vue
+43
-36
No files found.
app/web/page/editor/component/DynamicForm/component/Upload/index.vue
View file @
7f02c92a
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
title
:
'
上传成功
'
,
title
:
'
上传成功
'
,
desc
:
''
,
desc
:
''
,
});
});
this
.
img
=
config
.
qiniuHost
+
res
.
hash
;
this
.
img
=
config
.
qiniuHost
+
'
/
'
+
res
.
hash
;
this
.
$emit
(
'
input
'
,
this
.
img
);
this
.
$emit
(
'
input
'
,
this
.
img
);
this
.
$emit
(
'
change
'
,
this
.
img
);
this
.
$emit
(
'
change
'
,
this
.
img
);
// this.url = config.qiniuHost + res.hash;
// this.url = config.qiniuHost + res.hash;
...
@@ -118,43 +118,48 @@
...
@@ -118,43 +118,48 @@
margin-bottom: 10px;
margin-bottom: 10px;
width: 100%;
width: 100%;
overflow: hidden;
overflow: hidden;
&-img {
&-img {
display: inline-block;
display: inline-block;
width: 60px;
width: 60px;
height: 60px;
height: 60px;
text-align: center;
text-align: center;
line-height: 60px;
line-height: 60px;
border: 1px solid transparent;
border: 1px solid transparent;
border-radius: 4px;
border-radius: 4px;
overflow: hidden;
overflow: hidden;
background: #fff;
background: #fff;
position: relative;
position: relative;
box-shadow: 0 1px 1px rgba(0,0,0,.2);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
margin-right: 4px;
margin-right: 4px;
img {
width: 100%;
img {
height: 100%;
width: 100%;
}
height: 100%;
&-cover {
}
display: none;
position: absolute;
&-cover {
top: 0;
display: none;
bottom: 0;
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,.6);
left: 0;
i {
right: 0;
margin: 0 2px;
background: rgba(0, 0, 0, 0.6);
color: #fff;
font-size: 20px;
i {
cursor: pointer;
margin: 0 2px;
}
color: #fff;
font-size: 20px;
cursor: pointer;
}
}
&:hover {
}
.upload-img-cover {
display: block;
&:hover {
}
.upload-img-cover {
display: block;
}
}
}
}
}
&-container {
&-container {
...
@@ -163,9 +168,11 @@
...
@@ -163,9 +168,11 @@
width: 56px;
width: 56px;
height: 56px;
height: 56px;
line-height: 56px;
line-height: 56px;
#upload_pic {
#upload_pic {
}
}
/deep/ .ivu-progress {
/deep/ .ivu-progress {
box-sizing: content-box;
box-sizing: content-box;
height: 50px;
height: 50px;
...
...
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