types(@vant/lazyload): add $Lazyload typing
This commit is contained in:
+10
@@ -43,3 +43,13 @@ export declare type LazyloadOptions = {
|
||||
export declare const Lazyload: {
|
||||
install(app: App, options?: LazyloadOptions): void;
|
||||
};
|
||||
|
||||
declare module '@vue/runtime-core' {
|
||||
interface ComponentCustomProperties {
|
||||
$Lazyload: {
|
||||
$on: (event: string, handler: Callback) => void;
|
||||
$off: (event: string, handler?: Callback) => void;
|
||||
$once: (event: string, handler: Callback) => void;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user