@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.
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/es/control/panel/view-layout-panel/view-layout-panel.d.ts.map +1 -1
- package/es/control/panel/view-layout-panel/view-layout-panel.mjs +8 -3
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.css +1 -1
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.d.ts +2 -0
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.d.ts.map +1 -1
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.mjs +16 -5
- package/es/panel-component/auth-wxmp-qrcode/index.d.ts +2 -0
- package/es/panel-component/auth-wxmp-qrcode/index.d.ts.map +1 -1
- package/es/panel-component/grid-container/grid-container.d.ts +2 -0
- package/es/panel-component/grid-container/grid-container.d.ts.map +1 -1
- package/es/panel-component/grid-container/grid-container.mjs +12 -2
- package/es/panel-component/grid-container/index.d.ts +2 -0
- package/es/panel-component/grid-container/index.d.ts.map +1 -1
- package/es/panel-component/multi-data-container/index.d.ts +2 -0
- package/es/panel-component/multi-data-container/index.d.ts.map +1 -1
- package/es/panel-component/multi-data-container/multi-data-container.d.ts +2 -0
- package/es/panel-component/multi-data-container/multi-data-container.d.ts.map +1 -1
- package/es/panel-component/multi-data-container/multi-data-container.mjs +16 -3
- package/es/panel-component/multi-data-container-raw/index.d.ts +2 -0
- package/es/panel-component/multi-data-container-raw/index.d.ts.map +1 -1
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.d.ts +2 -0
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.d.ts.map +1 -1
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.mjs +19 -4
- package/es/panel-component/nav-pos/index.d.ts +2 -0
- package/es/panel-component/nav-pos/index.d.ts.map +1 -1
- package/es/panel-component/nav-pos/nav-pos.d.ts +2 -0
- package/es/panel-component/nav-pos/nav-pos.d.ts.map +1 -1
- package/es/panel-component/nav-pos/nav-pos.mjs +18 -3
- package/es/panel-component/panel-container/index.d.ts +2 -0
- package/es/panel-component/panel-container/index.d.ts.map +1 -1
- package/es/panel-component/panel-container/panel-container.d.ts +2 -0
- package/es/panel-component/panel-container/panel-container.d.ts.map +1 -1
- package/es/panel-component/panel-container/panel-container.mjs +23 -5
- package/es/panel-component/panel-container-image/index.d.ts +2 -0
- package/es/panel-component/panel-container-image/index.d.ts.map +1 -1
- package/es/panel-component/panel-container-image/panel-container-image.d.ts +2 -0
- package/es/panel-component/panel-container-image/panel-container-image.d.ts.map +1 -1
- package/es/panel-component/panel-container-image/panel-container-image.mjs +19 -4
- package/es/panel-component/panel-ctrl-pos/index.d.ts +2 -0
- package/es/panel-component/panel-ctrl-pos/index.d.ts.map +1 -1
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts +2 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts.map +1 -1
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.mjs +16 -4
- package/es/panel-component/panel-ctrl-view-page-caption/index.d.ts +2 -0
- package/es/panel-component/panel-ctrl-view-page-caption/index.d.ts.map +1 -1
- package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.d.ts +2 -0
- package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.d.ts.map +1 -1
- package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.mjs +12 -3
- package/es/panel-component/panel-field/index.d.ts +2 -0
- package/es/panel-component/panel-field/index.d.ts.map +1 -1
- package/es/panel-component/panel-field/panel-field.d.ts +2 -0
- package/es/panel-component/panel-field/panel-field.d.ts.map +1 -1
- package/es/panel-component/panel-field/panel-field.mjs +14 -5
- package/es/panel-component/panel-item-render/index.d.ts +2 -0
- package/es/panel-component/panel-item-render/index.d.ts.map +1 -1
- package/es/panel-component/panel-item-render/panel-item-render.d.ts +2 -0
- package/es/panel-component/panel-item-render/panel-item-render.d.ts.map +1 -1
- package/es/panel-component/panel-item-render/panel-item-render.mjs +10 -2
- package/es/panel-component/panel-rawitem/index.d.ts +2 -0
- package/es/panel-component/panel-rawitem/index.d.ts.map +1 -1
- package/es/panel-component/panel-rawitem/panel-rawitem.d.ts +2 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.d.ts.map +1 -1
- package/es/panel-component/panel-rawitem/panel-rawitem.mjs +12 -4
- package/es/panel-component/panel-tab-page/index.d.ts +2 -0
- package/es/panel-component/panel-tab-page/index.d.ts.map +1 -1
- package/es/panel-component/panel-tab-page/panel-tab-page.d.ts +2 -0
- package/es/panel-component/panel-tab-page/panel-tab-page.d.ts.map +1 -1
- package/es/panel-component/panel-tab-page/panel-tab-page.mjs +16 -2
- package/es/panel-component/scroll-container/index.d.ts +2 -0
- package/es/panel-component/scroll-container/index.d.ts.map +1 -1
- package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts +2 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts.map +1 -1
- package/es/panel-component/scroll-container/scroll-container/scroll-container.mjs +22 -12
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +2 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts.map +1 -1
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.mjs +16 -2
- package/es/panel-component/single-data-container/index.d.ts +2 -0
- package/es/panel-component/single-data-container/index.d.ts.map +1 -1
- package/es/panel-component/single-data-container/single-data-container.d.ts +2 -0
- package/es/panel-component/single-data-container/single-data-container.d.ts.map +1 -1
- package/es/panel-component/single-data-container/single-data-container.mjs +18 -3
- package/es/panel-component/teleport-placeholder/index.d.ts +2 -0
- package/es/panel-component/teleport-placeholder/index.d.ts.map +1 -1
- package/es/panel-component/teleport-placeholder/teleport-placeholder.d.ts +2 -0
- package/es/panel-component/teleport-placeholder/teleport-placeholder.d.ts.map +1 -1
- package/es/panel-component/teleport-placeholder/teleport-placeholder.mjs +10 -3
- package/es/use/use-semantic-node/use-semantic-node.d.ts +2 -2
- package/es/use/use-semantic-node/use-semantic-node.d.ts.map +1 -1
- package/es/use/use-semantic-node/use-semantic-node.mjs +12 -2
- package/lib/control/panel/view-layout-panel/view-layout-panel.cjs +8 -3
- package/lib/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.cjs +16 -5
- package/lib/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.css +1 -1
- package/lib/panel-component/grid-container/grid-container.cjs +12 -2
- package/lib/panel-component/multi-data-container/multi-data-container.cjs +16 -3
- package/lib/panel-component/multi-data-container-raw/multi-data-container-raw.cjs +19 -4
- package/lib/panel-component/nav-pos/nav-pos.cjs +18 -3
- package/lib/panel-component/panel-container/panel-container.cjs +23 -5
- package/lib/panel-component/panel-container-image/panel-container-image.cjs +19 -4
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.cjs +16 -4
- package/lib/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.cjs +12 -3
- package/lib/panel-component/panel-field/panel-field.cjs +14 -5
- package/lib/panel-component/panel-item-render/panel-item-render.cjs +10 -2
- package/lib/panel-component/panel-rawitem/panel-rawitem.cjs +12 -4
- package/lib/panel-component/panel-tab-page/panel-tab-page.cjs +16 -2
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.cjs +22 -12
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.cjs +16 -2
- package/lib/panel-component/single-data-container/single-data-container.cjs +18 -3
- package/lib/panel-component/teleport-placeholder/teleport-placeholder.cjs +10 -3
- package/lib/use/use-semantic-node/use-semantic-node.cjs +12 -2
- package/package.json +6 -6
- package/src/control/panel/view-layout-panel/view-layout-panel.tsx +8 -2
- package/src/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.scss +2 -0
- package/src/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.tsx +19 -6
- package/src/panel-component/grid-container/grid-container.tsx +8 -2
- package/src/panel-component/multi-data-container/multi-data-container.tsx +13 -4
- package/src/panel-component/multi-data-container-raw/multi-data-container-raw.tsx +12 -4
- package/src/panel-component/nav-pos/nav-pos.tsx +16 -3
- package/src/panel-component/panel-container/panel-container.tsx +20 -6
- package/src/panel-component/panel-container-image/panel-container-image.tsx +13 -5
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.tsx +11 -4
- package/src/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.tsx +10 -3
- package/src/panel-component/panel-field/panel-field.tsx +26 -5
- package/src/panel-component/panel-item-render/panel-item-render.tsx +5 -3
- package/src/panel-component/panel-rawitem/panel-rawitem.tsx +25 -4
- package/src/panel-component/panel-tab-page/panel-tab-page.tsx +18 -3
- package/src/panel-component/scroll-container/scroll-container/scroll-container.tsx +37 -9
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.tsx +7 -3
- package/src/panel-component/single-data-container/single-data-container.tsx +12 -4
- package/src/panel-component/teleport-placeholder/teleport-placeholder.tsx +5 -4
- package/src/use/use-semantic-node/use-semantic-node.ts +20 -6
- package/src/view/common/view.scss +3 -2
|
@@ -26,6 +26,8 @@ export declare const PanelContainerImage: import("vue").DefineComponent<import("
|
|
|
26
26
|
ns: import("@ibiz-template/core").Namespace;
|
|
27
27
|
classArr: import("vue").ComputedRef<(string | false)[]>;
|
|
28
28
|
backgroundStyle: import("vue").ComputedRef<{}>;
|
|
29
|
+
semanticClass: import("../../use").UseSemanticClassReturn;
|
|
30
|
+
semanticStyle: import("../../use").UseSemanticStyleReturn;
|
|
29
31
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
32
|
/**
|
|
31
33
|
* @description 图片背景容器模型数据
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel-container-image.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-container-image/panel-container-image.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAA6B,QAAQ,EAAS,MAAM,KAAK,CAAC;AAGjE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,8BAA8B,CAAC;AAEtC;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;IAG5B;;OAEG;;;;;IAKH;;OAEG
|
|
1
|
+
{"version":3,"file":"panel-container-image.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-container-image/panel-container-image.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAA6B,QAAQ,EAAS,MAAM,KAAK,CAAC;AAGjE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,8BAA8B,CAAC;AAEtC;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;IAG5B;;OAEG;;;;;IAKH;;OAEG;;;;;;;;;;;;IATH;;OAEG;;;;;IAKH;;OAEG;;;;;iGA2FL,CAAC"}
|
|
@@ -4,6 +4,7 @@ import '../../use/index.mjs';
|
|
|
4
4
|
import { PanelContainerImageController } from './panel-container-image.controller.mjs';
|
|
5
5
|
import './panel-container-image.css';
|
|
6
6
|
import { useNamespace } from '../../use/namespace/namespace.mjs';
|
|
7
|
+
import { useSemanticNode } from '../../use/use-semantic-node/use-semantic-node.mjs';
|
|
7
8
|
|
|
8
9
|
"use strict";
|
|
9
10
|
function _isSlot(s) {
|
|
@@ -32,6 +33,10 @@ const PanelContainerImage = /* @__PURE__ */ defineComponent({
|
|
|
32
33
|
const {
|
|
33
34
|
id
|
|
34
35
|
} = props.modelData;
|
|
36
|
+
const {
|
|
37
|
+
semanticClass,
|
|
38
|
+
semanticStyle
|
|
39
|
+
} = useSemanticNode(props.controller);
|
|
35
40
|
const classArr = computed(() => {
|
|
36
41
|
let result = [ns.b(), ns.m(id)];
|
|
37
42
|
result = [...result, ...props.controller.containerClass, ns.is("hidden", !props.controller.state.visible)];
|
|
@@ -61,7 +66,9 @@ const PanelContainerImage = /* @__PURE__ */ defineComponent({
|
|
|
61
66
|
return {
|
|
62
67
|
ns,
|
|
63
68
|
classArr,
|
|
64
|
-
backgroundStyle
|
|
69
|
+
backgroundStyle,
|
|
70
|
+
semanticClass,
|
|
71
|
+
semanticStyle
|
|
65
72
|
};
|
|
66
73
|
},
|
|
67
74
|
render() {
|
|
@@ -70,6 +77,8 @@ const PanelContainerImage = /* @__PURE__ */ defineComponent({
|
|
|
70
77
|
const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
|
|
71
78
|
const content = createVNode(resolveComponent("iBizRow"), {
|
|
72
79
|
"slot": "content",
|
|
80
|
+
"class": this.semanticClass("content"),
|
|
81
|
+
"style": this.semanticStyle("content"),
|
|
73
82
|
"layout": this.modelData.layout
|
|
74
83
|
}, _isSlot(_slot = defaultSlots.map((slot) => {
|
|
75
84
|
const props = slot.props;
|
|
@@ -78,7 +87,13 @@ const PanelContainerImage = /* @__PURE__ */ defineComponent({
|
|
|
78
87
|
}
|
|
79
88
|
return createVNode(resolveComponent("iBizCol"), {
|
|
80
89
|
"layoutPos": props.modelData.layoutPos,
|
|
81
|
-
"state": props.controller.state
|
|
90
|
+
"state": props.controller.state,
|
|
91
|
+
"class": this.semanticClass("item", {
|
|
92
|
+
props
|
|
93
|
+
}),
|
|
94
|
+
"style": this.semanticStyle("item", {
|
|
95
|
+
props
|
|
96
|
+
})
|
|
82
97
|
}, _isSlot(slot) ? slot : {
|
|
83
98
|
default: () => [slot]
|
|
84
99
|
});
|
|
@@ -86,10 +101,10 @@ const PanelContainerImage = /* @__PURE__ */ defineComponent({
|
|
|
86
101
|
default: () => [_slot]
|
|
87
102
|
});
|
|
88
103
|
return withDirectives(createVNode("div", {
|
|
89
|
-
"class": this.classArr,
|
|
104
|
+
"class": [this.classArr, this.semanticClass("root")],
|
|
90
105
|
"element-loading-text": this.controller.state.loadingText,
|
|
91
106
|
"onClick": (event) => this.controller.onClick(event),
|
|
92
|
-
"style": this.backgroundStyle
|
|
107
|
+
"style": [this.backgroundStyle, this.semanticStyle("root")]
|
|
93
108
|
}, [this.controller.model.cssStyle ? createVNode("style", {
|
|
94
109
|
"type": "text/css"
|
|
95
110
|
}, [this.controller.model.cssStyle]) : null, content]), [[resolveDirective("loading"), this.controller.state.loading]]);
|
|
@@ -11,6 +11,8 @@ export declare const IBizPanelCtrlPos: import("../../util").TypeWithInstall<impo
|
|
|
11
11
|
};
|
|
12
12
|
}>, {
|
|
13
13
|
ns: import("@ibiz-template/core").Namespace;
|
|
14
|
+
semanticClass: import("../..").UseSemanticClassReturn;
|
|
15
|
+
semanticStyle: import("../..").UseSemanticStyleReturn;
|
|
14
16
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
17
|
modelData: {
|
|
16
18
|
type: import("vue").PropType<import("@ibiz/model-core").IPanelItem>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-ctrl-pos/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,EAAE,sBAAsB,EAAE,CAAC;AAClC,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-ctrl-pos/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,EAAE,sBAAsB,EAAE,CAAC;AAClC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;kGAG3B,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
|
|
@@ -23,6 +23,8 @@ export declare const PanelCtrlPos: import("vue").DefineComponent<import("vue").E
|
|
|
23
23
|
};
|
|
24
24
|
}>, {
|
|
25
25
|
ns: import("@ibiz-template/core").Namespace;
|
|
26
|
+
semanticClass: import("../../use").UseSemanticClassReturn;
|
|
27
|
+
semanticStyle: import("../../use").UseSemanticStyleReturn;
|
|
26
28
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
29
|
/**
|
|
28
30
|
* @description 面板部件占位模型数据
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel-ctrl-pos.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-ctrl-pos/panel-ctrl-pos.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA2B,QAAQ,EAAS,MAAM,KAAK,CAAC;AAE/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,uBAAuB,CAAC;AAE/B;;;;GAIG;AACH,eAAO,MAAM,YAAY;IAGrB;;OAEG;;;;;IAKH;;OAEG
|
|
1
|
+
{"version":3,"file":"panel-ctrl-pos.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-ctrl-pos/panel-ctrl-pos.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA2B,QAAQ,EAAS,MAAM,KAAK,CAAC;AAE/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,uBAAuB,CAAC;AAE/B;;;;GAIG;AACH,eAAO,MAAM,YAAY;IAGrB;;OAEG;;;;;IAKH;;OAEG;;;;;;;;;;IATH;;OAEG;;;;;IAKH;;OAEG;;;;;iGAmDL,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { defineComponent, createVNode, inject } from 'vue';
|
|
|
2
2
|
import '../../use/index.mjs';
|
|
3
3
|
import './panel-ctrl-pos.css';
|
|
4
4
|
import { useNamespace } from '../../use/namespace/namespace.mjs';
|
|
5
|
+
import { useSemanticNode } from '../../use/use-semantic-node/use-semantic-node.mjs';
|
|
5
6
|
|
|
6
7
|
"use strict";
|
|
7
8
|
const PanelCtrlPos = /* @__PURE__ */ defineComponent({
|
|
@@ -23,15 +24,21 @@ const PanelCtrlPos = /* @__PURE__ */ defineComponent({
|
|
|
23
24
|
}
|
|
24
25
|
},
|
|
25
26
|
setup(props) {
|
|
27
|
+
const ns = useNamespace("panel-ctrl-pos");
|
|
28
|
+
const {
|
|
29
|
+
semanticClass,
|
|
30
|
+
semanticStyle
|
|
31
|
+
} = useSemanticNode(props.controller);
|
|
26
32
|
const ctx = inject("ctx");
|
|
27
33
|
ctx.evt.on("onRegister", (name, c) => {
|
|
28
34
|
if (name === props.modelData.id) {
|
|
29
35
|
props.controller.bindControl(c);
|
|
30
36
|
}
|
|
31
37
|
});
|
|
32
|
-
const ns = useNamespace("panel-ctrl-pos");
|
|
33
38
|
return {
|
|
34
|
-
ns
|
|
39
|
+
ns,
|
|
40
|
+
semanticClass,
|
|
41
|
+
semanticStyle
|
|
35
42
|
};
|
|
36
43
|
},
|
|
37
44
|
render() {
|
|
@@ -40,10 +47,15 @@ const PanelCtrlPos = /* @__PURE__ */ defineComponent({
|
|
|
40
47
|
} = this.controller;
|
|
41
48
|
let content;
|
|
42
49
|
if (this.$slots.default) {
|
|
43
|
-
|
|
50
|
+
const props = {
|
|
51
|
+
class: this.semanticClass("content"),
|
|
52
|
+
style: this.semanticStyle("content")
|
|
53
|
+
};
|
|
54
|
+
content = this.$slots.default(props);
|
|
44
55
|
}
|
|
45
56
|
return createVNode("div", {
|
|
46
|
-
"class": [this.ns.b(), this.ns.m(this.modelData.id), ...this.controller.containerClass, this.ns.is("hidden", !state.visible)]
|
|
57
|
+
"class": [this.ns.b(), this.ns.m(this.modelData.id), this.semanticClass("root"), ...this.controller.containerClass, this.ns.is("hidden", !state.visible)],
|
|
58
|
+
"style": this.semanticStyle("root")
|
|
47
59
|
}, [content || (ibiz.env.dev ? ibiz.i18n.t("vue3Util.panelComponent.noProvidedSlot", {
|
|
48
60
|
id: this.modelData.id
|
|
49
61
|
}) : "")]);
|
|
@@ -10,6 +10,8 @@ export declare const IBizPanelCtrlViewPageCaption: import("../../util").TypeWith
|
|
|
10
10
|
}>, {
|
|
11
11
|
ns: import("@ibiz-template/core").Namespace;
|
|
12
12
|
classArr: import("vue").ComputedRef<(string | false)[]>;
|
|
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").IPanelItem>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-ctrl-view-page-caption/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-ctrl-view-page-caption/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;kGASxC,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -24,6 +24,8 @@ export declare const PanelCtrlViewPageCaption: import("vue").DefineComponent<imp
|
|
|
24
24
|
}>, {
|
|
25
25
|
ns: import("@ibiz-template/core").Namespace;
|
|
26
26
|
classArr: import("vue").ComputedRef<(string | false)[]>;
|
|
27
|
+
semanticClass: import("../../use").UseSemanticClassReturn;
|
|
28
|
+
semanticStyle: import("../../use").UseSemanticStyleReturn;
|
|
27
29
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
30
|
/**
|
|
29
31
|
* @description 视图标题模型
|
package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel-ctrl-view-page-caption.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.tsx"],"names":[],"mappings":"AACA,OAAO,EAA6B,QAAQ,EAAE,MAAM,KAAK,CAAC;AAE1D,OAAO,EAAE,kCAAkC,EAAE,MAAM,2CAA2C,CAAC;AAC/F,OAAO,qCAAqC,CAAC;AAE7C;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;IAGjC;;OAEG;;;;;IAKH;;OAEG
|
|
1
|
+
{"version":3,"file":"panel-ctrl-view-page-caption.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.tsx"],"names":[],"mappings":"AACA,OAAO,EAA6B,QAAQ,EAAE,MAAM,KAAK,CAAC;AAE1D,OAAO,EAAE,kCAAkC,EAAE,MAAM,2CAA2C,CAAC;AAC/F,OAAO,qCAAqC,CAAC;AAE7C;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;IAGjC;;OAEG;;;;;IAKH;;OAEG;;;;;;;;;;;IATH;;OAEG;;;;;IAKH;;OAEG;;;;;iGAqDL,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { defineComponent, createVNode, computed } from 'vue';
|
|
|
2
2
|
import '../../use/index.mjs';
|
|
3
3
|
import './panel-ctrl-view-page-caption.css';
|
|
4
4
|
import { useNamespace } from '../../use/namespace/namespace.mjs';
|
|
5
|
+
import { useSemanticNode } from '../../use/use-semantic-node/use-semantic-node.mjs';
|
|
5
6
|
|
|
6
7
|
"use strict";
|
|
7
8
|
const PanelCtrlViewPageCaption = /* @__PURE__ */ defineComponent({
|
|
@@ -24,6 +25,10 @@ const PanelCtrlViewPageCaption = /* @__PURE__ */ defineComponent({
|
|
|
24
25
|
},
|
|
25
26
|
setup(props) {
|
|
26
27
|
const ns = useNamespace("panel-ctrl-view-page-caption");
|
|
28
|
+
const {
|
|
29
|
+
semanticClass,
|
|
30
|
+
semanticStyle
|
|
31
|
+
} = useSemanticNode(props.controller);
|
|
27
32
|
const classArr = computed(() => {
|
|
28
33
|
const {
|
|
29
34
|
id
|
|
@@ -34,18 +39,22 @@ const PanelCtrlViewPageCaption = /* @__PURE__ */ defineComponent({
|
|
|
34
39
|
});
|
|
35
40
|
return {
|
|
36
41
|
ns,
|
|
37
|
-
classArr
|
|
42
|
+
classArr,
|
|
43
|
+
semanticClass,
|
|
44
|
+
semanticStyle
|
|
38
45
|
};
|
|
39
46
|
},
|
|
40
47
|
render() {
|
|
41
48
|
let editor = null;
|
|
42
49
|
if (this.controller.data) {
|
|
43
50
|
editor = createVNode("span", {
|
|
44
|
-
"class": this.ns.b("content")
|
|
51
|
+
"class": [this.ns.b("content"), this.semanticClass("content")],
|
|
52
|
+
"style": this.semanticStyle("content")
|
|
45
53
|
}, [this.controller.state.caption]);
|
|
46
54
|
}
|
|
47
55
|
return createVNode("div", {
|
|
48
|
-
"class": this.classArr,
|
|
56
|
+
"class": [this.classArr, this.semanticClass("root")],
|
|
57
|
+
"style": this.semanticStyle("root"),
|
|
49
58
|
"onClick": (event) => this.controller.onClick(event)
|
|
50
59
|
}, [editor]);
|
|
51
60
|
}
|
|
@@ -17,6 +17,8 @@ export declare const IBizPanelField: import("../../util").TypeWithInstall<import
|
|
|
17
17
|
classArr: import("vue").ComputedRef<(string | false)[]>;
|
|
18
18
|
showTitle: import("vue").ComputedRef<boolean>;
|
|
19
19
|
onValueChange: (val: unknown, name?: string | undefined) => void;
|
|
20
|
+
semanticClass: import("../..").UseSemanticClassReturn;
|
|
21
|
+
semanticStyle: import("../..").UseSemanticStyleReturn;
|
|
20
22
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
23
|
modelData: {
|
|
22
24
|
type: import("vue").PropType<import("@ibiz/model-core").IPanelField>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-field/index.ts"],"names":[],"mappings":"AAMA,cAAc,0BAA0B,CAAC;AAEzC,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-field/index.ts"],"names":[],"mappings":"AAMA,cAAc,0BAA0B,CAAC;AAEzC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kGAGzB,CAAC;AAEH,eAAe,cAAc,CAAC"}
|
|
@@ -34,6 +34,8 @@ export declare const PanelField: import("vue").DefineComponent<import("vue").Ext
|
|
|
34
34
|
classArr: import("vue").ComputedRef<(string | false)[]>;
|
|
35
35
|
showTitle: import("vue").ComputedRef<boolean>;
|
|
36
36
|
onValueChange: (val: unknown, name?: string) => void;
|
|
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":"panel-field.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-field/panel-field.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAA6B,QAAQ,EAAuB,MAAM,KAAK,CAAC;AAE/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,oBAAoB,CAAC;AAE5B;;;;GAIG;AACH,eAAO,MAAM,UAAU;IAGnB;;OAEG;;;;;IAEH;;OAEG;;;;;IAKH;;OAEG;;;;;;;;;yBAsByB,OAAO,SAAS,MAAM,KAAG,IAAI
|
|
1
|
+
{"version":3,"file":"panel-field.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-field/panel-field.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAA6B,QAAQ,EAAuB,MAAM,KAAK,CAAC;AAE/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,oBAAoB,CAAC;AAE5B;;;;GAIG;AACH,eAAO,MAAM,UAAU;IAGnB;;OAEG;;;;;IAEH;;OAEG;;;;;IAKH;;OAEG;;;;;;;;;yBAsByB,OAAO,SAAS,MAAM,KAAG,IAAI;;;;IAnCzD;;OAEG;;;;;IAEH;;OAEG;;;;;IAKH;;OAEG;;;;;iGA8GL,CAAC"}
|
|
@@ -4,6 +4,7 @@ import { PanelFieldController } from './panel-field.controller.mjs';
|
|
|
4
4
|
import './panel-field.css';
|
|
5
5
|
import { renderTooltip } from '../../use/tooltip/tooltip.mjs';
|
|
6
6
|
import { useNamespace } from '../../use/namespace/namespace.mjs';
|
|
7
|
+
import { useSemanticNode } from '../../use/use-semantic-node/use-semantic-node.mjs';
|
|
7
8
|
|
|
8
9
|
"use strict";
|
|
9
10
|
const PanelField = /* @__PURE__ */ defineComponent({
|
|
@@ -33,12 +34,15 @@ const PanelField = /* @__PURE__ */ defineComponent({
|
|
|
33
34
|
},
|
|
34
35
|
setup(props) {
|
|
35
36
|
const ns = useNamespace("panel-field");
|
|
37
|
+
const {
|
|
38
|
+
semanticClass,
|
|
39
|
+
semanticStyle
|
|
40
|
+
} = useSemanticNode(props.controller);
|
|
36
41
|
const classArr = computed(() => {
|
|
37
42
|
const {
|
|
38
43
|
id
|
|
39
44
|
} = props.modelData;
|
|
40
45
|
const result = [ns.b(), ns.m(id), ns.is("error", !!props.controller.state.error), ns.is("mob", window.Environment && window.Environment.isMob)];
|
|
41
|
-
result.push(...props.controller.containerClass);
|
|
42
46
|
return result;
|
|
43
47
|
});
|
|
44
48
|
const onValueChange = (val, name) => {
|
|
@@ -55,7 +59,9 @@ const PanelField = /* @__PURE__ */ defineComponent({
|
|
|
55
59
|
ns,
|
|
56
60
|
classArr,
|
|
57
61
|
showTitle,
|
|
58
|
-
onValueChange
|
|
62
|
+
onValueChange,
|
|
63
|
+
semanticClass,
|
|
64
|
+
semanticStyle
|
|
59
65
|
};
|
|
60
66
|
},
|
|
61
67
|
render() {
|
|
@@ -66,7 +72,8 @@ const PanelField = /* @__PURE__ */ defineComponent({
|
|
|
66
72
|
data: this.controller.data,
|
|
67
73
|
controller: this.controller.editor,
|
|
68
74
|
disabled: this.controller.state.disabled,
|
|
69
|
-
class: this.ns.b("content"),
|
|
75
|
+
class: [this.ns.b("content"), ibiz.config.common.enhancedUI === true ? this.controller.containerClass : "", this.semanticClass("content")],
|
|
76
|
+
style: [this.semanticStyle("content")],
|
|
70
77
|
showTitle: this.showTitle,
|
|
71
78
|
readonly: this.controller.state.readonly,
|
|
72
79
|
onChange: this.onValueChange,
|
|
@@ -89,10 +96,12 @@ const PanelField = /* @__PURE__ */ defineComponent({
|
|
|
89
96
|
}
|
|
90
97
|
}
|
|
91
98
|
return withDirectives(createVNode("div", {
|
|
92
|
-
"class": this.classArr,
|
|
99
|
+
"class": [this.classArr, ibiz.config.common.enhancedUI === false ? this.controller.containerClass : "", this.semanticClass("root")],
|
|
100
|
+
"style": this.semanticStyle("root"),
|
|
93
101
|
"onClick": (event) => this.controller.onClick(event)
|
|
94
102
|
}, [editor, this.controller.state.error && createVNode("div", {
|
|
95
|
-
"class": this.ns.e("error")
|
|
103
|
+
"class": [this.ns.e("error"), this.semanticClass("error")],
|
|
104
|
+
"style": this.semanticStyle("error")
|
|
96
105
|
}, [this.controller.state.error])]), [[resolveDirective("tooltip"), renderTooltip(this.controller.data, this.controller.model, this.controller.panel)]]);
|
|
97
106
|
}
|
|
98
107
|
});
|
|
@@ -11,6 +11,8 @@ export declare const IBizPanelItemRender: import("../../util").TypeWithInstall<i
|
|
|
11
11
|
ns: import("@ibiz-template/core").Namespace;
|
|
12
12
|
classArr: import("vue").ComputedRef<(string | false)[]>;
|
|
13
13
|
htmlCode: import("vue").ComputedRef<string | undefined>;
|
|
14
|
+
semanticClass: import("../..").UseSemanticClassReturn;
|
|
15
|
+
semanticStyle: import("../..").UseSemanticStyleReturn;
|
|
14
16
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
17
|
modelData: {
|
|
16
18
|
type: import("vue").PropType<import("@ibiz/model-core").IPanelContainer>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-item-render/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-item-render/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;kGAS/B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -25,6 +25,8 @@ export declare const PanelItemRender: import("vue").DefineComponent<import("vue"
|
|
|
25
25
|
ns: import("@ibiz-template/core").Namespace;
|
|
26
26
|
classArr: import("vue").ComputedRef<(string | false)[]>;
|
|
27
27
|
htmlCode: import("vue").ComputedRef<string | undefined>;
|
|
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-item-render.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-item-render/panel-item-render.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAA6B,QAAQ,EAAE,MAAM,KAAK,CAAC;AAE1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAE3E;;;;GAIG;AACH,eAAO,MAAM,eAAe;IAGxB;;OAEG;;;;;IAKH;;OAEG
|
|
1
|
+
{"version":3,"file":"panel-item-render.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-item-render/panel-item-render.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAA6B,QAAQ,EAAE,MAAM,KAAK,CAAC;AAE1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAE3E;;;;GAIG;AACH,eAAO,MAAM,eAAe;IAGxB;;OAEG;;;;;IAKH;;OAEG;;;;;;;;;;;;IATH;;OAEG;;;;;IAKH;;OAEG;;;;;iGA8CL,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { defineComponent, createVNode, computed } from 'vue';
|
|
|
2
2
|
import '../../use/index.mjs';
|
|
3
3
|
import { PanelItemRenderController } from './panel-item-render.controller.mjs';
|
|
4
4
|
import { useNamespace } from '../../use/namespace/namespace.mjs';
|
|
5
|
+
import { useSemanticNode } from '../../use/use-semantic-node/use-semantic-node.mjs';
|
|
5
6
|
|
|
6
7
|
"use strict";
|
|
7
8
|
const PanelItemRender = /* @__PURE__ */ defineComponent({
|
|
@@ -25,6 +26,10 @@ const PanelItemRender = /* @__PURE__ */ defineComponent({
|
|
|
25
26
|
setup(props) {
|
|
26
27
|
var _a;
|
|
27
28
|
const ns = useNamespace("panel-item-render");
|
|
29
|
+
const {
|
|
30
|
+
semanticClass,
|
|
31
|
+
semanticStyle
|
|
32
|
+
} = useSemanticNode(props.controller);
|
|
28
33
|
const nsType = useNamespace("panel-".concat((_a = props.modelData.itemType) == null ? void 0 : _a.toLowerCase()));
|
|
29
34
|
const {
|
|
30
35
|
id
|
|
@@ -39,12 +44,15 @@ const PanelItemRender = /* @__PURE__ */ defineComponent({
|
|
|
39
44
|
return {
|
|
40
45
|
ns,
|
|
41
46
|
classArr,
|
|
42
|
-
htmlCode
|
|
47
|
+
htmlCode,
|
|
48
|
+
semanticClass,
|
|
49
|
+
semanticStyle
|
|
43
50
|
};
|
|
44
51
|
},
|
|
45
52
|
render() {
|
|
46
53
|
return createVNode("div", {
|
|
47
|
-
"class": this.classArr,
|
|
54
|
+
"class": [this.classArr, this.semanticClass("content")],
|
|
55
|
+
"style": this.semanticStyle("content"),
|
|
48
56
|
"innerHTML": this.htmlCode,
|
|
49
57
|
"onClick": (event) => this.controller.onClick(event)
|
|
50
58
|
}, null);
|
|
@@ -13,6 +13,8 @@ export declare const IBizPanelRawItem: import("../../util").TypeWithInstall<impo
|
|
|
13
13
|
classArr: import("vue").ComputedRef<(string | false)[]>;
|
|
14
14
|
tempStyle: import("vue").Ref<string, string>;
|
|
15
15
|
content: import("vue").Ref<string | number | undefined, string | number | undefined>;
|
|
16
|
+
semanticClass: import("../..").UseSemanticClassReturn;
|
|
17
|
+
semanticStyle: import("../..").UseSemanticStyleReturn;
|
|
16
18
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
19
|
modelData: {
|
|
18
20
|
type: import("vue").PropType<import("@ibiz/model-core").IPanelRawItem>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-rawitem/index.ts"],"names":[],"mappings":"AAMA,cAAc,4BAA4B,CAAC;AAE3C,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-rawitem/index.ts"],"names":[],"mappings":"AAMA,cAAc,4BAA4B,CAAC;AAE3C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;kGAe3B,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
|
|
@@ -27,6 +27,8 @@ export declare const PanelRawItem: import("vue").DefineComponent<import("vue").E
|
|
|
27
27
|
classArr: import("vue").ComputedRef<(string | false)[]>;
|
|
28
28
|
tempStyle: Ref<string, string>;
|
|
29
29
|
content: Ref<string | number | undefined, string | number | undefined>;
|
|
30
|
+
semanticClass: import("../../use").UseSemanticClassReturn;
|
|
31
|
+
semanticStyle: import("../../use").UseSemanticStyleReturn;
|
|
30
32
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
33
|
/**
|
|
32
34
|
* @description 面板直接内容项模型
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel-rawitem.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-rawitem/panel-rawitem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,aAAa,EAAa,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAA6B,QAAQ,EAAE,GAAG,EAAc,MAAM,KAAK,CAAC;AAE3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,sBAAsB,CAAC;AAE9B;;;;GAIG;AACH,eAAO,MAAM,YAAY;IAGrB;;OAEG;;;;;IAKH;;OAEG
|
|
1
|
+
{"version":3,"file":"panel-rawitem.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-rawitem/panel-rawitem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,aAAa,EAAa,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAA6B,QAAQ,EAAE,GAAG,EAAc,MAAM,KAAK,CAAC;AAE3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,sBAAsB,CAAC;AAE9B;;;;GAIG;AACH,eAAO,MAAM,YAAY;IAGrB;;OAEG;;;;;IAKH;;OAEG;;;;;;;;;;;;;IATH;;OAEG;;;;;IAKH;;OAEG;;;;;iGAsGL,CAAC"}
|
|
@@ -3,6 +3,7 @@ import '../../use/index.mjs';
|
|
|
3
3
|
import { PanelRawItemController } from './panel-rawitem.controller.mjs';
|
|
4
4
|
import './panel-rawitem.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 PanelRawItem = /* @__PURE__ */ defineComponent({
|
|
@@ -26,6 +27,10 @@ const PanelRawItem = /* @__PURE__ */ defineComponent({
|
|
|
26
27
|
setup(props) {
|
|
27
28
|
const ns = useNamespace("panel-rawitem");
|
|
28
29
|
const c = props.controller;
|
|
30
|
+
const {
|
|
31
|
+
semanticClass,
|
|
32
|
+
semanticStyle
|
|
33
|
+
} = useSemanticNode(c);
|
|
29
34
|
const content = ref("");
|
|
30
35
|
const tempStyle = ref("");
|
|
31
36
|
const {
|
|
@@ -39,7 +44,6 @@ const PanelRawItem = /* @__PURE__ */ defineComponent({
|
|
|
39
44
|
id
|
|
40
45
|
} = props.modelData;
|
|
41
46
|
const result = [ns.b(), ns.m(id)];
|
|
42
|
-
result.push(...props.controller.containerClass);
|
|
43
47
|
return result;
|
|
44
48
|
});
|
|
45
49
|
watch(() => c.data, async (newVal) => {
|
|
@@ -73,17 +77,21 @@ const PanelRawItem = /* @__PURE__ */ defineComponent({
|
|
|
73
77
|
ns,
|
|
74
78
|
classArr,
|
|
75
79
|
tempStyle,
|
|
76
|
-
content
|
|
80
|
+
content,
|
|
81
|
+
semanticClass,
|
|
82
|
+
semanticStyle
|
|
77
83
|
};
|
|
78
84
|
},
|
|
79
85
|
render() {
|
|
80
86
|
if (!this.controller.state.visible)
|
|
81
87
|
return;
|
|
82
88
|
return createVNode("div", {
|
|
83
|
-
"class": this.classArr,
|
|
84
|
-
"style": this.tempStyle,
|
|
89
|
+
"class": [this.classArr, ibiz.config.common.enhancedUI === false ? this.controller.containerClass : "", this.semanticClass("root")],
|
|
90
|
+
"style": [ibiz.config.common.enhancedUI === false ? this.tempStyle : "", this.semanticStyle("root")],
|
|
85
91
|
"onClick": (event) => this.controller.onClick(event)
|
|
86
92
|
}, [createVNode(resolveComponent("iBizRawItem"), {
|
|
93
|
+
"class": [ibiz.config.common.enhancedUI === true ? this.controller.containerClass : "", this.semanticClass("content")],
|
|
94
|
+
"style": [ibiz.config.common.enhancedUI === true ? this.tempStyle : "", this.semanticStyle("content")],
|
|
87
95
|
"rawItem": this.modelData,
|
|
88
96
|
"content": this.content
|
|
89
97
|
}, null)]);
|
|
@@ -10,6 +10,8 @@ export declare const IBizPanelTabPage: import("../../util").TypeWithInstall<impo
|
|
|
10
10
|
}>, {
|
|
11
11
|
ns: import("@ibiz-template/core").Namespace;
|
|
12
12
|
classArr: import("vue").ComputedRef<(string | false)[]>;
|
|
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").IPanelContainer>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-tab-page/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-tab-page/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;kGAG3B,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
|
|
@@ -24,6 +24,8 @@ export declare const PanelTabPage: import("vue").DefineComponent<import("vue").E
|
|
|
24
24
|
}>, {
|
|
25
25
|
ns: import("@ibiz-template/core").Namespace;
|
|
26
26
|
classArr: import("vue").ComputedRef<(string | false)[]>;
|
|
27
|
+
semanticClass: import("../../use").UseSemanticClassReturn;
|
|
28
|
+
semanticStyle: import("../../use").UseSemanticStyleReturn;
|
|
27
29
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
30
|
/**
|
|
29
31
|
* @description 面板分页模型
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel-tab-page.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-tab-page/panel-tab-page.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,QAAQ,EAAS,MAAM,KAAK,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAGlE;;;;GAIG;AACH,eAAO,MAAM,YAAY;IAGrB;;OAEG;;;;;IAMH;;OAEG
|
|
1
|
+
{"version":3,"file":"panel-tab-page.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-tab-page/panel-tab-page.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,QAAQ,EAAS,MAAM,KAAK,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAGlE;;;;GAIG;AACH,eAAO,MAAM,YAAY;IAGrB;;OAEG;;;;;IAMH;;OAEG;;;;;;;;;;;IAVH;;OAEG;;;;;IAMH;;OAEG;;;;;iGA2DL,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { isVNode, defineComponent, withDirectives, createVNode, resolveComponent
|
|
|
2
2
|
import { PanelContainerController } from '@ibiz-template/runtime';
|
|
3
3
|
import '../../use/index.mjs';
|
|
4
4
|
import { useNamespace } from '../../use/namespace/namespace.mjs';
|
|
5
|
+
import { useSemanticNode } from '../../use/use-semantic-node/use-semantic-node.mjs';
|
|
5
6
|
|
|
6
7
|
"use strict";
|
|
7
8
|
function _isSlot(s) {
|
|
@@ -28,6 +29,10 @@ const PanelTabPage = /* @__PURE__ */ defineComponent({
|
|
|
28
29
|
},
|
|
29
30
|
setup(props) {
|
|
30
31
|
const ns = useNamespace("panel-tab-page");
|
|
32
|
+
const {
|
|
33
|
+
semanticClass,
|
|
34
|
+
semanticStyle
|
|
35
|
+
} = useSemanticNode(props.controller);
|
|
31
36
|
const classArr = computed(() => {
|
|
32
37
|
const {
|
|
33
38
|
id
|
|
@@ -38,7 +43,9 @@ const PanelTabPage = /* @__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() {
|
|
@@ -46,7 +53,8 @@ const PanelTabPage = /* @__PURE__ */ defineComponent({
|
|
|
46
53
|
let _slot;
|
|
47
54
|
const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
|
|
48
55
|
return withDirectives(createVNode(resolveComponent("iBizRow"), {
|
|
49
|
-
"class": [this.ns.b(), this.ns.m(this.modelData.codeName), this.classArr],
|
|
56
|
+
"class": [this.ns.b(), this.ns.m(this.modelData.codeName), this.classArr, this.semanticClass("root")],
|
|
57
|
+
"style": this.semanticStyle("root"),
|
|
50
58
|
"layout": this.modelData.layout,
|
|
51
59
|
"element-loading-text": this.controller.state.loadingText
|
|
52
60
|
}, _isSlot(_slot = defaultSlots.map((slot) => {
|
|
@@ -56,6 +64,12 @@ const PanelTabPage = /* @__PURE__ */ defineComponent({
|
|
|
56
64
|
}
|
|
57
65
|
const c = props.controller;
|
|
58
66
|
return createVNode(resolveComponent("iBizCol"), {
|
|
67
|
+
"class": this.semanticClass("item", {
|
|
68
|
+
props
|
|
69
|
+
}),
|
|
70
|
+
"style": this.semanticStyle("item", {
|
|
71
|
+
props
|
|
72
|
+
}),
|
|
59
73
|
"layoutPos": c.model.layoutPos,
|
|
60
74
|
"state": c.state
|
|
61
75
|
}, _isSlot(slot) ? slot : {
|
|
@@ -12,6 +12,8 @@ export declare const IBizScrollContainer: import("../../util").TypeWithInstall<i
|
|
|
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/scroll-container/index.ts"],"names":[],"mappings":"AAQA,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AAExC,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/scroll-container/index.ts"],"names":[],"mappings":"AAQA,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AAExC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;kGA8B/B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -25,6 +25,8 @@ export declare const ScrollContainer: 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":"scroll-container.d.ts","sourceRoot":"","sources":["../../../../src/panel-component/scroll-container/scroll-container/scroll-container.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAA6B,QAAQ,EAAS,MAAM,KAAK,CAAC;AAEjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,yBAAyB,CAAC;AAEjC;;;;GAIG;AACH,eAAO,MAAM,eAAe;IAGxB;;OAEG;;;;;IAKH;;OAEG
|
|
1
|
+
{"version":3,"file":"scroll-container.d.ts","sourceRoot":"","sources":["../../../../src/panel-component/scroll-container/scroll-container/scroll-container.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAA6B,QAAQ,EAAS,MAAM,KAAK,CAAC;AAEjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,yBAAyB,CAAC;AAEjC;;;;GAIG;AACH,eAAO,MAAM,eAAe;IAGxB;;OAEG;;;;;IAKH;;OAEG;;;;;;;;;;;IATH;;OAEG;;;;;IAKH;;OAEG;;;;;iGAkIL,CAAC"}
|