@hailin-zheng/editor-core 1.1.26 → 1.1.27

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/index.js CHANGED
@@ -1302,10 +1302,10 @@ class BranchElement extends Element {
1302
1302
  }
1303
1303
  else {
1304
1304
  this.modifyFlag = ModifyFlag$1.Modify;
1305
- clearChildrenRenderCache(this);
1306
- // for (let i = 0; i < this.length; i++) {
1307
- // this.getChild(i).pubOnChange('to-child')
1308
- // }
1305
+ //clearChildrenRenderCache(this);
1306
+ for (let i = 0; i < this.length; i++) {
1307
+ this.getChild(i).pubOnChange('to-child');
1308
+ }
1309
1309
  }
1310
1310
  this._onChangeEvent.next();
1311
1311
  }
@@ -3978,14 +3978,14 @@ class TableRowElement extends BlockContainerElement {
3978
3978
  constructor() {
3979
3979
  super('tr');
3980
3980
  this.props = new TableRowProps();
3981
+ }
3982
+ beginMeasure(data) {
3983
+ super.beginMeasure(data);
3981
3984
  //在差异更新中,由于行内单元格存在合并行的情况,需要将当前行内存在合并的单元格,将其修改标志改为修改
3982
- const changeSub = this.onChangeSubject.subscribe(() => {
3983
- if (this.modifyFlag === ModifyFlag$1.Track) {
3984
- this.checkRowModifyState();
3985
- this.pubOnChange('to-child');
3986
- }
3987
- });
3988
- this.addsubscribe(this, changeSub);
3985
+ if (this.modifyFlag === ModifyFlag$1.Track) {
3986
+ this.checkRowModifyState();
3987
+ this.pubOnChange('to-child');
3988
+ }
3989
3989
  }
3990
3990
  /**
3991
3991
  * 解决纵向合并行的行缓存高度bug
@@ -16511,7 +16511,7 @@ class DocumentChange {
16511
16511
  }
16512
16512
  getCursorElementByDeleteAction(control) {
16513
16513
  const prevLeafElementInPara = ElementUtil.getRecursionPrevSiblingElement(control, false, true, this.viewOptions);
16514
- //判断是否为同一段落
16514
+ //是否为同一段落
16515
16515
  if (prevLeafElementInPara && ElementUtil.isInSameParagraph(prevLeafElementInPara, control)) {
16516
16516
  return {
16517
16517
  ele: prevLeafElementInPara,