@byteluck-fe/model-driven-engine 1.7.0 → 1.8.0-beta.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.
@@ -61,7 +61,7 @@ declare class Engine extends Watcher<EventKeys> {
61
61
  private _handlerArrayUpdate;
62
62
  private _handlerObjectUpdate;
63
63
  private applyPlugins;
64
- listControlCreateRow<RowType extends ControlsKeys>(instance: RuntimeListControl, rowType: RowType): InstanceType<import("@byteluck-fe/model-driven-core").ControlsConstructor<RowType, "Runtime">> | undefined;
64
+ listControlCreateRow<RowType extends ControlsKeys>(instance: RuntimeListControl, rowType: RowType): NonNullable<InstanceType<import("@byteluck-fe/model-driven-core").ControlsConstructor<RowType, "Runtime">>> | undefined;
65
65
  listControlAddRow(instance: RuntimeListControl, rowType?: ControlsKeys): void;
66
66
  emit(eventKey: EventKeys, payload: EventPayload): Promise<unknown[]>;
67
67
  on(key: EventKeys, callback: Callback): void;
@@ -73,7 +73,7 @@ declare class Engine extends Watcher<EventKeys> {
73
73
  getRules(controlId?: string): import("async-validator").Rules | undefined;
74
74
  getAntdRules(controlId?: string): import("async-validator").Rules | undefined;
75
75
  getState(controlId?: string, rowIndex?: number): unknown;
76
- getFieldCodeState(controlId?: string): unknown;
76
+ getFieldCodeState(controlId?: string): {} | undefined;
77
77
  getEmptyState(controlId?: string): any;
78
78
  /**
79
79
  * 设置payload的options,提供在不是使用标准api修改state的时候可以传递options,会在本次任务执行完成之后清空
@@ -93,7 +93,7 @@ declare class Engine extends Watcher<EventKeys> {
93
93
  * @param rowIndex 行下标 - 如果是明细子表中的控件需要提供
94
94
  * */
95
95
  getField(dataCode: string, fieldCode?: string, rowIndex?: number): unknown;
96
- getData(dataCode: string): unknown;
96
+ getData(dataCode: string): {} | undefined;
97
97
  /**
98
98
  * 通过dataCode和fieldCode来设置控件的值
99
99
  * @param dataCode 模型编码 - 如果是主表的话就是主表的模型编码,明细子表的话就是子表的模型编码
@@ -44,7 +44,7 @@ declare class Store {
44
44
  */
45
45
  setState(controlId: string, value: unknown, rowIndex?: number): void;
46
46
  getState(controlId: string, rowIndex?: number): unknown;
47
- getFieldCodeState(controlId: string): unknown;
47
+ getFieldCodeState(controlId: string): {} | undefined;
48
48
  getEmptyState(controlId: string): unknown;
49
49
  getDataBind(controlId: string): DataBind | ObjectDataBind | undefined;
50
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-engine",
3
- "version": "1.7.0",
3
+ "version": "1.8.0-beta.1",
4
4
  "description": "> TODO: description",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -22,12 +22,12 @@
22
22
  "postpublish": "node ../../scripts/postpublish.js"
23
23
  },
24
24
  "dependencies": {
25
- "@byteluck-fe/model-driven-core": "^1.7.0",
26
- "@byteluck-fe/model-driven-shared": "^1.7.0",
25
+ "@byteluck-fe/model-driven-core": "^1.8.0-beta.1",
26
+ "@byteluck-fe/model-driven-shared": "^1.8.0-beta.1",
27
27
  "mathjs": "^11.3.3"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "~18.0.3"
31
31
  },
32
- "gitHead": "8450ef2f928f886c6cb0cf0f9d504f328b3d8a80"
32
+ "gitHead": "00fed2977cfe36166f079cdf01a5c43e0177587d"
33
33
  }