@ibiz-template/vue3-components 0.7.4 → 0.7.5

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 (61) hide show
  1. package/dist/index-QdhEqiEH.js +4 -0
  2. package/dist/index.min.css +1 -1
  3. package/dist/index.system.min.js +1 -1
  4. package/dist/{xlsx-util-UXWgtlzc.js → xlsx-util-iqcGVBHE.js} +1 -1
  5. package/es/common/rawitem/rawitem.mjs +5 -3
  6. package/es/common/view-message/view-message.d.ts +1 -0
  7. package/es/common/view-message/view-message.mjs +5 -1
  8. package/es/control/app-menu/app-menu.mjs +5 -3
  9. package/es/control/drbar/drbar.mjs +9 -4
  10. package/es/control/drtab/drtab.controller.mjs +3 -0
  11. package/es/control/drtab/drtab.mjs +17 -5
  12. package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +5 -4
  13. package/es/control/grid/grid/grid-control.util.d.ts +3 -0
  14. package/es/control/grid/grid/grid-control.util.mjs +97 -1
  15. package/es/control/grid/grid/grid.mjs +8 -1
  16. package/es/control/grid/grid/index.mjs +1 -1
  17. package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +1 -0
  18. package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +14 -3
  19. package/es/control/grid/grid-column/grid-field-column/index.d.ts +1 -0
  20. package/es/control/grid/index.mjs +1 -1
  21. package/es/control/index.mjs +1 -1
  22. package/es/control/tree/tree.mjs +9 -4
  23. package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +1 -1
  24. package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.mjs +7 -1
  25. package/es/editor/code/monaco-editor/monaco-editor.mjs +13 -1
  26. package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +1 -1
  27. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +7 -1
  28. package/es/editor/list-box/ibiz-list-box/ibiz-list-box.mjs +7 -1
  29. package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.mjs +7 -1
  30. package/es/editor/span/span/span.mjs +7 -1
  31. package/es/index.mjs +1 -1
  32. package/es/panel-component/nav-pos-index/nav-pos-index.controller.d.ts +27 -0
  33. package/es/panel-component/nav-pos-index/nav-pos-index.controller.mjs +43 -0
  34. package/es/panel-component/nav-pos-index/nav-pos-index.mjs +3 -0
  35. package/lib/common/rawitem/rawitem.cjs +5 -3
  36. package/lib/common/view-message/view-message.cjs +5 -1
  37. package/lib/control/app-menu/app-menu.cjs +5 -3
  38. package/lib/control/drbar/drbar.cjs +8 -3
  39. package/lib/control/drtab/drtab.cjs +16 -4
  40. package/lib/control/drtab/drtab.controller.cjs +3 -0
  41. package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +5 -4
  42. package/lib/control/grid/grid/grid-control.util.cjs +97 -0
  43. package/lib/control/grid/grid/grid.cjs +7 -0
  44. package/lib/control/grid/grid/index.cjs +1 -0
  45. package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +13 -2
  46. package/lib/control/grid/index.cjs +1 -0
  47. package/lib/control/index.cjs +1 -0
  48. package/lib/control/tree/tree.cjs +8 -3
  49. package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +1 -1
  50. package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.cjs +6 -0
  51. package/lib/editor/code/monaco-editor/monaco-editor.cjs +13 -1
  52. package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +1 -1
  53. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +6 -0
  54. package/lib/editor/list-box/ibiz-list-box/ibiz-list-box.cjs +6 -0
  55. package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.cjs +6 -0
  56. package/lib/editor/span/span/span.cjs +6 -0
  57. package/lib/index.cjs +1 -0
  58. package/lib/panel-component/nav-pos-index/nav-pos-index.cjs +3 -0
  59. package/lib/panel-component/nav-pos-index/nav-pos-index.controller.cjs +43 -0
  60. package/package.json +6 -6
  61. package/dist/index-36xAWDJE.js +0 -4
