mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 01:17:15 +00:00
types(Uploader): add closeImagePreview method type
This commit is contained in:
2
types/count-down.d.ts
vendored
2
types/count-down.d.ts
vendored
@@ -2,6 +2,8 @@ import { VanComponent } from './component';
|
||||
|
||||
export class CountDown extends VanComponent {
|
||||
start(): void;
|
||||
|
||||
pause(): void;
|
||||
|
||||
reset(): void;
|
||||
}
|
||||
|
1
types/field.d.ts
vendored
1
types/field.d.ts
vendored
@@ -2,5 +2,6 @@ import { VanComponent } from './component';
|
||||
|
||||
export class Field extends VanComponent {
|
||||
focus(): void;
|
||||
|
||||
blur(): void;
|
||||
}
|
||||
|
6
types/index.d.ts
vendored
6
types/index.d.ts
vendored
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable max-classes-per-file */
|
||||
import Vue from 'vue';
|
||||
import { VanComponent } from './component';
|
||||
import { AddressEdit } from './address-edit';
|
||||
@@ -17,6 +18,7 @@ import { Swipe } from './swipe';
|
||||
import { SwipeCell } from './swipe-cell';
|
||||
import { Tabs } from './tabs';
|
||||
import { Toast } from './toast';
|
||||
import { Uploader } from './uploader';
|
||||
|
||||
export const version: string;
|
||||
export function install(vue: typeof Vue): void;
|
||||
@@ -84,7 +86,6 @@ export class Tabbar extends VanComponent {}
|
||||
export class TabbarItem extends VanComponent {}
|
||||
export class Tag extends VanComponent {}
|
||||
export class TreeSelect extends VanComponent {}
|
||||
export class Uploader extends VanComponent {}
|
||||
|
||||
export {
|
||||
AddressEdit,
|
||||
@@ -103,5 +104,6 @@ export {
|
||||
Swipe,
|
||||
SwipeCell,
|
||||
Tabs,
|
||||
Toast
|
||||
Toast,
|
||||
Uploader
|
||||
};
|
||||
|
4
types/notify.d.ts
vendored
4
types/notify.d.ts
vendored
@@ -13,7 +13,7 @@ export type NotifyOptions = {
|
||||
onClose?: (() => void) | null;
|
||||
onOpened?: (() => void) | null;
|
||||
onClick?: ((event: Event) => void) | null;
|
||||
}
|
||||
};
|
||||
|
||||
export interface VanNotify extends Vue {
|
||||
message: NotifyMessage;
|
||||
@@ -34,7 +34,7 @@ export interface Notify {
|
||||
|
||||
declare module 'vue/types/vue' {
|
||||
interface Vue {
|
||||
$notify: Notify
|
||||
$notify: Notify;
|
||||
}
|
||||
}
|
||||
|
||||
|
1
types/swipe-cell.d.ts
vendored
1
types/swipe-cell.d.ts
vendored
@@ -2,5 +2,6 @@ import { VanComponent } from './component';
|
||||
|
||||
export class SwipeCell extends VanComponent {
|
||||
open(position: 'left' | 'right'): void;
|
||||
|
||||
close(): void;
|
||||
}
|
||||
|
1
types/swipe.d.ts
vendored
1
types/swipe.d.ts
vendored
@@ -6,5 +6,6 @@ export type SwipeToOptions = {
|
||||
|
||||
export class Swipe extends VanComponent {
|
||||
swipeTo(index: number, options?: SwipeToOptions): void;
|
||||
|
||||
resize(): void;
|
||||
}
|
||||
|
5
types/uploader.d.ts
vendored
Normal file
5
types/uploader.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { VanComponent } from './component';
|
||||
|
||||
export class Uploader extends VanComponent {
|
||||
closeImagePreview(): void;
|
||||
}
|
Reference in New Issue
Block a user