exploria-ui 2026.10.19 → 2026.10.21
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/components/feedback/EDialog/EDialog.vue.d.ts +7 -7
- package/dist/components/feedback/EMessageBox/EMessageBox.d.ts +6 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +58 -54
- package/dist/index.css +1 -1
- package/dist/package.json.js +86 -0
- package/dist/src/components/feedback/EDialog/EDialog.vue.js +1 -1
- package/dist/src/components/feedback/EDialog/EDialog.vue_vue_type_script_setup_true_lang.js +81 -60
- package/dist/src/components/feedback/EMessageBox/EMessageBox.js +18 -18
- package/dist/src/components/form/EConditionGroup/EConditionGroup.vue.js +1 -1
- package/dist/src/components/form/EConditionGroup/EConditionGroup.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/src/components/form/EForm/EFormItem.vue.js +1 -1
- package/dist/src/components/form/ESelect/ESelect.vue.js +1 -1
- package/dist/src/components/form/ESlider.vue.js +1 -1
- package/dist/src/components/form/ETimePicker.vue.js +1 -1
- package/dist/src/components/navigation/ETabs/ETabPane.vue.js +1 -1
- package/dist/src/components/navigation/ETabs/ETabPane.vue_vue_type_script_setup_true_lang.js +8 -7
- package/dist/src/components/navigation/ETabs/ETabs.vue.js +1 -1
- package/dist/src/components/navigation/ETabs/ETabs.vue_vue_type_script_setup_true_lang.js +49 -49
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../../../utils/EDomUtil.js";
|
|
2
|
-
import { Fragment as t, computed as n,
|
|
2
|
+
import { Fragment as t, computed as n, createBlock as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, defineComponent as s, nextTick as c, normalizeClass as l, normalizeStyle as u, onMounted as d, onUnmounted as f, openBlock as p, provide as m, renderList as h, renderSlot as g, resolveDynamicComponent as _, shallowRef as v, toDisplayString as y, useTemplateRef as b, vShow as x, watch as S, withDirectives as C } from "vue";
|
|
3
3
|
//#region src/components/navigation/ETabs/ETabs.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var
|
|
4
|
+
var w = ["onClick"], T = s({
|
|
5
5
|
__name: "ETabs",
|
|
6
6
|
props: {
|
|
7
7
|
modelValue: {},
|
|
@@ -13,34 +13,34 @@ var x = ["onClick"], S = a({
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
emits: ["update:modelValue", "tabClick"],
|
|
16
|
-
setup(
|
|
17
|
-
let
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}),
|
|
21
|
-
|
|
16
|
+
setup(s, { emit: T }) {
|
|
17
|
+
let E = T, D = v([]);
|
|
18
|
+
m("registerTabPane", (e) => {
|
|
19
|
+
D.value = [...D.value, e];
|
|
20
|
+
}), m("unregisterTabPane", (e) => {
|
|
21
|
+
D.value = D.value.filter((t) => t.name !== e);
|
|
22
22
|
});
|
|
23
|
-
let
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
let O = b("eTabsRef");
|
|
24
|
+
d(() => {
|
|
25
|
+
A(O.value.querySelector(".e-tabs-label" + s.modelValue), s.modelValue, !1);
|
|
26
26
|
let e = () => {
|
|
27
|
-
|
|
27
|
+
A(O.value.querySelector(".e-tabs-label" + s.modelValue), s.modelValue, !1);
|
|
28
28
|
};
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
O.value?.addEventListener("resize", e), f(() => {
|
|
30
|
+
O.value?.removeEventListener("resize", e);
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
|
-
let
|
|
34
|
-
let t =
|
|
35
|
-
!t || !n || (n.style.transition = e ? "all 0.3s ease-in-out" : "none",
|
|
36
|
-
},
|
|
33
|
+
let k = (e) => {
|
|
34
|
+
let t = O.value.querySelector(`.e-tabs-header>.e-tabs-label${s.modelValue}`), n = O.value.querySelector(".e-tabs-header>.line");
|
|
35
|
+
!t || !n || (n.style.transition = e ? "all 0.3s ease-in-out" : "none", s.placement.includes("left") || s.placement.includes("right") ? (n.style.top = t.offsetTop + "px", n.style.height = t.offsetHeight + "px", n.style.width = "2px", s.placement.includes("left") ? (n.style.right = "0px", n.style.left = "unset") : (n.style.left = "0px", n.style.right = "unset")) : (n.style.left = t.offsetLeft + "px", n.style.width = t.offsetWidth + "px", n.style.height = "2px", s.placement.includes("top") ? (n.style.bottom = "0px", n.style.top = "unset") : (n.style.top = "0px", n.style.bottom = "unset")));
|
|
36
|
+
}, A = (t, n, r = !0) => {
|
|
37
37
|
let i = r ? "smooth" : "auto";
|
|
38
38
|
if (t && e.scrollIntoView({
|
|
39
39
|
element: t,
|
|
40
40
|
block: "center",
|
|
41
41
|
behavior: i
|
|
42
|
-
}),
|
|
43
|
-
let t = (
|
|
42
|
+
}), s.showContent) {
|
|
43
|
+
let t = (O.value?.querySelector(".e-tabs-content"))?.querySelector(".e-tab-pane" + n), r = s.placement.includes("left") || s.placement.includes("right");
|
|
44
44
|
e.scrollIntoView({
|
|
45
45
|
element: t,
|
|
46
46
|
behavior: i,
|
|
@@ -48,57 +48,57 @@ var x = ["onClick"], S = a({
|
|
|
48
48
|
...r ? {} : { inline: "center" }
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
E("update:modelValue", n), E("tabClick", n), c(() => {
|
|
52
|
+
k(r);
|
|
53
53
|
});
|
|
54
54
|
};
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
S(() => s.placement, () => {
|
|
56
|
+
c(() => {
|
|
57
|
+
A(null, s.modelValue, !1);
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
|
-
let
|
|
60
|
+
let j = n(() => ({
|
|
61
61
|
display: "flex",
|
|
62
62
|
flexDirection: (() => {
|
|
63
|
-
if (
|
|
64
|
-
if (
|
|
65
|
-
if (
|
|
66
|
-
if (
|
|
63
|
+
if (s.placement.includes("top")) return "column";
|
|
64
|
+
if (s.placement.includes("bottom")) return "column-reverse";
|
|
65
|
+
if (s.placement.includes("left")) return "row";
|
|
66
|
+
if (s.placement.includes("right")) return "row-reverse";
|
|
67
67
|
})()
|
|
68
|
-
})),
|
|
68
|
+
})), M = n(() => {
|
|
69
69
|
let e = {
|
|
70
|
-
flexDirection:
|
|
70
|
+
flexDirection: s.placement.includes("top") || s.placement.includes("bottom") ? "row" : "column",
|
|
71
71
|
justifyContent: [
|
|
72
72
|
"left",
|
|
73
73
|
"right",
|
|
74
74
|
"top",
|
|
75
75
|
"bottom"
|
|
76
|
-
].includes(
|
|
77
|
-
alignItems:
|
|
76
|
+
].includes(s.placement) ? "center" : "flex-" + s.placement.split("-")[1],
|
|
77
|
+
alignItems: s.placement.includes("left") || s.placement.includes("top") ? "flex-end" : "flex-start"
|
|
78
78
|
};
|
|
79
|
-
return e.height = `var(--e-tabs-${
|
|
79
|
+
return e.height = `var(--e-tabs-${s.size}-header-height)`, s.placement.includes("top") ? e.borderBottom = "1px solid var(--e-border-color)" : s.placement.includes("bottom") ? e.borderTop = "1px solid var(--e-border-color)" : s.placement.includes("left") ? e.borderRight = "1px solid var(--e-border-color)" : s.placement.includes("right") && (e.borderLeft = "1px solid var(--e-border-color)"), e;
|
|
80
80
|
});
|
|
81
|
-
return (e, n) => (
|
|
82
|
-
class:
|
|
81
|
+
return (e, n) => (p(), i("div", {
|
|
82
|
+
class: l(["e-tabs", s.size]),
|
|
83
83
|
ref_key: "eTabsRef",
|
|
84
|
-
ref:
|
|
85
|
-
style:
|
|
86
|
-
}, [
|
|
84
|
+
ref: O,
|
|
85
|
+
style: u(j.value)
|
|
86
|
+
}, [a("div", {
|
|
87
87
|
class: "e-tabs-header",
|
|
88
|
-
style:
|
|
89
|
-
}, [(
|
|
88
|
+
style: u(M.value)
|
|
89
|
+
}, [(p(!0), i(t, null, h(D.value, (e) => (p(), i("div", {
|
|
90
90
|
key: e.name,
|
|
91
|
-
class:
|
|
91
|
+
class: l([
|
|
92
92
|
"e-tabs-label",
|
|
93
93
|
"e-tabs-label" + e.name,
|
|
94
|
-
{ active:
|
|
94
|
+
{ active: s.modelValue === e.name }
|
|
95
95
|
]),
|
|
96
|
-
onClick: (t) =>
|
|
97
|
-
},
|
|
96
|
+
onClick: (t) => A(t.currentTarget, e.name)
|
|
97
|
+
}, [e.labelSlot ? (p(), r(_(e.labelSlot), { key: 0 })) : (p(), i(t, { key: 1 }, [o(y(e.label), 1)], 64))], 10, w))), 128)), n[0] ||= a("div", { class: "line" }, null, -1)], 4), C(a("div", {
|
|
98
98
|
class: "e-tabs-content",
|
|
99
|
-
style:
|
|
100
|
-
}, [
|
|
99
|
+
style: u({ flexDirection: s.placement.includes("top") || s.placement.includes("bottom") ? "row" : "column" })
|
|
100
|
+
}, [g(e.$slots, "default", {}, void 0, !0)], 4), [[x, s.showContent]])], 6));
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
103
|
//#endregion
|
|
104
|
-
export {
|
|
104
|
+
export { T as default };
|