@fileverse-dev/fortune-core 1.2.76 → 1.2.77-patch-2
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.
|
@@ -1009,9 +1009,10 @@ export function getComputeMap(ctx) {
|
|
|
1009
1009
|
var ruleArr = ((_a = ctx.luckysheetfile[index]) === null || _a === void 0 ? void 0 : _a.luckysheet_conditionformat_save) ? __spreadArray([], (_b = ctx.luckysheetfile[index]) === null || _b === void 0 ? void 0 : _b.luckysheet_conditionformat_save, true) : [];
|
|
1010
1010
|
var data = ctx.luckysheetfile[index].data;
|
|
1011
1011
|
if (_.isNil(data)) return null;
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1012
|
+
var editKey = (_c = ctx.luckysheetfile[index].conditionRules) === null || _c === void 0 ? void 0 : _c.editKey;
|
|
1013
|
+
console.log("before", editKey, ruleArr);
|
|
1014
|
+
if (ctx.luckysheet_select_save && ((_d = ctx.luckysheetfile[index].conditionRules) === null || _d === void 0 ? void 0 : _d.rulesValue) !== "") {
|
|
1015
|
+
if (editKey !== null && editKey !== undefined) {
|
|
1015
1016
|
ruleArr.splice(Number(editKey), 1);
|
|
1016
1017
|
}
|
|
1017
1018
|
ruleArr.push({
|
|
@@ -1030,6 +1031,7 @@ export function getComputeMap(ctx) {
|
|
|
1030
1031
|
conditionValue: [(_m = ctx.luckysheetfile[index].conditionRules) === null || _m === void 0 ? void 0 : _m.rulesValue]
|
|
1031
1032
|
});
|
|
1032
1033
|
}
|
|
1034
|
+
console.log("after", editKey, ruleArr);
|
|
1033
1035
|
var computeMap = compute(ctx, ruleArr, data);
|
|
1034
1036
|
return computeMap;
|
|
1035
1037
|
}
|
|
@@ -1024,9 +1024,10 @@ function getComputeMap(ctx) {
|
|
|
1024
1024
|
var ruleArr = ((_a = ctx.luckysheetfile[index]) === null || _a === void 0 ? void 0 : _a.luckysheet_conditionformat_save) ? __spreadArray([], (_b = ctx.luckysheetfile[index]) === null || _b === void 0 ? void 0 : _b.luckysheet_conditionformat_save, true) : [];
|
|
1025
1025
|
var data = ctx.luckysheetfile[index].data;
|
|
1026
1026
|
if (_lodash.default.isNil(data)) return null;
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1027
|
+
var editKey = (_c = ctx.luckysheetfile[index].conditionRules) === null || _c === void 0 ? void 0 : _c.editKey;
|
|
1028
|
+
console.log("before", editKey, ruleArr);
|
|
1029
|
+
if (ctx.luckysheet_select_save && ((_d = ctx.luckysheetfile[index].conditionRules) === null || _d === void 0 ? void 0 : _d.rulesValue) !== "") {
|
|
1030
|
+
if (editKey !== null && editKey !== undefined) {
|
|
1030
1031
|
ruleArr.splice(Number(editKey), 1);
|
|
1031
1032
|
}
|
|
1032
1033
|
ruleArr.push({
|
|
@@ -1045,6 +1046,7 @@ function getComputeMap(ctx) {
|
|
|
1045
1046
|
conditionValue: [(_m = ctx.luckysheetfile[index].conditionRules) === null || _m === void 0 ? void 0 : _m.rulesValue]
|
|
1046
1047
|
});
|
|
1047
1048
|
}
|
|
1049
|
+
console.log("after", editKey, ruleArr);
|
|
1048
1050
|
var computeMap = compute(ctx, ruleArr, data);
|
|
1049
1051
|
return computeMap;
|
|
1050
1052
|
}
|