Skip to content

Commit

Permalink
type: PreviewGroupPreview imageRender adding ImgInfo (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanpan11 authored Jun 20, 2024
1 parent 6101cb4 commit d14022f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PreviewGroup.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import useMergedState from 'rc-util/lib/hooks/useMergedState';
import * as React from 'react';
import { useState } from 'react';
import { type ImagePreviewType } from './Image';
import type { ImgInfo, ImagePreviewType } from './Image';
import type { PreviewProps, ToolbarRenderInfoType } from './Preview';
import Preview from './Preview';
import { PreviewGroupContext } from './context';
Expand All @@ -26,7 +26,7 @@ export interface PreviewGroupPreview
) => React.ReactNode;
imageRender?: (
originalNode: React.ReactElement,
info: { transform: TransformType; current: number },
info: { transform: TransformType; current: number; image: ImgInfo },
) => React.ReactNode;
onVisibleChange?: (value: boolean, prevValue: boolean, current: number) => void;
onChange?: (current: number, prevCurrent: number) => void;
Expand Down

0 comments on commit d14022f

Please sign in to comment.