diff --git a/src/components/Preview/src/typing.ts b/src/components/Preview/src/typing.ts index ab0d6c75b..bbb8a83e4 100644 --- a/src/components/Preview/src/typing.ts +++ b/src/components/Preview/src/typing.ts @@ -6,8 +6,8 @@ export interface Options { defaultWidth?: number; maskClosable?: boolean; rememberState?: boolean; - onImgLoad?: (img: HTMLImageElement) => void; - onImgError?: (img: HTMLImageElement) => void; + onImgLoad?: ({ index: number, url: string, dom: HTMLImageElement }) => void; + onImgError?: ({ index: number, url: string, dom: HTMLImageElement }) => void; } export interface Props {