@hailin-zheng/editor-core 2.2.24 → 2.2.26
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 =
|
9671
|
-
render.margin.bottom =
|
9674
|
+
render.margin.top = data.options.bodyPartMarginTop;
|
9675
|
+
render.margin.bottom = data.options.bodyPartMarginBottom;
|
9672
9676
|
return render;
|
9673
9677
|
}
|
9674
9678
|
serialize() {
|
@@ -21709,12 +21713,13 @@ class DocEditor {
|
|
21709
21713
|
// if (this.docCtx.refreshType) {
|
21710
21714
|
// this.triggerDocChange();
|
21711
21715
|
// }
|
21716
|
+
const trackChangeState = this.trackChangeState;
|
21712
21717
|
this.flushTask = () => {
|
21713
21718
|
//读取变更记录,可能会同步影响文档内容
|
21714
21719
|
const isChanged = this.readDocChangeLog();
|
21715
21720
|
this.refreshDocument();
|
21716
21721
|
//触发文档改变
|
21717
|
-
if (isChanged) {
|
21722
|
+
if (isChanged && trackChangeState) {
|
21718
21723
|
this.triggerDocChange();
|
21719
21724
|
}
|
21720
21725
|
this.flushTask = null;
|
@@ -23047,7 +23052,7 @@ class DocEditor {
|
|
23047
23052
|
rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
|
23048
23053
|
}
|
23049
23054
|
version() {
|
23050
|
-
return "2.2.
|
23055
|
+
return "2.2.26";
|
23051
23056
|
}
|
23052
23057
|
switchPageHeaderEditor() {
|
23053
23058
|
this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);
|