Commit 94cbdf29 authored by zhengke's avatar zhengke

修改

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