From b9aa0b585b4d9c0b70d32631f5fda27af031bc83 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 16 Nov 2021 17:02:22 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=E4=BC=98=E5=8C=96=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E6=8B=96=E6=8B=BD=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/canvas/custom-component/DeVideo.vue | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/canvas/custom-component/DeVideo.vue b/frontend/src/components/canvas/custom-component/DeVideo.vue index 41cd8b33f2..7ddf62456d 100644 --- a/frontend/src/components/canvas/custom-component/DeVideo.vue +++ b/frontend/src/components/canvas/custom-component/DeVideo.vue @@ -66,18 +66,15 @@ export default { moveFlag() { return (this.element.optStatus.dragging || this.element.optStatus.resizing) }, + curGap() { + return this.canvasStyleData.panel.gap === 'yes' && this.element.auxiliaryMatrix ? this.componentGap : 0 + }, player() { return this.$refs.videoPlayer.player }, playerOptions() { const videoPlayerOptions = this.element.videoLinks[this.element.videoLinks.videoType] - let playHeight = this.h - if (this.canvasStyleData.panel.gap === 'yes') { - playHeight = this.h - (this.componentGap * 2) - } - videoPlayerOptions.height = playHeight - - console.log('videoPlayerOptions:' + JSON.stringify(videoPlayerOptions)) + videoPlayerOptions.height = this.h - (this.curGap * 2) return videoPlayerOptions }, ...mapState([