feat(ImagePreview): passing current index to index slot (#7552)
This commit is contained in:
@@ -140,7 +140,7 @@ export default createComponent({
|
||||
if (this.showIndex) {
|
||||
return (
|
||||
<div class={bem('index')}>
|
||||
{this.slots('index') ||
|
||||
{this.slots('index', { index: this.active }) ||
|
||||
`${this.active + 1} / ${this.images.length}`}
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user