瀏覽代碼

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>-->