@ibiz-template/vue3-util 0.7.41-alpha.111 → 0.7.41-alpha.113

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 (133) hide show
  1. package/dist/index.min.css +1 -1
  2. package/dist/index.system.min.js +1 -1
  3. package/es/control/panel/view-layout-panel/view-layout-panel.d.ts.map +1 -1
  4. package/es/control/panel/view-layout-panel/view-layout-panel.mjs +8 -3
  5. package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.css +1 -1
  6. package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.d.ts +2 -0
  7. package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.d.ts.map +1 -1
  8. package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.mjs +16 -5
  9. package/es/panel-component/auth-wxmp-qrcode/index.d.ts +2 -0
  10. package/es/panel-component/auth-wxmp-qrcode/index.d.ts.map +1 -1
  11. package/es/panel-component/grid-container/grid-container.d.ts +2 -0
  12. package/es/panel-component/grid-container/grid-container.d.ts.map +1 -1
  13. package/es/panel-component/grid-container/grid-container.mjs +12 -2
  14. package/es/panel-component/grid-container/index.d.ts +2 -0
  15. package/es/panel-component/grid-container/index.d.ts.map +1 -1
  16. package/es/panel-component/multi-data-container/index.d.ts +2 -0
  17. package/es/panel-component/multi-data-container/index.d.ts.map +1 -1
  18. package/es/panel-component/multi-data-container/multi-data-container.d.ts +2 -0
  19. package/es/panel-component/multi-data-container/multi-data-container.d.ts.map +1 -1
  20. package/es/panel-component/multi-data-container/multi-data-container.mjs +16 -3
  21. package/es/panel-component/multi-data-container-raw/index.d.ts +2 -0
  22. package/es/panel-component/multi-data-container-raw/index.d.ts.map +1 -1
  23. package/es/panel-component/multi-data-container-raw/multi-data-container-raw.d.ts +2 -0
  24. package/es/panel-component/multi-data-container-raw/multi-data-container-raw.d.ts.map +1 -1
  25. package/es/panel-component/multi-data-container-raw/multi-data-container-raw.mjs +19 -4
  26. package/es/panel-component/nav-pos/index.d.ts +2 -0
  27. package/es/panel-component/nav-pos/index.d.ts.map +1 -1
  28. package/es/panel-component/nav-pos/nav-pos.d.ts +2 -0
  29. package/es/panel-component/nav-pos/nav-pos.d.ts.map +1 -1
  30. package/es/panel-component/nav-pos/nav-pos.mjs +18 -3
  31. package/es/panel-component/panel-container/index.d.ts +2 -0
  32. package/es/panel-component/panel-container/index.d.ts.map +1 -1
  33. package/es/panel-component/panel-container/panel-container.d.ts +2 -0
  34. package/es/panel-component/panel-container/panel-container.d.ts.map +1 -1
  35. package/es/panel-component/panel-container/panel-container.mjs +23 -5
  36. package/es/panel-component/panel-container-image/index.d.ts +2 -0
  37. package/es/panel-component/panel-container-image/index.d.ts.map +1 -1
  38. package/es/panel-component/panel-container-image/panel-container-image.d.ts +2 -0
  39. package/es/panel-component/panel-container-image/panel-container-image.d.ts.map +1 -1
  40. package/es/panel-component/panel-container-image/panel-container-image.mjs +19 -4
  41. package/es/panel-component/panel-ctrl-pos/index.d.ts +2 -0
  42. package/es/panel-component/panel-ctrl-pos/index.d.ts.map +1 -1
  43. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts +2 -0
  44. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts.map +1 -1
  45. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.mjs +16 -4
  46. package/es/panel-component/panel-ctrl-view-page-caption/index.d.ts +2 -0
  47. package/es/panel-component/panel-ctrl-view-page-caption/index.d.ts.map +1 -1
  48. package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.d.ts +2 -0
  49. package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.d.ts.map +1 -1
  50. package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.mjs +12 -3
  51. package/es/panel-component/panel-field/index.d.ts +2 -0
  52. package/es/panel-component/panel-field/index.d.ts.map +1 -1
  53. package/es/panel-component/panel-field/panel-field.d.ts +2 -0
  54. package/es/panel-component/panel-field/panel-field.d.ts.map +1 -1
  55. package/es/panel-component/panel-field/panel-field.mjs +14 -5
  56. package/es/panel-component/panel-item-render/index.d.ts +2 -0
  57. package/es/panel-component/panel-item-render/index.d.ts.map +1 -1
  58. package/es/panel-component/panel-item-render/panel-item-render.d.ts +2 -0
  59. package/es/panel-component/panel-item-render/panel-item-render.d.ts.map +1 -1
  60. package/es/panel-component/panel-item-render/panel-item-render.mjs +10 -2
  61. package/es/panel-component/panel-rawitem/index.d.ts +2 -0
  62. package/es/panel-component/panel-rawitem/index.d.ts.map +1 -1
  63. package/es/panel-component/panel-rawitem/panel-rawitem.d.ts +2 -0
  64. package/es/panel-component/panel-rawitem/panel-rawitem.d.ts.map +1 -1
  65. package/es/panel-component/panel-rawitem/panel-rawitem.mjs +12 -4
  66. package/es/panel-component/panel-tab-page/index.d.ts +2 -0
  67. package/es/panel-component/panel-tab-page/index.d.ts.map +1 -1
  68. package/es/panel-component/panel-tab-page/panel-tab-page.d.ts +2 -0
  69. package/es/panel-component/panel-tab-page/panel-tab-page.d.ts.map +1 -1
  70. package/es/panel-component/panel-tab-page/panel-tab-page.mjs +16 -2
  71. package/es/panel-component/scroll-container/index.d.ts +2 -0
  72. package/es/panel-component/scroll-container/index.d.ts.map +1 -1
  73. package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts +2 -0
  74. package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts.map +1 -1
  75. package/es/panel-component/scroll-container/scroll-container/scroll-container.mjs +22 -12
  76. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +2 -0
  77. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts.map +1 -1
  78. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.mjs +16 -2
  79. package/es/panel-component/single-data-container/index.d.ts +2 -0
  80. package/es/panel-component/single-data-container/index.d.ts.map +1 -1
  81. package/es/panel-component/single-data-container/single-data-container.d.ts +2 -0
  82. package/es/panel-component/single-data-container/single-data-container.d.ts.map +1 -1
  83. package/es/panel-component/single-data-container/single-data-container.mjs +18 -3
  84. package/es/panel-component/teleport-placeholder/index.d.ts +2 -0
  85. package/es/panel-component/teleport-placeholder/index.d.ts.map +1 -1
  86. package/es/panel-component/teleport-placeholder/teleport-placeholder.d.ts +2 -0
  87. package/es/panel-component/teleport-placeholder/teleport-placeholder.d.ts.map +1 -1
  88. package/es/panel-component/teleport-placeholder/teleport-placeholder.mjs +10 -3
  89. package/es/use/use-semantic-node/use-semantic-node.d.ts +2 -2
  90. package/es/use/use-semantic-node/use-semantic-node.d.ts.map +1 -1
  91. package/es/use/use-semantic-node/use-semantic-node.mjs +12 -2
  92. package/lib/control/panel/view-layout-panel/view-layout-panel.cjs +8 -3
  93. package/lib/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.cjs +16 -5
  94. package/lib/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.css +1 -1
  95. package/lib/panel-component/grid-container/grid-container.cjs +12 -2
  96. package/lib/panel-component/multi-data-container/multi-data-container.cjs +16 -3
  97. package/lib/panel-component/multi-data-container-raw/multi-data-container-raw.cjs +19 -4
  98. package/lib/panel-component/nav-pos/nav-pos.cjs +18 -3
  99. package/lib/panel-component/panel-container/panel-container.cjs +23 -5
  100. package/lib/panel-component/panel-container-image/panel-container-image.cjs +19 -4
  101. package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.cjs +16 -4
  102. package/lib/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.cjs +12 -3
  103. package/lib/panel-component/panel-field/panel-field.cjs +14 -5
  104. package/lib/panel-component/panel-item-render/panel-item-render.cjs +10 -2
  105. package/lib/panel-component/panel-rawitem/panel-rawitem.cjs +12 -4
  106. package/lib/panel-component/panel-tab-page/panel-tab-page.cjs +16 -2
  107. package/lib/panel-component/scroll-container/scroll-container/scroll-container.cjs +22 -12
  108. package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.cjs +16 -2
  109. package/lib/panel-component/single-data-container/single-data-container.cjs +18 -3
  110. package/lib/panel-component/teleport-placeholder/teleport-placeholder.cjs +10 -3
  111. package/lib/use/use-semantic-node/use-semantic-node.cjs +12 -2
  112. package/package.json +6 -6
  113. package/src/control/panel/view-layout-panel/view-layout-panel.tsx +8 -2
  114. package/src/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.scss +2 -0
  115. package/src/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.tsx +19 -6
  116. package/src/panel-component/grid-container/grid-container.tsx +8 -2
  117. package/src/panel-component/multi-data-container/multi-data-container.tsx +13 -4
  118. package/src/panel-component/multi-data-container-raw/multi-data-container-raw.tsx +12 -4
  119. package/src/panel-component/nav-pos/nav-pos.tsx +16 -3
  120. package/src/panel-component/panel-container/panel-container.tsx +20 -6
  121. package/src/panel-component/panel-container-image/panel-container-image.tsx +13 -5
  122. package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.tsx +11 -4
  123. package/src/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.tsx +10 -3
  124. package/src/panel-component/panel-field/panel-field.tsx +26 -5
  125. package/src/panel-component/panel-item-render/panel-item-render.tsx +5 -3
  126. package/src/panel-component/panel-rawitem/panel-rawitem.tsx +25 -4
  127. package/src/panel-component/panel-tab-page/panel-tab-page.tsx +18 -3
  128. package/src/panel-component/scroll-container/scroll-container/scroll-container.tsx +37 -9
  129. package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.tsx +7 -3
  130. package/src/panel-component/single-data-container/single-data-container.tsx +12 -4
  131. package/src/panel-component/teleport-placeholder/teleport-placeholder.tsx +5 -4
  132. package/src/use/use-semantic-node/use-semantic-node.ts +20 -6
  133. package/src/view/common/view.scss +3 -2
