@hailin-zheng/editor-core 1.1.32 → 1.1.33
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 +9 -5
- package/index-cjs.js.map +1 -1
- package/index.js +9 -5
- 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
|
}
|
@@ -12286,9 +12289,10 @@ class DocumentArrange {
|
|
12286
12289
|
}
|
12287
12290
|
}
|
12288
12291
|
cutRowRenderItem(render, limitHeight) {
|
12289
|
-
|
12290
|
-
|
12291
|
-
|
12292
|
+
//可能当前行的高度就超过了限制高度,且存在最小高度
|
12293
|
+
// if (render.element.props.minHeight > 0 && render.rect.height < limitHeight) {
|
12294
|
+
// return null;
|
12295
|
+
// }
|
12292
12296
|
const cloneRowRender = render.element.createRenderObject();
|
12293
12297
|
cloneRowRender.rect.width = render.rect.width;
|
12294
12298
|
//cloneRowRender.rect.maxWidth = render.rect.height;
|