exploria-ui 2026.4.12 → 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 (38) 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/packages/exploria-ui/src/components/advanced/EParallaxScrolling/EParallaxScrolling.vue.js +1 -1
  14. package/dist/packages/exploria-ui/src/components/advanced/EParallaxScrolling/EParallaxScrolling.vue_vue_type_script_setup_true_lang.js +26 -22
  15. package/dist/packages/exploria-ui/src/components/advanced/EWatermark/EWatermark.vue.js +1 -1
  16. package/dist/packages/exploria-ui/src/components/advanced/EWatermark/EWatermark.vue_vue_type_script_setup_true_lang.js +61 -63
  17. package/dist/packages/exploria-ui/src/components/{data → basic}/EAvatar/EAvatar.vue.js +2 -2
  18. package/dist/packages/exploria-ui/src/components/basic/EAvatar/EAvatar.vue_vue_type_script_setup_true_lang.js +26 -0
  19. package/dist/packages/exploria-ui/src/components/basic/EBadge/EBadge.vue.js +1 -1
  20. package/dist/packages/exploria-ui/src/components/data/ETimeline/ETimeline.vue.js +1 -1
  21. package/dist/packages/exploria-ui/src/components/data/ETimeline/ETimeline.vue_vue_type_script_setup_true_lang.js +16 -15
  22. package/dist/packages/exploria-ui/src/components/data/ETimeline/ETimelineItem.vue.js +1 -1
  23. package/dist/packages/exploria-ui/src/components/data/ETimeline/ETimelineItem.vue_vue_type_script_setup_true_lang.js +19 -19
  24. package/dist/packages/exploria-ui/src/components/form/EConditionGroup/EConditionGroup.vue.js +1 -1
  25. package/dist/packages/exploria-ui/src/components/form/EConditionGroup/EConditionGroup.vue_vue_type_script_setup_true_lang.js +72 -56
  26. package/dist/packages/exploria-ui/src/components/form/ESelect/ESelect.vue.js +1 -1
  27. package/dist/packages/exploria-ui/src/components/form/ESelect/ESelect.vue_vue_type_script_setup_true_lang.js +2 -1
  28. package/dist/packages/exploria-ui/src/components/navigation/ETabs/ETabs.vue.js +1 -1
  29. package/dist/packages/exploria-ui/src/components/navigation/ETabs/ETabs.vue_vue_type_script_setup_true_lang.js +10 -7
  30. package/dist/packages/exploria-ui/src/utils/EDomUtil.js +21 -10
  31. package/dist/plugins/EPreloadImageBuilder.d.ts +5 -0
  32. package/dist/plugins/ESvgPolyfill.d.ts +3 -0
  33. package/dist/plugins/ESvgSpriteBuilder.d.ts +6 -0
  34. package/dist/plugins/index.d.ts +4 -0
  35. package/dist/plugins/index.js +7793 -0
  36. package/dist/utils/EDomUtil.d.ts +7 -0
  37. package/package.json +1 -1
  38. package/dist/packages/exploria-ui/src/components/data/EAvatar/EAvatar.vue_vue_type_script_setup_true_lang.js +0 -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-563791b6"]]);
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 "./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 "./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-523785d5"]]);
5
+ var n = e(t, [["__scopeId", "data-v-32edb668"]]);
6
6
  //#endregion
7
7
  export { n as default };
@@ -1,21 +1,9 @@
1
- import e from "../../basic/EButton/EButton.vue.js";
2
- import { Fragment as t, computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, normalizeStyle as u, openBlock as d, renderList as f, renderSlot as p, withCtx as m } from "vue";
1
+ import e from "../../../directives/ESizeOb.js";
2
+ import t from "../../basic/EButton/EButton.vue.js";
3
+ import "../../../../../../directives/index.js";
4
+ import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, normalizeStyle as f, openBlock as p, reactive as m, ref as h, renderList as g, renderSlot as _, unref as v, withCtx as y, withDirectives as b } from "vue";
3
5
  //#region src/components/form/EConditionGroup/EConditionGroup.vue?vue&type=script&setup=true&lang.ts
