[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,9 +18,10 @@
import { ImagePreview } from '../../../packages';
const images = [
'https://img.yzcdn.cn/upload_files/2017/03/15/FkubrzN7AgGwLlTeb1E89-T_ZjBg.png',
'https://img.yzcdn.cn/upload_files/2017/03/14/FmTPs0SeyQaAOSK1rRe1sL8RcwSY.jpeg',
'https://img.yzcdn.cn/upload_files/2017/03/15/FvexrWlG_WxtCE9Omo5l27n_mAG_.jpeg'
'https://img.yzcdn.cn/public_files/2017/09/05/3bd347e44233a868c99cf0fe560232be.jpg',
'https://img.yzcdn.cn/public_files/2017/09/05/c0dab461920687911536621b345a0bc9.jpg',
'https://img.yzcdn.cn/public_files/2017/09/05/4e3ea0898b1c2c416eec8c11c5360833.jpg',
'https://img.yzcdn.cn/public_files/2017/09/05/fd08f07665ed67d50e11b32a21ce0682.jpg'
];
export default {
@@ -60,6 +61,7 @@ export default {
margin-left: 15px;
}
}
.van-image-preview {
img {
pointer-events: none;