exploria-ui 2026.3.6 → 2026.4.13

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 (59) hide show
  1. package/dist/components/advanced/EParallaxScrolling/EParallaxScrolling.vue.d.ts +3 -0
  2. package/dist/components/advanced/EWatermark/EWatermark.vue.d.ts +25 -34
  3. package/dist/components/{data → basic}/EAvatar/EAvatar.vue.d.ts +2 -0
  4. package/dist/components/data/ETimeline/ETimeline.vue.d.ts +8 -1
  5. package/dist/components/data/ETimeline/ETimelineItem.vue.d.ts +3 -0
  6. package/dist/components/form/ESelect/ESelect.vue.d.ts +1 -0
  7. package/dist/components/index.d.ts +3 -3
  8. package/dist/components/index.js +7 -7
  9. package/dist/directives/ESizeOb.d.ts +1 -1
  10. package/dist/directives/index.d.ts +4 -4
  11. package/dist/directives/index.js +1 -1
  12. package/dist/index.css +1 -1
  13. package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/libs/fflate.module.js +2 -5
  14. package/dist/packages/exploria-ui/src/components/advanced/EParallaxScrolling/EParallaxScrolling.vue.js +1 -1
  15. package/dist/packages/exploria-ui/src/components/advanced/EParallaxScrolling/EParallaxScrolling.vue_vue_type_script_setup_true_lang.js +26 -22
  16. package/dist/packages/exploria-ui/src/components/advanced/EWatermark/EWatermark.vue.js +1 -1
  17. package/dist/packages/exploria-ui/src/components/advanced/EWatermark/EWatermark.vue_vue_type_script_setup_true_lang.js +61 -63
  18. package/dist/packages/exploria-ui/src/components/{data → basic}/EAvatar/EAvatar.vue.js +2 -2
  19. package/dist/packages/exploria-ui/src/components/basic/EAvatar/EAvatar.vue_vue_type_script_setup_true_lang.js +26 -0
  20. package/dist/packages/exploria-ui/src/components/basic/EBadge/EBadge.vue.js +1 -1
  21. package/dist/packages/exploria-ui/src/components/data/ECarousel/ECarousel.vue.js +1 -1
  22. package/dist/packages/exploria-ui/src/components/data/ECodeCollapse/ECodeCollapse.vue.js +1 -1
  23. package/dist/packages/exploria-ui/src/components/data/EImage.vue.js +1 -1
  24. package/dist/packages/exploria-ui/src/components/data/EList.vue.js +1 -1
  25. package/dist/packages/exploria-ui/src/components/data/ETable/ETable.vue.js +1 -1
  26. package/dist/packages/exploria-ui/src/components/data/ETimeline/ETimeline.vue.js +1 -1
  27. package/dist/packages/exploria-ui/src/components/data/ETimeline/ETimeline.vue_vue_type_script_setup_true_lang.js +16 -15
  28. package/dist/packages/exploria-ui/src/components/data/ETimeline/ETimelineItem.vue.js +1 -1
  29. package/dist/packages/exploria-ui/src/components/data/ETimeline/ETimelineItem.vue_vue_type_script_setup_true_lang.js +19 -19
  30. package/dist/packages/exploria-ui/src/components/feedback/EDialog/EDialog.vue.js +1 -1
  31. package/dist/packages/exploria-ui/src/components/feedback/EDrawer/EDrawer.vue.js +1 -1
  32. package/dist/packages/exploria-ui/src/components/feedback/EDrawer/EDrawer.vue_vue_type_script_setup_true_lang.js +2 -2
  33. package/dist/packages/exploria-ui/src/components/feedback/EPopover.vue.js +1 -1
  34. package/dist/packages/exploria-ui/src/components/feedback/ETooltip.vue.js +1 -1
  35. package/dist/packages/exploria-ui/src/components/form/EColorPicker.vue.js +1 -1
  36. package/dist/packages/exploria-ui/src/components/form/EConditionGroup/EConditionGroup.vue.js +1 -1
  37. package/dist/packages/exploria-ui/src/components/form/EConditionGroup/EConditionGroup.vue_vue_type_script_setup_true_lang.js +72 -56
  38. package/dist/packages/exploria-ui/src/components/form/EFileSelector.vue.js +1 -1
  39. package/dist/packages/exploria-ui/src/components/form/EForm.vue.js +1 -1
  40. package/dist/packages/exploria-ui/src/components/form/EFormItem.vue.js +1 -1
  41. package/dist/packages/exploria-ui/src/components/form/EInput/EInput.vue.js +1 -1
  42. package/dist/packages/exploria-ui/src/components/form/EInput/EInput.vue_vue_type_script_setup_true_lang.js +2 -2
  43. package/dist/packages/exploria-ui/src/components/form/ESelect/ESelect.vue.js +1 -1
  44. package/dist/packages/exploria-ui/src/components/form/ESelect/ESelect.vue_vue_type_script_setup_true_lang.js +2 -1
  45. package/dist/packages/exploria-ui/src/components/form/ESlider.vue.js +1 -1
  46. package/dist/packages/exploria-ui/src/components/form/ETimePicker.vue.js +1 -1
  47. package/dist/packages/exploria-ui/src/components/navigation/EDropdown.vue.js +1 -1
  48. package/dist/packages/exploria-ui/src/components/navigation/ETabs/ETabs.vue.js +1 -1
  49. package/dist/packages/exploria-ui/src/components/navigation/ETabs/ETabs.vue_vue_type_script_setup_true_lang.js +10 -7
  50. package/dist/packages/exploria-ui/src/utils/EDomUtil.js +21 -10
  51. package/dist/plugins/EPreloadImageBuilder.d.ts +5 -0
  52. package/dist/plugins/ESvgPolyfill.d.ts +3 -0
  53. package/dist/plugins/ESvgSpriteBuilder.d.ts +6 -0
  54. package/dist/plugins/index.d.ts +4 -0
  55. package/dist/plugins/index.js +7793 -0
  56. package/dist/utils/EDomUtil.d.ts +7 -0
  57. package/dist/utils/EThreeUtil.d.ts +2 -2
  58. package/package.json +11 -11
  59. package/dist/packages/exploria-ui/src/components/data/EAvatar/EAvatar.vue_vue_type_script_setup_true_lang.js +0 -14
