Browse Source

更新图片显示的问题

lex 2 years ago
parent
commit
39217bdb0d

+ 5 - 0
src/views/unit-test/model/drag-question/index.module.less

@@ -101,5 +101,10 @@
 
 
   .imgs {
   .imgs {
     height: 56px;
     height: 56px;
+    :global {
+      .van-image__img {
+        width: auto;
+      }
+    }
   }
   }
 }
 }

+ 1 - 1
src/views/unit-test/model/drag-question/index.tsx

@@ -256,7 +256,7 @@ export default defineComponent({
                     <Image
                     <Image
                       src={item.leftValue}
                       src={item.leftValue}
                       data-id={item.index}
                       data-id={item.index}
-                      class={styles.imgs}
+                      class={[styles.imgs, 'van-hairline--surround']}
                       fit="cover"
                       fit="cover"
                     />
                     />
                   )}
                   )}