我正在尝试使用Wijmo_FlexGridPdfConverter但在控制台上收到此错误。 错误 找不到模块“。”
- 代码.ts
import * as wjGrid from 'wijmo/wijmo.grid';
import * as wjcPDF from 'wijmo/wijmo.pdf';
import * as wjcGridPDF from "wijmo/wijmo.grid.pdf";
import * as wjcCore from 'wijmo/wijmo';
@ViewChild('flexDetail') flexDetail: wjGrid.FlexGrid;
public exportToPdf(){
wjcGridPDF.FlexGridPdfConverter.export(this.flexDetail, 'CDC-Reconcilation.pdf', {
maxPages: 10,
documentOptions: {
header: { declarative: { text: '\t&[Page] of &[Pages]' } },
footer: { declarative: { text: '\t&[Page] of &[Pages]' } },
info: { author: 'C1', title: 'CDC-Reconcilation' }
},
styles: {
cellStyle: { backgroundColor: '#ffffff', borderColor: '#c6c6c6' },
headerCellStyle: { backgroundColor: '#eaeaea' }
}
});
}