@fileverse-dev/fortune-core 1.2.81-yield → 1.2.81
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.
|
@@ -270,6 +270,7 @@ export function setConditionRules(ctx, protection, generalDialog, conditionforma
|
|
|
270
270
|
};
|
|
271
271
|
var index = getSheetIndex(ctx, ctx.currentSheetId);
|
|
272
272
|
var ruleArr = (_b = ctx.luckysheetfile[index].luckysheet_conditionformat_save) !== null && _b !== void 0 ? _b : [];
|
|
273
|
+
console.log(rule, ruleArr, editKey, edit);
|
|
273
274
|
if (edit) {
|
|
274
275
|
ruleArr.splice(Number(editKey), 1, rule);
|
|
275
276
|
} else {
|
|
@@ -1013,6 +1014,7 @@ export function getComputeMap(ctx) {
|
|
|
1013
1014
|
var data = ctx.luckysheetfile[index].data;
|
|
1014
1015
|
if (_.isNil(data)) return null;
|
|
1015
1016
|
var editKey = (_c = ctx.luckysheetfile[index].conditionRules) === null || _c === void 0 ? void 0 : _c.editKey;
|
|
1017
|
+
console.log("before", editKey, ruleArr);
|
|
1016
1018
|
if (ctx.luckysheet_select_save && ((_d = ctx.luckysheetfile[index].conditionRules) === null || _d === void 0 ? void 0 : _d.rulesValue) !== "") {
|
|
1017
1019
|
if (editKey !== null && editKey !== undefined) {
|
|
1018
1020
|
ruleArr.splice(Number(editKey), 1);
|
|
@@ -1033,6 +1035,7 @@ export function getComputeMap(ctx) {
|
|
|
1033
1035
|
conditionValue: [(_m = ctx.luckysheetfile[index].conditionRules) === null || _m === void 0 ? void 0 : _m.rulesValue]
|
|
1034
1036
|
});
|
|
1035
1037
|
}
|
|
1038
|
+
console.log("after", editKey, ruleArr);
|
|
1036
1039
|
var computeMap = compute(ctx, ruleArr, data);
|
|
1037
1040
|
return computeMap;
|
|
1038
1041
|
}
|
|
@@ -285,6 +285,7 @@ function setConditionRules(ctx, protection, generalDialog, conditionformat, rule
|
|
|
285
285
|
};
|
|
286
286
|
var index = (0, _utils.getSheetIndex)(ctx, ctx.currentSheetId);
|
|
287
287
|
var ruleArr = (_b = ctx.luckysheetfile[index].luckysheet_conditionformat_save) !== null && _b !== void 0 ? _b : [];
|
|
288
|
+
console.log(rule, ruleArr, editKey, edit);
|
|
288
289
|
if (edit) {
|
|
289
290
|
ruleArr.splice(Number(editKey), 1, rule);
|
|
290
291
|
} else {
|
|
@@ -1028,6 +1029,7 @@ function getComputeMap(ctx) {
|
|
|
1028
1029
|
var data = ctx.luckysheetfile[index].data;
|
|
1029
1030
|
if (_lodash.default.isNil(data)) return null;
|
|
1030
1031
|
var editKey = (_c = ctx.luckysheetfile[index].conditionRules) === null || _c === void 0 ? void 0 : _c.editKey;
|
|
1032
|
+
console.log("before", editKey, ruleArr);
|
|
1031
1033
|
if (ctx.luckysheet_select_save && ((_d = ctx.luckysheetfile[index].conditionRules) === null || _d === void 0 ? void 0 : _d.rulesValue) !== "") {
|
|
1032
1034
|
if (editKey !== null && editKey !== undefined) {
|
|
1033
1035
|
ruleArr.splice(Number(editKey), 1);
|
|
@@ -1048,6 +1050,7 @@ function getComputeMap(ctx) {
|
|
|
1048
1050
|
conditionValue: [(_m = ctx.luckysheetfile[index].conditionRules) === null || _m === void 0 ? void 0 : _m.rulesValue]
|
|
1049
1051
|
});
|
|
1050
1052
|
}
|
|
1053
|
+
console.log("after", editKey, ruleArr);
|
|
1051
1054
|
var computeMap = compute(ctx, ruleArr, data);
|
|
1052
1055
|
return computeMap;
|
|
1053
1056
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fileverse-dev/fortune-core",
|
|
3
|
-
"version": "1.2.81
|
|
3
|
+
"version": "1.2.81",
|
|
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.89
|
|
18
|
+
"@fileverse-dev/formula-parser": "0.2.89",
|
|
19
19
|
"dayjs": "^1.11.0",
|
|
20
20
|
"immer": "^9.0.12",
|
|
21
21
|
"lodash": "^4.17.21",
|