|
|
@@ -412,13 +412,8 @@ export default {
|
|
|
this.endY = event.clientY - clientRect.top;
|
|
|
},
|
|
|
endSelection() {
|
|
|
- console.log('this.startX' + this.startX);
|
|
|
- console.log('this.endX' + this.endX);
|
|
|
- console.log('this.startY' + this.startY);
|
|
|
- console.log('this.endY' + this.endY);
|
|
|
-
|
|
|
- if (!this.isSelecting || this.startX === this.endX || !this.endX) return;
|
|
|
this.isSelecting = false;
|
|
|
+ if (this.startX === this.endX || !this.endX) return;
|
|
|
const width = Math.abs(this.endX - this.startX);
|
|
|
const height = Math.abs(this.endY - this.startY);
|
|
|
const x = this.endX > this.startX ? `${this.startX}px` : `${this.endX}px`;
|
|
|
@@ -458,6 +453,7 @@ export default {
|
|
|
},
|
|
|
// 删除文本框热区
|
|
|
deletehotspots(index) {
|
|
|
+ this.isSelecting = false;
|
|
|
this.data.text_list.splice(index, 1);
|
|
|
if (this.hotspotsActiveIndex === index) {
|
|
|
this.hotspotsActiveIndex = null;
|