@zhenliang/sheet 0.1.86 → 0.1.87
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.
|
@@ -35,7 +35,11 @@ export var sideEffectReducer = {
|
|
|
35
35
|
cell: cell
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
|
|
38
|
+
// 这里需要使用 Promise.resolve() 来确保 cellChangeHandler 在微任务队列中执行
|
|
39
|
+
// 以确保里面的 history 对象是最新
|
|
40
|
+
Promise.resolve().then(function () {
|
|
41
|
+
cellChangeHandler && cellChangeHandler([cell], undefined, 'Edit');
|
|
42
|
+
});
|
|
39
43
|
});
|
|
40
44
|
});
|
|
41
45
|
eventBus.on('cell-create', function (_ref) {
|