Commit 48b104bb by 姜雷

Merge branch 'develop' into 'test'

修改图片上传组件 See merge request !67
parents eb72ca21 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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment