From 3fd3940670322466466f7cd6c398c67ef8358ab9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Fri, 8 Nov 2024 15:32:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E9=AD=94=E6=96=B9=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/diy/img-magic.vue | 4 +--- components/diy/modules/data-magic/video/index.vue | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/components/diy/img-magic.vue b/components/diy/img-magic.vue index 79dbb2a3..b8786c65 100644 --- a/components/diy/img-magic.vue +++ b/components/diy/img-magic.vue @@ -63,7 +63,6 @@ }, data() { return { - img_outer_spacing: '', form: {}, style_container: '', style_img_container: '', @@ -89,7 +88,7 @@ // 根据当前页面大小计算成百分比 selected_style() { return (item) => { - return `overflow: hidden;width: calc(${this.percentage(this.getSelectedWidth(item))} - ${this.img_outer_spacing} ); height: calc(${this.percentage(this.getSelectedHeight(item))} - ${this.img_outer_spacing} ); top: ${this.percentage(this.getSelectedTop(item))}; left: ${this.percentage(this.getSelectedLeft(item))};`; + return `overflow: hidden;width: ${this.percentage(this.getSelectedWidth(item))}; height: ${this.percentage(this.getSelectedHeight(item))}; top: ${this.percentage(this.getSelectedTop(item))}; left: ${this.percentage(this.getSelectedLeft(item))};`; }; }, }, @@ -122,7 +121,6 @@ new_style: this.propValue.style, outer_style: `width:${outer_spacing};height:${outer_spacing};margin:${outer_sx};`, img_spacing: `padding:${spacing};`, - img_outer_spacing: new_style_spacing * 2 + 'rpx', content_img_radius: radius_computer(new_style), style_container: common_styles_computer(new_style.common_style) + 'box-sizing: border-box;', style_img_container: common_img_computer(new_style.common_style, this.propIndex) + 'box-sizing: border-box;', diff --git a/components/diy/modules/data-magic/video/index.vue b/components/diy/modules/data-magic/video/index.vue index 41d93953..8418f3eb 100644 --- a/components/diy/modules/data-magic/video/index.vue +++ b/components/diy/modules/data-magic/video/index.vue @@ -1,7 +1,7 @@