@ibiz-template/vue3-util 0.7.34 → 0.7.37-alpha.3

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.
Files changed (79) hide show
  1. package/dist/index.min.css +1 -1
  2. package/dist/index.system.min.js +1 -1
  3. package/es/common/badge/badge.d.ts +1 -1
  4. package/es/common/code-list/code-list.d.ts +1 -1
  5. package/es/common/code-list/code-list.d.ts.map +1 -1
  6. package/es/common/code-list/code-list.mjs +17 -3
  7. package/es/common/control-loading-placeholder/control-loading-placeholder.d.ts +1 -1
  8. package/es/common/control-shell/control-shell.d.ts +1 -1
  9. package/es/common/icon/icon.d.ts +1 -1
  10. package/es/common/router-view/router-view.d.ts +3 -4
  11. package/es/common/router-view/router-view.d.ts.map +1 -1
  12. package/es/common/view-shell/view-shell.d.ts +11 -8
  13. package/es/common/view-shell/view-shell.d.ts.map +1 -1
  14. package/es/common/view-shell/view-shell.mjs +61 -32
  15. package/es/control/panel/panel/index.d.ts +1 -1
  16. package/es/control/panel/panel/panel.d.ts +1 -1
  17. package/es/control/panel/view-layout-panel/index.d.ts +1 -1
  18. package/es/control/panel/view-layout-panel/view-layout-panel.d.ts +2 -2
  19. package/es/control/panel/view-layout-panel/view-layout-panel.d.ts.map +1 -1
  20. package/es/panel-component/grid-container/grid-container.d.ts +1 -1
  21. package/es/panel-component/grid-container/index.d.ts +1 -1
  22. package/es/panel-component/multi-data-container/index.d.ts +1 -1
  23. package/es/panel-component/multi-data-container/multi-data-container.controller.d.ts +9 -0
  24. package/es/panel-component/multi-data-container/multi-data-container.controller.d.ts.map +1 -1
  25. package/es/panel-component/multi-data-container/multi-data-container.controller.mjs +32 -7
  26. package/es/panel-component/multi-data-container/multi-data-container.d.ts +2 -2
  27. package/es/panel-component/multi-data-container/multi-data-container.d.ts.map +1 -1
  28. package/es/panel-component/nav-pos/index.d.ts +1 -1
  29. package/es/panel-component/nav-pos/nav-pos.d.ts +1 -1
  30. package/es/panel-component/nav-pos/nav-pos.d.ts.map +1 -1
  31. package/es/panel-component/nav-pos/nav-pos.mjs +1 -1
  32. package/es/panel-component/panel-container/index.d.ts +1 -1
  33. package/es/panel-component/panel-container/panel-container.d.ts +1 -1
  34. package/es/panel-component/panel-container-group/index.d.ts +1 -1
  35. package/es/panel-component/panel-container-group/panel-container-group.d.ts +1 -1
  36. package/es/panel-component/panel-container-image/index.d.ts +1 -1
  37. package/es/panel-component/panel-container-image/panel-container-image.d.ts +1 -1
  38. package/es/panel-component/panel-container-tabs/index.d.ts +1 -1
  39. package/es/panel-component/panel-container-tabs/panel-container-tabs.d.ts +1 -1
  40. package/es/panel-component/panel-ctrl-pos/index.d.ts +1 -1
  41. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts +1 -1
  42. package/es/panel-component/panel-field/index.d.ts +1 -1
  43. package/es/panel-component/panel-field/panel-field.d.ts +1 -1
  44. package/es/panel-component/panel-item-render/index.d.ts +1 -1
  45. package/es/panel-component/panel-item-render/panel-item-render.d.ts +1 -1
  46. package/es/panel-component/panel-rawitem/index.d.ts +1 -1
  47. package/es/panel-component/panel-rawitem/panel-rawitem.d.ts +1 -1
  48. package/es/panel-component/panel-rawitem/panel-rawitem.mjs +2 -2
  49. package/es/panel-component/panel-tab-page/index.d.ts +1 -1
  50. package/es/panel-component/panel-tab-page/panel-tab-page.d.ts +1 -1
  51. package/es/panel-component/scroll-container/index.d.ts +1 -1
  52. package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts +1 -1
  53. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +1 -1
  54. package/es/panel-component/single-data-container/index.d.ts +1 -1
  55. package/es/panel-component/single-data-container/single-data-container.controller.d.ts +9 -0
  56. package/es/panel-component/single-data-container/single-data-container.controller.d.ts.map +1 -1
  57. package/es/panel-component/single-data-container/single-data-container.controller.mjs +31 -6
  58. package/es/panel-component/single-data-container/single-data-container.d.ts +2 -2
  59. package/es/panel-component/single-data-container/single-data-container.d.ts.map +1 -1
  60. package/es/panel-component/teleport-placeholder/index.d.ts +1 -1
  61. package/es/panel-component/teleport-placeholder/teleport-placeholder.d.ts +1 -1
  62. package/es/util/install.d.ts.map +1 -1
  63. package/es/view/app-redirect-view/app-redirect-view.d.ts +1 -1
  64. package/es/view/app-redirect-view/app-redirect-view.d.ts.map +1 -1
  65. package/es/view/common/index.d.ts +1 -1
  66. package/es/view/common/view.d.ts +1 -1
  67. package/es/view/de-redirect-view/de-redirect-view.d.ts +1 -1
  68. package/es/view/de-redirect-view/index.d.ts +1 -1
  69. package/es/view/portal-view/index.d.ts +1 -1
  70. package/es/view/portal-view/portal-view.d.ts +1 -1
  71. package/es/view/todo-redirect/todo-redirect.d.ts +1 -1
  72. package/es/view/todo-redirect/todo-redirect.d.ts.map +1 -1
  73. package/lib/common/code-list/code-list.cjs +15 -1
  74. package/lib/common/view-shell/view-shell.cjs +59 -30
  75. package/lib/panel-component/multi-data-container/multi-data-container.controller.cjs +31 -6
  76. package/lib/panel-component/nav-pos/nav-pos.cjs +1 -1
  77. package/lib/panel-component/panel-rawitem/panel-rawitem.cjs +2 -2
  78. package/lib/panel-component/single-data-container/single-data-container.controller.cjs +30 -5
  79. package/package.json +5 -5
