소스 검색

空状态

zhaoxiaohai 3 년 전
부모
커밋
a637c41d64
3개의 변경된 파일7개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 0
      components/My_empty/index.js
  2. 1 1
      components/My_empty/index.scss
  3. 2 2
      components/My_empty/index.wxml

+ 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>