(datasheetId: string, exportType: string, option: { view?: IViewProperty; mirrorId?: string } = {})
| 302 | * @param option |
| 303 | */ |
| 304 | export const exportDatasheet = (datasheetId: string, exportType: string, option: { view?: IViewProperty; mirrorId?: string } = {}) => { |
| 305 | store.dispatch( |
| 306 | StoreActions.fetchDatasheet(datasheetId, async () => { |
| 307 | await exportDatasheetBase(datasheetId, exportType, option); |
| 308 | }) as any, |
| 309 | ); |
| 310 | }; |
| 311 | |
| 312 | export const exportExcelBase = (workbook: Workbook, fileName: string, extraFunc?: () => void) => { |
| 313 | workbook.xlsx.writeBuffer().then((buffer) => { |
no test coverage detected