upload-content.vue.d.ts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { Awaitable } from "../../../utils/typescript.js";
  2. import { UploadAjaxError } from "./ajax.js";
  3. import { ListType, UploadData, UploadFile, UploadHooks, UploadProgressEvent, UploadRawFile, UploadRequestHandler, UploadUserFile } from "./upload.js";
  4. import { UploadContentProps } from "./upload-content.js";
  5. import * as _$vue from "vue";
  6. //#region ../../packages/components/upload/src/upload-content.vue.d.ts
  7. declare var __VLS_9: {}, __VLS_11: {};
  8. type __VLS_Slots = {} & {
  9. default?: (props: typeof __VLS_9) => any;
  10. } & {
  11. default?: (props: typeof __VLS_11) => any;
  12. };
  13. declare const __VLS_base: _$vue.DefineComponent<UploadContentProps, {
  14. abort: (file?: UploadFile) => void;
  15. upload: (rawFile: UploadRawFile) => Promise<void>;
  16. }, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<UploadContentProps> & Readonly<{}>, {
  17. disabled: boolean;
  18. name: string;
  19. onError: (err: UploadAjaxError, rawFile: UploadRawFile) => void;
  20. onProgress: (evt: UploadProgressEvent, rawFile: UploadRawFile) => void;
  21. data: Awaitable<UploadData> | ((rawFile: UploadRawFile) => Awaitable<UploadData>);
  22. beforeUpload: UploadHooks["beforeUpload"];
  23. onRemove: (file: UploadFile | UploadRawFile) => void;
  24. onSuccess: (response: any, rawFile: UploadRawFile) => unknown;
  25. onExceed: UploadHooks["onExceed"];
  26. action: string;
  27. method: string;
  28. showFileList: boolean;
  29. accept: string;
  30. fileList: UploadUserFile[];
  31. autoUpload: boolean;
  32. listType: ListType;
  33. httpRequest: UploadRequestHandler;
  34. onStart: (rawFile: UploadRawFile) => void;
  35. }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
  36. declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
  37. declare const _default: typeof __VLS_export;
  38. type __VLS_WithSlots<T, S> = T & {
  39. new (): {
  40. $slots: S;
  41. };
  42. };
  43. //#endregion
  44. export { _default as default };