@hailin-zheng/editor-core 2.2.24 → 2.2.25

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
@@ -1898,6 +1898,10 @@ class ViewOptions {
1898
1898
  printMode = 'normal';
1899
1899
  //是否开启候选词输入联想
1900
1900
  enableSuggestions = false;
1901
+ //病程录上边距
1902
+ bodyPartMarginTop = 10;
1903
+ //病程录下边距
1904
+ bodyPartMarginBottom = 10;
1901
1905
  constructor() {
1902
1906
  }
1903
1907
  }
@@ -9636,10 +9640,10 @@ class DocumentBodyPartElement extends BlockContainerElement {
9636
9640
  });
9637
9641
  this.props = new BodyPartProps();
9638
9642
  }
9639
- createRenderObject() {
9643
+ createRenderObject(data) {
9640
9644
  const render = new DocumentBodyPartRenderObject(this);
9641
- render.margin.top = 10;
9642
- render.margin.bottom = 10;
9645
+ render.margin.top = data.options.bodyPartMarginTop;
9646
+ render.margin.bottom = data.options.bodyPartMarginBottom;
9643
9647
  return render;
9644
9648
  }
9645
9649
  serialize() {
@@ -23018,7 +23022,7 @@ class DocEditor {
23018
23022
  rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
23019
23023
  }
23020
23024
  version() {
23021
- return "2.2.24";
23025
+ return "2.2.25";
23022
23026
  }
23023
23027
  switchPageHeaderEditor() {
23024
23028
  this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);