@fileverse-dev/fortune-core 1.3.7-dateImport-1 → 1.3.8-test

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.
@@ -264,6 +264,7 @@ export function setCellValue(ctx, r, c, d, v) {
264
264
  cell.m = mask.toString();
265
265
  }
266
266
  }
267
+ cell.ht = 2;
267
268
  }
268
269
  } else if (!_.isNil(cell.ct) && cell.ct.fa === "@") {
269
270
  cell.m = vupdateStr;
@@ -43,16 +43,19 @@ export function updateFormatCell(ctx, d, attr, foucsStatus, row_st, row_ed, col_
43
43
  if (_.isNil(value)) {
44
44
  if (!_.isNil(d[r])) {
45
45
  if (_.isNil(d[r][c])) {
46
- d[r][c] = {
46
+ var minimal = {
47
47
  ct: {
48
48
  fa: foucsStatus,
49
49
  t: type
50
50
  }
51
51
  };
52
+ if (type === "n") minimal.ht = 2;
53
+ d[r][c] = minimal;
52
54
  } else if (_.isPlainObject(d[r][c])) {
53
55
  if (_.isNil(d[r][c].ct)) d[r][c].ct = {};
54
56
  d[r][c].ct.fa = foucsStatus;
55
57
  d[r][c].ct.t = type;
58
+ if (type === "n") d[r][c].ht = 2;
56
59
  }
57
60
  }
58
61
  continue;
@@ -297,6 +297,7 @@ function setCellValue(ctx, r, c, d, v) {
297
297
  cell.m = mask.toString();
298
298
  }
299
299
  }
300
+ cell.ht = 2;
300
301
  }
301
302
  } else if (!_lodash.default.isNil(cell.ct) && cell.ct.fa === "@") {
302
303
  cell.m = vupdateStr;
@@ -76,16 +76,19 @@ function updateFormatCell(ctx, d, attr, foucsStatus, row_st, row_ed, col_st, col
76
76
  if (_lodash.default.isNil(value)) {
77
77
  if (!_lodash.default.isNil(d[r])) {
78
78
  if (_lodash.default.isNil(d[r][c])) {
79
- d[r][c] = {
79
+ var minimal = {
80
80
  ct: {
81
81
  fa: foucsStatus,
82
82
  t: type
83
83
  }
84
84
  };
85
+ if (type === "n") minimal.ht = 2;
86
+ d[r][c] = minimal;
85
87
  } else if (_lodash.default.isPlainObject(d[r][c])) {
86
88
  if (_lodash.default.isNil(d[r][c].ct)) d[r][c].ct = {};
87
89
  d[r][c].ct.fa = foucsStatus;
88
90
  d[r][c].ct.t = type;
91
+ if (type === "n") d[r][c].ht = 2;
89
92
  }
90
93
  }
91
94
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.3.7-dateImport-1",
3
+ "version": "1.3.8-test",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "typings": "lib/index.d.ts",