zhulizhen1111 4 년 전
부모
커밋
fb0d5d500d
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      src/components/Rotation/src/rotation.vue
  2. 1 0
      src/views/overview/picViewRotation.vue

+ 2 - 3
src/components/Rotation/src/rotation.vue

@@ -180,6 +180,8 @@ export default {
     }
     img {
         height: 100%;
+        height: 100%;
+        object-fit: contain;
     }
     .rotationCon {
         height: 100%;
@@ -190,8 +192,5 @@ export default {
         text-align: center;
         background: #fff;
     }
-    img {
-        width: 100%;
-    }
 }
 </style>

+ 1 - 0
src/views/overview/picViewRotation.vue

@@ -86,6 +86,7 @@ export default {
     }
 
     .rotationCon {
+        width: 100%;
         /deep/ .el-carousel__item {
             text-align: center;
             background: #fff;