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