From ccc889b2f1953022456abcdfe574fc0e48e102c8 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, 18 Oct 2024 11:15:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8C=87=E7=A4=BA=E5=99=A8?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/diy/modules/image-empty.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/diy/modules/image-empty.vue b/components/diy/modules/image-empty.vue index af0bf056..242e771e 100644 --- a/components/diy/modules/image-empty.vue +++ b/components/diy/modules/image-empty.vue @@ -58,6 +58,11 @@ empty_style: `${this.propErrorStyle}`, }); img_url = this.default_image; + } else { + this.setData({ + empty_outer_style: '', + empty_style: 'width: 100%; height: 100%;', // 有图片的时候显示为100% + }); } this.setData({ img_url: img_url,