From ecca580d6a85289a7063c9857d2d688bed33e86c Mon Sep 17 00:00:00 2001
From: Tevin <tingquanren@163.com>
Date: Fri, 03 Dec 2021 09:58:16 +0800
Subject: [PATCH] 全局颜色提取为sass变量

---
 forms/imagePicker/cImagePicker.scss |   29 ++++++++++++++++++++---------
 1 files changed, 20 insertions(+), 9 deletions(-)

diff --git a/forms/imagePicker/cImagePicker.scss b/forms/imagePicker/cImagePicker.scss
index ea70e6f..8d4c008 100644
--- a/forms/imagePicker/cImagePicker.scss
+++ b/forms/imagePicker/cImagePicker.scss
@@ -9,20 +9,28 @@
     .at-input {
         padding: 0;
     }
-    .at-input__input {
+    .at-input__container {
         .weui-input {
             display: none;
         }
         .at-image-picker {
-            padding-bottom: 0.25rem;
+            padding-bottom: 18px;
+        }
+        .at-image-picker__item:not(.at-image-picker__choose-btn) {
+            border: 1PX #f2f2f2 solid;
+
         }
         .at-image-picker__flex-box {
-            padding: 0.21333rem 0 0;
-            margin-left: -0.21333rem;
+            padding: 18px 18px 0 0;
         }
         .at-image-picker__preview-img {
-            text-align: center;
-            background-color: #f8f8f8;
+            position: relative;
+            background-color: #f2f2f2;
+            img {
+                display: block;
+                @include position(absolute, 50% 50% n n);
+                transform: translate(-50%, -50%);
+            }
         }
         .at-image-picker__choose-btn {
             .add-bar {
@@ -30,8 +38,8 @@
                 &:last-child {
                     display: inline-block;
                 }
-                width: 1.6rem;
-                height: 1.6rem;
+                width: 75px;
+                height: 75px;
                 font-family: iconfont;
                 font-style: normal;
                 font-weight: 400;
@@ -39,7 +47,7 @@
                 text-transform: none;
                 text-rendering: auto;
                 line-height: 1;
-                font-size: 1.6rem;
+                font-size: 75px;
                 color: #cfe0ed;
                 -webkit-font-smoothing: antialiased;
                 vertical-align: middle;
@@ -50,6 +58,9 @@
             }
         }
     }
+    .at-input__icon {
+        display: none;
+    }
     .c-image-picker-view {
         .at-curtain__container {
             width: 95%;

--
Gitblit v1.9.1