upload.d.ts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import { SuperComponent } from '../common/src/index';
  2. import { UploadMpConfig, UploadFile } from './type';
  3. export default class Upload extends SuperComponent {
  4. externalClasses: string[];
  5. options: {
  6. multipleSlots: boolean;
  7. };
  8. data: {
  9. classPrefix: string;
  10. prefix: string;
  11. current: boolean;
  12. proofs: any[];
  13. customFiles: UploadFile[];
  14. customLimit: number;
  15. config: UploadMpConfig;
  16. files: UploadFile[];
  17. max: number;
  18. sizeLimit: number;
  19. requestMethod: any;
  20. gridItemStyle: string;
  21. column: number;
  22. };
  23. properties: import("./type").TdUploadProps;
  24. controlledProps: {
  25. key: string;
  26. event: string;
  27. }[];
  28. observers: {
  29. files(files: UploadFile): void;
  30. max(max: any): void;
  31. gridConfig(): void;
  32. };
  33. onProofTap(e: any): void;
  34. ready(): void;
  35. handleLimit(customFiles: UploadFile[], max: number): void;
  36. uploadFiles(files: UploadFile[]): Promise<unknown>;
  37. startUpload(files: UploadFile[]): Promise<void>;
  38. triggerSuccessEvent(files: any): void;
  39. triggerFailEvent(err: any): void;
  40. onFileClick(e: any): void;
  41. getFileType(mediaType: string[], tempFilePath: string, fileType?: string): string;
  42. getRandFileName(filePath: any): string;
  43. onDelete(e: any): void;
  44. deleteHandle(index: number): void;
  45. updateGrid(): void;
  46. methods: {
  47. onAddTap(): void;
  48. chooseMedia(mediaType: any): void;
  49. chooseMessageFile(mediaType: any): void;
  50. afterSelect(files: any): void;
  51. };
  52. }