@byteluck-fe/model-driven-engine 2.9.0-alpha.2 → 2.9.0-alpha.20
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.
|
@@ -68,6 +68,7 @@ declare class Engine extends Watcher<EventKeys> {
|
|
|
68
68
|
private _proxyStateBeforeSetCallback;
|
|
69
69
|
private _proxyStateCallback;
|
|
70
70
|
private _handlerArrayUpdate;
|
|
71
|
+
private _handlerSubtableUpdateUid;
|
|
71
72
|
private _handlerObjectUpdate;
|
|
72
73
|
private applyPlugins;
|
|
73
74
|
listControlCreateRow<RowType extends ControlsKeys>(instance: RuntimeListControl, rowType: RowType): RuntimeControl | NonNullable<InstanceType<import("@byteluck-fe/model-driven-core").ControlsConstructor<RowType, "Runtime">>> | undefined;
|
|
@@ -153,7 +154,7 @@ declare class Engine extends Watcher<EventKeys> {
|
|
|
153
154
|
* @param controlId
|
|
154
155
|
* @param rowIndex
|
|
155
156
|
*/
|
|
156
|
-
getInstance(controlId
|
|
157
|
+
getInstance(controlId?: string, rowIndex?: number): ControlRuntimeInstance<ControlsKeys> | undefined;
|
|
157
158
|
/**
|
|
158
159
|
* 获取组件实例,明细表中的组件将会得到数组, 第二个参数为(false/不传入)则获取到的是明细表内不包含表头内实例的所有控件实例,传入true则获取到包含表头内实例的所有控件实例,表头内实例永远在下标0的位置
|
|
159
160
|
* @param controlId
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Engine } from '../common/Engine';
|
|
2
2
|
import { Plugin } from '../common/Plugin';
|
|
3
|
+
import { CustomEventItem } from '@byteluck-fe/model-driven-shared';
|
|
3
4
|
export type ControlsEvent = {
|
|
4
5
|
[controlId: string]: {
|
|
5
6
|
[eventName: string]: string[];
|
|
@@ -8,7 +9,8 @@ export type ControlsEvent = {
|
|
|
8
9
|
export declare class ControlsEventPlugin implements Plugin {
|
|
9
10
|
private config;
|
|
10
11
|
private engine;
|
|
11
|
-
|
|
12
|
+
private customEvents;
|
|
13
|
+
constructor(config: ControlsEvent, customEvents: CustomEventItem[]);
|
|
12
14
|
apply(engine: Engine): void;
|
|
13
15
|
private engineAddEventListener;
|
|
14
16
|
private callControlEvent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-engine",
|
|
3
|
-
"version": "2.9.0-alpha.
|
|
3
|
+
"version": "2.9.0-alpha.20",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"postpublish": "node ../../scripts/postpublish.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@byteluck-fe/model-driven-core": "2.9.0-alpha.
|
|
30
|
-
"@byteluck-fe/model-driven-shared": "2.9.0-alpha.
|
|
29
|
+
"@byteluck-fe/model-driven-core": "2.9.0-alpha.20",
|
|
30
|
+
"@byteluck-fe/model-driven-shared": "2.9.0-alpha.20",
|
|
31
31
|
"@types/mathjs": "^9.4.2",
|
|
32
32
|
"mathjs": "^11.3.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/node": "~18.0.6"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "1b2c2036199d80f54a06645c74c54b9b6ef5fba6"
|
|
38
38
|
}
|