types(Area): add reset method type (#5353)

This commit is contained in:
neverland
2019-12-22 12:54:29 +08:00
committed by GitHub
parent a54a77d8c8
commit 24def10a1e
5 changed files with 17 additions and 9 deletions

5
types/area.d.ts vendored Normal file
View File

@@ -0,0 +1,5 @@
import { VanComponent } from './component';
export class Area extends VanComponent {
reset(code?: string): void;
}

16
types/index.d.ts vendored
View File

@@ -1,5 +1,7 @@
import Vue from 'vue';
import { VanComponent } from './component';
import { AddressEdit } from './address-edit';
import { Area } from './area';
import { Toast } from './toast';
import { Dialog } from './dialog';
import { Notify } from './notify';
@@ -8,11 +10,9 @@ import { Lazyload } from './lazyload';
import { ImagePreview } from './image-preview';
export const version: string;
export function install (vue: typeof Vue): void
export function install(vue: typeof Vue): void;
export class ActionSheet extends VanComponent {}
export class AddressList extends VanComponent {}
export class Area extends VanComponent {}
export class Button extends VanComponent {}
export class Card extends VanComponent {}
export class Cell extends VanComponent {}
@@ -86,10 +86,12 @@ export class TreeSelect extends VanComponent {}
export class Uploader extends VanComponent {}
export {
Toast,
AddressEdit,
Area,
Dialog,
Notify,
Locale,
ImagePreview,
Lazyload,
ImagePreview
Locale,
Notify,
Toast
};