mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-24 11:05:17 +08:00
fix(components): [image] add infinite prop (#7021)
This commit is contained in:
parent
05e3f0c402
commit
c14ac56be7
@ -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>
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user