Преглед на файлове

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

kele преди 2 години
родител
ревизия
3553ee989e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      sheep/ui/su-image/su-image.vue

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