From 23300ffea5ea86dbbbaf680e36649d9504cd416a 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, 4 Jul 2025 16:53:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E4=B8=8B=E7=9A=84=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/form-input/form-input.vue | 10 ++++--- .../components/form-input/image.vue | 4 ++- .../modules/component-show/index.vue | 30 ++++++++++--------- .../components/form-input/video.vue | 2 ++ 4 files changed, 27 insertions(+), 19 deletions(-) diff --git a/pages/form-input/components/form-input/form-input.vue b/pages/form-input/components/form-input/form-input.vue index cc9d5f51..842481ef 100644 --- a/pages/form-input/components/form-input/form-input.vue +++ b/pages/form-input/components/form-input/form-input.vue @@ -1,13 +1,13 @@ @@ -58,6 +58,8 @@ const { img_width, img_scale_type } = com_data; const height = img_scale_type === '1' ? img_width : img_scale_type == '0' ? (img_width * 9) / 16 : (img_width * 3) / 4; img_style = `width: ${ img_width * 2 }rpx;height:${ height * 2 }rpx;` + } else { + img_style = `width: 100%;height:100%;` } this.setData({ com_data: com_data, diff --git a/pages/form-input/components/form-input/modules/component-show/index.vue b/pages/form-input/components/form-input/modules/component-show/index.vue index 59428d5f..a7f43a86 100644 --- a/pages/form-input/components/form-input/modules/component-show/index.vue +++ b/pages/form-input/components/form-input/modules/component-show/index.vue @@ -1,10 +1,8 @@