@@ -71,6 +71,9 @@ const NavPosIndex = /* @__PURE__ */ vue.defineComponent({
71
71
  default: ({
72
72
  Component
73
73
  }) => {
74
+ if (this.c.noCache) {
75
+ return Component ? vue.createVNode(Component, null, null) : null;
76
+ }
74
77
  return vue.createVNode(vue.resolveComponent("keepAlive"), {
75
78
  "include": cacheKeys,
76
79
  "max": 30,
@@ -2,6 +2,7 @@
2
2
 
3
3
  var runtime = require('@ibiz-template/runtime');
4
4
  var vue3Util = require('@ibiz-template/vue3-util');
5
+ var qxUtil = require('qx-util');
5
6
  var navPosIndex_state = require('./nav-pos-index.state.cjs');
6
7
 
7
8
  "use strict";
@@ -35,6 +36,23 @@ class NavPosIndexController extends runtime.PanelItemController {
35
36
  * @type {boolean}
36
37
  */
37
38
  __publicField(this, "autoGoLast", true);
39
+ /**
40
+ * 无缓存
41
+ * @author lxm
42
+ * @date 2024-04-22 04:12:41
43
+ * @readonly
44
+ * @type {boolean}
45
+ */
46
+ __publicField(this, "noCache", false);
47
+ /**
48
+ * 自定义补充参数
49
+ *
50
+ * @author zk
51
+ * @date 2023-09-27 03:09:02
52
+ * @type {IData}
53
+ * @memberof NavPosController
54
+ */
55
+ __publicField(this, "rawItemParams", {});
38
56
  }
39
57
  createState() {
40
58
  var _a;
@@ -72,6 +90,11 @@ class NavPosIndexController extends runtime.PanelItemController {
72
90
  get appmenu() {
73
91
  return this.panel.getController("appmenu");
74
92
  }
93
+ async onInit() {
94
+ await super.onInit();
95
+ this.handleRawItemParams();
96
+ this.noCache = this.rawItemParams.expcache === "NO_CACHE";
97
+ }
75
98
  /**
76
99
  * 改变显示视图
77
100
  * @author lxm
@@ -250,6 +273,26 @@ class NavPosIndexController extends runtime.PanelItemController {
250
273
  ibiz.util.setBrowserTitle("");
251
274
  }
252
275
  }
276
+ /**
277
+ * 处理自定义补充参数 [{key:'name',value:'data'}] => {name:'data'}
278
+ *
279
+ * @author zk
280
+ * @date 2023-09-27 03:09:55
281
+ * @protected
282
+ * @memberof NavPosController
283
+ */
284
+ handleRawItemParams() {
285
+ var _a;
286
+ let params = {};
287
+ const rawItemParams = (_a = this.model.rawItem) == null ? void 0 : _a.rawItemParams;
288
+ if (qxUtil.notNilEmpty(rawItemParams)) {
289
+ params = rawItemParams.reduce((param, item) => {
290
+ param[item.key.toLowerCase()] = item.value;
291
+ return param;
292
+ }, {});
293
+ }
294
+ Object.assign(this.rawItemParams, params);
295
+ }
253
296
  }
254
297
 
255
298
  exports.NavPosIndexController = NavPosIndexController;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-components",
3
- "version": "0.7.4",
3
+ "version": "0.7.5",
4
4
  "description": "使用 rollup 编译 vue 组件或者 jsx",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.mjs",
@@ -32,12 +32,12 @@
32
32
  "@ibiz-template-plugin/gantt": "0.1.3-alpha.46",
33
33
  "@ibiz-template/core": "0.7.3",
34
34
  "@ibiz-template/devtool": "0.0.1-dev.6",
35
- "@ibiz-template/model-helper": "0.7.4",
36
- "@ibiz-template/runtime": "0.7.4",
35
+ "@ibiz-template/model-helper": "0.7.5",
36
+ "@ibiz-template/runtime": "0.7.5",
37
37
  "@ibiz-template/theme": "^0.7.0",
38
- "@ibiz-template/vue3-util": "0.7.4",
38
+ "@ibiz-template/vue3-util": "0.7.5",
39
39
  "@ibiz-template/web-theme": "^1.1.16",
40
- "@ibiz/model-core": "^0.1.20",
40
+ "@ibiz/model-core": "^0.1.21",
41
41
  "@imengyu/vue3-context-menu": "^1.3.5",
42
42
  "@monaco-editor/loader": "^1.4.0",
43
43
  "@wangeditor/editor": "^5.1.23",
@@ -100,7 +100,7 @@
100
100
  "@ibiz-template/runtime": "^0.7.0",
101
101
  "@ibiz-template/theme": "^0.7.0",
102
102
  "@ibiz-template/vue3-util": "^0.7.0",
103
- "@ibiz/model-core": "^0.1.20",
103
+ "@ibiz/model-core": "^0.1.21",
104
104
  "@imengyu/vue3-context-menu": "^1.3.3",
105
105
  "@monaco-editor/loader": "^1.3.3",
106
106
  "@wangeditor/editor": "^5.1.23",