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' : '', }; });