@hailin-zheng/editor-core 2.0.50 → 2.0.52
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 +19 -3
- package/index-cjs.js.map +1 -1
- package/index.js +19 -3
- package/index.js.map +1 -1
- package/med_editor/doc-editor.d.ts +6 -2
- 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 {
|
@@ -27385,7 +27390,7 @@ class DocEditor {
|
|
27385
27390
|
canSetCursor() {
|
27386
27391
|
//判断当前光标是否可以放置,可以设置返回true,否则返回false
|
27387
27392
|
//用法:合并病程录,分开处理多个病程录录入权限
|
27388
|
-
const event = { result: true };
|
27393
|
+
const event = { result: true, ss: this.selectionState };
|
27389
27394
|
this.onBeforeSetCursorSubject.next(event);
|
27390
27395
|
if (!event.result) {
|
27391
27396
|
return false;
|
@@ -27565,6 +27570,12 @@ class DocEditor {
|
|
27565
27570
|
const tb = TableUtil.createTable(rows, cols, this.selectionState);
|
27566
27571
|
this.documentChange.insertTable(tb);
|
27567
27572
|
}
|
27573
|
+
/**
|
27574
|
+
* 插入软换行符
|
27575
|
+
*/
|
27576
|
+
insertSoftBr() {
|
27577
|
+
this.documentChange.insertSoftBr();
|
27578
|
+
}
|
27568
27579
|
/**
|
27569
27580
|
* 打印所有文档
|
27570
27581
|
*/
|
@@ -27604,6 +27615,11 @@ class DocEditor {
|
|
27604
27615
|
this.selectionState.destroy();
|
27605
27616
|
this.destroyDOM();
|
27606
27617
|
this.flushTask = null;
|
27618
|
+
Object.keys(this).forEach(key => {
|
27619
|
+
if (this[key] instanceof Subject$1) {
|
27620
|
+
this[key].unsubscribe();
|
27621
|
+
}
|
27622
|
+
});
|
27607
27623
|
}
|
27608
27624
|
/**
|
27609
27625
|
* 获取选区文本属性
|
@@ -28376,7 +28392,7 @@ class DocEditor {
|
|
28376
28392
|
rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
|
28377
28393
|
}
|
28378
28394
|
version() {
|
28379
|
-
return "2.0.
|
28395
|
+
return "2.0.52";
|
28380
28396
|
}
|
28381
28397
|
}
|
28382
28398
|
|