@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-cjs.js CHANGED
@@ -1331,10 +1331,10 @@ class BranchElement extends Element {
1331
1331
  }
1332
1332
  else {
1333
1333
  this.modifyFlag = exports.ModifyFlag.Modify;
1334
- clearChildrenRenderCache(this);
1335
- // for (let i = 0; i < this.length; i++) {
1336
- // this.getChild(i).pubOnChange('to-child')
1337
- // }
1334
+ //clearChildrenRenderCache(this);
1335
+ for (let i = 0; i < this.length; i++) {
1336
+ this.getChild(i).pubOnChange('to-child');
1337
+ }
1338
1338
  }
1339
1339
  this._onChangeEvent.next();
1340
1340
  }
@@ -4007,14 +4007,14 @@ class TableRowElement extends BlockContainerElement {
4007
4007
  constructor() {
4008
4008
  super('tr');
4009
4009
  this.props = new TableRowProps();
4010
+ }
4011
+ beginMeasure(data) {
4012
+ super.beginMeasure(data);
4010
4013
  //在差异更新中,由于行内单元格存在合并行的情况,需要将当前行内存在合并的单元格,将其修改标志改为修改
4011
- const changeSub = this.onChangeSubject.subscribe(() => {
4012
- if (this.modifyFlag === exports.ModifyFlag.Track) {
4013
- this.checkRowModifyState();
4014
- this.pubOnChange('to-child');
4015
- }
4016
- });
4017
- this.addsubscribe(this, changeSub);
4014
+ if (this.modifyFlag === exports.ModifyFlag.Track) {
4015
+ this.checkRowModifyState();
4016
+ this.pubOnChange('to-child');
4017
+ }
4018
4018
  }
4019
4019
  /**
4020
4020
  * 解决纵向合并行的行缓存高度bug
@@ -16540,7 +16540,7 @@ class DocumentChange {
16540
16540
  }
16541
16541
  getCursorElementByDeleteAction(control) {
16542
16542
  const prevLeafElementInPara = ElementUtil.getRecursionPrevSiblingElement(control, false, true, this.viewOptions);
16543
- //判断是否为同一段落
16543
+ //是否为同一段落
16544
16544
  if (prevLeafElementInPara && ElementUtil.isInSameParagraph(prevLeafElementInPara, control)) {
16545
16545
  return {
16546
16546
  ele: prevLeafElementInPara,