mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 18:40:22 +08:00
type(preview): fix type definition
修复Preview组件的事件参数类型定义
This commit is contained in:
parent
e23bd2696d
commit
bdf0be81b0
@ -6,8 +6,8 @@ export interface Options {
|
|||||||
defaultWidth?: number;
|
defaultWidth?: number;
|
||||||
maskClosable?: boolean;
|
maskClosable?: boolean;
|
||||||
rememberState?: boolean;
|
rememberState?: boolean;
|
||||||
onImgLoad?: (img: HTMLImageElement) => void;
|
onImgLoad?: ({ index: number, url: string, dom: HTMLImageElement }) => void;
|
||||||
onImgError?: (img: HTMLImageElement) => void;
|
onImgError?: ({ index: number, url: string, dom: HTMLImageElement }) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Props {
|
export interface Props {
|
||||||
|
Loading…
Reference in New Issue
Block a user