@@ -116,10 +116,7 @@ for (var p = 144; p < 256; ++p) g[p] = 9;
116
116
  for (var p = 256; p < 280; ++p) g[p] = 7;
117
117
  for (var p = 280; p < 288; ++p) g[p] = 8;
118
118
  for (var _ = new e(32), p = 0; p < 32; ++p) _[p] = 5;
119
- h(g, 9, 0);
120
- var ee = h(g, 9, 1);
121
- h(_, 5, 0);
122
- var v = h(_, 5, 1), y = function(e) {
119
+ var v = h(g, 9, 1), ee = h(_, 5, 1), y = function(e) {
123
120
  for (var t = e[0], n = 1; n < e.length; ++n) e[n] > t && (t = e[n]);
124
121
  return t;
125
122
  }, b = function(e, t, n) {
@@ -175,7 +172,7 @@ var v = h(_, 5, 1), y = function(e) {
175
172
  }
176
173
  p && g(w + M), o.set(t.subarray(j, N), w), n.b = w += M, n.p = S = N * 8, n.f = _;
177
174
  continue;
178
- } else if (A == 1) T = ee, E = v, D = 9, O = 5;
175
+ } else if (A == 1) T = v, E = ee, D = 9, O = 5;
179
176
  else if (A == 2) {
180
177
  var P = b(t, S, 31) + 257, F = b(t, S + 10, 15) + 4, I = P + b(t, S + 5, 31) + 1;
181
178
  S += 14;
@@ -2,6 +2,6 @@ import e from "./EParallaxScrolling.vue_vue_type_script_setup_true_lang.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
4
  //#region src/components/advanced/EParallaxScrolling/EParallaxScrolling.vue
5
- var n = t(e, [["__scopeId", "data-v-9210efa3"]]);
5
+ var n = t(e, [["__scopeId", "data-v-eb15c81e"]]);
6
6
  //#endregion
7
7
  export { n as default };
@@ -1,38 +1,42 @@
1
- import { createElementBlock as e, defineComponent as t, onMounted as n, openBlock as r, useTemplateRef as i } from "vue";
1
+ import { createElementBlock as e, defineComponent as t, normalizeStyle as n, onMounted as r, openBlock as i, ref as a, useTemplateRef as o } from "vue";
2
2
  //#region src/components/advanced/EParallaxScrolling/EParallaxScrolling.vue?vue&type=script&setup=true&lang.ts
3
- var a = t({
3
+ var s = t({
4
4
  __name: "EParallaxScrolling",
5
- props: { imgList: {} },
5
+ props: {
6
+ imgList: {},
7
+ height: { default: "400px" }
8
+ },
6
9
  setup(t) {
7
- let a = i("parallax-scrolling"), o = 0, s = () => o === 0 ? t.imgList.length - 1 : o - 1, c = () => o === t.imgList.length - 1 ? 0 : o + 1, l = (e) => {
10
+ let s = o("parallax-scrolling"), c = 0, l = a(!1), u = () => c === 0 ? t.imgList.length - 1 : c - 1, d = () => c === t.imgList.length - 1 ? 0 : c + 1, f = (e) => {
8
11
  let n = document.createElement("img");
9
12
  n.src = t.imgList[e];
10
13
  let r = document.createElement("div");
11
- return r.className = "item", r.appendChild(n), a.value.appendChild(r), r;
12
- }, u = () => {
13
- let e = a.value;
14
+ return r.className = "item", r.appendChild(n), s.value.appendChild(r), r;
15
+ }, p = () => {
16
+ let e = s.value;
14
17
  e.innerHTML = "";
15
- let t = s(), n = c();
16
- l(t).classList.add("prev"), l(o).classList.add("cur"), l(n).classList.add("next");
18
+ let t = u(), n = d();
19
+ f(t).classList.add("prev"), f(c).classList.add("cur"), f(n).classList.add("next");
17
20
  };
18
- n(() => {
19
- u();
21
+ r(() => {
22
+ p();
20
23
  });
21
- let d = (e) => {
22
- if (!e.deltaY) return;
23
- let t = a.value;
24
- e.deltaY < 0 ? t.className = "scroll-up" : t.className = "scroll-down";
25
- }, f = (e) => {
24
+ let m = (e) => {
25
+ if (!e.deltaY || l.value) return;
26
+ let t = s.value;
27
+ e.deltaY < 0 ? t.classList.add("scroll-up") : t.classList.add("scroll-down"), l.value = !0;
28
+ }, h = (e) => {
26
29
  let t = e.currentTarget;
27
- t.className.includes("scroll-up") ? o = s() : t.className.includes("scroll-down") && (o = c()), u(), t.className = "parallax-scrolling";
30
+ t.classList.contains("scroll-up") ? c = u() : t.classList.contains("scroll-down") && (c = d()), p(), t.classList.remove("scroll-up", "scroll-down"), l.value = !1;
28
31
  };
29
- return (t, n) => (r(), e("div", {
32
+ return (r, a) => (i(), e("div", {
30
33
  class: "parallax-scrolling",
31
34
  ref: "parallax-scrolling",
32
- onWheel: d,
33
- onTransitionend: f
34
- }, null, 544));
35
+ style: n({ height: t.height }),
36
+ onWheel: m,
37
+ onTransitionend: h
38
+ }, null, 36));
35
39
  }
36
40
  });
37
41
  //#endregion
38
- export { a as default };
42
+ export { s as default };
@@ -2,6 +2,6 @@ import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
2
2
  import t from "./EWatermark.vue_vue_type_script_setup_true_lang.js";
3
3
  /* empty css */
4
4
  //#region src/components/advanced/EWatermark/EWatermark.vue
5
- var n = e(t, [["__scopeId", "data-v-8635b31d"]]);
5
+ var n = e(t, [["__scopeId", "data-v-7f9b754f"]]);
6
6
  //#endregion
7
7
  export { n as default };
@@ -1,14 +1,14 @@
1
- import { computed as e, createElementBlock as t, createElementVNode as n, defineComponent as r, onMounted as i, onUnmounted as a, openBlock as o, renderSlot as s, useTemplateRef as c, watch as l } from "vue";
1
+ import { computed as e, createElementBlock as t, createElementVNode as n, defineComponent as r, onMounted as i, onUnmounted as a, openBlock as o, ref as s, renderSlot as c, useTemplateRef as l, watch as u } from "vue";
2
2
  //#region src/components/advanced/EWatermark/EWatermark.vue?vue&type=script&setup=true&lang.ts
3
- var u = {
3
+ var d = {
4
4
  ref: "watermark",
5
5
  class: "e-watermark"
6
- }, d = { class: "e-watermark__content" }, f = r({
6
+ }, f = { class: "e-watermark__content" }, p = r({
7
7
  __name: "EWatermark",
8
8
  props: {
9
9
  text: { default: "Watermark" },
10
- rotate: { default: () => -45 },
11
- fontColor: { default: "rgba(100, 100, 100, 0.5)" },
10
+ rotate: { default: -45 },
11
+ fontColor: { default: "rgba(100, 100, 100, 0.15)" },
12
12
  fontSize: { default: 16 },
13
13
  fontFamily: { default: "Arial" },
14
14
  gap: { default: 100 },
@@ -16,85 +16,83 @@ var u = {
16
16
  height: {},
17
17
  image: { default: "" },
18
18
  imageWidth: { default: 120 },
19
- imageHeight: { default: 40 }
19
+ imageHeight: { default: 40 },
20
+ opacity: { default: 1 }
20
21
  },
21
22
  setup(r) {
22
- let f = c("watermark"), p = e(() => {
23
- let e = document.createElement("canvas"), t = e.getContext("2d"), n = window.devicePixelRatio || 1, i = r.width, a = r.height;
24
- if (r.image) i ||= r.imageWidth, a ||= r.imageHeight;
25
- else if (r.text) {
26
- let e = Array.isArray(r.text) ? r.text : [r.text];
27
- t.font = `${r.fontSize * n}px ${r.fontFamily}`;
28
- let o = 0;
23
+ let p = r, m = l("watermark"), h = s(null);
24
+ u(() => p.image, (e) => {
25
+ if (!e) {
26
+ h.value = null;
27
+ return;
28
+ }
29
+ let t = new Image();
30
+ t.crossOrigin = "anonymous", t.onload = () => {
31
+ h.value = t;
32
+ }, t.onerror = () => {
33
+ console.warn(`[EWatermark] 图片加载失败: ${e}`), h.value = null;
34
+ }, t.src = e;
35
+ }, { immediate: !0 });
36
+ let g = e(() => {
37
+ let e = document.createElement("canvas"), t = e.getContext("2d"), n = window.devicePixelRatio || 1, r = p.width, i = p.height;
38
+ if (p.image && h.value) r ||= p.imageWidth + 40, i ||= p.imageHeight + 40;
39
+ else if (p.text && !p.image) {
40
+ let e = Array.isArray(p.text) ? p.text : [p.text];
41
+ t.font = `${p.fontSize * n}px ${p.fontFamily}`;
42
+ let a = 0;
29
43
  e.forEach((e) => {
30
- let n = t.measureText(e);
31
- o = Math.max(o, n.width);
44
+ a = Math.max(a, t.measureText(e).width);
32
45
  });
33
- let s = r.fontSize * 1.5, c = e.length * s * n, l = Math.abs(r.rotate * Math.PI / 180), u = Math.abs(Math.cos(l) * o) + Math.abs(Math.sin(l) * c), d = Math.abs(Math.sin(l) * o) + Math.abs(Math.cos(l) * c);
34
- if (!i || !a) {
35
- let e = 40 * n;
36
- i ||= (u + e) / n, a ||= (d + e) / n;
37
- }
38
- let f = (u + 40 * n) / n, p = (d + 40 * n) / n;
39
- i = Math.max(i, f), a = Math.max(a, p);
40
- }
41
- if (e.width = i * n, e.height = a * n, t.fillStyle = "rgba(0, 0, 0, 0)", t.fillRect(0, 0, e.width, e.height), t.save(), t.translate(e.width / 2, e.height / 2), t.rotate(r.rotate * Math.PI / 180), t.translate(-e.width / 2, -e.height / 2), r.image) {
42
- let i = new Image();
43
- if (i.crossOrigin = "anonymous", i.src = r.image, i.complete) {
44
- let a = (e.width - r.imageWidth * n) / 2, o = (e.height - r.imageHeight * n) / 2;
45
- t.drawImage(i, a, o, r.imageWidth * n, r.imageHeight * n);
46
- }
47
- } else if (r.text) {
48
- let i = Array.isArray(r.text) ? r.text : [r.text], a = 1.5, o = i.length * r.fontSize * a, s = (e.height - o * n) / 2;
49
- t.font = `${r.fontSize * n}px ${r.fontFamily}`, t.fillStyle = r.fontColor, t.textAlign = "center", t.textBaseline = "top", i.forEach((i, o) => {
50
- let c = s + o * r.fontSize * a * n;
51
- t.fillText(i, e.width / 2, c);
46
+ let o = p.fontSize * 1.5, s = e.length * o * n, c = Math.abs(p.rotate * Math.PI / 180), l = Math.abs(Math.cos(c) * a) + Math.abs(Math.sin(c) * s), u = Math.abs(Math.sin(c) * a) + Math.abs(Math.cos(c) * s), d = 40 * n;
47
+ r ||= (l + d) / n, i ||= (u + d) / n, r = Math.max(r, (l + 40 * n) / n), i = Math.max(i, (u + 40 * n) / n);
48
+ } else r ||= 200, i ||= 200;
49
+ if (e.width = r * n, e.height = i * n, t.save(), t.translate(e.width / 2, e.height / 2), t.rotate(p.rotate * Math.PI / 180), t.translate(-e.width / 2, -e.height / 2), t.globalAlpha = p.opacity, p.image && h.value) {
50
+ let r = p.imageWidth * n, i = p.imageHeight * n;
51
+ t.drawImage(h.value, (e.width - r) / 2, (e.height - i) / 2, r, i);
52
+ } else if (p.text && !p.image) {
53
+ let r = Array.isArray(p.text) ? p.text : [p.text], i = r.length * p.fontSize * 1.5, a = (e.height - i * n) / 2;
54
+ t.font = `${p.fontSize * n}px ${p.fontFamily}`, t.fillStyle = p.fontColor, t.textAlign = "center", t.textBaseline = "top", r.forEach((r, i) => {
55
+ t.fillText(r, e.width / 2, a + i * p.fontSize * 1.5 * n);
52
56
  });
53
57
  }
54
58
  return t.restore(), {
55
59
  base64: e.toDataURL(),
56
- width: i,
57
- height: a,
58
- gap: r.gap
60
+ width: r,
61
+ height: i,
62
+ gap: p.gap
59
63
  };
60
- }), m, h = () => {
61
- f.value && (f.value.style.position = "relative", m && m.remove(), m = document.createElement("div"), m.style.position = "absolute", m.style.inset = "0", m.style.zIndex = "1", m.style.pointerEvents = "none", m.style.backgroundRepeat = "repeat", m.style.backgroundImage = `url(${p.value.base64})`, m.style.backgroundSize = `${p.value.width}px ${p.value.height}px`, m.style.backgroundPosition = `${p.value.gap / 2}px ${p.value.gap / 2}px`, f.value.appendChild(m));
64
+ }), _ = null, v = () => {
65
+ if (!m.value) return;
66
+ m.value.style.position = "relative", _ &&= (_.remove(), null);
67
+ let { base64: e, width: t, height: n, gap: r } = g.value;
68
+ _ = document.createElement("div"), _.style.position = "absolute", _.style.inset = "0", _.style.zIndex = "1", _.style.pointerEvents = "none", _.style.backgroundRepeat = "repeat", _.style.backgroundImage = `url(${e})`, _.style.backgroundSize = `${t}px ${n}px`, _.style.backgroundPosition = `${r / 2}px ${r / 2}px`, m.value.appendChild(_);
62
69
  };
63
70
  return i(() => {
64
- h();
65
- let e = (e) => {
66
- let t = new Image();
67
- t.crossOrigin = "anonymous", t.onload = () => {
68
- h();
69
- }, t.src = e;
70
- };
71
- l([p], () => {
72
- h();
73
- }, { deep: !0 }), l(() => r.image, (t) => {
74
- t && e(t);
75
- }, { immediate: !0 });
76
- let t = new MutationObserver((e) => {
77
- let t = !1;
78
- e.forEach((e) => {
79
- for (let n of Array.from(e.removedNodes)) if (n === m) {
80
- t = !0;
71
+ u([g, h], () => v(), {
72
+ deep: !0,
73
+ immediate: !0
74
+ });
75
+ let e = new MutationObserver((e) => {
76
+ for (let t of e) {
77
+ for (let e of Array.from(t.removedNodes)) if (e === _) {
78
+ v();
81
79
  return;
82
80
  }
83
- if (e.target === m) {
84
- t = !0;
81
+ if (t.target === _ && t.type === "attributes") {
82
+ v();
85
83
  return;
86
84
  }
87
- }), t && h();
85
+ }
88
86
  });
89
- t.observe(f.value, {
87
+ e.observe(m.value, {
90
88
  childList: !0,
91
89
  subtree: !0,
92
90
  attributes: !0
93
91
  }), a(() => {
94
- t.disconnect(), m && m.remove();
92
+ e.disconnect(), _?.remove();
95
93
  });
96
- }), (e, r) => (o(), t("div", u, [n("div", d, [s(e.$slots, "default", {}, void 0, !0)])], 512));
94
+ }), (e, r) => (o(), t("div", d, [n("div", f, [c(e.$slots, "default", {}, void 0, !0)])], 512));
97
95
  }
98
96
  });
99
97
  //#endregion
100
- export { f as default };
98
+ export { p as default };
@@ -1,7 +1,7 @@
1
1
  import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
2
2
  import t from "./EAvatar.vue_vue_type_script_setup_true_lang.js";
3
3
  /* empty css */
4
- //#region src/components/data/EAvatar/EAvatar.vue
5
- var n = e(t, [["__scopeId", "data-v-ce870577"]]);
4
+ //#region src/components/basic/EAvatar/EAvatar.vue
5
+ var n = e(t, [["__scopeId", "data-v-635a1e66"]]);
6
6
  //#endregion
7
7
  export { n as default };
@@ -0,0 +1,26 @@
1
+ import { createElementBlock as e, defineComponent as t, normalizeStyle as n, openBlock as r } from "vue";
2
+ //#region src/components/basic/EAvatar/EAvatar.vue?vue&type=script&setup=true&lang.ts
3
+ var i = t({
4
+ __name: "EAvatar",
5
+ props: {
6
+ src: {},
7
+ size: { default: "medium" }
8
+ },
9
+ setup(t) {
10
+ let i = {
11
+ small: "24px",
12
+ medium: "40px",
13
+ large: "56px"
14
+ };
15
+ return (a, o) => (r(), e("div", {
16
+ class: "e-avatar",
17
+ style: n({
18
+ backgroundImage: `url(${t.src})`,
19
+ width: i[t.size],
20
+ height: i[t.size]
21
+ })
22
+ }, null, 4));
23
+ }
24
+ });
25
+ //#endregion
26
+ export { i as default };
@@ -2,6 +2,6 @@ import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
2
2
  import t from "./EBadge.vue_vue_type_script_setup_true_lang.js";
3
3
  /* empty css */
4
4
  //#region src/components/basic/EBadge/EBadge.vue
5
- var n = e(t, [["__scopeId", "data-v-009f2d80"]]);
5
+ var n = e(t, [["__scopeId", "data-v-b65f346c"]]);
6
6
  //#endregion
7
7
  export { n as default };
@@ -2,6 +2,6 @@ import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
2
2
  import t from "./ECarousel.vue_vue_type_script_setup_true_lang.js";
3
3
  /* empty css */
4
4
  //#region src/components/data/ECarousel/ECarousel.vue
5
- var n = e(t, [["__scopeId", "data-v-fd9ac4fd"]]);
5
+ var n = e(t, [["__scopeId", "data-v-6fb479e3"]]);
6
6
  //#endregion
7
7
  export { n as default };
@@ -2,6 +2,6 @@ import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
2
2
  import t from "./ECodeCollapse.vue_vue_type_script_setup_true_lang.js";
3
3
  /* empty css */
4
4
  //#region src/components/data/ECodeCollapse/ECodeCollapse.vue
5
- var n = e(t, [["__scopeId", "data-v-65d0063e"]]);
5
+ var n = e(t, [["__scopeId", "data-v-082f56a7"]]);
6
6
  //#endregion
7
7
  export { n as default };
@@ -2,6 +2,6 @@ import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
2
2
  import t from "./EImage.vue_vue_type_script_setup_true_lang.js";
3
3
  /* empty css */
4
4
  //#region src/components/data/EImage.vue
5
- var n = e(t, [["__scopeId", "data-v-78e5d527"]]);
5
+ var n = e(t, [["__scopeId", "data-v-093862b4"]]);
6
6
  //#endregion
7
7
  export { n as default };
@@ -2,6 +2,6 @@ import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
2
2
  import t from "./EList.vue_vue_type_script_setup_true_lang.js";
3
3
  /* empty css */
4
4
  //#region src/components/data/EList.vue
5
- var n = e(t, [["__scopeId", "data-v-912436c6"]]);
5
+ var n = e(t, [["__scopeId", "data-v-6377d3d9"]]);
6
6
  //#endregion
7
7
  export { n as default };
@@ -2,6 +2,6 @@ import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
2
2
  import t from "./ETable.vue_vue_type_script_setup_true_lang.js";
3
3
  /* empty css */
4
4
  //#region src/components/data/ETable/ETable.vue
5
- var n = e(t, [["__scopeId", "data-v-2ca146a0"]]);
5
+ var n = e(t, [["__scopeId", "data-v-6d5f99b3"]]);
6
6
  //#endregion
7
7
  export { n as default };
@@ -2,6 +2,6 @@ import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
2
2
  import t from "./ETimeline.vue_vue_type_script_setup_true_lang.js";
3
3
  /* empty css */
4
4
  //#region src/components/data/ETimeline/ETimeline.vue
5
- var n = e(t, [["__scopeId", "data-v-0050fc0d"]]);
5
+ var n = e(t, [["__scopeId", "data-v-f42c4470"]]);
6
6
  //#endregion
7
7
  export { n as default };
@@ -1,17 +1,18 @@
1
- import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, defineComponent as i, normalizeStyle as a, openBlock as o, provide as s, reactive as c, renderList as l, renderSlot as u } from "vue";
1
+ import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, defineComponent as i, normalizeClass as a, normalizeStyle as o, openBlock as s, provide as c, reactive as l, renderList as u, renderSlot as d } from "vue";
2
2
  //#region src/components/data/ETimeline/ETimeline.vue?vue&type=script&setup=true&lang.ts
3
- var d = { class: "e-timeline" }, f = 3, p = i({
3
+ var f = 4, p = i({
4
4
  __name: "ETimeline",
5
+ props: { size: { default: "medium" } },
5
6
  setup(i) {
6
- let p = c({});
7
- s("updateDotInfo", ({ timestamp: e, offsetTop: t, offsetLeft: n, height: r, width: i }) => {
7
+ let p = l({});
8
+ c("updateDotInfo", ({ timestamp: e, offsetTop: t, offsetLeft: n, height: r, width: i }) => {
8
9
  p[e] = {
9
10
  offsetTop: t,
10
11
  offsetLeft: n,
11
12
  height: r,
12
13
  width: i
13
14
  };
14
- }), s("addDotInfo", ({ timestamp: e, offsetTop: t, offsetLeft: n, height: r, width: i }) => {
15
+ }), c("addDotInfo", ({ timestamp: e, offsetTop: t, offsetLeft: n, height: r, width: i }) => {
15
16
  if (p[e]) throw Error("已存在相同的时间戳");
16
17
  p[e] = {
17
18
  offsetTop: t,
@@ -19,21 +20,21 @@ var d = { class: "e-timeline" }, f = 3, p = i({
19
20
  height: r,
20
21
  width: i
21
22
  };
22
- }), s("removeDotInfo", (e) => {
23
+ }), c("removeDotInfo", (e) => {
23
24
  delete p[e];
24
- });
25
+ }), c("timelineSize", i.size);
25
26
  let m = t(() => Object.values(p).sort((e, t) => e.offsetTop - t.offsetTop));
26
- return (t, i) => (o(), r("div", d, [(o(!0), r(e, null, l(p, (t, i, s) => (o(), r(e, { key: i }, [s > 0 ? (o(), r("div", {
27
+ return (t, c) => (s(), r("div", { class: a(["e-timeline", [`e-timeline--${i.size}`]]) }, [(s(!0), r(e, null, u(p, (t, a, c) => (s(), r(e, { key: a }, [c > 0 ? (s(), r("div", {
27
28
  key: 0,
28
- class: "line",
29
- style: a({
30
- top: `${m.value[s - 1].offsetTop + m.value[s - 1].height + f}px`,
31
- height: `${t.offsetTop - f - m.value[s - 1].offsetTop - m.value[s - 1].height - f}px`,
32
- left: "16px",
33
- width: "10px",
29
+ class: "e-timeline__line",
30
+ style: o({
31
+ top: `${m.value[c - 1].offsetTop + m.value[c - 1].height + f}px`,
32
+ height: `${t.offsetTop - f - m.value[c - 1].offsetTop - m.value[c - 1].height - f}px`,
33
+ left: `calc(var(--e-timeline-${i.size}-grid-column) / 2)`,
34
+ width: `var(--e-timeline-${i.size}-line-width)`,
34
35
  transform: "translateX(-50%)"
35
36
  })
36
- }, null, 4)) : n("", !0)], 64))), 128)), u(t.$slots, "default", {}, void 0, !0)]));
37
+ }, null, 4)) : n("", !0)], 64))), 128)), d(t.$slots, "default", {}, void 0, !0)], 2));
37
38
  }
38
39
  });
39
40
  //#endregion
@@ -2,6 +2,6 @@ import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
2
2
  import t from "./ETimelineItem.vue_vue_type_script_setup_true_lang.js";
3
3
  /* empty css */
4
4
  //#region src/components/data/ETimeline/ETimelineItem.vue
5
- var n = e(t, [["__scopeId", "data-v-5708c2bf"]]);
5
+ var n = e(t, [["__scopeId", "data-v-a7f4e704"]]);
6
6
  //#endregion
7
7
  export { n as default };
@@ -1,16 +1,16 @@
1
- import { createElementBlock as e, createElementVNode as t, defineComponent as n, inject as r, onMounted as i, onUnmounted as a, openBlock as o, renderSlot as s, toDisplayString as c, unref as l, useSlots as u, useTemplateRef as d } from "vue";
1
+ import { createElementBlock as e, createElementVNode as t, defineComponent as n, inject as r, normalizeClass as i, onMounted as a, onUnmounted as o, openBlock as s, renderSlot as c, toDisplayString as l, unref as u, useSlots as d, useTemplateRef as f } from "vue";
2
2
  //#region src/components/data/ETimeline/ETimelineItem.vue?vue&type=script&setup=true&lang.ts
3
- var f = { class: "dot-box" }, p = {
3
+ var p = { class: "e-timeline-item__dot-box" }, m = {
4
4
  key: 1,
5
- class: "dot"
6
- }, m = { class: "timestamp" }, h = { class: "content" }, g = n({
5
+ class: "e-timeline-item__dot"
6
+ }, h = { class: "e-timeline-item__timestamp" }, g = { class: "e-timeline-item__content" }, _ = n({
7
7
  __name: "ETimelineItem",
8
8
  props: { timestamp: {} },
9
9
  setup(n) {
10
- let g = u(), _ = r("updateDotInfo"), v = r("addDotInfo"), y = r("removeDotInfo"), b = d("timelineItemRef");
11
- return i(() => {
12
- let e = b.value.parentNode, t = b.value.querySelector(".dot-box").firstElementChild;
13
- v({
10
+ let _ = d(), v = r("timelineSize", "medium"), y = r("updateDotInfo"), b = r("addDotInfo"), x = r("removeDotInfo"), S = f("timelineItemRef");
11
+ return a(() => {
12
+ let e = S.value.parentNode, t = S.value.querySelector(".e-timeline-item__dot-box").firstElementChild;
13
+ b({
14
14
  timestamp: n.timestamp,
15
15
  offsetTop: t.offsetTop,
16
16
  offsetLeft: t.offsetLeft,
@@ -18,7 +18,7 @@ var f = { class: "dot-box" }, p = {
18
18
  width: t.offsetWidth
19
19
  });
20
20
  let r = new ResizeObserver(() => {
21
- _({
21
+ y({
22
22
  timestamp: n.timestamp,
23
23
  offsetTop: t.offsetTop,
24
24
  offsetLeft: t.offsetLeft,
@@ -26,19 +26,19 @@ var f = { class: "dot-box" }, p = {
26
26
  width: t.offsetWidth
27
27
  });
28
28
  });
29
- r.observe(e), a(() => {
30
- y(n.timestamp), r.disconnect();
29
+ r.observe(e), o(() => {
30
+ x(n.timestamp), r.disconnect();
31
31
  });
32
- }), (r, i) => (o(), e("div", {
33
- class: "e-timeline-item",
32
+ }), (r, a) => (s(), e("div", {
33
+ class: i(["e-timeline-item", [`e-timeline-item--${u(v)}`]]),
34
34
  ref_key: "timelineItemRef",
35
- ref: b
35
+ ref: S
36
36
  }, [
37
- t("div", f, [l(g).icon ? s(r.$slots, "icon", { key: 0 }, void 0, !0) : (o(), e("div", p))]),
38
- t("div", m, c(n.timestamp), 1),
39
- t("div", h, [s(r.$slots, "default", {}, void 0, !0)])
40
- ], 512));
37
+ t("div", p, [u(_).icon ? c(r.$slots, "icon", { key: 0 }, void 0, !0) : (s(), e("div", m))]),
38
+ t("div", h, l(n.timestamp), 1),
39
+ t("div", g, [c(r.$slots, "default", {}, void 0, !0)])
40
+ ], 2));
41
41
  }
42
42
  });
43
43
  //#endregion
44
- export { g as default };
44
+ export { _ as default };
@@ -2,6 +2,6 @@ import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
2
2
  import t from "./EDialog.vue_vue_type_script_setup_true_lang.js";
3
3
  /* empty css */
4
4
  //#region src/components/feedback/EDialog/EDialog.vue
5
- var n = e(t, [["__scopeId", "data-v-7b785857"]]);
5
+ var n = e(t, [["__scopeId", "data-v-e48d4c96"]]);
6
6
  //#endregion
7
7
  export { n as default };
@@ -2,6 +2,6 @@ import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
2
2
  import t from "./EDrawer.vue_vue_type_script_setup_true_lang.js";
3
3
  /* empty css */
4
4
  //#region src/components/feedback/EDrawer/EDrawer.vue
5
- var n = e(t, [["__scopeId", "data-v-2f6fb8d5"]]);
5
+ var n = e(t, [["__scopeId", "data-v-1819995a"]]);
6
6
  //#endregion
7
7
  export { n as default };
@@ -35,8 +35,8 @@ var x = { class: "header" }, S = {
35
35
  ],
36
36
  setup(l, { emit: T }) {
37
37
  g((e) => ({
38
- v44257f25: e.width,
39
- v26bb6ba8: e.height
38
+ v58122175: e.width,
39
+ df39d950: e.height
40
40
  }));
41
41
  let E = T, D = () => {
42
42
  E("close"), E("update:open", !1);
@@ -2,6 +2,6 @@ import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
2
2
  import t from "./EPopover.vue_vue_type_script_setup_true_lang.js";
3
3
  /* empty css */
4
4
  //#region src/components/feedback/EPopover.vue
5
- var n = e(t, [["__scopeId", "data-v-6ab09c19"]]);
5
+ var n = e(t, [["__scopeId", "data-v-8710a281"]]);
6
6
  //#endregion
7
7
  export { n as default };
@@ -2,6 +2,6 @@ import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
2
2
  import t from "./ETooltip.vue_vue_type_script_setup_true_lang.js";
3
3
  /* empty css */
4
4
  //#region src/components/feedback/ETooltip.vue
5
- var n = e(t, [["__scopeId", "data-v-152661a6"]]);
5
+ var n = e(t, [["__scopeId", "data-v-0ad9b03b"]]);
6
6
  //#endregion
7
7
  export { n as default };
@@ -2,6 +2,6 @@ import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
2
2
  import t from "./EColorPicker.vue_vue_type_script_setup_true_lang.js";
3
3
  /* empty css */
4
4
  //#region src/components/form/EColorPicker.vue
5
- var n = e(t, [["__scopeId", "data-v-67306421"]]);
5
+ var n = e(t, [["__scopeId", "data-v-cbf39932"]]);
6
6
  //#endregion
7
7
  export { n as default };
@@ -2,6 +2,6 @@ import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
2
2
  import t from "./EConditionGroup.vue_vue_type_script_setup_true_lang.js";
3
3
  /* empty css */
4
4
  //#region src/components/form/EConditionGroup/EConditionGroup.vue
5
- var n = e(t, [["__scopeId", "data-v-70a57319"]]);
5
+ var n = e(t, [["__scopeId", "data-v-32edb668"]]);
6
6
  //#endregion
7
7
  export { n as default };