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

pull/8/head
kele 2022-12-30 17:25:07 +08:00
parent befa8f63b6
commit 3553ee989e
1 changed files with 1 additions and 1 deletions

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