export.ts 855 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
/**
 * exportExcel 对象
 * 调用 getInstance() 获取实例
 *
 * @class exportExcel
 */
export class exportExcel {

    /**
     * 获取 exportExcel 单例对象
     *
     * @static
     * @returns {exportExcel}
     * @memberof exportExcel
     */
    public static getInstance(): exportExcel {
        if (!exportExcel.exportExcel) {
          exportExcel.exportExcel = new exportExcel();
        }
        return this.exportExcel;
    }

    /**
     * 单例变量声明
     *
     * @private
     * @static
     * @type {exportExcel}
     * @memberof exportExcel
     */
    private static exportExcel: exportExcel;

    /**
     * 获取导出excel核心包
     * 
     * @memberof exportExcel
     */
    public async exportExcel(){
        let excel:any =  await import("@/utils/export2Excel/Export2Excel");
        return excel;
    }

}