add PullRefresh component

This commit is contained in:
陈嘉涵
2017-09-07 11:10:12 +08:00
parent 527e12768b
commit 9eb825f54d
9 changed files with 476 additions and 11 deletions

View File

@@ -38,6 +38,7 @@
@import './actionsheet.css';
@import './dialog.css';
@import './picker.css';
@import './pull-refresh.css';
@import './toast.css';
/* business components */

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;
}
}