yoyo-ng-modulewindy
Version:
服务于52ABP模板的前端开源的相关组件内容。整合了ng-alain和你NG ZORRO的内容
36 lines (35 loc) • 992 B
TypeScript
import { InjectionToken } from '@angular/core';
export declare const DA_XLSX_CONFIG: InjectionToken<XlsxConfig>;
export interface XlsxConfig {
/**
* Xlsx library path
* @default //cdn.bootcss.com/xlsx/0.11.17/xlsx.full.min.js
*/
url?: string;
/**
* Defines which Xlsx optional modules should get loaded, e.g:
* `[ '//cdn.bootcss.com/xlsx/0.11.14/cpexcel.js' ]`
*/
modules?: string[];
}
export interface XlsxExportOptions {
/**
* worksheets in the workbook, e.g:
* - `{ Sheet1: { A1: { t:"n", v:10000 } } }`
* - `[['1'], [1]]`
*/
sheets: {
[sheet: string]: any;
} | XlsxExportSheet[];
/** save file name, default: `export.xlsx` */
filename?: string;
opts?: any;
/** triggers when saveas */
callback?: (wb: any) => void;
}
export interface XlsxExportSheet {
/** arrays to a worksheet */
data: any[][];
/** sheet name */
name?: string;
}