@hailin-zheng/editor-core 2.2.11 → 2.2.12
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 +9 -4
- package/index-cjs.js.map +1 -1
- package/index.js +9 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -19782,9 +19782,11 @@ class EditorCalendarVNode {
|
|
19782
19782
|
onSave() {
|
19783
19783
|
if (!this.selectedDate.value) {
|
19784
19784
|
this.onSetValue.next(new Date());
|
19785
|
+
this.reset();
|
19785
19786
|
}
|
19786
19787
|
else {
|
19787
19788
|
this.onSetValue.next(moment(this.selectedDate.value + ' ' + this.selectedTime.value).toDate());
|
19789
|
+
this.reset();
|
19788
19790
|
}
|
19789
19791
|
}
|
19790
19792
|
navigateToToday() {
|
@@ -20736,12 +20738,12 @@ class DocEditor {
|
|
20736
20738
|
//是否用于跟踪修改状态,在初始化、数据元赋值等情况不需要跟踪修改标志
|
20737
20739
|
trackChangeState = true;
|
20738
20740
|
flushToSchedule() {
|
20739
|
-
if (this.docCtx.refreshType === 'content') {
|
20740
|
-
this.triggerDocChange();
|
20741
|
-
}
|
20742
20741
|
if (this.flushTask) {
|
20743
20742
|
return null;
|
20744
20743
|
}
|
20744
|
+
// if (this.docCtx.refreshType) {
|
20745
|
+
// this.triggerDocChange();
|
20746
|
+
// }
|
20745
20747
|
this.flushTask = () => {
|
20746
20748
|
//读取变更记录,可能会同步影响文档内容
|
20747
20749
|
this.readDocChangeLog();
|
@@ -22051,7 +22053,7 @@ class DocEditor {
|
|
22051
22053
|
rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
|
22052
22054
|
}
|
22053
22055
|
version() {
|
22054
|
-
return "2.2.
|
22056
|
+
return "2.2.12";
|
22055
22057
|
}
|
22056
22058
|
switchPageHeaderEditor() {
|
22057
22059
|
this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);
|
@@ -22168,6 +22170,9 @@ class DocEditor {
|
|
22168
22170
|
else {
|
22169
22171
|
this.docCtx.suggestions.clear();
|
22170
22172
|
}
|
22173
|
+
if (ops.length) {
|
22174
|
+
this.triggerDocChange();
|
22175
|
+
}
|
22171
22176
|
}
|
22172
22177
|
/**
|
22173
22178
|
* 处理候选词
|