su-image组件width判断条件修改

This commit is contained in:
kele
2022-12-30 17:25:07 +08:00
parent befa8f63b6
commit 3553ee989e

View File

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