@hailin-zheng/editor-core 2.2.21 → 2.2.22
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
CHANGED
@@ -14130,10 +14130,10 @@ class DynamicExecute {
|
|
14130
14130
|
this.depItems = undefined;
|
14131
14131
|
}
|
14132
14132
|
cacheList;
|
14133
|
-
getControlById(id) {
|
14133
|
+
getControlById(id, options) {
|
14134
14134
|
if (!this.cacheList) {
|
14135
14135
|
const ctx = new DocumentContext(this.doc, this.ss);
|
14136
|
-
this.cacheList = ctx.getDataElementModelList();
|
14136
|
+
this.cacheList = ctx.getDataElementModelList(options);
|
14137
14137
|
}
|
14138
14138
|
const f = this.cacheList.find(item => item.id === id);
|
14139
14139
|
return f;
|
@@ -14148,7 +14148,7 @@ class DynamicExecute {
|
|
14148
14148
|
if (id.startsWith('$')) {
|
14149
14149
|
id = id.slice(1);
|
14150
14150
|
}
|
14151
|
-
const control = this.getControlById(id);
|
14151
|
+
const control = this.getControlById(id, { includeChildren: true });
|
14152
14152
|
return {
|
14153
14153
|
get value() {
|
14154
14154
|
if (control) {
|
@@ -23034,7 +23034,7 @@ class DocEditor {
|
|
23034
23034
|
rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
|
23035
23035
|
}
|
23036
23036
|
version() {
|
23037
|
-
return "2.2.
|
23037
|
+
return "2.2.22";
|
23038
23038
|
}
|
23039
23039
|
switchPageHeaderEditor() {
|
23040
23040
|
this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);
|