fix(components): [image] add infinite prop (#7021)

This commit is contained in:
btea 2022-04-06 17:36:08 +08:00 committed by GitHub
parent 05e3f0c402
commit c14ac56be7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -47,6 +47,10 @@ export const imageProps = buildProps({
type: Number,
default: 0,
},
infinite: {
type: Boolean,
default: true,
},
} as const)
export type ImageProps = ExtractPropTypes<typeof imageProps>

View File

@ -19,6 +19,7 @@
v-if="showViewer"
:z-index="zIndex"
:initial-index="imageIndex"
:infinite="infinite"
:url-list="previewSrcList"
:hide-on-click-modal="hideOnClickModal"
:teleported="teleported"