Переглянути джерело

refactor(product-list): 优化商品列表中商品信息图片展示逻辑

WanGxC 6 місяців тому
батько
коміт
e290ef87e4
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      src/views/product-manage/component/ProductInfo.vue

+ 1 - 1
src/views/product-manage/component/ProductInfo.vue

@@ -49,7 +49,7 @@ const props = defineProps({
         </template>
       </el-tooltip>
     </div>
-    <el-image v-else :style="`width: ${imgWidth}px; margin-right: 5px; font-size: 2.7rem;`" lazy>
+    <el-image v-else :style="`min-width: ${imgWidth}px; margin-right: 5px; font-size: 2.7rem;`" lazy>
       <!--<div slot="error" class="image-slot">-->
       <!--  <i class="el-icon-picture-outline"></i>-->
       <!--</div>-->