UNPKG

@datametria/vue-components

Version:

DATAMETRIA Vue.js 3 Component Library with Multi-Brand Theming - 51 components + 10 composables with theming support, WCAG 2.2 AA, dark mode, responsive system

65 lines (64 loc) 2.02 kB
interface UploadFile { uid: string; name: string; size: number; status: 'ready' | 'uploading' | 'success' | 'error'; progress: number; preview?: string; raw: File; } interface Props { modelValue?: UploadFile[]; action?: string; accept?: string; multiple?: boolean; limit?: number; maxSize?: number; drag?: boolean; disabled?: boolean; } declare function __VLS_template(): { attrs: Partial<{}>; slots: { trigger?(_: {}): any; trigger?(_: {}): any; }; refs: { inputRef: HTMLInputElement; }; rootEl: HTMLDivElement; }; type __VLS_TemplateResult = ReturnType<typeof __VLS_template>; declare const __VLS_component: import('vue').DefineComponent<Props, { clearFiles: () => void; }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { "update:modelValue": (files: UploadFile[]) => any; change: (files: UploadFile[]) => any; error: (error: Error, file: File) => any; success: (response: any, file: UploadFile) => any; exceed: (files: File[]) => any; }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{ "onUpdate:modelValue"?: ((files: UploadFile[]) => any) | undefined; onChange?: ((files: UploadFile[]) => any) | undefined; onError?: ((error: Error, file: File) => any) | undefined; onSuccess?: ((response: any, file: UploadFile) => any) | undefined; onExceed?: ((files: File[]) => any) | undefined; }>, { disabled: boolean; modelValue: UploadFile[]; multiple: boolean; drag: boolean; accept: string; maxSize: number; action: string; limit: number; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, { inputRef: HTMLInputElement; }, HTMLDivElement>; declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>; export default _default; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };