mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11:15 +00:00
add PullRefresh component
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
@import './actionsheet.css';
|
||||
@import './dialog.css';
|
||||
@import './picker.css';
|
||||
@import './pull-refresh.css';
|
||||
@import './toast.css';
|
||||
|
||||
/* business components */
|
||||
|
37
packages/vant-css/src/pull-refresh.css
Normal file
37
packages/vant-css/src/pull-refresh.css
Normal 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user