소스 검색

更新图片显示的问题

lex 2 년 전
부모
커밋
39217bdb0d
2개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 0
      src/views/unit-test/model/drag-question/index.module.less
  2. 1 1
      src/views/unit-test/model/drag-question/index.tsx

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

@@ -101,5 +101,10 @@
 
   .imgs {
     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
                       src={item.leftValue}
                       data-id={item.index}
-                      class={styles.imgs}
+                      class={[styles.imgs, 'van-hairline--surround']}
                       fit="cover"
                     />
                   )}