@ibiz-template/runtime 0.7.0 → 0.7.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/index.esm.js CHANGED
@@ -13519,6 +13519,7 @@ var _AppFuncCommand = class _AppFuncCommand {
13519
13519
  const _context = context.clone();
13520
13520
  Object.assign(_context, convertNavData(navigateContexts, params, context));
13521
13521
  const _params = convertNavData(navigateParams, params, context);
13522
+ Object.assign(_params, params);
13522
13523
  switch (appFuncType) {
13523
13524
  case "APPVIEW":
13524
13525
  return this.openAppView(appFunc, _context, _params, opts);
@@ -27205,28 +27206,35 @@ var GridController = class extends MDControlController {
27205
27206
  this.gridStateNotify(row, "LOAD" /* LOAD */);
27206
27207
  return row;
27207
27208
  });
27208
- this.state.rows.forEach((row) => {
27209
- Object.values(row.uaColStates).forEach((uaState) => {
27210
- uaState.update(
27211
- this.context,
27212
- row.data.getOrigin(),
27213
- this.model.appDataEntityId
27214
- );
27215
- });
27216
- });
27217
- this.state.rows.forEach((row) => {
27218
- Object.values(row.uiActionGroupStates).forEach((uaState) => {
27219
- uaState.update(
27220
- this.context,
27221
- row.data.getOrigin(),
27222
- this.model.appDataEntityId
27223
- );
27224
- });
27225
- });
27209
+ await this.updateRows(this.state.rows);
27226
27210
  this.calcGroupData(items);
27227
27211
  this.calcAggResult(items);
27228
27212
  return items;
27229
27213
  }
27214
+ /**
27215
+ * 更新行状态
27216
+ * @param rows
27217
+ */
27218
+ async updateRows(rows) {
27219
+ for (const row of rows) {
27220
+ await Promise.all([
27221
+ ...Object.values(row.uaColStates).map(
27222
+ (uaState) => uaState.update(
27223
+ this.context,
27224
+ row.data.getOrigin(),
27225
+ this.model.appDataEntityId
27226
+ )
27227
+ ),
27228
+ ...Object.values(row.uiActionGroupStates).map(
27229
+ (uaState) => uaState.update(
27230
+ this.context,
27231
+ row.data.getOrigin(),
27232
+ this.model.appDataEntityId
27233
+ )
27234
+ )
27235
+ ]);
27236
+ }
27237
+ }
27230
27238
  /**
27231
27239
  * 计算分组数据
27232
27240
  * @author lxm
@@ -31192,6 +31200,7 @@ var TabExpPanelController = class extends ControlController {
31192
31200
  navViewMsg.isRoutePushed = true;
31193
31201
  }
31194
31202
  this.evt.emit("onNavViewChange", { navViewMsg });
31203
+ this.evt.emit("onTabChange", { tab });
31195
31204
  }
31196
31205
  /**
31197
31206
  * 当前激活tab模型