@leankylin-sheet/core 7.0.15 → 7.0.16
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.esm.js +6 -1
- package/dist/index.js +6 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -48414,8 +48414,10 @@ function updateFormatCell(ctx, d, attr, foucsStatus, row_st, row_ed, col_st, col
|
|
|
48414
48414
|
} else {
|
|
48415
48415
|
value = cell;
|
|
48416
48416
|
}
|
|
48417
|
+
var isNumberType = false;
|
|
48417
48418
|
if (foucsStatus !== "@" && isRealNum(value)) {
|
|
48418
|
-
value = Number(value);
|
|
48419
|
+
value = typeof value === "string" ? Number(value.trim()) : Number(value);
|
|
48420
|
+
isNumberType = true;
|
|
48419
48421
|
}
|
|
48420
48422
|
var mask = update(foucsStatus, value);
|
|
48421
48423
|
var type = "n";
|
|
@@ -48429,6 +48431,9 @@ function updateFormatCell(ctx, d, attr, foucsStatus, row_st, row_ed, col_st, col
|
|
|
48429
48431
|
type = isRealNum(value) ? "n" : "g";
|
|
48430
48432
|
}
|
|
48431
48433
|
if (cell && _.isPlainObject(cell)) {
|
|
48434
|
+
if (isNumberType) {
|
|
48435
|
+
cell.v = value;
|
|
48436
|
+
}
|
|
48432
48437
|
cell.m = "".concat(mask);
|
|
48433
48438
|
if (_.isNil(cell.ct)) {
|
|
48434
48439
|
cell.ct = {};
|
package/dist/index.js
CHANGED
|
@@ -48424,8 +48424,10 @@ function updateFormatCell(ctx, d, attr, foucsStatus, row_st, row_ed, col_st, col
|
|
|
48424
48424
|
} else {
|
|
48425
48425
|
value = cell;
|
|
48426
48426
|
}
|
|
48427
|
+
var isNumberType = false;
|
|
48427
48428
|
if (foucsStatus !== "@" && isRealNum(value)) {
|
|
48428
|
-
value = Number(value);
|
|
48429
|
+
value = typeof value === "string" ? Number(value.trim()) : Number(value);
|
|
48430
|
+
isNumberType = true;
|
|
48429
48431
|
}
|
|
48430
48432
|
var mask = update(foucsStatus, value);
|
|
48431
48433
|
var type = "n";
|
|
@@ -48439,6 +48441,9 @@ function updateFormatCell(ctx, d, attr, foucsStatus, row_st, row_ed, col_st, col
|
|
|
48439
48441
|
type = isRealNum(value) ? "n" : "g";
|
|
48440
48442
|
}
|
|
48441
48443
|
if (cell && ___default['default'].isPlainObject(cell)) {
|
|
48444
|
+
if (isNumberType) {
|
|
48445
|
+
cell.v = value;
|
|
48446
|
+
}
|
|
48442
48447
|
cell.m = "".concat(mask);
|
|
48443
48448
|
if (___default['default'].isNil(cell.ct)) {
|
|
48444
48449
|
cell.ct = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leankylin-sheet/core",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.16",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"build": "father-build"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@leankylin-sheet/formula-parser": "7.0.
|
|
16
|
+
"@leankylin-sheet/formula-parser": "7.0.16",
|
|
17
17
|
"dayjs": "^1.11.0",
|
|
18
18
|
"immer": "^9.0.12",
|
|
19
19
|
"lodash": "^4.17.21",
|