rapid-spreadjs 1.0.92 → 1.0.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -645,6 +645,10 @@ const SheetUtils = {
645
645
  (getType == 2 && (value == null || value == undefined || value == '')) ||
646
646
  (getType == 3 && formula)) {
647
647
  retCells.push(cell);
648
+ // 如果为无值类型,则设置单元格格式为文本格式
649
+ if (getType == 2 && (value == null || value == undefined || value == '')) {
650
+ sheet.setFormatter(0, 0, '@');
651
+ }
648
652
  }
649
653
  });
650
654
  // 辅助函数:将列索引转为大写字母(如 0->A, 1->B, 26->AA)