su-image组件width判断条件修改
This commit is contained in:
@@ -83,7 +83,7 @@
|
|||||||
const customStyle = computed(() => {
|
const customStyle = computed(() => {
|
||||||
return {
|
return {
|
||||||
height: (props.height || state.imgHeight) + 'rpx',
|
height: (props.height || state.imgHeight) + 'rpx',
|
||||||
width: props.width + 'rpx',
|
width: props.width ? props.width + 'rpx' : '100%',
|
||||||
borderRadius: props.radius ? props.radius + 'rpx' : '',
|
borderRadius: props.radius ? props.radius + 'rpx' : '',
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user