@ibiz-template/runtime 0.7.41-alpha.95 → 0.7.41-alpha.97
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/index.esm.js +146 -114
- package/dist/index.system.min.js +1 -1
- package/out/controller/common/control/md-control.controller.d.ts.map +1 -1
- package/out/controller/common/control/md-control.controller.js +2 -1
- package/out/controller/control/calendar/calendar.controller.d.ts +6 -0
- package/out/controller/control/calendar/calendar.controller.d.ts.map +1 -1
- package/out/controller/control/calendar/calendar.controller.js +13 -0
- package/out/controller/control/gantt/gantt.controller.d.ts +31 -39
- package/out/controller/control/gantt/gantt.controller.d.ts.map +1 -1
- package/out/controller/control/gantt/gantt.controller.js +31 -39
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +3 -1
- package/out/controller/control/kanban/kanban.controller.d.ts +5 -0
- package/out/controller/control/kanban/kanban.controller.d.ts.map +1 -1
- package/out/controller/control/kanban/kanban.controller.js +6 -1
- package/out/controller/control/map/map.controller.d.ts.map +1 -1
- package/out/controller/control/map/map.controller.js +7 -2
- package/out/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-column/tree-grid-ex-column.controller.d.ts +2 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-column/tree-grid-ex-column.controller.d.ts.map +1 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.d.ts +84 -63
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.d.ts.map +1 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.js +86 -80
- package/out/interface/api/controller/control/i-api-app-menu.controller.d.ts +10 -4
- package/out/interface/api/controller/control/i-api-app-menu.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-dashboard.controller.d.ts +18 -1
- package/out/interface/api/controller/control/i-api-dashboard.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-drbar.controller.d.ts +2 -2
- package/out/interface/api/controller/control/i-api-drtab.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-gantt.controller.d.ts +19 -5
- package/out/interface/api/controller/control/i-api-gantt.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-kanban.controller.d.ts +0 -7
- package/out/interface/api/controller/control/i-api-kanban.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-map.controller.d.ts +8 -2
- package/out/interface/api/controller/control/i-api-map.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-search-bar.controller.d.ts +2 -2
- package/out/interface/api/controller/control/i-api-tree-grid-ex.controller.d.ts +58 -2
- package/out/interface/api/controller/control/i-api-tree-grid-ex.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-wizard-panel.controller.d.ts +39 -1
- package/out/interface/api/controller/control/i-api-wizard-panel.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/index.d.ts +1 -0
- package/out/interface/api/controller/control/index.d.ts.map +1 -1
- package/out/interface/api/controller/control/index.js +1 -0
- package/out/interface/api/controller/control/portlet/i-api-portlet.controller.d.ts +4 -4
- package/out/interface/api/controller/control/tree-grid-ex-column/i-api-grid-ex-column.controller.d.ts +47 -0
- package/out/interface/api/controller/control/tree-grid-ex-column/i-api-grid-ex-column.controller.d.ts.map +1 -0
- package/out/interface/api/controller/control/tree-grid-ex-column/i-api-grid-ex-column.controller.js +1 -0
- package/out/interface/api/controller/control/tree-grid-ex-column/index.d.ts +2 -0
- package/out/interface/api/controller/control/tree-grid-ex-column/index.d.ts.map +1 -0
- package/out/interface/api/controller/control/tree-grid-ex-column/index.js +1 -0
- package/out/interface/api/state/control/i-api-app-menu.state.d.ts +2 -2
- package/out/interface/api/state/control/i-api-app-menu.state.d.ts.map +1 -1
- package/out/interface/api/state/control/i-api-drbar.state.d.ts +1 -1
- package/out/interface/api/state/control/i-api-drtab.state.d.ts +1 -1
- package/out/interface/api/state/control/i-api-gantt.state.d.ts +6 -0
- package/out/interface/api/state/control/i-api-gantt.state.d.ts.map +1 -1
- package/out/interface/api/state/control/i-api-kanban.state.d.ts +49 -0
- package/out/interface/api/state/control/i-api-kanban.state.d.ts.map +1 -1
- package/out/interface/api/state/control/i-api-map.state.d.ts +1 -1
- package/out/interface/api/state/control/i-api-tree-grid-ex.state.d.ts +8 -1
- package/out/interface/api/state/control/i-api-tree-grid-ex.state.d.ts.map +1 -1
- package/out/interface/api/state/control/index.d.ts +1 -1
- package/out/interface/api/state/control/index.d.ts.map +1 -1
- package/out/interface/api/state/control/search-bar/i-api-search-bar.state.d.ts +2 -2
- package/out/interface/controller/controller/common/i-drag-change-info.d.ts +1 -3
- package/out/interface/controller/controller/common/i-drag-change-info.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-dashboard.controller.d.ts +0 -20
- package/out/interface/controller/controller/control/i-dashboard.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-gantt.controller.d.ts +8 -0
- package/out/interface/controller/controller/control/i-gantt.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-kanban.controller.d.ts +7 -0
- package/out/interface/controller/controller/control/i-kanban.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-tree-grid-ex.controller.d.ts +0 -14
- package/out/interface/controller/controller/control/i-tree-grid-ex.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/tree-grid-ex-column/i-tree-grid-ex-column.controller.d.ts +2 -1
- package/out/interface/controller/controller/control/tree-grid-ex-column/i-tree-grid-ex-column.controller.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-gantt.state.d.ts +1 -1
- package/out/interface/controller/state/control/i-gantt.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-kanban.state.d.ts +2 -38
- package/out/interface/controller/state/control/i-kanban.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-tree-grid-ex.state.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -109,8 +109,25 @@ export declare class TreeGridExController<T extends IDETreeGridEx = IDETreeGridE
|
|
|
109
109
|
* @type {boolean}
|
|
110
110
|
*/
|
|
111
111
|
get allowRowEdit(): boolean;
|
|
112
|
+
/**
|
|
113
|
+
* @description 初始化state
|
|
114
|
+
* @protected
|
|
115
|
+
* @memberof TreeGridExController
|
|
116
|
+
*/
|
|
112
117
|
protected initState(): void;
|
|
118
|
+
/**
|
|
119
|
+
* @description 生命周期-创建完成
|
|
120
|
+
* @protected
|
|
121
|
+
* @returns {*} {Promise<void>}
|
|
122
|
+
* @memberof TreeGridExController
|
|
123
|
+
*/
|
|
113
124
|
protected onCreated(): Promise<void>;
|
|
125
|
+
/**
|
|
126
|
+
* @description 初始化部件服务
|
|
127
|
+
* @protected
|
|
128
|
+
* @returns {*} {Promise<void>}
|
|
129
|
+
* @memberof TreeGridExController
|
|
130
|
+
*/
|
|
114
131
|
protected initService(): Promise<void>;
|
|
115
132
|
/**
|
|
116
133
|
* @description 初始化界面行为组
|
|
@@ -120,69 +137,60 @@ export declare class TreeGridExController<T extends IDETreeGridEx = IDETreeGridE
|
|
|
120
137
|
*/
|
|
121
138
|
protected initUIActions(): Promise<void>;
|
|
122
139
|
/**
|
|
123
|
-
* 初始化树表格(增强)属性列,操作列,编辑项控制器
|
|
124
|
-
*
|
|
125
|
-
* @author zk
|
|
126
|
-
* @date 2023-09-21 06:09:28
|
|
140
|
+
* @description 初始化树表格(增强)属性列,操作列,编辑项控制器
|
|
127
141
|
* @protected
|
|
128
|
-
* @
|
|
142
|
+
* @returns {*} {Promise<void>}
|
|
129
143
|
* @memberof TreeGridExController
|
|
130
144
|
*/
|
|
131
145
|
protected initGridColumns(): Promise<void>;
|
|
132
146
|
/**
|
|
133
|
-
* 初始化树表格(增强)属性列,操作列,编辑项控制器
|
|
134
|
-
*
|
|
135
|
-
* @author zk
|
|
136
|
-
* @date 2023-09-21 06:09:37
|
|
147
|
+
* @description 初始化树表格(增强)属性列,操作列,编辑项控制器
|
|
137
148
|
* @protected
|
|
138
149
|
* @param {IDETreeColumn} column
|
|
139
|
-
* @
|
|
150
|
+
* @returns {*} {Promise<void>}
|
|
140
151
|
* @memberof TreeGridExController
|
|
141
152
|
*/
|
|
142
153
|
protected initColumnsController(column: IDETreeColumn): Promise<void>;
|
|
143
154
|
/**
|
|
144
|
-
*
|
|
145
|
-
*
|
|
155
|
+
* @description 部件加载之后
|
|
146
156
|
* @param {MDCtrlLoadParams} args
|
|
147
157
|
* @param {IData[]} items
|
|
148
|
-
* @
|
|
158
|
+
* @returns {*} {Promise<IData[]>}
|
|
149
159
|
* @memberof TreeGridExController
|
|
150
160
|
*/
|
|
151
161
|
afterLoad(args: MDCtrlLoadParams, items: IData[]): Promise<IData[]>;
|
|
152
162
|
/**
|
|
153
|
-
* 更新列状态
|
|
154
|
-
*
|
|
163
|
+
* @description 更新列状态
|
|
155
164
|
* @param {IData} rows
|
|
156
|
-
* @
|
|
165
|
+
* @returns {*} {Promise<void>}
|
|
157
166
|
* @memberof TreeGridExController
|
|
158
167
|
*/
|
|
159
168
|
updateRows(rows: IData): Promise<void>;
|
|
160
169
|
/**
|
|
161
|
-
* 初始化树表格(增强)列状态
|
|
162
|
-
*
|
|
163
|
-
* @author zk
|
|
164
|
-
* @date 2023-09-21 06:09:43
|
|
170
|
+
* @description 初始化树表格(增强)列状态
|
|
165
171
|
* @protected
|
|
166
172
|
* @memberof TreeGridExController
|
|
167
173
|
*/
|
|
168
174
|
protected initColumnStates(): void;
|
|
169
175
|
/**
|
|
170
|
-
* 计算列的固定状态
|
|
171
|
-
*
|
|
172
|
-
* @author zk
|
|
173
|
-
* @date 2023-09-21 06:09:50
|
|
176
|
+
* @description 计算列的固定状态
|
|
174
177
|
* @protected
|
|
175
178
|
* @memberof TreeGridExController
|
|
176
179
|
*/
|
|
177
180
|
protected calcColumnFixed(): void;
|
|
178
181
|
/**
|
|
179
|
-
*
|
|
180
|
-
* @
|
|
181
|
-
* @
|
|
182
|
-
* @
|
|
183
|
-
* @return {*} {(ITreeGridExRowState | undefined)}
|
|
182
|
+
* @description 获取表格行状态
|
|
183
|
+
* @param {string} key
|
|
184
|
+
* @returns {*} {(ITreeGridExRowState | undefined)}
|
|
185
|
+
* @memberof TreeGridExController
|
|
184
186
|
*/
|
|
185
187
|
getRowState(key: string): ITreeGridExRowState | undefined;
|
|
188
|
+
/**
|
|
189
|
+
* @description 节点加载之后
|
|
190
|
+
* @param {ITreeNodeData[]} nodes 树节点数据
|
|
191
|
+
* @returns {*} {Promise<void>}
|
|
192
|
+
* @memberof TreeGridExController
|
|
193
|
+
*/
|
|
186
194
|
afterLoadNodes(nodes: ITreeNodeData[]): Promise<void>;
|
|
187
195
|
/**
|
|
188
196
|
* @description 转换各类多语言
|
|
@@ -190,60 +198,73 @@ export declare class TreeGridExController<T extends IDETreeGridEx = IDETreeGridE
|
|
|
190
198
|
* @memberof TreeGridExController
|
|
191
199
|
*/
|
|
192
200
|
protected convertMultipleLanguages(): void;
|
|
201
|
+
/**
|
|
202
|
+
* @description 保存数据
|
|
203
|
+
* @param {ITreeNodeData} nodeData 树节点数据
|
|
204
|
+
* @returns {*} {Promise<void>}
|
|
205
|
+
* @memberof TreeGridExController
|
|
206
|
+
*/
|
|
193
207
|
save(nodeData: ITreeNodeData): Promise<void>;
|
|
208
|
+
/**
|
|
209
|
+
* @description 保存所有变更数据
|
|
210
|
+
* @returns {*} {Promise<void>}
|
|
211
|
+
* @memberof TreeGridExController
|
|
212
|
+
*/
|
|
194
213
|
saveAll(): Promise<void>;
|
|
195
214
|
/**
|
|
196
|
-
* 树表格状态变更通知
|
|
197
|
-
*
|
|
198
|
-
* @
|
|
199
|
-
* @
|
|
215
|
+
* @description 树表格状态变更通知
|
|
216
|
+
* @param {TreeGridExRowState} row
|
|
217
|
+
* @param {TreeGridExNotifyState} state
|
|
218
|
+
* @memberof TreeGridExController
|
|
200
219
|
*/
|
|
201
220
|
gridStateNotify(row: TreeGridExRowState, state: TreeGridExNotifyState): void;
|
|
202
221
|
/**
|
|
203
|
-
* 设置行属性的值
|
|
204
|
-
*
|
|
205
|
-
* @
|
|
206
|
-
* @
|
|
207
|
-
* @param {
|
|
208
|
-
* @
|
|
209
|
-
* @
|
|
210
|
-
* @param {boolean} ignore 忽略脏值检查
|
|
222
|
+
* @description 设置行属性的值
|
|
223
|
+
* @param {TreeGridExRowState} row 行状态
|
|
224
|
+
* @param {string} name 属性名称
|
|
225
|
+
* @param {unknown} value 值
|
|
226
|
+
* @param {boolean} [ignore=false] 忽略脏值检查
|
|
227
|
+
* @returns {*} {Promise<void>}
|
|
228
|
+
* @memberof TreeGridExController
|
|
211
229
|
*/
|
|
212
230
|
setRowValue(row: TreeGridExRowState, name: string, value: unknown, ignore?: boolean): Promise<void>;
|
|
213
231
|
/**
|
|
214
|
-
* 通知所有表格编辑项成员表格编辑项数据变更
|
|
215
|
-
*
|
|
216
|
-
* @
|
|
217
|
-
* @
|
|
218
|
-
* @
|
|
219
|
-
* @param {string[]} names 更新的属性
|
|
232
|
+
* @description 通知所有表格编辑项成员表格编辑项数据变更
|
|
233
|
+
* @param {TreeGridExRowState} row
|
|
234
|
+
* @param {string[]} names
|
|
235
|
+
* @returns {*} {Promise<void>}
|
|
236
|
+
* @memberof TreeGridExController
|
|
220
237
|
*/
|
|
221
238
|
dataChangeNotify(row: TreeGridExRowState, names: string[]): Promise<void>;
|
|
239
|
+
/**
|
|
240
|
+
* @description 切换行编辑状态
|
|
241
|
+
* @returns {*} {Promise<void>}
|
|
242
|
+
* @memberof TreeGridExController
|
|
243
|
+
*/
|
|
222
244
|
toggleRowEdit(): Promise<void>;
|
|
223
245
|
/**
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
* @
|
|
227
|
-
* @
|
|
228
|
-
* @
|
|
229
|
-
* @param {boolean} isCreate
|
|
230
|
-
* @return {*} {IData}
|
|
246
|
+
* @description 计算默认值
|
|
247
|
+
* @param {ITreeNodeData} data 节点数据
|
|
248
|
+
* @param {boolean} isCreate 是否为新建
|
|
249
|
+
* @returns {*} {IData}
|
|
250
|
+
* @memberof TreeGridExController
|
|
231
251
|
*/
|
|
232
252
|
calcDefaultValue(data: ITreeNodeData, isCreate: boolean): IData;
|
|
233
253
|
/**
|
|
234
|
-
* 切换单行的编辑状态
|
|
235
|
-
* @
|
|
236
|
-
* @
|
|
237
|
-
* @param {
|
|
238
|
-
* @
|
|
254
|
+
* @description 切换单行的编辑状态
|
|
255
|
+
* @param {TreeGridExRowState} row 行状态
|
|
256
|
+
* @param {boolean} [editable] 是否为编辑状态
|
|
257
|
+
* @param {boolean} [isSave=true] 是否保存数据
|
|
258
|
+
* @returns {*} {Promise<void>}
|
|
259
|
+
* @memberof TreeGridExController
|
|
239
260
|
*/
|
|
240
261
|
switchRowEdit(row: TreeGridExRowState, editable?: boolean, isSave?: boolean): Promise<void>;
|
|
241
262
|
/**
|
|
242
|
-
* 树节点点击事件
|
|
243
|
-
*
|
|
244
|
-
* @param {
|
|
263
|
+
* @description 树节点点击事件
|
|
264
|
+
* @param {ITreeNodeData} _nodeData
|
|
265
|
+
* @param {MouseEvent} event
|
|
245
266
|
* @returns {*} {Promise<void>}
|
|
246
|
-
* @memberof
|
|
267
|
+
* @memberof TreeGridExController
|
|
247
268
|
*/
|
|
248
269
|
onTreeNodeClick(_nodeData: ITreeNodeData, event: MouseEvent): Promise<void>;
|
|
249
270
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-grid-ex.controller.d.ts","sourceRoot":"","sources":["../../../../src/controller/control/tree-grid-ex/tree-grid-ex.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,aAAa,EAKd,MAAM,kBAAkB,CAAC;AAQ1B,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EAEnB,qBAAqB,EACrB,yBAAyB,EAC1B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,cAAc,E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;OAOG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,4BAA4B,CAAA;KAAE,CAAM;IAEhE;;;;;OAKG;IACH,IAAI,iBAAiB,IAAI,OAAO,CAE/B;IAED;;;;;;OAMG;IACH,IAAI,YAAY,IAAI,OAAO,CAE1B;IAED,SAAS,CAAC,SAAS,IAAI,IAAI;
|
|
1
|
+
{"version":3,"file":"tree-grid-ex.controller.d.ts","sourceRoot":"","sources":["../../../../src/controller/control/tree-grid-ex/tree-grid-ex.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,aAAa,EAKd,MAAM,kBAAkB,CAAC;AAQ1B,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EAEnB,qBAAqB,EACrB,yBAAyB,EAC1B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,+BAA+B,EAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAkC,MAAM,aAAa,CAAC;AAE9E;;;;;;;;;GASG;AACH,qBAAa,oBAAoB,CAC7B,CAAC,SAAS,aAAa,GAAG,aAAa,EACvC,CAAC,SAAS,gBAAgB,GAAG,gBAAgB,EAC7C,CAAC,SAAS,gBAAgB,GAAG,gBAAgB,CAE/C,SAAQ,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAC9B,YAAW,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAEjC,OAAO,EAAE,iBAAiB,CAAC;IAEnC,SAAS,KAAK,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vB,QAAQ,CAAC,EAAE,OAAO,EAClB,MAAM,GAAE,OAAc,GACrB,OAAO,CAAC,IAAI,CAAC;IAmDhB;;;;;;OAMG;IACG,eAAe,CACnB,SAAS,EAAE,aAAa,EACxB,KAAK,EAAE,UAAU,GAChB,OAAO,CAAC,IAAI,CAAC;CAoDjB"}
|
|
@@ -133,19 +133,35 @@ export class TreeGridExController extends TreeController {
|
|
|
133
133
|
get allowRowEdit() {
|
|
134
134
|
return this.state.rowEditOpen;
|
|
135
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* @description 初始化state
|
|
138
|
+
* @protected
|
|
139
|
+
* @memberof TreeGridExController
|
|
140
|
+
*/
|
|
136
141
|
initState() {
|
|
137
142
|
super.initState();
|
|
138
143
|
this.state.columnStates = [];
|
|
139
144
|
this.state.rootNodes = [];
|
|
140
145
|
this.state.rows = {};
|
|
141
|
-
// this.state.rowEditOpen = false;
|
|
142
146
|
this.state.rowEditOpen = true;
|
|
143
147
|
}
|
|
148
|
+
/**
|
|
149
|
+
* @description 生命周期-创建完成
|
|
150
|
+
* @protected
|
|
151
|
+
* @returns {*} {Promise<void>}
|
|
152
|
+
* @memberof TreeGridExController
|
|
153
|
+
*/
|
|
144
154
|
async onCreated() {
|
|
145
155
|
await super.onCreated();
|
|
146
156
|
await this.initGridColumns();
|
|
147
157
|
this.initColumnStates();
|
|
148
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* @description 初始化部件服务
|
|
161
|
+
* @protected
|
|
162
|
+
* @returns {*} {Promise<void>}
|
|
163
|
+
* @memberof TreeGridExController
|
|
164
|
+
*/
|
|
149
165
|
async initService() {
|
|
150
166
|
this.service = new TreeGridExService(this.model);
|
|
151
167
|
await this.service.init(this.context);
|
|
@@ -176,12 +192,9 @@ export class TreeGridExController extends TreeController {
|
|
|
176
192
|
await Promise.all(asyncTasks);
|
|
177
193
|
}
|
|
178
194
|
/**
|
|
179
|
-
* 初始化树表格(增强)属性列,操作列,编辑项控制器
|
|
180
|
-
*
|
|
181
|
-
* @author zk
|
|
182
|
-
* @date 2023-09-21 06:09:28
|
|
195
|
+
* @description 初始化树表格(增强)属性列,操作列,编辑项控制器
|
|
183
196
|
* @protected
|
|
184
|
-
* @
|
|
197
|
+
* @returns {*} {Promise<void>}
|
|
185
198
|
* @memberof TreeGridExController
|
|
186
199
|
*/
|
|
187
200
|
async initGridColumns() {
|
|
@@ -190,13 +203,10 @@ export class TreeGridExController extends TreeController {
|
|
|
190
203
|
}
|
|
191
204
|
}
|
|
192
205
|
/**
|
|
193
|
-
* 初始化树表格(增强)属性列,操作列,编辑项控制器
|
|
194
|
-
*
|
|
195
|
-
* @author zk
|
|
196
|
-
* @date 2023-09-21 06:09:37
|
|
206
|
+
* @description 初始化树表格(增强)属性列,操作列,编辑项控制器
|
|
197
207
|
* @protected
|
|
198
208
|
* @param {IDETreeColumn} column
|
|
199
|
-
* @
|
|
209
|
+
* @returns {*} {Promise<void>}
|
|
200
210
|
* @memberof TreeGridExController
|
|
201
211
|
*/
|
|
202
212
|
async initColumnsController(column) {
|
|
@@ -220,11 +230,10 @@ export class TreeGridExController extends TreeController {
|
|
|
220
230
|
}
|
|
221
231
|
}
|
|
222
232
|
/**
|
|
223
|
-
*
|
|
224
|
-
*
|
|
233
|
+
* @description 部件加载之后
|
|
225
234
|
* @param {MDCtrlLoadParams} args
|
|
226
235
|
* @param {IData[]} items
|
|
227
|
-
* @
|
|
236
|
+
* @returns {*} {Promise<IData[]>}
|
|
228
237
|
* @memberof TreeGridExController
|
|
229
238
|
*/
|
|
230
239
|
async afterLoad(args, items) {
|
|
@@ -233,10 +242,9 @@ export class TreeGridExController extends TreeController {
|
|
|
233
242
|
return items;
|
|
234
243
|
}
|
|
235
244
|
/**
|
|
236
|
-
* 更新列状态
|
|
237
|
-
*
|
|
245
|
+
* @description 更新列状态
|
|
238
246
|
* @param {IData} rows
|
|
239
|
-
* @
|
|
247
|
+
* @returns {*} {Promise<void>}
|
|
240
248
|
* @memberof TreeGridExController
|
|
241
249
|
*/
|
|
242
250
|
async updateRows(rows) {
|
|
@@ -247,10 +255,7 @@ export class TreeGridExController extends TreeController {
|
|
|
247
255
|
});
|
|
248
256
|
}
|
|
249
257
|
/**
|
|
250
|
-
* 初始化树表格(增强)列状态
|
|
251
|
-
*
|
|
252
|
-
* @author zk
|
|
253
|
-
* @date 2023-09-21 06:09:43
|
|
258
|
+
* @description 初始化树表格(增强)列状态
|
|
254
259
|
* @protected
|
|
255
260
|
* @memberof TreeGridExController
|
|
256
261
|
*/
|
|
@@ -272,10 +277,7 @@ export class TreeGridExController extends TreeController {
|
|
|
272
277
|
this.calcColumnFixed();
|
|
273
278
|
}
|
|
274
279
|
/**
|
|
275
|
-
* 计算列的固定状态
|
|
276
|
-
*
|
|
277
|
-
* @author zk
|
|
278
|
-
* @date 2023-09-21 06:09:50
|
|
280
|
+
* @description 计算列的固定状态
|
|
279
281
|
* @protected
|
|
280
282
|
* @memberof TreeGridExController
|
|
281
283
|
*/
|
|
@@ -291,11 +293,10 @@ export class TreeGridExController extends TreeController {
|
|
|
291
293
|
});
|
|
292
294
|
}
|
|
293
295
|
/**
|
|
294
|
-
*
|
|
295
|
-
* @
|
|
296
|
-
* @
|
|
297
|
-
* @
|
|
298
|
-
* @return {*} {(ITreeGridExRowState | undefined)}
|
|
296
|
+
* @description 获取表格行状态
|
|
297
|
+
* @param {string} key
|
|
298
|
+
* @returns {*} {(ITreeGridExRowState | undefined)}
|
|
299
|
+
* @memberof TreeGridExController
|
|
299
300
|
*/
|
|
300
301
|
getRowState(key) {
|
|
301
302
|
const nodeData = this.getNodeData(key);
|
|
@@ -303,6 +304,12 @@ export class TreeGridExController extends TreeController {
|
|
|
303
304
|
return this.state.rows[nodeData._uuid];
|
|
304
305
|
}
|
|
305
306
|
}
|
|
307
|
+
/**
|
|
308
|
+
* @description 节点加载之后
|
|
309
|
+
* @param {ITreeNodeData[]} nodes 树节点数据
|
|
310
|
+
* @returns {*} {Promise<void>}
|
|
311
|
+
* @memberof TreeGridExController
|
|
312
|
+
*/
|
|
306
313
|
async afterLoadNodes(nodes) {
|
|
307
314
|
await super.afterLoadNodes(nodes);
|
|
308
315
|
// 封装更新树表格行数据
|
|
@@ -327,6 +334,12 @@ export class TreeGridExController extends TreeController {
|
|
|
327
334
|
column.caption = ibiz.i18n.t(column.capLanguageRes.lanResTag, column.caption);
|
|
328
335
|
});
|
|
329
336
|
}
|
|
337
|
+
/**
|
|
338
|
+
* @description 保存数据
|
|
339
|
+
* @param {ITreeNodeData} nodeData 树节点数据
|
|
340
|
+
* @returns {*} {Promise<void>}
|
|
341
|
+
* @memberof TreeGridExController
|
|
342
|
+
*/
|
|
330
343
|
async save(nodeData) {
|
|
331
344
|
if (this.state.isSimple) {
|
|
332
345
|
ibiz.log.debug(ibiz.i18n.t('runtime.controller.common.md.simpleMode'));
|
|
@@ -343,10 +356,6 @@ export class TreeGridExController extends TreeController {
|
|
|
343
356
|
ibiz.log.debug(ibiz.i18n.t('runtime.controller.common.md.noChange'));
|
|
344
357
|
return;
|
|
345
358
|
}
|
|
346
|
-
// const isValid = await this.validate(rowState);
|
|
347
|
-
// if (!isValid) {
|
|
348
|
-
// throw new RuntimeError('行数据校验不通过,保存取消');
|
|
349
|
-
// }
|
|
350
359
|
// 如果数据正在处理中,则延迟保存
|
|
351
360
|
if (rowState.processing) {
|
|
352
361
|
await awaitTimeout(500, this.save.bind(this), [nodeData]);
|
|
@@ -385,6 +394,11 @@ export class TreeGridExController extends TreeController {
|
|
|
385
394
|
await this.updateRows(this.state.rows);
|
|
386
395
|
await this._evt.emit('onSaveSuccess', undefined);
|
|
387
396
|
}
|
|
397
|
+
/**
|
|
398
|
+
* @description 保存所有变更数据
|
|
399
|
+
* @returns {*} {Promise<void>}
|
|
400
|
+
* @memberof TreeGridExController
|
|
401
|
+
*/
|
|
388
402
|
async saveAll() {
|
|
389
403
|
const needSaveData = Object.values(this.state.rows)
|
|
390
404
|
.filter(row => row.modified)
|
|
@@ -397,10 +411,10 @@ export class TreeGridExController extends TreeController {
|
|
|
397
411
|
}));
|
|
398
412
|
}
|
|
399
413
|
/**
|
|
400
|
-
* 树表格状态变更通知
|
|
401
|
-
*
|
|
402
|
-
* @
|
|
403
|
-
* @
|
|
414
|
+
* @description 树表格状态变更通知
|
|
415
|
+
* @param {TreeGridExRowState} row
|
|
416
|
+
* @param {TreeGridExNotifyState} state
|
|
417
|
+
* @memberof TreeGridExController
|
|
404
418
|
*/
|
|
405
419
|
gridStateNotify(row, state) {
|
|
406
420
|
// 通知表格编辑列
|
|
@@ -409,14 +423,13 @@ export class TreeGridExController extends TreeController {
|
|
|
409
423
|
});
|
|
410
424
|
}
|
|
411
425
|
/**
|
|
412
|
-
* 设置行属性的值
|
|
413
|
-
*
|
|
414
|
-
* @
|
|
415
|
-
* @
|
|
416
|
-
* @param {
|
|
417
|
-
* @
|
|
418
|
-
* @
|
|
419
|
-
* @param {boolean} ignore 忽略脏值检查
|
|
426
|
+
* @description 设置行属性的值
|
|
427
|
+
* @param {TreeGridExRowState} row 行状态
|
|
428
|
+
* @param {string} name 属性名称
|
|
429
|
+
* @param {unknown} value 值
|
|
430
|
+
* @param {boolean} [ignore=false] 忽略脏值检查
|
|
431
|
+
* @returns {*} {Promise<void>}
|
|
432
|
+
* @memberof TreeGridExController
|
|
420
433
|
*/
|
|
421
434
|
async setRowValue(row, name, value, ignore = false) {
|
|
422
435
|
if (Object.prototype.hasOwnProperty.call(row.data, name) &&
|
|
@@ -432,23 +445,17 @@ export class TreeGridExController extends TreeController {
|
|
|
432
445
|
row.processing = true;
|
|
433
446
|
try {
|
|
434
447
|
await this.dataChangeNotify(row, [name]);
|
|
435
|
-
// await this._evt.emit('onGridDataChange', {
|
|
436
|
-
// data: this.state.rows.map(_row => {
|
|
437
|
-
// return _row.data;
|
|
438
|
-
// }),
|
|
439
|
-
// });
|
|
440
448
|
}
|
|
441
449
|
finally {
|
|
442
450
|
row.processing = false;
|
|
443
451
|
}
|
|
444
452
|
}
|
|
445
453
|
/**
|
|
446
|
-
* 通知所有表格编辑项成员表格编辑项数据变更
|
|
447
|
-
*
|
|
448
|
-
* @
|
|
449
|
-
* @
|
|
450
|
-
* @
|
|
451
|
-
* @param {string[]} names 更新的属性
|
|
454
|
+
* @description 通知所有表格编辑项成员表格编辑项数据变更
|
|
455
|
+
* @param {TreeGridExRowState} row
|
|
456
|
+
* @param {string[]} names
|
|
457
|
+
* @returns {*} {Promise<void>}
|
|
458
|
+
* @memberof TreeGridExController
|
|
452
459
|
*/
|
|
453
460
|
async dataChangeNotify(row, names) {
|
|
454
461
|
// 通知所有编辑项去处理编辑项相关逻辑
|
|
@@ -456,17 +463,20 @@ export class TreeGridExController extends TreeController {
|
|
|
456
463
|
return column.dataChangeNotify(row, names);
|
|
457
464
|
}));
|
|
458
465
|
}
|
|
466
|
+
/**
|
|
467
|
+
* @description 切换行编辑状态
|
|
468
|
+
* @returns {*} {Promise<void>}
|
|
469
|
+
* @memberof TreeGridExController
|
|
470
|
+
*/
|
|
459
471
|
async toggleRowEdit() {
|
|
460
472
|
this.state.rowEditOpen = !this.state.rowEditOpen;
|
|
461
473
|
}
|
|
462
474
|
/**
|
|
463
|
-
*
|
|
464
|
-
*
|
|
465
|
-
* @
|
|
466
|
-
* @
|
|
467
|
-
* @
|
|
468
|
-
* @param {boolean} isCreate
|
|
469
|
-
* @return {*} {IData}
|
|
475
|
+
* @description 计算默认值
|
|
476
|
+
* @param {ITreeNodeData} data 节点数据
|
|
477
|
+
* @param {boolean} isCreate 是否为新建
|
|
478
|
+
* @returns {*} {IData}
|
|
479
|
+
* @memberof TreeGridExController
|
|
470
480
|
*/
|
|
471
481
|
calcDefaultValue(data, isCreate) {
|
|
472
482
|
const result = {};
|
|
@@ -491,24 +501,20 @@ export class TreeGridExController extends TreeController {
|
|
|
491
501
|
return result;
|
|
492
502
|
}
|
|
493
503
|
/**
|
|
494
|
-
* 切换单行的编辑状态
|
|
495
|
-
* @
|
|
496
|
-
* @
|
|
497
|
-
* @param {
|
|
498
|
-
* @
|
|
504
|
+
* @description 切换单行的编辑状态
|
|
505
|
+
* @param {TreeGridExRowState} row 行状态
|
|
506
|
+
* @param {boolean} [editable] 是否为编辑状态
|
|
507
|
+
* @param {boolean} [isSave=true] 是否保存数据
|
|
508
|
+
* @returns {*} {Promise<void>}
|
|
509
|
+
* @memberof TreeGridExController
|
|
499
510
|
*/
|
|
500
511
|
async switchRowEdit(row, editable, isSave = true) {
|
|
501
|
-
if (!this.allowRowEdit)
|
|
502
|
-
return;
|
|
503
|
-
}
|
|
504
|
-
if (row.data._nodeType !== 'DE') {
|
|
512
|
+
if (!this.allowRowEdit || row.data._nodeType !== 'DE')
|
|
505
513
|
return;
|
|
506
|
-
}
|
|
507
514
|
const toState = editable === undefined ? !row.showRowEdit : editable;
|
|
508
515
|
// 一样的状态不处理
|
|
509
|
-
if (row.showRowEdit === toState)
|
|
516
|
+
if (row.showRowEdit === toState)
|
|
510
517
|
return;
|
|
511
|
-
}
|
|
512
518
|
if (toState === false) {
|
|
513
519
|
// * 处理关闭行编辑
|
|
514
520
|
if (isSave) {
|
|
@@ -550,11 +556,11 @@ export class TreeGridExController extends TreeController {
|
|
|
550
556
|
this._evt.emit('onRowEditChange', { row });
|
|
551
557
|
}
|
|
552
558
|
/**
|
|
553
|
-
* 树节点点击事件
|
|
554
|
-
*
|
|
555
|
-
* @param {
|
|
559
|
+
* @description 树节点点击事件
|
|
560
|
+
* @param {ITreeNodeData} _nodeData
|
|
561
|
+
* @param {MouseEvent} event
|
|
556
562
|
* @returns {*} {Promise<void>}
|
|
557
|
-
* @memberof
|
|
563
|
+
* @memberof TreeGridExController
|
|
558
564
|
*/
|
|
559
565
|
async onTreeNodeClick(_nodeData, event) {
|
|
560
566
|
var _a, _b;
|
|
@@ -15,13 +15,19 @@ import { IApiAppMenuState } from '../../state';
|
|
|
15
15
|
*/
|
|
16
16
|
export interface IApiMenuController<T extends IAppMenu = IAppMenu, S extends IApiAppMenuState = IApiAppMenuState> extends IApiControlController<T, S> {
|
|
17
17
|
/**
|
|
18
|
-
* @description 所有菜单项
|
|
19
|
-
* @
|
|
18
|
+
* @description 所有菜单项(平铺数据)
|
|
19
|
+
* @returns {*} {IAppMenuItem[]}
|
|
20
20
|
* @memberof IApiMenuController
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
getAllItems(): IAppMenuItem[];
|
|
23
23
|
/**
|
|
24
|
-
* @description
|
|
24
|
+
* @description 获取默认打开菜单项
|
|
25
|
+
* @returns {*} {(IAppMenuItem | undefined)}
|
|
26
|
+
* @memberof IApiMenuController
|
|
27
|
+
*/
|
|
28
|
+
getDefaultOpenMenuItem(): IAppMenuItem | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* @description 获取菜单默认打开视图标识
|
|
25
31
|
* @returns {*} {(string | undefined)}
|
|
26
32
|
* @memberof IApiMenuController
|
|
27
33
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-api-app-menu.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/api/controller/control/i-api-app-menu.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,kBAAkB,CACjC,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAC7B,CAAC,SAAS,gBAAgB,GAAG,gBAAgB,CAC7C,SAAQ,qBAAqB,CAAC,CAAC,EAAE,CAAC,CAAC;IACnC;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"i-api-app-menu.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/api/controller/control/i-api-app-menu.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,kBAAkB,CACjC,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAC7B,CAAC,SAAS,gBAAgB,GAAG,gBAAgB,CAC7C,SAAQ,qBAAqB,CAAC,CAAC,EAAE,CAAC,CAAC;IACnC;;;;OAIG;IACH,WAAW,IAAI,YAAY,EAAE,CAAC;IAE9B;;;;OAIG;IACH,sBAAsB,IAAI,YAAY,GAAG,SAAS,CAAC;IAEnD;;;;OAIG;IACH,kBAAkB,IAAI,MAAM,GAAG,SAAS,CAAC;CAC1C"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IDashboard } from '@ibiz/model-core';
|
|
2
|
+
import { IApiParams } from '@ibiz-template/core';
|
|
2
3
|
import { IApiControlController } from './i-api-control.controller';
|
|
3
4
|
import { IApiDashboardState } from '../../state';
|
|
4
5
|
import { IApiPortletController } from './portlet';
|
|
@@ -28,7 +29,7 @@ import { IApiPortletTypeMapping } from '../common';
|
|
|
28
29
|
*/
|
|
29
30
|
export interface IApiDashboardController<T extends IDashboard = IDashboard, S extends IApiDashboardState = IApiDashboardState> extends IApiControlController<T, S> {
|
|
30
31
|
/**
|
|
31
|
-
* @description
|
|
32
|
+
* @description 门户控制器,key为门户部件标识
|
|
32
33
|
* @type {{ [key: string]: IApiPortletController }}
|
|
33
34
|
* @memberof IApiDashboardController
|
|
34
35
|
*/
|
|
@@ -47,6 +48,22 @@ export interface IApiDashboardController<T extends IDashboard = IDashboard, S ex
|
|
|
47
48
|
* @memberof IApiDashboardController
|
|
48
49
|
*/
|
|
49
50
|
resetPortlets(): Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* @description 打开过滤器设计界面
|
|
53
|
+
* @param {{ id?: string }} [args] { id } 过滤部件标识
|
|
54
|
+
* @returns {*} {Promise<void>}
|
|
55
|
+
* @memberof IApiDashboardController
|
|
56
|
+
*/
|
|
57
|
+
openFilterDesignPage(args?: {
|
|
58
|
+
id?: string;
|
|
59
|
+
}): Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* @description 通过门户部件标识获取参数
|
|
62
|
+
* @param {string} id 门户部件标识
|
|
63
|
+
* @returns {*} {IApiParams}
|
|
64
|
+
* @memberof IApiDashboardController
|
|
65
|
+
*/
|
|
66
|
+
getExtendParamsById(id: string): IApiParams;
|
|
50
67
|
/**
|
|
51
68
|
* @description 获取门户部件
|
|
52
69
|
* @template K
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-api-dashboard.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/api/controller/control/i-api-dashboard.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,WAAW,uBAAuB,CACtC,CAAC,SAAS,UAAU,GAAG,UAAU,EACjC,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,CACjD,SAAQ,qBAAqB,CAAC,CAAC,EAAE,CAAC,CAAC;IACnC;;;;OAIG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,qBAAqB,CAAA;KAAE,CAAC;IAEnD;;;;OAIG;IACH,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzB;;;;OAIG;IACH,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE/B;;;;;;;OAOG;IACH,UAAU,CAAC,CAAC,SAAS,MAAM,sBAAsB,EAC/C,IAAI,EAAE,CAAC,EACP,EAAE,EAAE,MAAM,GACT,sBAAsB,CAAC,CAAC,CAAC,CAAC;CAC9B"}
|
|
1
|
+
{"version":3,"file":"i-api-dashboard.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/api/controller/control/i-api-dashboard.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,WAAW,uBAAuB,CACtC,CAAC,SAAS,UAAU,GAAG,UAAU,EACjC,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,CACjD,SAAQ,qBAAqB,CAAC,CAAC,EAAE,CAAC,CAAC;IACnC;;;;OAIG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,qBAAqB,CAAA;KAAE,CAAC;IAEnD;;;;OAIG;IACH,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzB;;;;OAIG;IACH,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE/B;;;;;OAKG;IACH,oBAAoB,CAAC,IAAI,CAAC,EAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5D;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,CAAC;IAE5C;;;;;;;OAOG;IACH,UAAU,CAAC,CAAC,SAAS,MAAM,sBAAsB,EAC/C,IAAI,EAAE,CAAC,EACP,EAAE,EAAE,MAAM,GACT,sBAAsB,CAAC,CAAC,CAAC,CAAC;CAC9B"}
|
|
@@ -21,13 +21,13 @@ export interface IApiDRBarController<T extends IDRBar = IDRBar, S extends IApiDR
|
|
|
21
21
|
*/
|
|
22
22
|
getData(): IApiData[];
|
|
23
23
|
/**
|
|
24
|
-
* @description
|
|
24
|
+
* @description 设置激活项,触发对应关系视图切换加载
|
|
25
25
|
* @param {string} name 项标识
|
|
26
26
|
* @memberof IApiDRBarController
|
|
27
27
|
*/
|
|
28
28
|
setActive(name: string): void;
|
|
29
29
|
/**
|
|
30
|
-
* @description
|
|
30
|
+
* @description 获取数据关系项,为解决关系项是树状结构补充此方法
|
|
31
31
|
* @param {string} tag
|
|
32
32
|
* @param {IApiDRBarItemsState[]} [items]
|
|
33
33
|
* @returns {*} {(IApiDRBarItemsState | undefined)}
|