|
@@ -54,13 +54,13 @@
|
|
<span style="font-size:14px;
|
|
<span style="font-size:14px;
|
|
font-family:MicrosoftYaHei;
|
|
font-family:MicrosoftYaHei;
|
|
color:rgba(100,107,129,1);
|
|
color:rgba(100,107,129,1);
|
|
- margin-bottom: 16px;
|
|
|
|
line-height:19px;">
|
|
line-height:19px;">
|
|
{{element.imgSrc|currentImageName}}
|
|
{{element.imgSrc|currentImageName}}
|
|
</span>
|
|
</span>
|
|
|
|
|
|
<label style="display: block;
|
|
<label style="display: block;
|
|
cursor: pointer; width:108px; position: relative;
|
|
cursor: pointer; width:108px; position: relative;
|
|
|
|
+ margin-bottom: 12px;
|
|
height:28px;">
|
|
height:28px;">
|
|
<div style="width:108px;
|
|
<div style="width:108px;
|
|
height:28px;
|
|
height:28px;
|
|
@@ -72,7 +72,8 @@
|
|
justify-content: center;
|
|
justify-content: center;
|
|
line-height:28px;">替换元素
|
|
line-height:28px;">替换元素
|
|
</div>
|
|
</div>
|
|
- <input style="display: none;position: absolute;top: 0px;" type="file" @change="fileChange" multiple="false">
|
|
|
|
|
|
+ <input style="display: none;position: absolute;top: 0px;" type="file" @change="fileChange"
|
|
|
|
+ multiple="false">
|
|
</label>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -308,11 +309,10 @@
|
|
<span style="font-size:14px;
|
|
<span style="font-size:14px;
|
|
font-family:MicrosoftYaHei;
|
|
font-family:MicrosoftYaHei;
|
|
color:rgba(100,107,129,1);
|
|
color:rgba(100,107,129,1);
|
|
- margin-bottom: 16px;
|
|
|
|
line-height:19px;">
|
|
line-height:19px;">
|
|
{{element.imgSrc|currentImageName}}
|
|
{{element.imgSrc|currentImageName}}
|
|
</span>
|
|
</span>
|
|
- <label style="display: block;
|
|
|
|
|
|
+ <label style="display: block;margin-bottom: 12px;
|
|
cursor: pointer; width:108px;position: relative;
|
|
cursor: pointer; width:108px;position: relative;
|
|
height:28px;">
|
|
height:28px;">
|
|
<div style="width:108px;
|
|
<div style="width:108px;
|
|
@@ -325,7 +325,8 @@
|
|
justify-content: center;
|
|
justify-content: center;
|
|
line-height:28px;">替换元素
|
|
line-height:28px;">替换元素
|
|
</div>
|
|
</div>
|
|
- <input style="display: none;position: absolute;top: 0px;" type="file" @change="fileChange" multiple="false">
|
|
|
|
|
|
+ <input style="display: none;position: absolute;top: 0px;" type="file" @change="fileChange"
|
|
|
|
+ multiple="false">
|
|
</label>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -1050,7 +1051,7 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
fileChange(event) {
|
|
fileChange(event) {
|
|
- console.log("当前元素",this.element);
|
|
|
|
|
|
+ console.log("当前元素", this.element);
|
|
this.upload(event)
|
|
this.upload(event)
|
|
},
|
|
},
|
|
async upload(event) {
|
|
async upload(event) {
|