@hailin-zheng/editor-core 2.0.51 → 2.0.53
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 +14 -4
- package/index-cjs.js.map +1 -1
- package/index.js +14 -4
- package/index.js.map +1 -1
- package/med_editor/framework/element-props.d.ts +2 -1
- package/package.json +1 -1
package/index-cjs.js
CHANGED
@@ -2640,8 +2640,13 @@ class DataElementBarcodeProps {
|
|
2640
2640
|
};
|
2641
2641
|
}
|
2642
2642
|
}
|
2643
|
-
class BodyPartProps {
|
2643
|
+
class BodyPartProps extends INotifyPropertyChanged {
|
2644
2644
|
partId;
|
2645
|
+
getSerializeProps(viewOptions) {
|
2646
|
+
return {
|
2647
|
+
partId: this.partId
|
2648
|
+
};
|
2649
|
+
}
|
2645
2650
|
}
|
2646
2651
|
|
2647
2652
|
class CommsContainerElement extends BlockContainerElement {
|
@@ -27610,6 +27615,11 @@ class DocEditor {
|
|
27610
27615
|
this.selectionState.destroy();
|
27611
27616
|
this.destroyDOM();
|
27612
27617
|
this.flushTask = null;
|
27618
|
+
Object.keys(this).forEach(key => {
|
27619
|
+
if (this[key] instanceof Subject$1) {
|
27620
|
+
this[key].unsubscribe();
|
27621
|
+
}
|
27622
|
+
});
|
27613
27623
|
}
|
27614
27624
|
/**
|
27615
27625
|
* 获取选区文本属性
|
@@ -28165,7 +28175,7 @@ class DocEditor {
|
|
28165
28175
|
const editor = this;
|
28166
28176
|
return {
|
28167
28177
|
render() {
|
28168
|
-
if (editor.viewOptions.docMode === exports.DocMode.View) {
|
28178
|
+
if (editor.viewOptions.docMode === exports.DocMode.View || !editor.selectionState.editable) {
|
28169
28179
|
return null;
|
28170
28180
|
}
|
28171
28181
|
const dataEle = editor.getCurrentDataElement();
|
@@ -28308,7 +28318,7 @@ class DocEditor {
|
|
28308
28318
|
});
|
28309
28319
|
return {
|
28310
28320
|
render() {
|
28311
|
-
if (editor.viewOptions.docMode === exports.DocMode.View) {
|
28321
|
+
if (editor.viewOptions.docMode === exports.DocMode.View || !editor.selectionState.editable) {
|
28312
28322
|
return null;
|
28313
28323
|
}
|
28314
28324
|
const dataEle = editor.getCurrentDataElement();
|
@@ -28382,7 +28392,7 @@ class DocEditor {
|
|
28382
28392
|
rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
|
28383
28393
|
}
|
28384
28394
|
version() {
|
28385
|
-
return "2.0.
|
28395
|
+
return "2.0.53";
|
28386
28396
|
}
|
28387
28397
|
}
|
28388
28398
|
|