@hailin-zheng/editor-core 2.2.8 → 2.2.9
Sign up to get free protection for your applications and to get access to all the features.
- package/editor.css +3 -0
- package/index-cjs.js +114 -73
- package/index-cjs.js.map +1 -1
- package/index.js +114 -73
- package/index.js.map +1 -1
- package/med_editor/framework/document-context.d.ts +6 -2
- package/med_editor/framework/element-define.d.ts +3 -1
- package/med_editor/framework/element-props.d.ts +1 -3
- package/med_editor/framework/impl/data-element/data-element-group-impl.d.ts +5 -2
- package/package.json +1 -1
@@ -57,7 +57,9 @@ export declare class DocumentContext {
|
|
57
57
|
private ss;
|
58
58
|
constructor(ctx: BranchElement, ss: SelectionState);
|
59
59
|
getControlIDList(): Array<string>;
|
60
|
-
getControlInstanceList(
|
60
|
+
getControlInstanceList(options?: {
|
61
|
+
includeChildren: boolean;
|
62
|
+
}): Array<DataElementInlineGroup | DataElementLeaf>;
|
61
63
|
getControlById(id: string): DataElementInlineGroup | DataElementLeaf;
|
62
64
|
getControlByName(name: string): DataElementInlineGroup | DataElementLeaf;
|
63
65
|
/**
|
@@ -68,7 +70,9 @@ export declare class DocumentContext {
|
|
68
70
|
* 获取数据元结构以及get\set闭包调用函数
|
69
71
|
* @returns
|
70
72
|
*/
|
71
|
-
getDataElementModelList(
|
73
|
+
getDataElementModelList(options?: {
|
74
|
+
includeChildren: boolean;
|
75
|
+
}): Array<DataCheckEleModel | DataInputEleModel | DataLeafEleModel>;
|
72
76
|
/**
|
73
77
|
* 获取复选框数据元结构列表
|
74
78
|
* @param dataCheckList
|
@@ -137,7 +137,9 @@ export declare abstract class BranchElement<P extends object = any> extends Elem
|
|
137
137
|
getChildIndex(child: Element): number;
|
138
138
|
getChildLength(): number;
|
139
139
|
getSelfLength(pure: boolean): number;
|
140
|
-
treeFilter(predicate: (item: Element) => boolean
|
140
|
+
treeFilter(predicate: (item: Element) => boolean, options?: {
|
141
|
+
includeChildren: boolean;
|
142
|
+
}): Array<Element>;
|
141
143
|
treeFind(predicate: (item: Element) => boolean): Element | null;
|
142
144
|
pubOnChange(selfChange: pubChangeType): void;
|
143
145
|
}
|
@@ -316,9 +316,7 @@ export declare class ValidateProps {
|
|
316
316
|
msg: string;
|
317
317
|
clone(dest: ValidateProps | null): ValidateProps;
|
318
318
|
}
|
319
|
-
export declare class DataElementGroupProps extends
|
320
|
-
clone(dest: DataElementGroupProps | null): void;
|
321
|
-
getSerializeProps(options: ViewOptions): NullableType<DataEleBaseProps>;
|
319
|
+
export declare class DataElementGroupProps extends DataEleBaseTextProps {
|
322
320
|
}
|
323
321
|
export declare class DataElementBarcodeProps {
|
324
322
|
type: 'ena13' | 'code128' | 'code39' | 'qrcode';
|
@@ -1,9 +1,11 @@
|
|
1
|
-
import { DataElementBaseFactory,
|
1
|
+
import { DataElementBaseFactory, DataElementInlineGroup } from "./data-element-base-impl";
|
2
2
|
import { InlineGroupRenderObject, RenderObject } from "../../render-define";
|
3
3
|
import { SerializeProps, ViewOptions, Element } from "../../element-define";
|
4
4
|
import { DataElementGroupProps } from "../../element-props";
|
5
|
-
export declare class DataElementGroupElement extends
|
5
|
+
export declare class DataElementGroupElement extends DataElementInlineGroup<DataElementGroupProps> {
|
6
6
|
constructor();
|
7
|
+
setValue(val: any): void;
|
8
|
+
getValue(): string;
|
7
9
|
clone(data: boolean): Element;
|
8
10
|
createRenderObject(): RenderObject | null;
|
9
11
|
serialize(viewOptions: ViewOptions): SerializeProps | null;
|
@@ -14,4 +16,5 @@ export declare class DataElementGroupRenderObject extends InlineGroupRenderObjec
|
|
14
16
|
export declare class DataElementGroupFactory extends DataElementBaseFactory<DataElementGroupProps> {
|
15
17
|
match(type: string): boolean;
|
16
18
|
createElement(data: any): Element;
|
19
|
+
createDataEleProps(dest: DataElementGroupProps, props: DataElementGroupProps): DataElementGroupProps;
|
17
20
|
}
|