Skip to content

Commit

Permalink
chore(Preview):消除Preview Options的函数定义类型错误
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjue666 committed Oct 8, 2023
1 parent 694dead commit a5a11fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Preview/src/typing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export interface Options {
defaultWidth?: number;
maskClosable?: boolean;
rememberState?: boolean;
onImgLoad?: ({ index: number, url: string, dom: HTMLImageElement }) => void;
onImgError?: ({ index: number, url: string, dom: HTMLImageElement }) => void;
onImgLoad?: (params: { index: number; url: string; dom: HTMLImageElement }) => void;
onImgError?: (params: { index: number; url: string; dom: HTMLImageElement }) => void;
}

export interface Props {
Expand Down

0 comments on commit a5a11fb

Please sign in to comment.