Created FileUpload.d.ts

pull/12/head
mertsincan 2019-05-29 11:53:15 +03:00
parent 238782ef82
commit e82971ca14
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
import Vue from 'vue';
export declare class FileUpload extends Vue {
name?: string;
url?: string;
mode?: string;
multiple?: boolean;
accept?: string;
disabled?: boolean;
auto?: boolean;
maxFileSize?: number;
invalidFileSizeMessage?: string;
withCredentials?: boolean;
previewWidth?: number;
chooseLabel?: string;
uploadLabel?: string;
cancelLabel?: string;
$emit(eventName: 'select', e: { originalEvent: Event, files: any }): this;
$emit(eventName: 'before-upload', e: { xhr: XMLHttpRequest, formData: any }): this;
$emit(eventName: 'progress', e: { originalEvent: Event, progress: any }): this;
$emit(eventName: 'upload', e: { originalEvent: Event, files: any }): this;
$emit(eventName: 'error', e: { originalEvent: Event, files: any }): this;
$emit(eventName: 'before-send', e: { xhr: XMLHttpRequest, formData: any }): this;
$emit(eventName: 'clear'): this;
}