19 changed files with 200 additions and 31 deletions
@ -1,4 +1,10 @@ |
|||
<!--components/empty/index.wxml--> |
|||
<view class="empty"> |
|||
|
|||
<view class="empty-loading" wx:if="{{loading && !empty}}"> |
|||
<view class="load-indicator">加载中<dot></dot></view> |
|||
</view> |
|||
<view class="empty-bd" wx:if="{{empty}}"> |
|||
<view class="empty-logo">{{message}}</view> |
|||
<view class="empty-refresh"></view> |
|||
</view> |
|||
</view> |
|||
|
@ -1 +1,50 @@ |
|||
/* components/empty/index.wxss */ |
|||
/* components/empty/index.wxss */ |
|||
|
|||
.empty { |
|||
position: relative; |
|||
width: 100%; |
|||
} |
|||
|
|||
.empty-loading { |
|||
position: absolute; |
|||
top: 0; |
|||
right: 0; |
|||
left: 0; |
|||
bottom: 0; |
|||
} |
|||
.empty-bd { |
|||
padding: 10px 0; |
|||
text-align: center; |
|||
font-size: 17px; |
|||
color: #888; |
|||
} |
|||
|
|||
.load-indicator { |
|||
font-size: 16px; |
|||
color: #888; |
|||
text-align: center; |
|||
} |
|||
dot { |
|||
display: inline-block; |
|||
overflow: hidden; |
|||
height: 1em; |
|||
line-height: 1; |
|||
vertical-align: -.25em; |
|||
} |
|||
|
|||
dot::after { |
|||
display: block; |
|||
white-space: pre-wrap; |
|||
content: "...\A..\A."; |
|||
animation: loading 3s infinite step-start both; |
|||
} |
|||
|
|||
@keyframes loading { |
|||
33% { |
|||
transform: translate3d(0, -2em, 0); |
|||
} |
|||
|
|||
66% { |
|||
transform: translate3d(0, -1em, 0); |
|||
} |
|||
} |
|||
|
Loading…
Reference in new issue