@fileverse-dev/fortune-core 1.3.7 → 1.3.8
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/es/modules/cell.js +1 -0
- package/es/modules/toolbar.js +4 -1
- package/lib/modules/cell.js +1 -0
- package/lib/modules/toolbar.js +4 -1
- package/package.json +1 -1
package/es/modules/cell.js
CHANGED
package/es/modules/toolbar.js
CHANGED
|
@@ -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
|
-
|
|
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;
|
package/lib/modules/cell.js
CHANGED
package/lib/modules/toolbar.js
CHANGED
|
@@ -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
|
-
|
|
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;
|