Browse Source

feat(组件): 修改上传图片的大小

tangning 2 years ago
parent
commit
1ae5afa4c4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/components/Cropper/src/CropperAvatar.vue

+ 2 - 0
src/components/Cropper/src/CropperAvatar.vue

@@ -143,6 +143,8 @@
 
 
       img {
       img {
         width: 100%;
         width: 100%;
+        height: 100%;
+        object-fit: cover;
       }
       }
     }
     }