[new feature] #734 swipe组件支持垂直滚动 (#938)

This commit is contained in:
nrz
2018-04-27 22:57:44 +08:00
committed by neverland
parent fa8f88c7be
commit 21372bea96
7 changed files with 109 additions and 23 deletions

View File

@@ -17,11 +17,19 @@ $van-swipe-indicator: 6px;
}
&__indicators {
position: absolute;
left: 50%;
bottom: 10px;
position: absolute;
height: $van-swipe-indicator;
transform: translate3d(-50%, 0, 0);
&--vertical {
position: absolute;
left: 10px;
top: 50%;
width: $van-swipe-indicator;
transform: translate3d(0, -50%, 0);
}
}
&__indicator {
@@ -35,7 +43,7 @@ $van-swipe-indicator: 6px;
&:not(:last-child) {
margin-right: $van-swipe-indicator;
}
&--active {
background-color: $orange;
}