|
@@ -161,6 +161,7 @@ export default {
|
|
|
enterCanvas: {
|
|
|
handler(val) {
|
|
|
if (val) return;
|
|
|
+ if (!this.isEdit) return;
|
|
|
const dragLineList = document.querySelectorAll('.drag-line');
|
|
|
dragLineList.forEach((item) => {
|
|
|
item.style.opacity = 0;
|
|
@@ -602,6 +603,8 @@ export default {
|
|
|
this.drag.clientX = clientX;
|
|
|
this.drag.clientY = clientY;
|
|
|
|
|
|
+ if (!this.isEdit) return;
|
|
|
+
|
|
|
let { isInsideCanvas } = this.getMarginDifferences();
|
|
|
|
|
|
this.enterCanvas = isInsideCanvas;
|