import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; import { Observable, Subscription } from "rxjs"; import { NzUploadComponent, NzUploadFile } from "ng-zorro-antd/upload"; import { HttpClient } from "@angular/common/http"; import { FileLibConfig } from "../file-lib-config"; import { NzNotificationService } from "ng-zorro-antd/notification"; import { YxFileCenterLibService } from "../yx-file-center-lib.service"; import { VideoUploadService } from "../vod/video-upload.service"; export declare class FileUploadMultipleComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy { private http; private fileLibConfig; private message; private videoUploadService; private yxFileCenterLibService; uploader: any; btnId: string; container: ElementRef; yxUpload: NzUploadComponent; aclp: number; unZip: number; site: number; showButton: boolean; fileTypeName: string; showFileSuffix: boolean; fileList: any[]; type: string[]; showUploadList: boolean; uploadLoading: boolean; fileTypeArr: { all: { type: string; name: string; suffix: string; }; image: { name: string; suffix: string; type: string; }; audio: { type: string; name: string; suffix: string; }; video: { type: string; name: string; suffix: string; }; word: { type: string; name: string; suffix: string; }; excel: { type: string; name: string; suffix: string; }; ppt: { type: string; name: string; suffix: string; }; pdf: { type: string; name: string; suffix: string; }; txt: { type: string; name: string; suffix: string; }; zip: { type: string; name: string; suffix: string; }; vr: { type: string; name: string; suffix: string; }; mm: { name: string; suffix: string; type: string; }; zipOnly: { name: string; suffix: string; type: string; }; }; fileType: string; fileSuffix: string; multipleFileList: any[]; multipleUploadXHR: any[]; ossCallBackObj: {}; uploadXHR: {}; uploadIndex: number; progressSubscription: Subscription; uploadSubscription: Subscription; failedUploadSubscription: Subscription; multipleFileChange: EventEmitter; constructor(http: HttpClient, fileLibConfig: FileLibConfig, message: NzNotificationService, videoUploadService: VideoUploadService, yxFileCenterLibService: YxFileCenterLibService); ngOnInit(): void; /** * 传送数据到组件 */ sentDataToPage(): void; /** * ngOnChanges */ ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; /** * 监听选择文件事件 */ customUpload: (item: any) => void; ngAfterViewInit(): void; /** * 自定义上传按钮上传文件 */ customUploadButton(): void; /** * 上传验证 */ beforeUpload: (file: File, fileList: NzUploadFile[]) => Observable; /** * 移除文件 */ removeFile: (file: any) => boolean; /** * 文件已存在,禁止上传 */ fileExist(): void; /** * 上传按钮文本和上传类型限制 */ toBtnText(): void; /** * 根据传入的文件类型转为文件后缀用于oss上传验证 */ toFileSuffix(): string; }