@hailin-zheng/editor-core 1.1.35 → 1.1.36
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 +13 -2
- package/index-cjs.js.map +1 -1
- package/index.js +13 -3
- package/index.js.map +1 -1
- package/med_editor/framework/element-define.d.ts +1 -0
- package/package.json +1 -1
package/index-cjs.js
CHANGED
@@ -1368,6 +1368,16 @@ function clearChildrenRenderCache(ele) {
|
|
1368
1368
|
}
|
1369
1369
|
}
|
1370
1370
|
}
|
1371
|
+
function setChildrenModifyFlag(modifyFlag, ele) {
|
1372
|
+
ele.modifyFlag = modifyFlag;
|
1373
|
+
for (let i = 0; i < ele.length; i++) {
|
1374
|
+
const curr = ele.getChild(i);
|
1375
|
+
curr.modifyFlag = modifyFlag;
|
1376
|
+
if (curr instanceof BranchElement) {
|
1377
|
+
setChildrenModifyFlag(modifyFlag, curr);
|
1378
|
+
}
|
1379
|
+
}
|
1380
|
+
}
|
1371
1381
|
/**
|
1372
1382
|
* 行内编组元素
|
1373
1383
|
*/
|
@@ -4036,7 +4046,7 @@ class TableRowElement extends BlockContainerElement {
|
|
4036
4046
|
//在差异更新中,由于行内单元格存在合并行的情况,需要将当前行内存在合并的单元格,将其修改标志改为修改
|
4037
4047
|
if (this.modifyFlag === exports.ModifyFlag.Track) {
|
4038
4048
|
this.checkRowModifyState();
|
4039
|
-
this.pubOnChange('to-child');
|
4049
|
+
//this.pubOnChange('to-child');
|
4040
4050
|
}
|
4041
4051
|
}
|
4042
4052
|
/**
|
@@ -4055,7 +4065,7 @@ class TableRowElement extends BlockContainerElement {
|
|
4055
4065
|
const endRowIndex = TableUtil.getVMergeEndIndex(tb, currRowIndex, i);
|
4056
4066
|
const startRowIndex = TableUtil.getVMergeStartIndex(tb, currRowIndex, i);
|
4057
4067
|
for (let j = startRowIndex; j <= endRowIndex; j++) {
|
4058
|
-
|
4068
|
+
setChildrenModifyFlag(exports.ModifyFlag.Modify, tb.getChild(j));
|
4059
4069
|
}
|
4060
4070
|
}
|
4061
4071
|
}
|
@@ -22281,6 +22291,7 @@ exports.printDocOnContextmenu = printDocOnContextmenu;
|
|
22281
22291
|
exports.printNodes = printNodes;
|
22282
22292
|
exports.reactiveMap = reactiveMap;
|
22283
22293
|
exports.runTextLineRender = runTextLineRender;
|
22294
|
+
exports.setChildrenModifyFlag = setChildrenModifyFlag;
|
22284
22295
|
exports.setDataElementProps = setDataElementProps;
|
22285
22296
|
exports.setNotifyChangedCallback = setNotifyChangedCallback;
|
22286
22297
|
exports.targetMaps = targetMaps;
|