UNPKG

@yelon/abc

Version:

Common business components of ng-yunzai.

27 lines (26 loc) 892 B
import { YunzaiConfigService } from '@yelon/util/config'; import { XlsxExportOptions, XlsxExportResult } from './xlsx.types'; import * as i0 from "@angular/core"; export declare class XlsxService { private readonly http; private readonly lazy; private readonly ngZone; private cog; constructor(configSrv: YunzaiConfigService); private init; private read; /** * 导入Excel并输出JSON,支持 `<input type="file">`、URL 形式 */ import(fileOrUrl: File | string): Promise<Record<string, any[][]>>; export(options: XlsxExportOptions): Promise<XlsxExportResult>; /** * 数据转符号名 * - `1` => `A` * - `27` => `AA` * - `703` => `AAA` */ numberToSchema(val: number): string; static ɵfac: i0.ɵɵFactoryDeclaration<XlsxService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<XlsxService>; }