Browse Source

style: 缩略图样式

From-wh 2 years ago
parent
commit
152aae1a64

+ 6 - 0
template/admin/src/components/uploadImg/index.vue

@@ -364,6 +364,12 @@ export default {
     line-height: 72px;
     line-height: 72px;
     overflow inherit
     overflow inherit
 }
 }
+/deep/ .el-upload--picture-card, /deep/ .el-upload-list--picture-card .el-upload-list__item img{
+    width 64px
+    height 64px
+    border-radius: 6px;
+    object-fit: cover;
+}
 .pl100{
 .pl100{
     padding-left 100px
     padding-left 100px
 }
 }

+ 1 - 0
template/admin/src/pages/app/upload/index.vue

@@ -159,6 +159,7 @@ export default {
   width: 111px;
   width: 111px;
   height: 111px;
   height: 111px;
   border-radius: 6px;
   border-radius: 6px;
+  object-fit: cover;
 }
 }
 .btndel {
 .btndel {
   position: absolute;
   position: absolute;