@@ -91,6 +91,29 @@ class SingleDataContainerController extends runtime.PanelItemController {
91
91
  })
92
92
  );
93
93
  }
94
+ /**
95
+ * 计算导航参数
96
+ *
97
+ * @author tony001
98
+ * @date 2024-07-30 18:07:52
99
+ * @protected
100
+ * @return {*} {IData}
101
+ */
102
+ computeNavParams() {
103
+ const { navigateContexts, navigateParams } = this.model;
104
+ const context = this.panel.context.clone();
105
+ Object.assign(
106
+ context,
107
+ runtime.convertNavData(navigateContexts, this.panel.params, this.panel.context)
108
+ );
109
+ const params = runtime.convertNavData(
110
+ navigateParams,
111
+ this.panel.params,
112
+ this.panel.context
113
+ );
114
+ Object.assign(params, this.panel.params);
115
+ return { context, params };
116
+ }
94
117
  /**
95
118
  * 根据来源类型初始化容器数据
96
119
  * @author lxm
@@ -235,12 +258,13 @@ class SingleDataContainerController extends runtime.PanelItemController {
235
258
  ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity")
236
259
  );
237
260
  }
261
+ const { context, params } = this.computeNavParams();
238
262
  const data = await runtime.execDELogicById(
239
263
  appDELogicId,
240
264
  appDataEntityId,
241
- this.panel.context,
265
+ context,
242
266
  this.panel.data,
243
- this.panel.params
267
+ params
244
268
  );
245
269
  if (!data) {
246
270
  throw new core.RuntimeError(
@@ -288,12 +312,13 @@ class SingleDataContainerController extends runtime.PanelItemController {
288
312
  );
289
313
  }
290
314
  const app = ibiz.hub.getApp(this.panel.context.srfappid);
315
+ const { context, params } = this.computeNavParams();
291
316
  const res = await app.deService.exec(
292
317
  appDataEntityId,
293
318
  appDEMethodId,
294
- this.panel.context,
295
- [],
296
- this.panel.params
319
+ context,
320
+ void 0,
321
+ params
297
322
  );
298
323
  if (res.ok && res.data) {
299
324
  this.setData(res.data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-util",
3
- "version": "0.7.34",
3
+ "version": "0.7.37-alpha.3",
4
4
  "description": "vue3 工具包",
5
5
  "main": "lib/index.cjs",
6
6
  "types": "es/index.d.ts",
@@ -40,10 +40,10 @@
40
40
  "license": "MIT",
41
41
  "devDependencies": {
42
42
  "@ibiz-template/cli": "^0.3.10",
43
- "@ibiz-template/core": "^0.7.32",
44
- "@ibiz-template/runtime": "^0.7.34",
43
+ "@ibiz-template/core": "^0.7.35-alpha.1",
44
+ "@ibiz-template/runtime": "^0.7.37-alpha.3",
45
45
  "@ibiz-template/theme": "^0.7.32",
46
- "@ibiz/model-core": "^0.1.46",
46
+ "@ibiz/model-core": "^0.1.53",
47
47
  "@types/path-browserify": "^1.0.2",
48
48
  "@types/qs": "^6.9.11",
49
49
  "@types/systemjs": "^6.13.5",
@@ -60,7 +60,7 @@
60
60
  "peerDependencies": {
61
61
  "@ibiz-template/core": "^0.6.0",
62
62
  "@ibiz-template/runtime": "^0.6.0",
63
- "@ibiz/model-core": "^0.1.46",
63
+ "@ibiz/model-core": "^0.1.53",
64
64
  "dayjs": "^1.11.10",
65
65
  "path-browserify": "^1.0.1",
66
66
  "pinia": "^2.1.7",