[improvement] ImagePreview: add show-index prop (#1889)

This commit is contained in:
neverland
2018-10-02 21:24:25 +08:00
committed by GitHub
parent 8bd447a130
commit a4bebfbb8d
15 changed files with 84 additions and 21 deletions

View File

@@ -18,6 +18,20 @@
position: absolute;
}
&__index {
position: absolute;
top: 10px;
left: 50%;
color: $white;
font-size: 14px;
letter-spacing: 2px;
transform: translate(-50%, 0);
}
&__overlay {
background-color: rgba(0, 0, 0, .9);
}
.van-swipe {
height: 100%;
}