@fileverse-dev/fortune-core 1.1.11-patch-2 → 1.1.11-patch-4
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/events/paste.js +13 -4
- package/lib/events/paste.js +13 -4
- package/package.json +1 -1
package/es/events/paste.js
CHANGED
|
@@ -890,16 +890,25 @@ function pasteHandlerOfCopyPaste(ctx, copyRange) {
|
|
|
890
890
|
}
|
|
891
891
|
var funcV = execfunction(ctx, func, h, c, undefined, undefined, true);
|
|
892
892
|
var afterUpdateCell = ctx.hooks.afterUpdateCell;
|
|
893
|
-
console.log("REACHED HERE FINALLY", afterUpdateCell,
|
|
894
|
-
|
|
893
|
+
console.log("REACHED HERE FINALLY", afterUpdateCell, __assign(__assign({}, value), {
|
|
894
|
+
v: arr.length === 1 ? funcV[1] : value.v,
|
|
895
|
+
m: arr.length === 1 ? "[object Promise]" : funcV[1]
|
|
896
|
+
}));
|
|
897
|
+
if (afterUpdateCell) {
|
|
895
898
|
afterUpdateCell(h, c, null, __assign(__assign({}, value), {
|
|
896
|
-
v: funcV[1],
|
|
897
|
-
m: "[object Promise]"
|
|
899
|
+
v: arr.length === 1 ? funcV[1] : value.v,
|
|
900
|
+
m: arr.length === 1 ? "[object Promise]" : funcV[1]
|
|
898
901
|
}));
|
|
899
902
|
}
|
|
900
903
|
if (!_.isNil(value.spl)) {}
|
|
901
904
|
}
|
|
902
905
|
x[c] = _.cloneDeep(value);
|
|
906
|
+
console.log({
|
|
907
|
+
d: d,
|
|
908
|
+
c: c,
|
|
909
|
+
x: x,
|
|
910
|
+
h: h
|
|
911
|
+
});
|
|
903
912
|
if (value != null && copyHasMC && ((_g = x === null || x === void 0 ? void 0 : x[c]) === null || _g === void 0 ? void 0 : _g.mc)) {
|
|
904
913
|
if (((_j = (_h = x === null || x === void 0 ? void 0 : x[c]) === null || _h === void 0 ? void 0 : _h.mc) === null || _j === void 0 ? void 0 : _j.rs) != null) {
|
|
905
914
|
x[c].mc.r = h;
|
package/lib/events/paste.js
CHANGED
|
@@ -899,16 +899,25 @@ function pasteHandlerOfCopyPaste(ctx, copyRange) {
|
|
|
899
899
|
}
|
|
900
900
|
var funcV = (0, _formula.execfunction)(ctx, func, h, c, undefined, undefined, true);
|
|
901
901
|
var afterUpdateCell = ctx.hooks.afterUpdateCell;
|
|
902
|
-
console.log("REACHED HERE FINALLY", afterUpdateCell,
|
|
903
|
-
|
|
902
|
+
console.log("REACHED HERE FINALLY", afterUpdateCell, __assign(__assign({}, value), {
|
|
903
|
+
v: arr.length === 1 ? funcV[1] : value.v,
|
|
904
|
+
m: arr.length === 1 ? "[object Promise]" : funcV[1]
|
|
905
|
+
}));
|
|
906
|
+
if (afterUpdateCell) {
|
|
904
907
|
afterUpdateCell(h, c, null, __assign(__assign({}, value), {
|
|
905
|
-
v: funcV[1],
|
|
906
|
-
m: "[object Promise]"
|
|
908
|
+
v: arr.length === 1 ? funcV[1] : value.v,
|
|
909
|
+
m: arr.length === 1 ? "[object Promise]" : funcV[1]
|
|
907
910
|
}));
|
|
908
911
|
}
|
|
909
912
|
if (!_lodash.default.isNil(value.spl)) {}
|
|
910
913
|
}
|
|
911
914
|
x[c] = _lodash.default.cloneDeep(value);
|
|
915
|
+
console.log({
|
|
916
|
+
d: d,
|
|
917
|
+
c: c,
|
|
918
|
+
x: x,
|
|
919
|
+
h: h
|
|
920
|
+
});
|
|
912
921
|
if (value != null && copyHasMC && ((_g = x === null || x === void 0 ? void 0 : x[c]) === null || _g === void 0 ? void 0 : _g.mc)) {
|
|
913
922
|
if (((_j = (_h = x === null || x === void 0 ? void 0 : x[c]) === null || _h === void 0 ? void 0 : _h.mc) === null || _j === void 0 ? void 0 : _j.rs) != null) {
|
|
914
923
|
x[c].mc.r = h;
|