有谁解决了吗?这个问题拖了一年了,都没有解决!
node-xlsx导出excel设置样式不生效?[图片][图片][图片] 因为是从网上找的方法,也不知道是写错了,还是本来就不行,一个很简单的demo,找了一个下午也没找到相关的问题,你们导出是如何设置样式的
2022-08-16alignmen少了t
在云函数中设置了单元格内容居中但excel表格为什么不改变?const cloud = require('wx-server-sdk') cloud.init({ env: "cloud1-2geukr2red49cb1b" }) const xlsx = require('node-xlsx'); exports.main = async (event, context) => { try { let dataCVS = '单.xlsx' let s={alignmen:{ horizontal:"center", vertical:"center", wrapText:true, } }; let data = [ [{v:'起重机维修保养派工单',s}], ]; const sheetOptions = {'!merges': [{s: {c: 0, r: 0}, e: {c: 3, r: 0}},{s: {c: 1, r: 2}, e: {c: 3, r: 2}},{s: {c: 1, r: 3}, e: {c: 3, r: 3}},{s: {c: 0, r: 4}, e: {c: 0, r: 12}},{s: {c: 1, r: 4}, e: {c: 3, r: 12}},{s: {c: 0, r: 15}, e: {c:0, r: 16}},{s: {c: 1, r: 15}, e: {c:3, r: 16}},{s: {c: 0, r: 18}, e: {c: 0, r: 20}},{s: {c: 1, r: 18}, e: {c: 1, r: 20}},{s: {c: 2, r: 18}, e: {c: 2, r: 20}},{s: {c: 3, r: 18}, e: {c: 3, r: 20}},{s: {c: 1, r: 21}, e: {c: 3, r: 21}},{s: {c: 1, r: 22}, e: {c: 3, r: 22}},{s: {c: 1, r: 23}, e: {c: 3, r: 23}}],'!cols': [{wch: 18}, {wch: 18}, {wch: 18}, {wch: 18}]}; var buffer = await xlsx.build([{name: 'mySheetName', data: data}], {sheetOptions}); return await cloud.uploadFile({ cloudPath: dataCVS, fileContent: buffer, }) } catch (e) {} console.error(e) return e } [图片]
2022-08-15我也出现同样的问题
wx.onBLECharacteristicValueChange在安卓手机上偶尔不回调?wx.onBLECharacteristicValueChange在我用ios手机调试时数据监听都能收到,但是在安卓手机上却会出现无法执行的问题,wx.notifyBLECharacteristicValueChang调用是成功的
2022-01-29