我正在使用nodejs excel-export导出xlsx报告。我想为列设置自定义,并按照https://www.npmjs.com/package/excel-export上的文档设置
之类的宽度 {
caption: key,
captionStyleIndex: conf.captionStyleIndex || 0,
type: me.getType(jsonArr[0][key], types[i]),
beforeCellWrite: function (row, cellData, eOpt) {
eOpt.cellType = me.getType(cellData, types[i]);
eOpt.styleIndex = conf.styleIndex || null;
return cellData;
}
width:key.length
};
但是它并没有反映在导出的图纸中。我想念什么吗?