From 3553ee989efce80c058ccead6172e409aae345fe Mon Sep 17 00:00:00 2001 From: kele <1184860403@qq.com> Date: Fri, 30 Dec 2022 17:25:07 +0800 Subject: [PATCH] =?UTF-8?q?su-image=E7=BB=84=E4=BB=B6width=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=9D=A1=E4=BB=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sheep/ui/su-image/su-image.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sheep/ui/su-image/su-image.vue b/sheep/ui/su-image/su-image.vue index 6ee485af..35f84103 100644 --- a/sheep/ui/su-image/su-image.vue +++ b/sheep/ui/su-image/su-image.vue @@ -83,7 +83,7 @@ const customStyle = computed(() => { return { height: (props.height || state.imgHeight) + 'rpx', - width: props.width + 'rpx', + width: props.width ? props.width + 'rpx' : '100%', borderRadius: props.radius ? props.radius + 'rpx' : '', }; });