@byteluck-fe/model-driven-engine 2.7.0-beta → 2.8.0-alpha.1
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/Engine.js +73 -34
- package/dist/esm/common/OkWorker.js +4 -4
- package/dist/esm/common/Runtime.js +5 -1
- package/dist/esm/common/Store.js +9 -16
- package/dist/esm/common/checkerValue.js +28 -23
- package/dist/esm/common/proxyState.js +15 -16
- package/dist/esm/plugins/CalcPlugin.js +18 -11
- package/dist/esm/plugins/ControlsEventPlugin.js +1 -1
- package/dist/esm/utils/runtimeUtils.js +4 -5
- package/dist/index.umd.js +7 -7
- package/dist/types/common/Engine.d.ts +5 -1
- package/package.json +4 -4
|
@@ -105,7 +105,7 @@ declare class Engine extends Watcher<EventKeys> {
|
|
|
105
105
|
* @param rowIndex 行下标 - 如果是明细子表中的控件需要提供
|
|
106
106
|
* */
|
|
107
107
|
getField(dataCode: string, fieldCode?: string, rowIndex?: number): unknown;
|
|
108
|
-
getData(dataCode: string):
|
|
108
|
+
getData(dataCode: string): any;
|
|
109
109
|
/**
|
|
110
110
|
* 通过dataCode和fieldCode来设置控件的值
|
|
111
111
|
* @param dataCode 模型编码 - 如果是主表的话就是主表的模型编码,明细子表的话就是子表的模型编码
|
|
@@ -164,6 +164,10 @@ declare class Engine extends Watcher<EventKeys> {
|
|
|
164
164
|
* 判断控件的类型,返回当前控件的正确类型
|
|
165
165
|
* */
|
|
166
166
|
assertInstance<T extends ControlsKeys>(instance: ControlRuntimeInstance<ControlsKeys> | RuntimeControl, types: T | T[]): instance is ControlRuntimeInstance<T>;
|
|
167
|
+
/**
|
|
168
|
+
* 判断控件或控件类型是一个自定义控件
|
|
169
|
+
* */
|
|
170
|
+
assertInstanceIsCustomControl(instance: ControlRuntimeInstance<ControlsKeys> | RuntimeControl): boolean;
|
|
167
171
|
/**
|
|
168
172
|
* 获取控件在明细子表中的行下标,
|
|
169
173
|
* 如果控件在表头内,则返回-1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-engine",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0-alpha.1",
|
|
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.
|
|
30
|
-
"@byteluck-fe/model-driven-shared": "2.
|
|
29
|
+
"@byteluck-fe/model-driven-core": "2.8.0-alpha.1",
|
|
30
|
+
"@byteluck-fe/model-driven-shared": "2.7.0-alpha.36",
|
|
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": "27f083b7b2759db550931017aec897e0740957dd"
|
|
38
38
|
}
|