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.
@@ -1,7 +1,7 @@
1
1
  import e from "../../../utils/EDomUtil.js";
2
- import { Fragment as t, computed as n, createElementBlock as r, createElementVNode as i, defineComponent as a, nextTick as o, normalizeClass as s, normalizeStyle as c, onMounted as l, onUnmounted as u, openBlock as d, provide as f, renderList as p, renderSlot as m, shallowRef as h, toDisplayString as g, useTemplateRef as _, vShow as v, watch as y, withDirectives as b } from "vue";
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 x = ["onClick"], S = a({
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(a, { emit: S }) {
17
- let C = S, w = h([]);
18
- f("registerTabPane", (e) => {
19
- w.value = [...w.value, e];
20
- }), f("unregisterTabPane", (e) => {
21
- w.value = w.value.filter((t) => t.name !== e);
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 T = _("eTabsRef");
24
- l(() => {
25
- D(T.value.querySelector(".e-tabs-label" + a.modelValue), a.modelValue, !1);
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
- D(T.value.querySelector(".e-tabs-label" + a.modelValue), a.modelValue, !1);
27
+ A(O.value.querySelector(".e-tabs-label" + s.modelValue), s.modelValue, !1);
28
28
  };
29
- T.value?.addEventListener("resize", e), u(() => {
30
- T.value?.removeEventListener("resize", e);
29
+ O.value?.addEventListener("resize", e), f(() => {
30
+ O.value?.removeEventListener("resize", e);
31
31
  });
32
32
  });
33
- let E = (e) => {
34
- let t = T.value.querySelector(`.e-tabs-header>.e-tabs-label${a.modelValue}`), n = T.value.querySelector(".e-tabs-header>.line");
35
- !t || !n || (n.style.transition = e ? "all 0.3s ease-in-out" : "none", a.placement.includes("left") || a.placement.includes("right") ? (n.style.top = t.offsetTop + "px", n.style.height = t.offsetHeight + "px", n.style.width = "2px", a.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", a.placement.includes("top") ? (n.style.bottom = "0px", n.style.top = "unset") : (n.style.top = "0px", n.style.bottom = "unset")));
36
- }, D = (t, n, r = !0) => {
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
- }), a.showContent) {
43
- let t = (T.value?.querySelector(".e-tabs-content"))?.querySelector(".e-tab-pane" + n), r = a.placement.includes("left") || a.placement.includes("right");
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
- C("update:modelValue", n), C("tabClick", n), o(() => {
52
- E(r);
51
+ E("update:modelValue", n), E("tabClick", n), c(() => {
52
+ k(r);
53
53
  });
54
54
  };
55
- y(() => a.placement, () => {
56
- o(() => {
57
- D(null, a.modelValue, !1);
55
+ S(() => s.placement, () => {
56
+ c(() => {
57
+ A(null, s.modelValue, !1);
58
58
  });
59
59
  });
60
- let O = n(() => ({
60
+ let j = n(() => ({
61
61
  display: "flex",
62
62
  flexDirection: (() => {
63
- if (a.placement.includes("top")) return "column";
64
- if (a.placement.includes("bottom")) return "column-reverse";
65
- if (a.placement.includes("left")) return "row";
66
- if (a.placement.includes("right")) return "row-reverse";
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
- })), k = n(() => {
68
+ })), M = n(() => {
69
69
  let e = {
70
- flexDirection: a.placement.includes("top") || a.placement.includes("bottom") ? "row" : "column",
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(a.placement) ? "center" : "flex-" + a.placement.split("-")[1],
77
- alignItems: a.placement.includes("left") || a.placement.includes("top") ? "flex-end" : "flex-start"
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-${a.size}-header-height)`, a.placement.includes("top") ? e.borderBottom = "1px solid var(--e-border-color)" : a.placement.includes("bottom") ? e.borderTop = "1px solid var(--e-border-color)" : a.placement.includes("left") ? e.borderRight = "1px solid var(--e-border-color)" : a.placement.includes("right") && (e.borderLeft = "1px solid var(--e-border-color)"), e;
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) => (d(), r("div", {
82
- class: s(["e-tabs", a.size]),
81
+ return (e, n) => (p(), i("div", {
82
+ class: l(["e-tabs", s.size]),
83
83
  ref_key: "eTabsRef",
84
- ref: T,
85
- style: c(O.value)
86
- }, [i("div", {
84
+ ref: O,
85
+ style: u(j.value)
86
+ }, [a("div", {
87
87
  class: "e-tabs-header",
88
- style: c(k.value)
89
- }, [(d(!0), r(t, null, p(w.value, (e) => (d(), r("div", {
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: s([
91
+ class: l([
92
92
  "e-tabs-label",
93
93
  "e-tabs-label" + e.name,
94
- { active: a.modelValue === e.name }
94
+ { active: s.modelValue === e.name }
95
95
  ]),
96
- onClick: (t) => D(t.target, e.name)
97
- }, g(e.label), 11, x))), 128)), n[0] ||= i("div", { class: "line" }, null, -1)], 4), b(i("div", {
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: c({ flexDirection: a.placement.includes("top") || a.placement.includes("bottom") ? "row" : "column" })
100
- }, [m(e.$slots, "default", {}, void 0, !0)], 4), [[v, a.showContent]])], 6));
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 { S as default };
104
+ export { T as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exploria-ui",
3
- "version": "2026.10.19",
3
+ "version": "2026.10.21",
4
4
  "private": false,
5
5
  "description": "《探索UI》组件库",
6
6
  "keywords": [