@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-cjs.js CHANGED
@@ -1927,6 +1927,10 @@ class ViewOptions {
1927
1927
  printMode = 'normal';
1928
1928
  //是否开启候选词输入联想
1929
1929
  enableSuggestions = false;
1930
+ //病程录上边距
1931
+ bodyPartMarginTop = 10;
1932
+ //病程录下边距
1933
+ bodyPartMarginBottom = 10;
1930
1934
  constructor() {
1931
1935
  }
1932
1936
  }
@@ -9665,10 +9669,10 @@ class DocumentBodyPartElement extends BlockContainerElement {
9665
9669
  });
9666
9670
  this.props = new BodyPartProps();
9667
9671
  }
9668
- createRenderObject() {
9672
+ createRenderObject(data) {
9669
9673
  const render = new DocumentBodyPartRenderObject(this);
9670
- render.margin.top = 10;
9671
- render.margin.bottom = 10;
9674
+ render.margin.top = data.options.bodyPartMarginTop;
9675
+ render.margin.bottom = data.options.bodyPartMarginBottom;
9672
9676
  return render;
9673
9677
  }
9674
9678
  serialize() {
@@ -23047,7 +23051,7 @@ class DocEditor {
23047
23051
  rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
23048
23052
  }
23049
23053
  version() {
23050
- return "2.2.24";
23054
+ return "2.2.25";
23051
23055
  }
23052
23056
  switchPageHeaderEditor() {
23053
23057
  this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);