@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.js
CHANGED
@@ -2610,8 +2610,13 @@ class DataElementBarcodeProps {
|
|
2610
2610
|
};
|
2611
2611
|
}
|
2612
2612
|
}
|
2613
|
-
class BodyPartProps {
|
2613
|
+
class BodyPartProps extends INotifyPropertyChanged {
|
2614
2614
|
partId;
|
2615
|
+
getSerializeProps(viewOptions) {
|
2616
|
+
return {
|
2617
|
+
partId: this.partId
|
2618
|
+
};
|
2619
|
+
}
|
2615
2620
|
}
|
2616
2621
|
|
2617
2622
|
class CommsContainerElement extends BlockContainerElement {
|
@@ -27580,6 +27585,11 @@ class DocEditor {
|
|
27580
27585
|
this.selectionState.destroy();
|
27581
27586
|
this.destroyDOM();
|
27582
27587
|
this.flushTask = null;
|
27588
|
+
Object.keys(this).forEach(key => {
|
27589
|
+
if (this[key] instanceof Subject$1) {
|
27590
|
+
this[key].unsubscribe();
|
27591
|
+
}
|
27592
|
+
});
|
27583
27593
|
}
|
27584
27594
|
/**
|
27585
27595
|
* 获取选区文本属性
|
@@ -28135,7 +28145,7 @@ class DocEditor {
|
|
28135
28145
|
const editor = this;
|
28136
28146
|
return {
|
28137
28147
|
render() {
|
28138
|
-
if (editor.viewOptions.docMode === DocMode.View) {
|
28148
|
+
if (editor.viewOptions.docMode === DocMode.View || !editor.selectionState.editable) {
|
28139
28149
|
return null;
|
28140
28150
|
}
|
28141
28151
|
const dataEle = editor.getCurrentDataElement();
|
@@ -28278,7 +28288,7 @@ class DocEditor {
|
|
28278
28288
|
});
|
28279
28289
|
return {
|
28280
28290
|
render() {
|
28281
|
-
if (editor.viewOptions.docMode === DocMode.View) {
|
28291
|
+
if (editor.viewOptions.docMode === DocMode.View || !editor.selectionState.editable) {
|
28282
28292
|
return null;
|
28283
28293
|
}
|
28284
28294
|
const dataEle = editor.getCurrentDataElement();
|
@@ -28352,7 +28362,7 @@ class DocEditor {
|
|
28352
28362
|
rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
|
28353
28363
|
}
|
28354
28364
|
version() {
|
28355
|
-
return "2.0.
|
28365
|
+
return "2.0.53";
|
28356
28366
|
}
|
28357
28367
|
}
|
28358
28368
|
|