mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
[improvement] ImagePreview: add showIndicators prop (#1992)
This commit is contained in:
@@ -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: () => []
|
||||
|
Reference in New Issue
Block a user