@hailin-zheng/editor-core 1.1.32 → 1.1.34
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 +11 -6
- package/index-cjs.js.map +1 -1
- package/index.js +11 -6
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index-cjs.js
CHANGED
@@ -1243,6 +1243,7 @@ class BranchElement extends Element {
|
|
1243
1243
|
removeChildByIndex(index) {
|
1244
1244
|
const child = this.chilren[index];
|
1245
1245
|
if (child) {
|
1246
|
+
removeEle(child);
|
1246
1247
|
this.chilren.splice(index, 1);
|
1247
1248
|
this.disposeChild(child);
|
1248
1249
|
}
|
@@ -5274,8 +5275,10 @@ class TableUtil {
|
|
5274
5275
|
currCell.props.hMerge = null;
|
5275
5276
|
}
|
5276
5277
|
if (currCell !== startCell) {
|
5277
|
-
|
5278
|
-
|
5278
|
+
if (currCell.getChildLength() !== 2) {
|
5279
|
+
cellContents.push(...ElementUtil.getChildrenElements(currCell.clone(true)));
|
5280
|
+
currCell.clearItems();
|
5281
|
+
}
|
5279
5282
|
}
|
5280
5283
|
}
|
5281
5284
|
}
|
@@ -11519,7 +11522,8 @@ class ParagraphMeasure {
|
|
11519
11522
|
innerLineRect.line.rect.height = finalLineHeight;
|
11520
11523
|
for (let k = 0; k < innerLineRect.line.length; k++) {
|
11521
11524
|
const leaf = innerLineRect.line.getChild(k);
|
11522
|
-
leaf.rect.y = innerLineRect.line.rect.height - paddingBottom - leaf.rect.height;
|
11525
|
+
//leaf.rect.y = innerLineRect.line.rect.height - paddingBottom - leaf.rect.height;
|
11526
|
+
leaf.rect.y = Math.ceil((innerLineRect.line.rect.height - leaf.rect.height) / 2);
|
11523
11527
|
}
|
11524
11528
|
render.addChild(innerLineRect.line);
|
11525
11529
|
}
|
@@ -12286,9 +12290,10 @@ class DocumentArrange {
|
|
12286
12290
|
}
|
12287
12291
|
}
|
12288
12292
|
cutRowRenderItem(render, limitHeight) {
|
12289
|
-
|
12290
|
-
|
12291
|
-
|
12293
|
+
//可能当前行的高度就超过了限制高度,且存在最小高度
|
12294
|
+
// if (render.element.props.minHeight > 0 && render.rect.height < limitHeight) {
|
12295
|
+
// return null;
|
12296
|
+
// }
|
12292
12297
|
const cloneRowRender = render.element.createRenderObject();
|
12293
12298
|
cloneRowRender.rect.width = render.rect.width;
|
12294
12299
|
//cloneRowRender.rect.maxWidth = render.rect.height;
|