@byteluck-fe/model-driven-engine 6.2.0-beta.6 → 6.2.0-beta.8
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/dist/esm/common/ActionManager.js +11 -3
- package/dist/esm/common/DataManager.js +11 -3
- package/dist/esm/common/Engine.js +42 -8
- package/dist/esm/common/Store.js +5 -5
- package/dist/esm/common/checkerValue.js +6 -6
- package/dist/esm/common/proxyState.js +3 -3
- package/dist/esm/plugins/CalcPlugin.js +5 -6
- package/dist/esm/plugins/ControlsEventPlugin.js +11 -3
- package/dist/esm/plugins/LifecycleEventPlugin.js +11 -3
- package/dist/esm/plugins/StylePlugin.js +2 -2
- package/dist/index.umd.js +24 -24
- package/dist/types/common/Engine.d.ts +8 -1
- package/package.json +4 -4
|
@@ -84,7 +84,7 @@ declare class Engine extends Watcher<EventKeys> {
|
|
|
84
84
|
on(key: EventKeys, callback: Callback): void;
|
|
85
85
|
createControl(...args: Parameters<Runtime['createControl']>): never[];
|
|
86
86
|
createInstance<T extends ControlsKeys>(type: T, initSchema?: DeepPartial<Schema<T>>): ControlsInstance<T, 'Runtime'> | undefined;
|
|
87
|
-
createControlInstance: <T extends
|
|
87
|
+
createControlInstance: <T extends never>(type: T, initSchema?: DeepPartial<Schema<T, InstanceType<import("@byteluck-fe/model-driven-core").Controls[T]["Property"]>>> | undefined) => InstanceType<import("@byteluck-fe/model-driven-core").ControlsConstructor<T, "Runtime">> | undefined;
|
|
88
88
|
schemaEvent(eventKey: 'schema-change', payload: SchemaEventPayload): void;
|
|
89
89
|
updateInstanceProps(instance: SchemaEventPayload['instance'] | string, props: string, value: unknown, rowIndex?: number): void;
|
|
90
90
|
getRule(controlType: string, props: any): any[];
|
|
@@ -170,6 +170,13 @@ declare class Engine extends Watcher<EventKeys> {
|
|
|
170
170
|
getInstances(controlId?: string, header?: boolean): ControlRuntimeInstance<ControlsKeys>[];
|
|
171
171
|
setInstance(instance: SchemaEventPayload['instance'] | string, props: string, value: unknown, rowIndex?: number): void;
|
|
172
172
|
getControlIdMapping(): import("./Store").controlIdMappingType;
|
|
173
|
+
/**
|
|
174
|
+
* 根据字段获取组件实例,传入rowIndex代表获取明细表内的控件实例,rowIndex传入-1代表获取表头内的实例
|
|
175
|
+
* @param dataCode 模型code
|
|
176
|
+
* @param fieldCode 字段code
|
|
177
|
+
*/
|
|
178
|
+
getFieldInstance(dataCode: string, fieldCode: string, rowIndex?: number): RuntimeControl | undefined;
|
|
179
|
+
setFieldInstance(dataCode: string, fieldCode: string, props: string, value: unknown, rowIndex?: number): Readonly<RuntimeControl> | undefined;
|
|
173
180
|
getDataBindMapping(): dataBindMappingType;
|
|
174
181
|
getDataBindMapping(dataCode: string): DataBindMappingTypeItem | undefined;
|
|
175
182
|
getDataBindMapping(dataCode: string, fieldCode: string): DataBindMappingFieldItem | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-engine",
|
|
3
|
-
"version": "6.2.0-beta.
|
|
3
|
+
"version": "6.2.0-beta.8",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"postpublish": "node ../../scripts/postpublish.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@byteluck-fe/model-driven-core": "6.2.0-beta.
|
|
30
|
-
"@byteluck-fe/model-driven-shared": "6.2.0-beta.
|
|
29
|
+
"@byteluck-fe/model-driven-core": "6.2.0-beta.8",
|
|
30
|
+
"@byteluck-fe/model-driven-shared": "6.2.0-beta.8",
|
|
31
31
|
"@types/mathjs": "^9.4.2",
|
|
32
32
|
"mathjs": "^11.3.3",
|
|
33
33
|
"postcss": "^8.5.6",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"@types/postcss-prefix-selector": "^1.16.3",
|
|
39
39
|
"postcss-nested": "^7.0.2"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "4a02c63ccb426834d9e937a59021254c177fc25f"
|
|
42
42
|
}
|