UNPKG

yoyo-ng-modulewindy

Version:

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

21 lines (20 loc) 830 B
import { HttpClient } from '@angular/common/http'; import { LazyService } from 'yoyo-ng-module/util'; import { XlsxExportOptions, XlsxConfig } from './interface'; export declare class XlsxService { private config; private http; private lazy; constructor(config: XlsxConfig, http: HttpClient, lazy: LazyService); private init(); private read(wb); /** * 导入Excel并输出JSON,支持 `<input type="file">`、URL 形式 * @param rABS 加载数据方式 `readAsBinaryString` (默认) 或 `readAsArrayBuffer`,[更多细节](http://t.cn/R3n63A0) */ import(fileOrUrl: File | string, rABS?: 'readAsBinaryString' | 'readAsArrayBuffer'): Promise<{ [key: string]: any[][]; }>; /** 导出 */ export(options: XlsxExportOptions): Promise<void>; }