Commit 94cbdf29 authored by zhengke's avatar zhengke

修改

parent 86a95795
......@@ -233,9 +233,6 @@
dialogVisible(oldVal, newVal) {
this.hotspotList = JSON.parse(JSON.stringify(this.hotspotArray))
this.index = -1;
if (this.hotspotList.length > 0) {
this.select(1);
}
}
},
computed: {
......@@ -246,14 +243,14 @@
};
},
maxWidth() {
var widthStr = this.width.replace("px", "");
var tempWidth = parseFloat(widthStr);
return parseFloat(tempWidth) - this.hotspotList[this.index].left;
// var widthStr = this.width.replace("px", "");
// var tempWidth = parseFloat(widthStr);
return parseFloat(this.width) - this.hotspotList[this.index].left;
},
maxHeight() {
var heightStr = this.height.replace("px", "");
var tempheight = parseFloat(heightStr);
return parseFloat(this.tempheight) - this.hotspotList[this.index].top;
//var heightStr = this.height.replace("px", "");
//var tempheight = parseFloat(heightStr);
return parseFloat(this.height) - this.hotspotList[this.index].top;
},
},
methods: {
......
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