diff --git a/frontend/src/components/DeDrag/index.vue b/frontend/src/components/DeDrag/index.vue index 20dd0b5074..3991959526 100644 --- a/frontend/src/components/DeDrag/index.vue +++ b/frontend/src/components/DeDrag/index.vue @@ -30,7 +30,7 @@ :style="mainSlotStyle" > - +
= vm.yourList.length) { @@ -470,6 +471,15 @@ function removeItem(index) { this.yourList.splice(index, 1, {}) } +function initPosition(_this) { + _this.yourList.forEach(item => { + checkItemPosition.call(_this, item, { + x: item.x, + y: item.y + }) + }) +} + function addItem(item, index) { // console.log('addItem') if (index < 0) { @@ -807,7 +817,7 @@ export default { }, data() { return { - psDebug: false, // 定位调试模式 + psDebug: true, // 定位调试模式 editorX: 0, editorY: 0, start: { // 选中区域的起点 @@ -995,41 +1005,6 @@ export default { e.preventDefault() } this.hideArea() - // 获取编辑器的位移信息,每次点击时都需要获取一次。主要是为了方便开发时调试用。 - const rectInfo = this.editor.getBoundingClientRect() - this.editorX = rectInfo.x - this.editorY = rectInfo.y - - const startX = e.clientX - const startY = e.clientY - this.start.x = startX - this.editorX - this.start.y = startY - this.editorY - // 展示选中区域 - this.isShowArea = true - - const move = (moveEvent) => { - this.width = Math.abs(moveEvent.clientX - startX) - this.height = Math.abs(moveEvent.clientY - startY) - if (moveEvent.clientX < startX) { - this.start.x = moveEvent.clientX - this.editorX - } - - if (moveEvent.clientY < startY) { - this.start.y = moveEvent.clientY - this.editorY - } - } - const up = (e) => { - document.removeEventListener('mousemove', move) - document.removeEventListener('mouseup', up) - if (e.clientX === startX && e.clientY === startY) { - this.hideArea() - return - } - this.createGroup() - } - document.addEventListener('mousemove', move) - document.addEventListener('mouseup', up) - // 挤占式画布设计 this.containerMouseDown(e) }, diff --git a/frontend/src/components/canvas/custom-component/DeVideo.vue b/frontend/src/components/canvas/custom-component/DeVideo.vue index 8d6315cf72..19dd595701 100644 --- a/frontend/src/components/canvas/custom-component/DeVideo.vue +++ b/frontend/src/components/canvas/custom-component/DeVideo.vue @@ -66,7 +66,7 @@ export default { return (this.element.optStatus.dragging || this.element.optStatus.resizing) }, curGap() { - return this.canvasStyleData.panel.gap === 'yes' && this.element.auxiliaryMatrix ? this.componentGap : 0 + return this.element.auxiliaryMatrix ? this.componentGap : 0 }, player() { return this.$refs.videoPlayer.player diff --git a/frontend/src/components/dataease/DeOutWidget.vue b/frontend/src/components/dataease/DeOutWidget.vue index b3057257d0..47316d13da 100644 --- a/frontend/src/components/dataease/DeOutWidget.vue +++ b/frontend/src/components/dataease/DeOutWidget.vue @@ -1,31 +1,29 @@