@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.js
CHANGED
@@ -14101,10 +14101,10 @@ class DynamicExecute {
|
|
14101
14101
|
this.depItems = undefined;
|
14102
14102
|
}
|
14103
14103
|
cacheList;
|
14104
|
-
getControlById(id) {
|
14104
|
+
getControlById(id, options) {
|
14105
14105
|
if (!this.cacheList) {
|
14106
14106
|
const ctx = new DocumentContext(this.doc, this.ss);
|
14107
|
-
this.cacheList = ctx.getDataElementModelList();
|
14107
|
+
this.cacheList = ctx.getDataElementModelList(options);
|
14108
14108
|
}
|
14109
14109
|
const f = this.cacheList.find(item => item.id === id);
|
14110
14110
|
return f;
|
@@ -14119,7 +14119,7 @@ class DynamicExecute {
|
|
14119
14119
|
if (id.startsWith('$')) {
|
14120
14120
|
id = id.slice(1);
|
14121
14121
|
}
|
14122
|
-
const control = this.getControlById(id);
|
14122
|
+
const control = this.getControlById(id, { includeChildren: true });
|
14123
14123
|
return {
|
14124
14124
|
get value() {
|
14125
14125
|
if (control) {
|
@@ -23005,7 +23005,7 @@ class DocEditor {
|
|
23005
23005
|
rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
|
23006
23006
|
}
|
23007
23007
|
version() {
|
23008
|
-
return "2.2.
|
23008
|
+
return "2.2.22";
|
23009
23009
|
}
|
23010
23010
|
switchPageHeaderEditor() {
|
23011
23011
|
this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);
|