4
- var h = { class: "e-condition-group" }, g = {
5
- key: 0,
6
- class: "condition-group-left",
7
- style: {
8
- marginTop: "8px",
9
- marginBottom: "8px"
10
- }
11
- }, _ = { class: "e-condition-group__right" }, v = {
12
- key: 0,
13
- class: "left",
14
- style: {
15
- marginTop: "8px",
16
- marginBottom: "8px"
17
- }
18
- }, y = 32, b = 16, x = c({
6
+ var x = { class: "e-condition-group" }, S = { class: "e-condition-group__right" }, C = 16, w = u({
19
7
  __name: "EConditionGroup",
20
8
  props: {
21
9
  conditionGroup: {},
@@ -23,79 +11,107 @@ var h = { class: "e-condition-group" }, g = {
23
11
  size: { default: "medium" }
24
12
  },
25
13
  emits: ["update:condition-group"],
26
- setup(c, { emit: x }) {
27
- let S = x, C = n({
14
+ setup(u, { emit: w }) {
15
+ let T = h(0), E = w, D = r({
28
16
  get() {
29
- return c.conditionGroup;
17
+ return u.conditionGroup;
30
18
  },
31
19
  set(e) {
32
- S("update:condition-group", e);
20
+ E("update:condition-group", e);
33
21
  }
34
- });
35
- return (n, x) => (d(), i("div", h, [C.value.length > 1 ? (d(), i("div", g, [...x[1] ||= [a("div", { class: "or-line" }, null, -1), a("div", { class: "or-icon" }, "OR", -1)]])) : r("", !0), a("div", _, [(d(!0), i(t, null, f(C.value, (h, g) => (d(), i("div", {
36
- key: g,
37
- class: l(["e-condition-group__right__item", c.size])
38
- }, [h.length > 1 ? (d(), i("div", v, [...x[2] ||= [a("div", { class: "and-line" }, null, -1), a("div", { class: "and-icon" }, "AND", -1)]])) : r("", !0), a("div", {
22
+ }), O = m({
23
+ firstGroup: 0,
24
+ lastGroup: 0
25
+ }), k = m([{
26
+ firstRow: 0,
27
+ lastRow: 0
28
+ }]);
29
+ return (r, m) => (p(), o("div", x, [D.value.length >= 2 ? (p(), o("div", {
30
+ key: 0,
31
+ class: "condition-group-left",
32
+ style: f({
33
+ marginTop: O.firstGroup / 2 + "px",
34
+ marginBottom: T.value + O.lastGroup / 2 + C + "px"
35
+ })
36
+ }, [...m[1] ||= [s("div", { class: "or-line" }, null, -1), s("div", { class: "or-icon" }, "OR", -1)]], 4)) : a("", !0), s("div", S, [(p(!0), o(n, null, g(D.value, (i, h) => b((p(), o("div", {
37
+ key: h,
38
+ class: d(["e-condition-group__right__item", u.size])
39
+ }, [i.length >= 2 ? (p(), o("div", {
40
+ key: 0,
41
+ class: "left",
42
+ style: f({
43
+ marginTop: (k[h]?.firstRow || 0) / 2 + "px",
44
+ marginBottom: (k[h]?.lastRow || 0) / 2 + C + T.value + "px"
45
+ })
46
+ }, [...m[2] ||= [s("div", { class: "and-line" }, null, -1), s("div", { class: "and-icon" }, "AND", -1)]], 4)) : a("", !0), s("div", {
39
47
  class: "right",
40
- style: u({ rowGap: b + "px" })
41
- }, [(d(!0), i(t, null, f(h, (t, r) => (d(), i("div", {
42
- key: `group-${g}-row-${r}`,
48
+ style: f({ rowGap: C + "px" })
49
+ }, [(p(!0), o(n, null, g(i, (n, a) => b((p(), o("div", {
50
+ key: `group-${h}-row-${a}`,
43
51
  style: {
44
52
  display: "flex",
45
53
  "column-gap": "8px"
46
54
  }
47
55
  }, [
48
- p(n.$slots, "default", {
49
- row: t,
50
- groupIndex: g,
51
- rowIndex: r
56
+ _(r.$slots, "default", {
57
+ row: n,
58
+ groupIndex: h,
59
+ rowIndex: a
52
60
  }, void 0, !0),
53
- s(e, {
54
- size: c.size,
55
- onClick: (e) => C.value[g].splice(r + 1, 0, c.defaultValueMap)
61
+ l(t, {
62
+ size: u.size,
63
+ onClick: (e) => D.value[h].splice(a + 1, 0, u.defaultValueMap)
56
64
  }, {
57
- default: m(() => [...x[3] ||= [o(" 添加 ", -1)]]),
65
+ default: y(() => [...m[3] ||= [c(" 添加 ", -1)]]),
58
66
  _: 1
59
67
  }, 8, ["size", "onClick"]),
60
- s(e, {
68
+ l(t, {
61
69
  type: "danger",
62
- size: c.size,
63
- disabled: C.value.flat().length === 1,
70
+ size: u.size,
71
+ disabled: D.value.flat().length === 1,
64
72
  onClick: (e) => {
65
- C.value[g].splice(r, 1), C.value[g].length === 0 && C.value.splice(g, 1), C.value.flat().length === 0 && C.value.push([c.defaultValueMap]);
73
+ D.value[h].splice(a, 1), D.value[h].length === 0 && D.value.splice(h, 1), D.value.flat().length === 0 && D.value.push([u.defaultValueMap]);
66
74
  }
67
75
  }, {
68
- default: m(() => [...x[4] ||= [o(" 删除 ", -1)]]),
76
+ default: y(() => [...m[4] ||= [c(" 删除 ", -1)]]),
69
77
  _: 1
70
78
  }, 8, [
71
79
  "size",
72
80
  "disabled",
73
81
  "onClick"
74
82
  ])
75
- ]))), 128)), s(e, {
76
- style: u([{ "align-self": "flex-start" }, { height: y + "px" }]),
77
- size: c.size,
78
- disabled: C.value.flat().length === 1,
83
+ ])), [[v(e), (e, t, r) => {
84
+ n.length >= 2 && (k[h] || (k[h] = {
85
+ firstRow: 0,
86
+ lastRow: 0
87
+ }), a === 0 && (k[h].firstRow = r.clientHeight), a === i.length - 1 && (k[h].lastRow = r.clientHeight));
88
+ }]])), 128)), l(t, {
89
+ style: { "align-self": "flex-start" },
90
+ size: u.size,
91
+ disabled: D.value.flat().length === 1,
79
92
  onClick: (e) => {
80
- C.value.splice(g, 1), C.value.length === 0 && C.value.push([c.defaultValueMap]);
93
+ D.value.splice(h, 1), D.value.length === 0 && D.value.push([u.defaultValueMap]);
81
94
  }
82
95
  }, {
83
- default: m(() => [...x[5] ||= [o(" 删除条件组 ", -1)]]),
96
+ default: y(() => [...m[5] ||= [c(" 删除条件组 ", -1)]]),
84
97
  _: 1
85
98
  }, 8, [
86
99
  "size",
87
- "style",
88
100
  "disabled",
89
101
  "onClick"
90
- ])], 4)], 2))), 128)), s(e, {
91
- size: c.size,
92
- style: u([{ "align-self": "flex-start" }, { height: y + "px" }]),
93
- onClick: x[0] ||= (e) => C.value.push([c.defaultValueMap])
102
+ ])], 4)], 2)), [[v(e), (e, t, n) => {
103
+ i.length >= 2 && (h === 0 && (O.firstGroup = n.clientHeight), h === D.value.length - 1 && (O.lastGroup = n.clientHeight));
104
+ }]])), 128)), b((p(), i(t, {
105
+ size: u.size,
106
+ style: { "align-self": "flex-start" },
107
+ onClick: m[0] ||= (e) => D.value.push([u.defaultValueMap])
94
108
  }, {
95
- default: m(() => [...x[6] ||= [o(" 添加条件组 ", -1)]]),
109
+ default: y(() => [...m[6] ||= [c(" 添加条件组 ", -1)]]),
96
110
  _: 1
97
- }, 8, ["size", "style"])])]));
111
+ }, 8, ["size"])), [[v(e), (e, t, n) => {
112
+ T.value = n.clientHeight / 2;
113
+ }]])])]));
98
114
  }
99
115
  });
100
116
  //#endregion
101
- export { x as default };
117
+ export { w as default };
@@ -2,6 +2,6 @@ import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
2
2
  import t from "./ESelect.vue_vue_type_script_setup_true_lang.js";
3
3
  /* empty css */
4
4
  //#region src/components/form/ESelect/ESelect.vue
5
- var n = e(t, [["__scopeId", "data-v-9639afe1"]]);
5
+ var n = e(t, [["__scopeId", "data-v-89116412"]]);
6
6
  //#endregion
7
7
  export { n as default };