Explorar o código

fix: 商品图样式问题修复

liangan hai 4 semanas
pai
achega
5663029522
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/components/product/product.vue

+ 1 - 0
src/components/product/product.vue

@@ -29,6 +29,7 @@ function handleClick() {
 <template>
   <view
     class="flex flex-col items-center border-1 border-#E0E0E0 border-solid pb-8rpx"
+    :style="{ maxWidth: Number.isFinite(width) ? `${width}rpx` : width, width: Number.isFinite(width) ? `${width}rpx` : width }"
     @click="handleClick"
   >
     <view class="mb-10rpx" :style="{ maxWidth: Number.isFinite(width) ? `${width}rpx` : width, width: Number.isFinite(width) ? `${width}rpx` : width, height: Number.isFinite(height) ? `${height}rpx` : height }">