add PullRefresh component (#117)

* add PullRefresh component

* PullRefresh: fix test case
This commit is contained in:
neverland
2017-09-06 22:24:24 -05:00
committed by Yao
parent 09bc3d947b
commit c4fd51e5d7
9 changed files with 477 additions and 11 deletions

View File

@@ -0,0 +1,37 @@
@import './common/var.css';
.van-pull-refresh {
user-select: none;
position: relative;
&__head {
width: 100%;
height: 50px;
left: 0;
overflow: hidden;
position: absolute;
text-align: center;
top: -50px;
font-size: 14px;
color: $gray-dark;
line-height: 50px;
}
&__loading {
.van-loading {
width: 16px;
height: 16px;
display: inline-block;
margin-right: 10px;
}
span,
.van-loading {
vertical-align: middle;
}
}
&__text {
display: block;
}
}