Ver Fonte

空状态

zhaoxiaohai há 3 anos atrás
pai
commit
a637c41d64

+ 4 - 0
components/My_empty/index.js

@@ -12,6 +12,10 @@ Component({
             type: String,
             value: "150rpx"
         },
+        sonMarTop: {
+            type: String,
+            value: "20"
+        },
         icon: {
             type: String,
             value: 'icon-zanwushuju'

+ 1 - 1
components/My_empty/index.scss

@@ -3,7 +3,7 @@
     text-align: center;
     color: #BBBBBB;
 
-    .iconfont {
+    .i-1597 {
         font-size: 150rpx;
     }
 }

+ 2 - 2
components/My_empty/index.wxml

@@ -1,4 +1,4 @@
 <view class="empty" style="margin-top: {{marTop}};">
-    <view class="iconfont {{icon}}"></view>
-    <view style="margin-top: 20rpx;">{{text}}</view>
+    <view class="iconfont {{icon}} i-1597"></view>
+    <view style="margin-top: {{sonMarTop}}rpx;">{{text}}</view>
 </view>