chore(Preview):消除Preview Options的函数定义类型错误

This commit is contained in:
invalid w 2023-10-08 18:20:18 +08:00
parent 694dead311
commit a5a11fb846
1 changed files with 2 additions and 2 deletions

View File

@ -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 {