Explorar el Código

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

tangning hace 2 años
padre
commit
1ae5afa4c4
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/components/Cropper/src/CropperAvatar.vue

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

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