@fileverse-dev/fortune-core 1.2.90-ydoc → 1.2.90-ydoc-1
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/cell.js +3 -1
- package/lib/modules/cell.js +3 -1
- package/package.json +1 -1
package/es/modules/cell.js
CHANGED
|
@@ -352,7 +352,9 @@ export function setCellValue(ctx, r, c, d, v) {
|
|
|
352
352
|
ctx.luckysheet_selection_range = [];
|
|
353
353
|
}
|
|
354
354
|
if (ctx.hooks.afterUpdateCell) {
|
|
355
|
-
|
|
355
|
+
var newCell = _.isPlainObject(cell) ? __assign({}, cell) : cell;
|
|
356
|
+
console.log("newCell ======== newCell", newCell, _.isPlainObject(cell));
|
|
357
|
+
(_o = (_m = ctx.hooks).afterUpdateCell) === null || _o === void 0 ? void 0 : _o.call(_m, r, c, null, newCell);
|
|
356
358
|
}
|
|
357
359
|
}
|
|
358
360
|
export function getRealCellValue(r, c, data, attr) {
|
package/lib/modules/cell.js
CHANGED
|
@@ -385,7 +385,9 @@ function setCellValue(ctx, r, c, d, v) {
|
|
|
385
385
|
ctx.luckysheet_selection_range = [];
|
|
386
386
|
}
|
|
387
387
|
if (ctx.hooks.afterUpdateCell) {
|
|
388
|
-
|
|
388
|
+
var newCell = _lodash.default.isPlainObject(cell) ? __assign({}, cell) : cell;
|
|
389
|
+
console.log("newCell ======== newCell", newCell, _lodash.default.isPlainObject(cell));
|
|
390
|
+
(_o = (_m = ctx.hooks).afterUpdateCell) === null || _o === void 0 ? void 0 : _o.call(_m, r, c, null, newCell);
|
|
389
391
|
}
|
|
390
392
|
}
|
|
391
393
|
function getRealCellValue(r, c, data, attr) {
|