@hailin-zheng/editor-core 2.2.11 → 2.2.12

Sign up to get free protection for your applications and to get access to all the features.
package/index-cjs.js CHANGED
@@ -19811,9 +19811,11 @@ class EditorCalendarVNode {
19811
19811
  onSave() {
19812
19812
  if (!this.selectedDate.value) {
19813
19813
  this.onSetValue.next(new Date());
19814
+ this.reset();
19814
19815
  }
19815
19816
  else {
19816
19817
  this.onSetValue.next(moment__default["default"](this.selectedDate.value + ' ' + this.selectedTime.value).toDate());
19818
+ this.reset();
19817
19819
  }
19818
19820
  }
19819
19821
  navigateToToday() {
@@ -20765,12 +20767,12 @@ class DocEditor {
20765
20767
  //是否用于跟踪修改状态,在初始化、数据元赋值等情况不需要跟踪修改标志
20766
20768
  trackChangeState = true;
20767
20769
  flushToSchedule() {
20768
- if (this.docCtx.refreshType === 'content') {
20769
- this.triggerDocChange();
20770
- }
20771
20770
  if (this.flushTask) {
20772
20771
  return null;
20773
20772
  }
20773
+ // if (this.docCtx.refreshType) {
20774
+ // this.triggerDocChange();
20775
+ // }
20774
20776
  this.flushTask = () => {
20775
20777
  //读取变更记录,可能会同步影响文档内容
20776
20778
  this.readDocChangeLog();
@@ -22080,7 +22082,7 @@ class DocEditor {
22080
22082
  rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
22081
22083
  }
22082
22084
  version() {
22083
- return "2.2.11";
22085
+ return "2.2.12";
22084
22086
  }
22085
22087
  switchPageHeaderEditor() {
22086
22088
  this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);
@@ -22197,6 +22199,9 @@ class DocEditor {
22197
22199
  else {
22198
22200
  this.docCtx.suggestions.clear();
22199
22201
  }
22202
+ if (ops.length) {
22203
+ this.triggerDocChange();
22204
+ }
22200
22205
  }
22201
22206
  /**
22202
22207
  * 处理候选词