[improvement] ImagePreview: add showIndicators prop (#1992)

This commit is contained in:
neverland
2018-10-29 17:46:12 +08:00
committed by GitHub
parent 2e3ecf6402
commit edaad55e30
5 changed files with 20 additions and 7 deletions

View File

@@ -10,7 +10,7 @@
<swipe
ref="swipe"
:initial-swipe="startPosition"
:show-indicators="false"
:show-indicators="showIndicators"
@change="onChange"
>
<swipe-item v-for="(item, index) in images" :key="index">
@@ -50,6 +50,7 @@ export default create({
},
props: {
showIndicators: Boolean,
images: {
type: Array,
default: () => []