UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

52 lines (51 loc) 1.93 kB
/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { Platform } from '@angular/cdk/platform'; import { ChangeDetectorRef, NgZone, OnChanges, TemplateRef } from '@angular/core'; import { NgClassType, NzSafeAny } from 'ng-zorro-antd/core/types'; import { Observable } from 'rxjs'; import { NzShowUploadList, NzUploadFile, NzUploadListType } from './interface'; declare type UploadListIconType = '' | 'uploading' | 'thumbnail'; interface UploadListFile extends NzUploadFile { isImageUrl?: boolean; isUploading?: boolean; iconType?: UploadListIconType; listItemNameCls?: NgClassType; showDownload?: boolean; } export declare class NzUploadListComponent implements OnChanges { private cdr; private doc; private ngZone; private platform; list: UploadListFile[]; private get showPic(); locale: NzSafeAny; listType: NzUploadListType; set items(list: NzUploadFile[]); icons: NzShowUploadList; onPreview?: (file: NzUploadFile) => void; onRemove: (file: NzUploadFile) => void; onDownload?: (file: NzUploadFile) => void; previewFile?: (file: NzUploadFile) => Observable<string>; previewIsImage?: (file: NzUploadFile) => boolean; iconRender: TemplateRef<NzSafeAny> | null; private genErr; private extname; isImageUrl(file: NzUploadFile): boolean; private getIconType; private previewImage; private genThumb; private listItemNameCls; private showDownload; private fixData; handlePreview(file: NzUploadFile, e: Event): void; handleRemove(file: NzUploadFile, e: Event): void; handleDownload(file: NzUploadFile): void; constructor(cdr: ChangeDetectorRef, doc: NzSafeAny, ngZone: NgZone, platform: Platform); detectChanges(): void; ngOnChanges(): void; } export {};