@@ -1 +1 @@
1
- {"version":3,"file":"view-layout-panel.d.ts","sourceRoot":"","sources":["../../../../src/control/panel/view-layout-panel/view-layout-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAGR,KAAK,EAKN,MAAM,KAAK,CAAC;AACb,OAAO,EAGL,UAAU,EAEV,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAEL,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAIlB,yBAAyB,EAC1B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,0BAA0B,CAAC;AAyBlC;;GAEG;AACH,eAAO,MAAM,sBAAsB;IAG/B;;OAEG;;;;;IAKH;;OAEG;;;;;IAEH;;;OAGG;;;;;IAEH;;;OAGG;;;;IAEH;;OAEG;;;;IAEH;;OAEG;;;;;;;iCAuCU,UAAU,YACX;QACR,SAAS,EAAE;YACT,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAAC;SACnC,CAAC;QACF,UAAU,EAAE;YACV,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAC;SACrC,CAAC;KACH,KACA,KAAK,GAAG,IAAI;;IA3Ef;;OAEG;;;;;IAKH;;OAEG;;;;;IAEH;;;OAGG;;;;;IAEH;;;OAGG;;;;IAEH;;OAEG;;;;IAEH;;OAEG;;;;;;4EAiLL,CAAC"}
1
+ {"version":3,"file":"view-layout-panel.d.ts","sourceRoot":"","sources":["../../../../src/control/panel/view-layout-panel/view-layout-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAGR,KAAK,EAKN,MAAM,KAAK,CAAC;AACb,OAAO,EAGL,UAAU,EAEV,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAEL,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAIlB,yBAAyB,EAC1B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,0BAA0B,CAAC;AAyBlC;;GAEG;AACH,eAAO,MAAM,sBAAsB;IAG/B;;OAEG;;;;;IAKH;;OAEG;;;;;IAEH;;;OAGG;;;;;IAEH;;;OAGG;;;;IAEH;;OAEG;;;;IAEH;;OAEG;;;;;;;iCAuCU,UAAU,YACX;QACR,SAAS,EAAE;YACT,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAAC;SACnC,CAAC;QACF,UAAU,EAAE;YACV,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAC;SACrC,CAAC;KACH,KACA,KAAK,GAAG,IAAI;;IA3Ef;;OAEG;;;;;IAKH;;OAEG;;;;;IAEH;;;OAGG;;;;;IAEH;;;OAGG;;;;IAEH;;OAEG;;;;IAEH;;OAEG;;;;;;4EAuLL,CAAC"}
@@ -115,14 +115,19 @@ const ViewLayoutPanelControl = /* @__PURE__ */ defineComponent({
115
115
  if (panelItem.itemType === "CTRLPOS" && slots[panelItem.id]) {
116
116
  const panelItemC2 = panelItems[panelItem.id];
117
117
  if (panelItemC2.parent && isSimpleDataContainer(panelItemC2.parent.model)) {
118
- children = () => {
118
+ children = (event = {}) => {
119
119
  return slots[panelItem.id]({
120
120
  isSimple: true,
121
- data: panelItemC2.data
121
+ data: panelItemC2.data,
122
+ class: event.class,
123
+ style: event.style
122
124
  });
123
125
  };
124
126
  } else {
125
- children = () => slots[panelItem.id]();
127
+ children = (event = {}) => slots[panelItem.id]({
128
+ class: event.class,
129
+ style: event.style
130
+ });
126
131
  }
127
132
  } else if (panelItem.itemType === "TABPANEL" && ((_a = panelItem.panelTabPages) == null ? void 0 : _a.length)) {
128
133
  children = () => {
@@ -1 +1 @@
1
- .ibiz-auth-wxmp-qrcode{--ibiz-auth-wxmp-qrcode-caption-font-size:var(--ibiz-font-size-small);--ibiz-auth-wxmp-qrcode-bg-color:rgba(255, 255, 255, 0.9);--ibiz-auth-wxmp-qrcode-mask-color:var(--ibiz-color-primary);--ibiz-auth-wxmp-qrcode-mask-icon-font-size:var(--ibiz-font-size-header-1);--ibiz-auth-wxmp-qrcode-mask-icon-hover-color:var(--ibiz-color-primary-hover);width:100%;height:100%}.ibiz-auth-wxmp-qrcode__content{position:relative;width:100%;height:100%}.ibiz-auth-wxmp-qrcode__qrcode{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.ibiz-auth-wxmp-qrcode__caption{font-size:var(--ibiz-auth-wxmp-qrcode-caption-font-size);text-align:center}.ibiz-auth-wxmp-qrcode__mask{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--ibiz-auth-wxmp-qrcode-mask-color);background-color:var(--ibiz-auth-wxmp-qrcode-bg-color)}.ibiz-auth-wxmp-qrcode__mask--icon{font-size:var(--ibiz-auth-wxmp-qrcode-mask-icon-font-size);cursor:pointer}.ibiz-auth-wxmp-qrcode__mask--icon:hover{color:var(--ibiz-auth-wxmp-qrcode-mask-icon-hover-color)}
1
+ .ibiz-auth-wxmp-qrcode{--ibiz-auth-wxmp-qrcode-caption-font-size:var(--ibiz-font-size-small);--ibiz-auth-wxmp-qrcode-bg-color:rgba(255, 255, 255, 0.9);--ibiz-auth-wxmp-qrcode-mask-color:var(--ibiz-color-primary);--ibiz-auth-wxmp-qrcode-mask-icon-font-size:var(--ibiz-font-size-header-1);--ibiz-auth-wxmp-qrcode-mask-icon-hover-color:var(--ibiz-color-primary-hover);display:flex;flex-direction:column;width:100%;height:100%}.ibiz-auth-wxmp-qrcode__content{position:relative;width:100%;height:100%}.ibiz-auth-wxmp-qrcode__qrcode{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.ibiz-auth-wxmp-qrcode__caption{font-size:var(--ibiz-auth-wxmp-qrcode-caption-font-size);text-align:center}.ibiz-auth-wxmp-qrcode__mask{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--ibiz-auth-wxmp-qrcode-mask-color);background-color:var(--ibiz-auth-wxmp-qrcode-bg-color)}.ibiz-auth-wxmp-qrcode__mask--icon{font-size:var(--ibiz-auth-wxmp-qrcode-mask-icon-font-size);cursor:pointer}.ibiz-auth-wxmp-qrcode__mask--icon:hover{color:var(--ibiz-auth-wxmp-qrcode-mask-icon-hover-color)}
@@ -28,6 +28,8 @@ export declare const AuthWxmpQrcode: import("vue").DefineComponent<import("vue")
28
28
  }>, {
29
29
  ns: import("@ibiz-template/core").Namespace;
30
30
  loadQrcode: () => Promise<void>;
31
+ semanticClass: import("../../use").UseSemanticClassReturn;
32
+ semanticStyle: import("../../use").UseSemanticStyleReturn;
31
33
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
32
34
  /**
33
35
  * @description 微信二维码模型
@@ -1 +1 @@
1
- {"version":3,"file":"auth-wxmp-qrcode.d.ts","sourceRoot":"","sources":["../../../src/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,QAAQ,EAAgC,MAAM,KAAK,CAAC;AAEpE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,OAAO,yBAAyB,CAAC;AAEjC;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;IAGvB;;OAEG;;;;;IAKH;;OAEG;;;;;;;sBAiB0B,QAAQ,IAAI,CAAC;;IA1B1C;;OAEG;;;;;IAKH;;OAEG;;;;;iGAoEL,CAAC"}
1
+ {"version":3,"file":"auth-wxmp-qrcode.d.ts","sourceRoot":"","sources":["../../../src/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,QAAQ,EAAgC,MAAM,KAAK,CAAC;AAEpE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,OAAO,yBAAyB,CAAC;AAEjC;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;IAGvB;;OAEG;;;;;IAKH;;OAEG;;;;;;;sBAkB0B,QAAQ,IAAI,CAAC;;;;IA3B1C;;OAEG;;;;;IAKH;;OAEG;;;;;iGAiFL,CAAC"}
@@ -3,6 +3,7 @@ import { useRoute } from 'vue-router';
3
3
  import '../../use/index.mjs';
4
4
  import './auth-wxmp-qrcode.css';
5
5
  import { useNamespace } from '../../use/namespace/namespace.mjs';
6
+ import { useSemanticNode } from '../../use/use-semantic-node/use-semantic-node.mjs';
6
7
 
7
8
  "use strict";
8
9
  const AuthWxmpQrcode = /* @__PURE__ */ defineComponent({
@@ -30,6 +31,10 @@ const AuthWxmpQrcode = /* @__PURE__ */ defineComponent({
30
31
  } = props.controller;
31
32
  const route = useRoute();
32
33
  props.controller.setRouter(route);
34
+ const {
35
+ semanticClass,
36
+ semanticStyle
37
+ } = useSemanticNode(props.controller);
33
38
  const loadQrcode = async () => {
34
39
  await props.controller.loadQrcode();
35
40
  };
@@ -46,27 +51,33 @@ const AuthWxmpQrcode = /* @__PURE__ */ defineComponent({
46
51
  });
47
52
  return {
48
53
  ns,
49
- loadQrcode
54
+ loadQrcode,
55
+ semanticClass,
56
+ semanticStyle
50
57
  };
51
58
  },
52
59
  render() {
53
60
  var _a, _b;
54
61
  return createVNode("div", {
55
- "class": this.ns.b()
62
+ "class": [this.ns.b(), this.semanticClass("root")],
63
+ "style": this.semanticStyle("root")
56
64
  }, [createVNode("div", {
57
65
  "class": this.ns.e("content")
58
66
  }, [this.controller.state.qrcode && createVNode("img", {
59
- "class": this.ns.e("qrcode"),
67
+ "class": [this.ns.e("qrcode"), this.semanticClass("content")],
68
+ "style": this.semanticStyle("content"),
60
69
  "src": (_a = this.controller.state.qrcode) == null ? void 0 : _a.url
61
70
  }, null), !((_b = this.controller.state.qrcode) == null ? void 0 : _b.expirein) && createVNode("div", {
62
- "class": this.ns.e("mask")
71
+ "class": [this.ns.e("mask"), this.semanticClass("mask")],
72
+ "style": this.semanticStyle("mask")
63
73
  }, [createVNode("ion-icon", {
64
74
  "title": ibiz.i18n.t("vue3Util.panelComponent.refresh"),
65
75
  "name": "reload-outline",
66
76
  "onClick": this.loadQrcode,
67
77
  "class": this.ns.em("mask", "icon")
68
78
  }, null)])]), createVNode("div", {
69
- "class": this.ns.e("caption")
79
+ "class": [this.ns.e("caption"), this.semanticClass("caption")],
80
+ "style": this.semanticStyle("caption")
70
81
  }, [this.controller.state.tips])]);
71
82
  }
72
83
  });
@@ -10,6 +10,8 @@ export declare const IBizAuthWxmpQrcode: import("../../util").TypeWithInstall<im
10
10
  }>, {
11
11
  ns: import("@ibiz-template/core").Namespace;
12
12
  loadQrcode: () => Promise<void>;
13
+ semanticClass: import("../..").UseSemanticClassReturn;
14
+ semanticStyle: import("../..").UseSemanticStyleReturn;
13
15
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
14
16
  modelData: {
15
17
  type: import("vue").PropType<import("@ibiz/model-core").IPanelRawItem>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/auth-wxmp-qrcode/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;kGAS9B,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/auth-wxmp-qrcode/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;kGAS9B,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -38,6 +38,8 @@ export declare const GridContainer: import("vue").DefineComponent<import("vue").
38
38
  convertLayoutPos: (layoutPos: IFlexLayoutPos, adaptGrow: number) => IFlexLayoutPos;
39
39
  adaptGrow: Ref<number, number>;
40
40
  adaptCols: Ref<number | undefined, number | undefined>;
41
+ semanticClass: import("../../use").UseSemanticClassReturn;
42
+ semanticStyle: import("../../use").UseSemanticStyleReturn;
41
43
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
42
44
  /**
43
45
  * @description 栅格容器模型
@@ -1 +1 @@
1
- {"version":3,"file":"grid-container.d.ts","sourceRoot":"","sources":["../../../src/panel-component/grid-container/grid-container.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAA6B,QAAQ,EAAO,GAAG,EAAS,MAAM,KAAK,CAAC;AAE3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,uBAAuB,CAAC;AAE/B;;;;GAIG;AACH,eAAO,MAAM,aAAa;IAGtB;;OAEG;;;;;IAKH;;OAEG;;;;;;;;;;;;;;;;;;kCA0BU,cAAc,aACd,MAAM,KAChB,cAAc;;;;IArCjB;;OAEG;;;;;IAKH;;OAEG;;;;;iGA+GL,CAAC"}
1
+ {"version":3,"file":"grid-container.d.ts","sourceRoot":"","sources":["../../../src/panel-component/grid-container/grid-container.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAA6B,QAAQ,EAAO,GAAG,EAAS,MAAM,KAAK,CAAC;AAE3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,uBAAuB,CAAC;AAE/B;;;;GAIG;AACH,eAAO,MAAM,aAAa;IAGtB;;OAEG;;;;;IAKH;;OAEG;;;;;;;;;;;;;;;;;;kCA2BU,cAAc,aACd,MAAM,KAChB,cAAc;;;;;;IAtCjB;;OAEG;;;;;IAKH;;OAEG;;;;;iGAqHL,CAAC"}
@@ -3,6 +3,7 @@ import '../../use/index.mjs';
3
3
  import { GridContainerController } from './grid-container.controller.mjs';
4
4
  import './grid-container.css';
5
5
  import { useNamespace } from '../../use/namespace/namespace.mjs';
6
+ import { useSemanticNode } from '../../use/use-semantic-node/use-semantic-node.mjs';
6
7
 
7
8
  "use strict";
8
9
  function _isSlot(s) {
@@ -31,6 +32,10 @@ const GridContainer = /* @__PURE__ */ defineComponent({
31
32
  const {
32
33
  id
33
34
  } = props.modelData;
35
+ const {
36
+ semanticClass,
37
+ semanticStyle
38
+ } = useSemanticNode(props.controller);
34
39
  const classArr = computed(() => {
35
40
  let result = [ns.b(), ns.m(id)];
36
41
  result = [...result, ...props.controller.containerClass, ns.is("hidden", !props.controller.state.visible)];
@@ -62,7 +67,9 @@ const GridContainer = /* @__PURE__ */ defineComponent({
62
67
  layoutModel,
63
68
  convertLayoutPos,
64
69
  adaptGrow,
65
- adaptCols
70
+ adaptCols,
71
+ semanticClass,
72
+ semanticStyle
66
73
  };
67
74
  },
68
75
  render() {
@@ -90,7 +97,8 @@ const GridContainer = /* @__PURE__ */ defineComponent({
90
97
  this.adaptGrow = adaptGrow;
91
98
  }
92
99
  return withDirectives(createVNode(resolveComponent("iBizRow"), {
93
- "class": this.classArr,
100
+ "class": [this.classArr, this.semanticClass("root")],
101
+ "style": this.semanticStyle("root"),
94
102
  "layout": this.layoutModel,
95
103
  "element-loading-text": this.controller.state.loadingText
96
104
  }, _isSlot(_slot = defaultSlots.map((slot) => {
@@ -99,6 +107,8 @@ const GridContainer = /* @__PURE__ */ defineComponent({
99
107
  return slot;
100
108
  }
101
109
  return createVNode(resolveComponent("iBizCol"), {
110
+ "class": this.semanticClass("item"),
111
+ "style": this.semanticStyle("item"),
102
112
  "layoutPos": this.convertLayoutPos(props.modelData.layoutPos, this.adaptGrow),
103
113
  "state": props.controller.state
104
114
  }, _isSlot(slot) ? slot : {
@@ -26,6 +26,8 @@ export declare const IBizGridContainer: import("../../util").TypeWithInstall<imp
26
26
  convertLayoutPos: (layoutPos: import("@ibiz/model-core").IFlexLayoutPos, adaptGrow: number) => import("@ibiz/model-core").IFlexLayoutPos;
27
27
  adaptGrow: import("vue").Ref<number, number>;
28
28
  adaptCols: import("vue").Ref<number | undefined, number | undefined>;
29
+ semanticClass: import("../..").UseSemanticClassReturn;
30
+ semanticStyle: import("../..").UseSemanticStyleReturn;
29
31
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
30
32
  modelData: {
31
33
  type: import("vue").PropType<import("@ibiz/model-core").IPanelContainer>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/grid-container/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,CAAC;AAEvD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kGAM5B,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/grid-container/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,CAAC;AAEvD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kGAM5B,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
@@ -23,6 +23,8 @@ export declare const IBizMultiDataContainer: import("../../util").TypeWithInstal
23
23
  } | undefined) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
24
24
  [key: string]: any;
25
25
  }> | null;
26
+ semanticClass: import("../..").UseSemanticClassReturn;
27
+ semanticStyle: import("../..").UseSemanticStyleReturn;
26
28
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
29
  modelData: {
28
30
  type: import("vue").PropType<import("@ibiz/model-core").IPanelContainer>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/multi-data-container/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEjF,OAAO,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,CAAC;AAEjE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kGASlC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/multi-data-container/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEjF,OAAO,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,CAAC;AAEjE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kGASlC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -34,6 +34,8 @@ export declare const MultiDataContainer: import("vue").DefineComponent<import("v
34
34
  [key: string]: IPanelItemController;
35
35
  };
36
36
  }) => VNode | null;
37
+ semanticClass: import("../../use").UseSemanticClassReturn;
38
+ semanticStyle: import("../../use").UseSemanticStyleReturn;
37
39
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
38
40
  /**
39
41
  * @description 多项数据容器模型
@@ -1 +1 @@
1
- {"version":3,"file":"multi-data-container.d.ts","sourceRoot":"","sources":["../../../src/panel-component/multi-data-container/multi-data-container.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAIL,QAAQ,EAER,KAAK,EAEN,MAAM,KAAK,CAAC;AAEb,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,6BAA6B,CAAC;AAErC;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;IAG3B;;OAEG;;;;;IAKH;;OAEG;;;;;;;;iCA8BY,UAAU,YACX;QACR,SAAS,EAAE;YACT,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAAC;SACnC,CAAC;QACF,UAAU,EAAE;YACV,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAC;SACrC,CAAC;KACH,KACE,KAAK,GAAG,IAAI;;IAhDnB;;OAEG;;;;;IAKH;;OAEG;;;;;iGA4FL,CAAC"}
1
+ {"version":3,"file":"multi-data-container.d.ts","sourceRoot":"","sources":["../../../src/panel-component/multi-data-container/multi-data-container.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAIL,QAAQ,EAER,KAAK,EAEN,MAAM,KAAK,CAAC;AAEb,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,6BAA6B,CAAC;AAErC;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;IAG3B;;OAEG;;;;;IAKH;;OAEG;;;;;;;;iCA+BY,UAAU,YACX;QACR,SAAS,EAAE;YACT,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAAC;SACnC,CAAC;QACF,UAAU,EAAE;YACV,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAC;SACrC,CAAC;KACH,KACE,KAAK,GAAG,IAAI;;;;IAjDnB;;OAEG;;;;;IAKH;;OAEG;;;;;iGAqGL,CAAC"}
@@ -3,6 +3,7 @@ import '../../use/index.mjs';
3
3
  import { MultiDataContainerController } from './multi-data-container.controller.mjs';
4
4
  import './multi-data-container.css';
5
5
  import { useNamespace } from '../../use/namespace/namespace.mjs';
6
+ import { useSemanticNode } from '../../use/use-semantic-node/use-semantic-node.mjs';
6
7
 
7
8
  "use strict";
8
9
  function _isSlot(s) {
@@ -31,6 +32,10 @@ const MultiDataContainer = /* @__PURE__ */ defineComponent({
31
32
  const {
32
33
  id
33
34
  } = props.modelData;
35
+ const {
36
+ semanticClass,
37
+ semanticStyle
38
+ } = useSemanticNode(props.controller);
34
39
  watch(() => props.controller.state.items, () => {
35
40
  props.controller.dataItems.forEach((item) => {
36
41
  item.state = reactive(item.state);
@@ -51,7 +56,9 @@ const MultiDataContainer = /* @__PURE__ */ defineComponent({
51
56
  return {
52
57
  ns,
53
58
  classArr,
54
- renderPanelItem
59
+ renderPanelItem,
60
+ semanticClass,
61
+ semanticStyle
55
62
  };
56
63
  },
57
64
  render() {
@@ -62,7 +69,12 @@ const MultiDataContainer = /* @__PURE__ */ defineComponent({
62
69
  content = this.controller.state.items.map((_item, index) => {
63
70
  const itemController = this.controller.dataItems[index];
64
71
  return createVNode(resolveComponent("iBizRow"), {
65
- "class": this.ns.b("content"),
72
+ "class": [this.ns.b("content"), this.semanticClass("item", {
73
+ data: _item
74
+ })],
75
+ "style": this.semanticStyle("item", {
76
+ data: _item
77
+ }),
66
78
  "layout": this.modelData.layout
67
79
  }, {
68
80
  default: () => {
@@ -85,7 +97,8 @@ const MultiDataContainer = /* @__PURE__ */ defineComponent({
85
97
  });
86
98
  }
87
99
  return withDirectives(createVNode("div", {
88
- "class": this.classArr,
100
+ "class": [this.classArr, this.semanticClass("root")],
101
+ "style": this.semanticStyle("root"),
89
102
  "element-loading-text": this.controller.state.loadingText
90
103
  }, [content]), [[resolveDirective("loading"), this.controller.state.loading]]);
91
104
  }
@@ -23,6 +23,8 @@ export declare const IBizMultiDataContainerRaw: import("../../util").TypeWithIns
23
23
  } | undefined) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
24
24
  [key: string]: any;
25
25
  }> | null;
26
+ semanticClass: import("../..").UseSemanticClassReturn;
27
+ semanticStyle: import("../..").UseSemanticStyleReturn;
26
28
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
29
  modelData: {
28
30
  type: import("vue").PropType<import("@ibiz/model-core").IPanelContainer>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/multi-data-container-raw/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AAExF,OAAO,EAAE,0BAA0B,EAAE,+BAA+B,EAAE,CAAC;AAEvE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kGASrC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/multi-data-container-raw/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AAExF,OAAO,EAAE,0BAA0B,EAAE,+BAA+B,EAAE,CAAC;AAEvE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kGASrC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -34,6 +34,8 @@ export declare const MultiDataContainerRaw: import("vue").DefineComponent<import
34
34
  [key: string]: IPanelItemController;
35
35
  };
36
36
  }) => VNode | null;
37
+ semanticClass: import("../../use").UseSemanticClassReturn;
38
+ semanticStyle: import("../../use").UseSemanticStyleReturn;
37
39
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
38
40
  /**
39
41
  * @description 多项数据容器(仅数据)模型
@@ -1 +1 @@
1
- {"version":3,"file":"multi-data-container-raw.d.ts","sourceRoot":"","sources":["../../../src/panel-component/multi-data-container-raw/multi-data-container-raw.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAIL,QAAQ,EAER,KAAK,EAEN,MAAM,KAAK,CAAC;AAEb,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,iCAAiC,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;IAG9B;;OAEG;;;;;IAKH;;OAEG;;;;;;;;iCA0BY,UAAU,YACX;QACR,SAAS,EAAE;YACT,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAAC;SACnC,CAAC;QACF,UAAU,EAAE;YACV,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAC;SACrC,CAAC;KACH,KACE,KAAK,GAAG,IAAI;;IA5CnB;;OAEG;;;;;IAKH;;OAEG;;;;;iGAqFL,CAAC"}
1
+ {"version":3,"file":"multi-data-container-raw.d.ts","sourceRoot":"","sources":["../../../src/panel-component/multi-data-container-raw/multi-data-container-raw.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAIL,QAAQ,EAER,KAAK,EAEN,MAAM,KAAK,CAAC;AAEb,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,iCAAiC,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;IAG9B;;OAEG;;;;;IAKH;;OAEG;;;;;;;;iCA2BY,UAAU,YACX;QACR,SAAS,EAAE;YACT,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAAC;SACnC,CAAC;QACF,UAAU,EAAE;YACV,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAC;SACrC,CAAC;KACH,KACE,KAAK,GAAG,IAAI;;;;IA7CnB;;OAEG;;;;;IAKH;;OAEG;;;;;iGA6FL,CAAC"}
@@ -3,6 +3,7 @@ import '../../use/index.mjs';
3
3
  import { MultiDataContainerRawController } from './multi-data-container-raw.controller.mjs';
4
4
  import './multi-data-container-raw.css';
5
5
  import { useNamespace } from '../../use/namespace/namespace.mjs';
6
+ import { useSemanticNode } from '../../use/use-semantic-node/use-semantic-node.mjs';
6
7
 
7
8
  "use strict";
8
9
  function _isSlot(s) {
@@ -31,6 +32,10 @@ const MultiDataContainerRaw = /* @__PURE__ */ defineComponent({
31
32
  const {
32
33
  id
33
34
  } = props.modelData;
35
+ const {
36
+ semanticClass,
37
+ semanticStyle
38
+ } = useSemanticNode(props.controller);
34
39
  watch(() => props.controller.state.items, () => {
35
40
  const keys = Object.keys(props.controller.panelItems);
36
41
  keys.forEach((key) => {
@@ -49,7 +54,9 @@ const MultiDataContainerRaw = /* @__PURE__ */ defineComponent({
49
54
  return {
50
55
  ns,
51
56
  classArr,
52
- renderPanelItem
57
+ renderPanelItem,
58
+ semanticClass,
59
+ semanticStyle
53
60
  };
54
61
  },
55
62
  render() {
@@ -58,7 +65,8 @@ const MultiDataContainerRaw = /* @__PURE__ */ defineComponent({
58
65
  content = this.$slots.default();
59
66
  } else {
60
67
  content = createVNode(resolveComponent("iBizRow"), {
61
- "class": this.ns.b("content"),
68
+ "class": [this.ns.b("content"), this.semanticClass("content")],
69
+ "style": this.semanticStyle("content"),
62
70
  "layout": this.modelData.layout
63
71
  }, {
64
72
  default: () => {
@@ -68,7 +76,13 @@ const MultiDataContainerRaw = /* @__PURE__ */ defineComponent({
68
76
  const childController = this.controller.panelItems[panelItem.id];
69
77
  return createVNode(resolveComponent("iBizCol"), {
70
78
  "layoutPos": panelItem.layoutPos,
71
- "state": childController.state
79
+ "state": childController.state,
80
+ "class": this.semanticClass("item", {
81
+ item: childController
82
+ }),
83
+ "style": this.semanticStyle("item", {
84
+ item: childController
85
+ })
72
86
  }, _isSlot(_slot = this.renderPanelItem(panelItem, {
73
87
  providers: this.controller.providers,
74
88
  panelItems: this.controller.panelItems
@@ -80,7 +94,8 @@ const MultiDataContainerRaw = /* @__PURE__ */ defineComponent({
80
94
  });
81
95
  }
82
96
  return withDirectives(createVNode("div", {
83
- "class": this.classArr,
97
+ "class": [this.classArr, this.semanticClass("root")],
98
+ "style": this.semanticStyle("root"),
84
99
  "element-loading-text": this.controller.state.loadingText
85
100
  }, [content]), [[resolveDirective("loading"), this.controller.state.loading]]);
86
101
  }
@@ -15,6 +15,8 @@ export declare const IBizNavPos: import("../../util").TypeWithInstall<import("vu
15
15
  c: NavPosController;
16
16
  isPresetView: import("vue").Ref<boolean, boolean>;
17
17
  onViewCreated: (event: import("@ibiz-template/runtime").EventBase) => void;
18
+ semanticClass: import("../..").UseSemanticClassReturn;
19
+ semanticStyle: import("../..").UseSemanticStyleReturn;
18
20
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
19
21
  modelData: {
20
22
  type: import("vue").PropType<import("@ibiz/model-core").IPanelRawItem>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/nav-pos/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC;AAEzC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;kGAGrB,CAAC;AAEH,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/nav-pos/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC;AAEzC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;kGAGrB,CAAC;AAEH,eAAe,UAAU,CAAC"}
@@ -33,6 +33,8 @@ export declare const NavPos: import("vue").DefineComponent<import("vue").Extract
33
33
  c: NavPosController;
34
34
  isPresetView: import("vue").Ref<boolean, boolean>;
35
35
  onViewCreated: (event: EventBase) => void;
36
+ semanticClass: import("../../use").UseSemanticClassReturn;
37
+ semanticStyle: import("../../use").UseSemanticStyleReturn;
36
38
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
37
39
  /**
38
40
  * @description 导航占位模型
@@ -1 +1 @@
1
- {"version":3,"file":"nav-pos.d.ts","sourceRoot":"","sources":["../../../src/panel-component/nav-pos/nav-pos.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,QAAQ,EAKT,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,gBAAgB,CAAC;AAIxB;;;;;;;;;GASG;AACH,eAAO,MAAM,MAAM;IAGf;;OAEG;;;;;IAKH;;OAEG;;;;;;;;;2BAS2B,SAAS,KAAG,IAAI;;IAlB9C;;OAEG;;;;;IAKH;;OAEG;;;;;iGAiHL,CAAC"}
1
+ {"version":3,"file":"nav-pos.d.ts","sourceRoot":"","sources":["../../../src/panel-component/nav-pos/nav-pos.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,QAAQ,EAKT,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,gBAAgB,CAAC;AAIxB;;;;;;;;;GASG;AACH,eAAO,MAAM,MAAM;IAGf;;OAEG;;;;;IAKH;;OAEG;;;;;;;;;2BAW2B,SAAS,KAAG,IAAI;;;;IApB9C;;OAEG;;;;;IAKH;;OAEG;;;;;iGA8HL,CAAC"}
@@ -5,6 +5,7 @@ import './nav-pos.css';
5
5
  import '../../use/index.mjs';
6
6
  import '../../util/index.mjs';
7
7
  import { useNamespace } from '../../use/namespace/namespace.mjs';
8
+ import { useSemanticNode } from '../../use/use-semantic-node/use-semantic-node.mjs';
8
9
  import { getNestedRoutePath } from '../../util/route/route.mjs';
9
10
 
10
11
  "use strict";
@@ -32,6 +33,10 @@ const NavPos = /* @__PURE__ */ defineComponent({
32
33
  setup(props) {
33
34
  const c = props.controller;
34
35
  const ns = useNamespace("nav-pos");
36
+ const {
37
+ semanticClass,
38
+ semanticStyle
39
+ } = useSemanticNode(props.controller);
35
40
  const onViewCreated = (event) => {
36
41
  c.onViewCreated(event);
37
42
  };
@@ -60,7 +65,9 @@ const NavPos = /* @__PURE__ */ defineComponent({
60
65
  ns,
61
66
  c,
62
67
  isPresetView,
63
- onViewCreated
68
+ onViewCreated,
69
+ semanticClass,
70
+ semanticStyle
64
71
  };
65
72
  },
66
73
  render() {
@@ -77,9 +84,14 @@ const NavPos = /* @__PURE__ */ defineComponent({
77
84
  let content = null;
78
85
  if (state.routeOpen) {
79
86
  if (this.isPresetView) {
80
- return createVNode(RouterView, null, null);
87
+ return createVNode(RouterView, {
88
+ "class": this.semanticClass("content"),
89
+ "style": this.semanticStyle("content")
90
+ }, null);
81
91
  }
82
92
  content = createVNode(resolveComponent("iBizRouterView"), {
93
+ "class": this.semanticClass("content"),
94
+ "style": this.semanticStyle("content"),
83
95
  "manualKey": currentKey,
84
96
  "modal": viewModals[currentKey],
85
97
  "onCreated": this.onViewCreated
@@ -99,6 +111,8 @@ const NavPos = /* @__PURE__ */ defineComponent({
99
111
  });
100
112
  } else {
101
113
  const view = currentKey && navViewMsgs[currentKey] ? h(resolveComponent("IBizViewShell"), {
114
+ class: this.semanticClass("content"),
115
+ style: this.semanticStyle("content"),
102
116
  context: navViewMsgs[currentKey].context,
103
117
  params: navViewMsgs[currentKey].params,
104
118
  key: !this.c.ignoreEmbedKey ? currentKey : void 0,
@@ -114,7 +128,8 @@ const NavPos = /* @__PURE__ */ defineComponent({
114
128
  }) : view;
115
129
  }
116
130
  return createVNode("div", {
117
- "class": [this.ns.b(), this.ns.m(this.modelData.id), ...this.controller.containerClass]
131
+ "class": [this.ns.b(), this.ns.m(this.modelData.id), this.semanticClass("root"), ...this.controller.containerClass],
132
+ "style": this.semanticStyle("root")
118
133
  }, [content]);
119
134
  }
120
135
  });
@@ -12,6 +12,8 @@ export declare const IBizPanelContainer: import("../../util").TypeWithInstall<im
12
12
  }>, {
13
13
  ns: import("@ibiz-template/core").Namespace;
14
14
  classArr: import("vue").ComputedRef<(string | false)[]>;
15
+ semanticClass: import("../..").UseSemanticClassReturn;
16
+ semanticStyle: import("../..").UseSemanticStyleReturn;
15
17
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
16
18
  modelData: {
17
19
  type: import("vue").PropType<import("@ibiz/model-core").IPanelContainer>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-container/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,wBAAwB,EACxB,mBAAmB,EAEpB,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,CAAC;AAEzD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;kGAc9B,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-container/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,wBAAwB,EACxB,mBAAmB,EAEpB,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,CAAC;AAEzD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;kGAc9B,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -25,6 +25,8 @@ export declare const PanelContainer: import("vue").DefineComponent<import("vue")
25
25
  }>, {
26
26
  ns: import("@ibiz-template/core").Namespace;
27
27
  classArr: import("vue").ComputedRef<(string | false)[]>;
28
+ semanticClass: import("../../use").UseSemanticClassReturn;
29
+ semanticStyle: import("../../use").UseSemanticStyleReturn;
28
30
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
29
31
  /**
30
32
  * @description 面板容器模型
@@ -1 +1 @@
1
- {"version":3,"file":"panel-container.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-container/panel-container.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAA6B,QAAQ,EAAS,MAAM,KAAK,CAAC;AAEjE,OAAO,wBAAwB,CAAC;AAEhC;;;;GAIG;AACH,eAAO,MAAM,cAAc;IAGvB;;OAEG;;;;;IAEH;;OAEG;;;;;;;;;IANH;;OAEG;;;;;IAEH;;OAEG;;;;;iGAuGL,CAAC"}
1
+ {"version":3,"file":"panel-container.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-container/panel-container.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAA6B,QAAQ,EAAS,MAAM,KAAK,CAAC;AAEjE,OAAO,wBAAwB,CAAC;AAEhC;;;;GAIG;AACH,eAAO,MAAM,cAAc;IAGvB;;OAEG;;;;;IAEH;;OAEG;;;;;;;;;;;IANH;;OAEG;;;;;IAEH;;OAEG;;;;;iGAqHL,CAAC"}
@@ -3,6 +3,7 @@ import { PanelContainerController } from '@ibiz-template/runtime';
3
3
  import '../../use/index.mjs';
4
4
  import './panel-container.css';
5
5
  import { useNamespace } from '../../use/namespace/namespace.mjs';
6
+ import { useSemanticNode } from '../../use/use-semantic-node/use-semantic-node.mjs';
6
7
 
7
8
  "use strict";
8
9
  function _isSlot(s) {
@@ -31,6 +32,10 @@ const PanelContainer = /* @__PURE__ */ defineComponent({
31
32
  const {
32
33
  id
33
34
  } = props.modelData;
35
+ const {
36
+ semanticClass,
37
+ semanticStyle
38
+ } = useSemanticNode(props.controller);
34
39
  const classArr = computed(() => {
35
40
  let result = [ns.b(), ns.m(id)];
36
41
  result = [...result, ...props.controller.containerClass, ns.is("hidden", !props.controller.state.visible)];
@@ -38,7 +43,9 @@ const PanelContainer = /* @__PURE__ */ defineComponent({
38
43
  });
39
44
  return {
40
45
  ns,
41
- classArr
46
+ classArr,
47
+ semanticClass,
48
+ semanticStyle
42
49
  };
43
50
  },
44
51
  render() {
@@ -47,6 +54,8 @@ const PanelContainer = /* @__PURE__ */ defineComponent({
47
54
  const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
48
55
  const content = createVNode(resolveComponent("iBizRow"), {
49
56
  "slot": "content",
57
+ "class": this.semanticClass("content"),
58
+ "style": this.semanticStyle("content"),
50
59
  "layout": this.modelData.layout
51
60
  }, _isSlot(_slot = defaultSlots.map((slot) => {
52
61
  const props = slot.props;
@@ -55,7 +64,13 @@ const PanelContainer = /* @__PURE__ */ defineComponent({
55
64
  }
56
65
  return createVNode(resolveComponent("iBizCol"), {
57
66
  "layoutPos": props.modelData.layoutPos,
58
- "state": props.controller.state
67
+ "state": props.controller.state,
68
+ "class": this.semanticClass("item", {
69
+ props
70
+ }),
71
+ "style": this.semanticStyle("item", {
72
+ props
73
+ })
59
74
  }, _isSlot(slot) ? slot : {
60
75
  default: () => [slot]
61
76
  });
@@ -74,7 +89,8 @@ const PanelContainer = /* @__PURE__ */ defineComponent({
74
89
  }, attributes), {
75
90
  default: () => {
76
91
  return createVNode("div", mergeProps({
77
- "class": this.classArr,
92
+ "class": [this.classArr, this.semanticClass("root")],
93
+ "style": this.semanticStyle("root"),
78
94
  "onClick": () => {
79
95
  this.controller.onClick();
80
96
  }
@@ -84,14 +100,16 @@ const PanelContainer = /* @__PURE__ */ defineComponent({
84
100
  },
85
101
  content: () => {
86
102
  return createVNode("div", {
87
- "class": this.ns.e("dynamic-tooltip-content"),
103
+ "class": [this.ns.e("dynamic-tooltip-content"), this.semanticClass("tooltip")],
104
+ "style": this.semanticStyle("tooltip"),
88
105
  "innerHTML": attrs.dynamictooltip.content
89
106
  }, null);
90
107
  }
91
108
  });
92
109
  }
93
110
  return withDirectives(createVNode("div", {
94
- "class": this.classArr,
111
+ "class": [this.classArr, this.semanticClass("root")],
112
+ "style": this.semanticStyle("root"),
95
113
  "element-loading-text": this.controller.state.loadingText,
96
114
  "onClick": (event) => this.controller.onClick(event)
97
115
  }, [this.controller.model.cssStyle ? createVNode("style", {
@@ -14,6 +14,8 @@ export declare const IBizPanelContainerImage: import("../../util").TypeWithInsta
14
14
  ns: import("@ibiz-template/core").Namespace;
15
15
  classArr: import("vue").ComputedRef<(string | false)[]>;
16
16
  backgroundStyle: import("vue").ComputedRef<{}>;
17
+ semanticClass: import("../..").UseSemanticClassReturn;
18
+ semanticStyle: import("../..").UseSemanticStyleReturn;
17
19
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
18
20
  modelData: {
19
21
  type: import("vue").PropType<import("@ibiz/model-core").IPanelContainer>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-container-image/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAEnF,OAAO,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,CAAC;AAEnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;kGASnC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-container-image/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAEnF,OAAO,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,CAAC;AAEnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;kGASnC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}