UNPKG

yoyo-ng-modulewindy

Version:

服务于52ABP模板的前端开源的相关组件内容。整合了ng-alain和你NG ZORRO的内容

43 lines (42 loc) 1.31 kB
import { InjectionToken } from '@angular/core'; export declare const DA_ZIP_CONFIG: InjectionToken<ZipConfig>; export interface ZipConfig { /** * Zip library path * @default //cdn.bootcss.com/jszip/3.1.5/jszip.min.js */ url?: string; /** * Defines which zip optional utils should get loaded */ utils?: string[]; } export interface ZipWriteOptions { /** save file name, default: `download.zip` */ filename?: string; options?: any; /** The optional function called on each internal update with the metadata. */ update?: (metadata: any) => void; /** triggers when saveas */ callback?: () => void; } export interface ZipSaveOptions { /** * 指定保存文件名,默认 `download.zip` */ filename?: string; /** * JSZip `generateAsync` 方法的 `options` 选项 * @see https://stuk.github.io/jszip/documentation/api_jszip/generate_async.html */ options?: any; /** * JSZip `generateAsync` 方法的 `onUpdate` 回调 * @see https://stuk.github.io/jszip/documentation/api_jszip/generate_async.html */ update?: (percent: number, currentFile: string) => void; /** * 保存前回调方法 */ callback?: (blob: Blob) => void; }