zhulizhen1111 4 lat temu
rodzic
commit
fb0d5d500d

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