UNPKG

@aplus-frontend/ui

Version:

45 lines (44 loc) 1.58 kB
import { Oss } from '../hooks/useOss'; import { actionResponse } from '@aplus-frontend/oss'; import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue'; declare function setValue(val?: (string | Record<string, any>)[]): void; interface UploadFile extends File { uid: string; thumbUrl?: string; status: 'error' | 'success' | 'done' | 'uploading' | 'removed'; percent: number; path?: string; oss?: Oss; [key: string | number | symbol]: any; } declare function handleRemove(uploadFile: UploadFile): Promise<boolean>; declare function __VLS_template(): { attrs: Partial<{}>; slots: { pictureContext?(_: { fileList: { oss: { pauseUpload: (() => Promise< actionResponse>) | undefined; }; }[]; remove: typeof handleRemove; }): any; }; refs: { fileRef: HTMLInputElement; }; rootEl: HTMLDivElement; }; type __VLS_TemplateResult = ReturnType<typeof __VLS_template>; declare const __VLS_component: DefineComponent<{}, { setValue: typeof setValue; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, { fileRef: 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; }; };