[new feature] Picker: add loading prop (#619)

This commit is contained in:
neverland
2018-02-07 17:09:09 +08:00
committed by GitHub
parent 866aff9c45
commit e53f543639
10 changed files with 59 additions and 9 deletions

View File

@@ -84,7 +84,7 @@
color: $gray;
}
.van-loading__circular circle {
circle {
stroke: $gray;
}
}
@@ -103,7 +103,7 @@
color: #fff;
}
.van-loading__circular circle {
circle {
stroke: $white;
}
}

View File

@@ -3,6 +3,7 @@
.van-picker {
overflow: hidden;
user-select: none;
position: relative;
background-color: $white;
&__toolbar {
@@ -31,7 +32,22 @@
display: flex;
position: relative;
}
&__loading {
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 2;
position: absolute;
background-color: rgba(255,255,255,.9);
circle {
stroke: $blue;
}
}
&__loading .van-loading,
&__frame {
top: 50%;
left: 0;