@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.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 {
|
@@ -27355,7 +27360,7 @@ class DocEditor {
|
|
27355
27360
|
canSetCursor() {
|
27356
27361
|
//判断当前光标是否可以放置,可以设置返回true,否则返回false
|
27357
27362
|
//用法:合并病程录,分开处理多个病程录录入权限
|
27358
|
-
const event = { result: true };
|
27363
|
+
const event = { result: true, ss: this.selectionState };
|
27359
27364
|
this.onBeforeSetCursorSubject.next(event);
|
27360
27365
|
if (!event.result) {
|
27361
27366
|
return false;
|
@@ -27535,6 +27540,12 @@ class DocEditor {
|
|
27535
27540
|
const tb = TableUtil.createTable(rows, cols, this.selectionState);
|
27536
27541
|
this.documentChange.insertTable(tb);
|
27537
27542
|
}
|
27543
|
+
/**
|
27544
|
+
* 插入软换行符
|
27545
|
+
*/
|
27546
|
+
insertSoftBr() {
|
27547
|
+
this.documentChange.insertSoftBr();
|
27548
|
+
}
|
27538
27549
|
/**
|
27539
27550
|
* 打印所有文档
|
27540
27551
|
*/
|
@@ -27574,6 +27585,11 @@ class DocEditor {
|
|
27574
27585
|
this.selectionState.destroy();
|
27575
27586
|
this.destroyDOM();
|
27576
27587
|
this.flushTask = null;
|
27588
|
+
Object.keys(this).forEach(key => {
|
27589
|
+
if (this[key] instanceof Subject$1) {
|
27590
|
+
this[key].unsubscribe();
|
27591
|
+
}
|
27592
|
+
});
|
27577
27593
|
}
|
27578
27594
|
/**
|
27579
27595
|
* 获取选区文本属性
|
@@ -28346,7 +28362,7 @@ class DocEditor {
|
|
28346
28362
|
rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
|
28347
28363
|
}
|
28348
28364
|
version() {
|
28349
|
-
return "2.0.
|
28365
|
+
return "2.0.52";
|
28350
28366
|
}
|
28351
28367
|
}
|
28352
28368
|
|