@fileverse-dev/fortune-core 1.0.44 → 1.0.46
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/selection.js
CHANGED
|
@@ -1481,6 +1481,7 @@ export function copy(ctx) {
|
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
1483
1483
|
export function deleteSelectedCellText(ctx) {
|
|
1484
|
+
var _a;
|
|
1484
1485
|
var allowEdit = isAllowEdit(ctx);
|
|
1485
1486
|
if (allowEdit === false) {
|
|
1486
1487
|
return "allowEdit";
|
|
@@ -1520,7 +1521,7 @@ export function deleteSelectedCellText(ctx) {
|
|
|
1520
1521
|
delFunctionGroup(ctx, r, c, ctx.currentSheetId);
|
|
1521
1522
|
delete cell.spl;
|
|
1522
1523
|
}
|
|
1523
|
-
if (cell.ct != null && cell.ct.t === "inlineStr") {
|
|
1524
|
+
if (cell.ct != null && (cell.ct.t === "inlineStr" || ((_a = cell.ct.fa) === null || _a === void 0 ? void 0 : _a.includes("BTC")))) {
|
|
1524
1525
|
delete cell.ct;
|
|
1525
1526
|
}
|
|
1526
1527
|
} else {
|
package/lib/modules/selection.js
CHANGED
|
@@ -1510,6 +1510,7 @@ function copy(ctx) {
|
|
|
1510
1510
|
}
|
|
1511
1511
|
}
|
|
1512
1512
|
function deleteSelectedCellText(ctx) {
|
|
1513
|
+
var _a;
|
|
1513
1514
|
var allowEdit = (0, _utils.isAllowEdit)(ctx);
|
|
1514
1515
|
if (allowEdit === false) {
|
|
1515
1516
|
return "allowEdit";
|
|
@@ -1549,7 +1550,7 @@ function deleteSelectedCellText(ctx) {
|
|
|
1549
1550
|
(0, _formula.delFunctionGroup)(ctx, r, c, ctx.currentSheetId);
|
|
1550
1551
|
delete cell.spl;
|
|
1551
1552
|
}
|
|
1552
|
-
if (cell.ct != null && cell.ct.t === "inlineStr") {
|
|
1553
|
+
if (cell.ct != null && (cell.ct.t === "inlineStr" || ((_a = cell.ct.fa) === null || _a === void 0 ? void 0 : _a.includes("BTC")))) {
|
|
1553
1554
|
delete cell.ct;
|
|
1554
1555
|
}
|
|
1555
1556
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fileverse-dev/fortune-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.46",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dev": "father-build --watch"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@fileverse-dev/formula-parser": "0.2.
|
|
18
|
+
"@fileverse-dev/formula-parser": "0.2.37",
|
|
19
19
|
"dayjs": "^1.11.0",
|
|
20
20
|
"immer": "^9.0.12",
|
|
21
21
|
"lodash": "^4.17.21",
|