@hailin-zheng/editor-core 1.0.57 → 1.0.60

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.
@@ -112,6 +112,12 @@ export declare class DocumentContext {
112
112
  key: string;
113
113
  value: any;
114
114
  }>, predicateKey?: 'id' | 'name' | 'fieldName'): void;
115
+ /**
116
+ * 查询字符
117
+ * @param text
118
+ */
119
+ searchText(text: string): void;
120
+ private getElementTextData;
115
121
  }
116
122
  interface DataEleBaseModel {
117
123
  id: string;
@@ -286,6 +286,11 @@ export declare class CanvasTextEditor {
286
286
  * @returns
287
287
  */
288
288
  insertElement(targetElement: Element, targetOffset: number, destEleArray: Array<Element>): Element | null;
289
+ /**
290
+ * 插入新元素
291
+ * @param ele
292
+ */
293
+ insertNewElement(ele: Element): void;
289
294
  showHistory(): void;
290
295
  getControlById(index: number): Element<any> | null;
291
296
  getControlId(ele: Element): number;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "hailin-zheng",
5
5
  "private": false,
6
6
  "license": "ISC",
7
- "version": "1.0.57",
7
+ "version": "1.0.60",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "bwip-js": "^3.0.5",