feat(ImagePreview): support local registration (#6031)

This commit is contained in:
neverland
2020-04-11 10:57:44 +08:00
committed by GitHub
parent baefc6b212
commit 456fc99017
7 changed files with 62 additions and 11 deletions

View File

@@ -1,3 +1,4 @@
import { VanComponent } from './component';
import { VanPopupMixin } from './mixins/popup';
export type ImagePreviewOptions =
@@ -32,6 +33,7 @@ export class VanImagePreview extends VanPopupMixin {
export interface ImagePreview {
(options: ImagePreviewOptions, startPosition?: number): VanImagePreview;
install(): void;
Component: typeof VanComponent;
}
export const ImagePreview: ImagePreview;