Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcxy-manage-shell
Project
Overview
Details
Activity
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
姜雷
dcxy-manage-shell
Commits
3985785d
Commit
3985785d
authored
May 05, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改图片上传组件
parent
4d6429d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
ImageUploader.vue
src/components/input/ImageUploader/ImageUploader.vue
+11
-2
No files found.
src/components/input/ImageUploader/ImageUploader.vue
View file @
3985785d
...
@@ -2,8 +2,7 @@
...
@@ -2,8 +2,7 @@
<div
class=
"image-uploader"
>
<div
class=
"image-uploader"
>
<div
<div
v-if=
"done"
v-if=
"done"
@
mouseover=
"toogleDelIcon"
@
mouseenter=
"showDelIcon"
@
mouseout=
"toogleDelIcon"
class=
"image-uploader-done"
class=
"image-uploader-done"
>
>
<div
<div
...
@@ -12,6 +11,7 @@
...
@@ -12,6 +11,7 @@
>
>
<div
<div
@
click=
"delImg"
@
click=
"delImg"
@
mouseout
.
stop=
"hideDelIcon"
class=
"delimg icon"
class=
"delimg icon"
>
>
<img
src=
"@/assets/icons/svg/delimg.svg"
/>
<img
src=
"@/assets/icons/svg/delimg.svg"
/>
...
@@ -113,7 +113,16 @@ export default {
...
@@ -113,7 +113,16 @@ export default {
this
.
url
=
val
?
val
:
''
;
this
.
url
=
val
?
val
:
''
;
this
.
fileName
=
val
?
val
.
replace
(
this
.
domain
,
''
)
:
''
;
this
.
fileName
=
val
?
val
.
replace
(
this
.
domain
,
''
)
:
''
;
},
},
showDelIcon
()
{
console
.
log
(
'in showDelIcon'
);
this
.
showDel
=
true
;
},
hideDelIcon
()
{
console
.
log
(
'in hideDelIcon'
);
this
.
showDel
=
false
;
},
toogleDelIcon
()
{
toogleDelIcon
()
{
console
.
log
(
'in '
);
this
.
showDel
=
!
this
.
showDel
;
this
.
showDel
=
!
this
.
showDel
;
},
},
getImgToken
(
isReload
)
{
getImgToken
(
isReload
)
{
...
...
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