dld-vue-ui 2.0.2 → 2.0.4

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,4 +1,4 @@
1
- import { useSlots as be, ref as T, computed as K, watch as ee, onBeforeUnmount as Pe, onMounted as me, provide as j, openBlock as s, createBlock as _, resolveDynamicComponent as Ue, inject as ae, getCurrentInstance as Re, createElementBlock as M, unref as i, normalizeStyle as F, renderSlot as R, nextTick as we, h as We, defineComponent as I, withCtx as z, createElementVNode as P, resolveComponent as x, createVNode as $, createTextVNode as A, withDirectives as Fe, vShow as He, toDisplayString as oe, Fragment as X, renderList as ne, createCommentVNode as v, reactive as Te, normalizeClass as q, createSlots as Be, withKeys as Se, mergeModels as ke, useModel as De, isRef as Ce } from "vue";
1
+ import { useSlots as be, ref as D, computed as X, watch as ee, onBeforeUnmount as Me, onMounted as he, provide as j, openBlock as r, createBlock as _, resolveDynamicComponent as Ue, inject as ae, getCurrentInstance as Re, createElementBlock as M, unref as s, normalizeStyle as H, renderSlot as W, nextTick as we, h as We, defineComponent as R, withCtx as z, createElementVNode as U, resolveComponent as x, createVNode as I, createTextVNode as G, withDirectives as Fe, vShow as He, toDisplayString as oe, Fragment as J, renderList as ne, createCommentVNode as v, reactive as Te, normalizeClass as K, createSlots as Be, withKeys as Se, mergeModels as ke, useModel as De, isRef as Ce } from "vue";
2
2
  const Ne = {
3
3
  __name: "splitpanes",
4
4
  props: {
@@ -19,182 +19,182 @@ const Ne = {
19
19
  "pane-remove",
20
20
  "splitter-click"
21
21
  ],
22
- setup(r, { emit: m }) {
23
- const p = m, h = r, S = be(), l = T([]), w = K(() => l.value.reduce((e, t) => (e[~~t.id] = t) && e, {})), B = K(() => l.value.length), C = T(null), g = T(!1), V = T({
22
+ setup(d, { emit: c }) {
23
+ const p = c, m = d, k = be(), l = D([]), w = X(() => l.value.reduce((t, e) => (t[~~e.id] = e) && t, {})), L = X(() => l.value.length), P = D(null), g = D(!1), S = D({
24
24
  mouseDown: !1,
25
25
  dragging: !1,
26
26
  activeSplitter: null,
27
27
  cursorOffset: 0
28
28
  // Cursor offset within the splitter.
29
- }), U = T({
29
+ }), B = D({
30
30
  // Used to detect double click on touch devices.
31
31
  splitter: null,
32
32
  timeoutId: null
33
- }), L = K(() => ({
34
- [`splitpanes splitpanes--${h.horizontal ? "horizontal" : "vertical"}`]: !0,
35
- "splitpanes--dragging": V.value.dragging
36
- })), E = () => {
37
- document.addEventListener("mousemove", y, { passive: !1 }), document.addEventListener("mouseup", O), "ontouchstart" in window && (document.addEventListener("touchmove", y, { passive: !1 }), document.addEventListener("touchend", O));
38
- }, H = () => {
39
- document.removeEventListener("mousemove", y, { passive: !1 }), document.removeEventListener("mouseup", O), "ontouchstart" in window && (document.removeEventListener("touchmove", y, { passive: !1 }), document.removeEventListener("touchend", O));
40
- }, D = (e, t) => {
41
- const d = e.target.closest(".splitpanes__splitter");
42
- if (d) {
43
- const { left: o, top: u } = d.getBoundingClientRect(), { clientX: f, clientY: b } = "ontouchstart" in window && e.touches ? e.touches[0] : e;
44
- V.value.cursorOffset = h.horizontal ? b - u : f - o;
33
+ }), E = X(() => ({
34
+ [`splitpanes splitpanes--${m.horizontal ? "horizontal" : "vertical"}`]: !0,
35
+ "splitpanes--dragging": S.value.dragging
36
+ })), $ = () => {
37
+ document.addEventListener("mousemove", y, { passive: !1 }), document.addEventListener("mouseup", A), "ontouchstart" in window && (document.addEventListener("touchmove", y, { passive: !1 }), document.addEventListener("touchend", A));
38
+ }, T = () => {
39
+ document.removeEventListener("mousemove", y, { passive: !1 }), document.removeEventListener("mouseup", A), "ontouchstart" in window && (document.removeEventListener("touchmove", y, { passive: !1 }), document.removeEventListener("touchend", A));
40
+ }, N = (t, e) => {
41
+ const a = t.target.closest(".splitpanes__splitter");
42
+ if (a) {
43
+ const { left: i, top: u } = a.getBoundingClientRect(), { clientX: f, clientY: b } = "ontouchstart" in window && t.touches ? t.touches[0] : t;
44
+ S.value.cursorOffset = m.horizontal ? b - u : f - i;
45
45
  }
46
- E(), V.value.mouseDown = !0, V.value.activeSplitter = t;
47
- }, y = (e) => {
48
- V.value.mouseDown && (e.preventDefault(), V.value.dragging = !0, requestAnimationFrame(() => {
49
- n(le(e)), p("resize", l.value.map((t) => ({ min: t.min, max: t.max, size: t.size })));
46
+ $(), S.value.mouseDown = !0, S.value.activeSplitter = e;
47
+ }, y = (t) => {
48
+ S.value.mouseDown && (t.preventDefault(), S.value.dragging = !0, requestAnimationFrame(() => {
49
+ n(le(t)), p("resize", l.value.map((e) => ({ min: e.min, max: e.max, size: e.size })));
50
50
  }));
51
- }, O = () => {
52
- V.value.dragging && p("resized", l.value.map((e) => ({ min: e.min, max: e.max, size: e.size }))), V.value.mouseDown = !1, setTimeout(() => {
53
- V.value.dragging = !1, H();
51
+ }, A = () => {
52
+ S.value.dragging && p("resized", l.value.map((t) => ({ min: t.min, max: t.max, size: t.size }))), S.value.mouseDown = !1, setTimeout(() => {
53
+ S.value.dragging = !1, T();
54
54
  }, 100);
55
- }, J = (e, t) => {
56
- "ontouchstart" in window && (e.preventDefault(), h.dblClickSplitter && (U.value.splitter === t ? (clearTimeout(U.value.timeoutId), U.value.timeoutId = null, Q(e, t), U.value.splitter = null) : (U.value.splitter = t, U.value.timeoutId = setTimeout(() => U.value.splitter = null, 500)))), V.value.dragging || p("splitter-click", l.value[t]);
57
- }, Q = (e, t) => {
58
- let d = 0;
59
- l.value = l.value.map((o, u) => (o.size = u === t ? o.max : o.min, u !== t && (d += o.min), o)), l.value[t].size -= d, p("pane-maximize", l.value[t]), p("resized", l.value.map((o) => ({ min: o.min, max: o.max, size: o.size })));
60
- }, se = (e, t) => {
61
- p("pane-click", w.value[t]);
62
- }, le = (e) => {
63
- const t = C.value.getBoundingClientRect(), { clientX: d, clientY: o } = "ontouchstart" in window && e.touches ? e.touches[0] : e;
55
+ }, Q = (t, e) => {
56
+ "ontouchstart" in window && (t.preventDefault(), m.dblClickSplitter && (B.value.splitter === e ? (clearTimeout(B.value.timeoutId), B.value.timeoutId = null, Z(t, e), B.value.splitter = null) : (B.value.splitter = e, B.value.timeoutId = setTimeout(() => B.value.splitter = null, 500)))), S.value.dragging || p("splitter-click", l.value[e]);
57
+ }, Z = (t, e) => {
58
+ let a = 0;
59
+ l.value = l.value.map((i, u) => (i.size = u === e ? i.max : i.min, u !== e && (a += i.min), i)), l.value[e].size -= a, p("pane-maximize", l.value[e]), p("resized", l.value.map((i) => ({ min: i.min, max: i.max, size: i.size })));
60
+ }, se = (t, e) => {
61
+ p("pane-click", w.value[e]);
62
+ }, le = (t) => {
63
+ const e = P.value.getBoundingClientRect(), { clientX: a, clientY: i } = "ontouchstart" in window && t.touches ? t.touches[0] : t;
64
64
  return {
65
- x: d - (h.horizontal ? 0 : V.value.cursorOffset) - t.left,
66
- y: o - (h.horizontal ? V.value.cursorOffset : 0) - t.top
65
+ x: a - (m.horizontal ? 0 : S.value.cursorOffset) - e.left,
66
+ y: i - (m.horizontal ? S.value.cursorOffset : 0) - e.top
67
67
  };
68
- }, re = (e) => {
69
- e = e[h.horizontal ? "y" : "x"];
70
- const t = C.value[h.horizontal ? "clientHeight" : "clientWidth"];
71
- return h.rtl && !h.horizontal && (e = t - e), e * 100 / t;
72
- }, n = (e) => {
73
- const t = V.value.activeSplitter;
74
- let d = {
75
- prevPanesSize: a(t),
76
- nextPanesSize: c(t),
68
+ }, re = (t) => {
69
+ t = t[m.horizontal ? "y" : "x"];
70
+ const e = P.value[m.horizontal ? "clientHeight" : "clientWidth"];
71
+ return m.rtl && !m.horizontal && (t = e - t), t * 100 / e;
72
+ }, n = (t) => {
73
+ const e = S.value.activeSplitter;
74
+ let a = {
75
+ prevPanesSize: V(e),
76
+ nextPanesSize: o(e),
77
77
  prevReachedMinPanes: 0,
78
78
  nextReachedMinPanes: 0
79
79
  };
80
- const o = 0 + (h.pushOtherPanes ? 0 : d.prevPanesSize), u = 100 - (h.pushOtherPanes ? 0 : d.nextPanesSize), f = Math.max(Math.min(re(e), u), o);
81
- let b = [t, t + 1], N = l.value[b[0]] || null, G = l.value[b[1]] || null;
82
- const xe = N.max < 100 && f >= N.max + d.prevPanesSize, Ie = G.max < 100 && f <= 100 - (G.max + c(t + 1));
80
+ const i = 0 + (m.pushOtherPanes ? 0 : a.prevPanesSize), u = 100 - (m.pushOtherPanes ? 0 : a.nextPanesSize), f = Math.max(Math.min(re(t), u), i);
81
+ let b = [e, e + 1], O = l.value[b[0]] || null, q = l.value[b[1]] || null;
82
+ const xe = O.max < 100 && f >= O.max + a.prevPanesSize, Ie = q.max < 100 && f <= 100 - (q.max + o(e + 1));
83
83
  if (xe || Ie) {
84
- xe ? (N.size = N.max, G.size = Math.max(100 - N.max - d.prevPanesSize - d.nextPanesSize, 0)) : (N.size = Math.max(100 - G.max - d.prevPanesSize - c(t + 1), 0), G.size = G.max);
84
+ xe ? (O.size = O.max, q.size = Math.max(100 - O.max - a.prevPanesSize - a.nextPanesSize, 0)) : (O.size = Math.max(100 - q.max - a.prevPanesSize - o(e + 1), 0), q.size = q.max);
85
85
  return;
86
86
  }
87
- if (h.pushOtherPanes) {
88
- const Ve = k(d, f);
87
+ if (m.pushOtherPanes) {
88
+ const Ve = C(a, f);
89
89
  if (!Ve)
90
90
  return;
91
- ({ sums: d, panesToResize: b } = Ve), N = l.value[b[0]] || null, G = l.value[b[1]] || null;
91
+ ({ sums: a, panesToResize: b } = Ve), O = l.value[b[0]] || null, q = l.value[b[1]] || null;
92
92
  }
93
- N !== null && (N.size = Math.min(Math.max(f - d.prevPanesSize - d.prevReachedMinPanes, N.min), N.max)), G !== null && (G.size = Math.min(Math.max(100 - f - d.nextPanesSize - d.nextReachedMinPanes, G.min), G.max));
94
- }, k = (e, t) => {
95
- const d = V.value.activeSplitter, o = [d, d + 1];
96
- return t < e.prevPanesSize + l.value[o[0]].min && (o[0] = W(d).index, e.prevReachedMinPanes = 0, o[0] < d && l.value.forEach((u, f) => {
97
- f > o[0] && f <= d && (u.size = u.min, e.prevReachedMinPanes += u.min);
98
- }), e.prevPanesSize = a(o[0]), o[0] === void 0) ? (e.prevReachedMinPanes = 0, l.value[0].size = l.value[0].min, l.value.forEach((u, f) => {
99
- f > 0 && f <= d && (u.size = u.min, e.prevReachedMinPanes += u.min);
100
- }), l.value[o[1]].size = 100 - e.prevReachedMinPanes - l.value[0].min - e.prevPanesSize - e.nextPanesSize, null) : t > 100 - e.nextPanesSize - l.value[o[1]].min && (o[1] = de(d).index, e.nextReachedMinPanes = 0, o[1] > d + 1 && l.value.forEach((u, f) => {
101
- f > d && f < o[1] && (u.size = u.min, e.nextReachedMinPanes += u.min);
102
- }), e.nextPanesSize = c(o[1] - 1), o[1] === void 0) ? (e.nextReachedMinPanes = 0, l.value.forEach((u, f) => {
103
- f < B.value - 1 && f >= d + 1 && (u.size = u.min, e.nextReachedMinPanes += u.min);
104
- }), l.value[o[0]].size = 100 - e.prevPanesSize - c(o[0] - 1), null) : { sums: e, panesToResize: o };
105
- }, a = (e) => l.value.reduce((t, d, o) => t + (o < e ? d.size : 0), 0), c = (e) => l.value.reduce((t, d, o) => t + (o > e + 1 ? d.size : 0), 0), W = (e) => [...l.value].reverse().find((t) => t.index < e && t.size > t.min) || {}, de = (e) => l.value.find((t) => t.index > e + 1 && t.size > t.min) || {}, he = () => {
106
- var e;
107
- Array.from(((e = C.value) == null ? void 0 : e.children) || []).forEach((t) => {
108
- const d = t.classList.contains("splitpanes__pane"), o = t.classList.contains("splitpanes__splitter");
109
- !d && !o && (t.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
93
+ O !== null && (O.size = Math.min(Math.max(f - a.prevPanesSize - a.prevReachedMinPanes, O.min), O.max)), q !== null && (q.size = Math.min(Math.max(100 - f - a.nextPanesSize - a.nextReachedMinPanes, q.min), q.max));
94
+ }, C = (t, e) => {
95
+ const a = S.value.activeSplitter, i = [a, a + 1];
96
+ return e < t.prevPanesSize + l.value[i[0]].min && (i[0] = h(a).index, t.prevReachedMinPanes = 0, i[0] < a && l.value.forEach((u, f) => {
97
+ f > i[0] && f <= a && (u.size = u.min, t.prevReachedMinPanes += u.min);
98
+ }), t.prevPanesSize = V(i[0]), i[0] === void 0) ? (t.prevReachedMinPanes = 0, l.value[0].size = l.value[0].min, l.value.forEach((u, f) => {
99
+ f > 0 && f <= a && (u.size = u.min, t.prevReachedMinPanes += u.min);
100
+ }), l.value[i[1]].size = 100 - t.prevReachedMinPanes - l.value[0].min - t.prevPanesSize - t.nextPanesSize, null) : e > 100 - t.nextPanesSize - l.value[i[1]].min && (i[1] = F(a).index, t.nextReachedMinPanes = 0, i[1] > a + 1 && l.value.forEach((u, f) => {
101
+ f > a && f < i[1] && (u.size = u.min, t.nextReachedMinPanes += u.min);
102
+ }), t.nextPanesSize = o(i[1] - 1), i[1] === void 0) ? (t.nextReachedMinPanes = 0, l.value.forEach((u, f) => {
103
+ f < L.value - 1 && f >= a + 1 && (u.size = u.min, t.nextReachedMinPanes += u.min);
104
+ }), l.value[i[0]].size = 100 - t.prevPanesSize - o(i[0] - 1), null) : { sums: t, panesToResize: i };
105
+ }, V = (t) => l.value.reduce((e, a, i) => e + (i < t ? a.size : 0), 0), o = (t) => l.value.reduce((e, a, i) => e + (i > t + 1 ? a.size : 0), 0), h = (t) => [...l.value].reverse().find((e) => e.index < t && e.size > e.min) || {}, F = (t) => l.value.find((e) => e.index > t + 1 && e.size > e.min) || {}, de = () => {
106
+ var t;
107
+ Array.from(((t = P.value) == null ? void 0 : t.children) || []).forEach((e) => {
108
+ const a = e.classList.contains("splitpanes__pane"), i = e.classList.contains("splitpanes__splitter");
109
+ !a && !i && (e.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
110
110
  });
111
- }, pe = (e, t, d = !1) => {
112
- const o = e - 1, u = document.createElement("div");
113
- u.classList.add("splitpanes__splitter"), d || (u.onmousedown = (f) => D(f, o), typeof window < "u" && "ontouchstart" in window && (u.ontouchstart = (f) => D(f, o)), u.onclick = (f) => J(f, o + 1)), h.dblClickSplitter && (u.ondblclick = (f) => Q(f, o + 1)), t.parentNode.insertBefore(u, t);
114
- }, Z = (e) => {
115
- e.onmousedown = void 0, e.onclick = void 0, e.ondblclick = void 0, e.remove();
116
- }, te = () => {
117
- var e;
118
- const t = Array.from(((e = C.value) == null ? void 0 : e.children) || []);
119
- t.forEach((o) => {
120
- o.className.includes("splitpanes__splitter") && Z(o);
111
+ }, ce = (t, e, a = !1) => {
112
+ const i = t - 1, u = document.createElement("div");
113
+ u.classList.add("splitpanes__splitter"), a || (u.onmousedown = (f) => N(f, i), typeof window < "u" && "ontouchstart" in window && (u.ontouchstart = (f) => N(f, i)), u.onclick = (f) => Q(f, i + 1)), m.dblClickSplitter && (u.ondblclick = (f) => Z(f, i + 1)), e.parentNode.insertBefore(u, e);
114
+ }, fe = (t) => {
115
+ t.onmousedown = void 0, t.onclick = void 0, t.ondblclick = void 0, t.remove();
116
+ }, Y = () => {
117
+ var t;
118
+ const e = Array.from(((t = P.value) == null ? void 0 : t.children) || []);
119
+ e.forEach((i) => {
120
+ i.className.includes("splitpanes__splitter") && fe(i);
121
121
  });
122
- let d = 0;
123
- t.forEach((o) => {
124
- o.className.includes("splitpanes__pane") && (!d && h.firstSplitter ? pe(d, o, !0) : d && pe(d, o), d++);
122
+ let a = 0;
123
+ e.forEach((i) => {
124
+ i.className.includes("splitpanes__pane") && (!a && m.firstSplitter ? ce(a, i, !0) : a && ce(a, i), a++);
125
125
  });
126
- }, fe = ({ uid: e, ...t }) => {
127
- const d = w.value[e];
128
- Object.entries(t).forEach(([o, u]) => d[o] = u);
129
- }, _e = (e) => {
130
- var t;
131
- let d = -1;
132
- Array.from(((t = C.value) == null ? void 0 : t.children) || []).some((o) => (o.className.includes("splitpanes__pane") && d++, o.isSameNode(e.el))), l.value.splice(d, 0, { ...e, index: d }), l.value.forEach((o, u) => o.index = u), g.value && we(() => {
133
- te(), Y({ addedPane: l.value[d] }), p("pane-add", { index: d, panes: l.value.map((o) => ({ min: o.min, max: o.max, size: o.size })) });
126
+ }, _e = ({ uid: t, ...e }) => {
127
+ const a = w.value[t];
128
+ Object.entries(e).forEach(([i, u]) => a[i] = u);
129
+ }, ve = (t) => {
130
+ var e;
131
+ let a = -1;
132
+ Array.from(((e = P.value) == null ? void 0 : e.children) || []).some((i) => (i.className.includes("splitpanes__pane") && a++, i.isSameNode(t.el))), l.value.splice(a, 0, { ...t, index: a }), l.value.forEach((i, u) => i.index = u), g.value && we(() => {
133
+ Y(), ue({ addedPane: l.value[a] }), p("pane-add", { index: a, panes: l.value.map((i) => ({ min: i.min, max: i.max, size: i.size })) });
134
134
  });
135
- }, ve = (e) => {
136
- const t = l.value.findIndex((o) => o.id === e), d = l.value.splice(t, 1)[0];
137
- l.value.forEach((o, u) => o.index = u), we(() => {
138
- te(), Y({ removedPane: { ...d } }), p("pane-remove", { removed: d, panes: l.value.map((o) => ({ min: o.min, max: o.max, size: o.size })) });
135
+ }, ze = (t) => {
136
+ const e = l.value.findIndex((i) => i.id === t), a = l.value.splice(e, 1)[0];
137
+ l.value.forEach((i, u) => i.index = u), we(() => {
138
+ Y(), ue({ removedPane: { ...a } }), p("pane-remove", { removed: a, panes: l.value.map((i) => ({ min: i.min, max: i.max, size: i.size })) });
139
139
  });
140
- }, Y = (e = {}) => {
141
- !e.addedPane && !e.removedPane ? ze() : l.value.some((t) => t.givenSize !== null || t.min || t.max < 100) ? ge(e) : ce(), g.value && p("resized", l.value.map((t) => ({ min: t.min, max: t.max, size: t.size })));
142
- }, ce = () => {
143
- const e = 100 / B.value;
144
- let t = 0;
145
- const d = [], o = [];
140
+ }, ue = (t = {}) => {
141
+ !t.addedPane && !t.removedPane ? me() : l.value.some((e) => e.givenSize !== null || e.min || e.max < 100) ? ge(t) : te(), g.value && p("resized", l.value.map((e) => ({ min: e.min, max: e.max, size: e.size })));
142
+ }, te = () => {
143
+ const t = 100 / L.value;
144
+ let e = 0;
145
+ const a = [], i = [];
146
146
  l.value.forEach((u) => {
147
- u.size = Math.max(Math.min(e, u.max), u.min), t -= u.size, u.size >= u.max && d.push(u.id), u.size <= u.min && o.push(u.id);
148
- }), t > 0.1 && ue(t, d, o);
149
- }, ze = () => {
150
- let e = 100;
151
- const t = [], d = [];
152
- let o = 0;
147
+ u.size = Math.max(Math.min(t, u.max), u.min), e -= u.size, u.size >= u.max && a.push(u.id), u.size <= u.min && i.push(u.id);
148
+ }), e > 0.1 && pe(e, a, i);
149
+ }, me = () => {
150
+ let t = 100;
151
+ const e = [], a = [];
152
+ let i = 0;
153
153
  l.value.forEach((f) => {
154
- e -= f.size, f.givenSize !== null && o++, f.size >= f.max && t.push(f.id), f.size <= f.min && d.push(f.id);
154
+ t -= f.size, f.givenSize !== null && i++, f.size >= f.max && e.push(f.id), f.size <= f.min && a.push(f.id);
155
155
  });
156
156
  let u = 100;
157
- e > 0.1 && (l.value.forEach((f) => {
158
- f.givenSize === null && (f.size = Math.max(Math.min(e / (B.value - o), f.max), f.min)), u -= f.size;
159
- }), u > 0.1 && ue(u, t, d));
160
- }, ge = ({ addedPane: e, removedPane: t } = {}) => {
161
- let d = 100 / B.value, o = 0;
157
+ t > 0.1 && (l.value.forEach((f) => {
158
+ f.givenSize === null && (f.size = Math.max(Math.min(t / (L.value - i), f.max), f.min)), u -= f.size;
159
+ }), u > 0.1 && pe(u, e, a));
160
+ }, ge = ({ addedPane: t, removedPane: e } = {}) => {
161
+ let a = 100 / L.value, i = 0;
162
162
  const u = [], f = [];
163
- ((e == null ? void 0 : e.givenSize) ?? null) !== null && (d = (100 - e.givenSize) / (B.value - 1).value), l.value.forEach((b) => {
164
- o -= b.size, b.size >= b.max && u.push(b.id), b.size <= b.min && f.push(b.id);
165
- }), !(Math.abs(o) < 0.1) && (l.value.forEach((b) => {
166
- (e == null ? void 0 : e.givenSize) !== null && (e == null ? void 0 : e.id) === b.id || (b.size = Math.max(Math.min(d, b.max), b.min)), o -= b.size, b.size >= b.max && u.push(b.id), b.size <= b.min && f.push(b.id);
167
- }), o > 0.1 && ue(o, u, f));
168
- }, ue = (e, t, d) => {
169
- let o;
170
- e > 0 ? o = e / (B.value - t.length) : o = e / (B.value - d.length), l.value.forEach((u, f) => {
171
- if (e > 0 && !t.includes(u.id)) {
172
- const b = Math.max(Math.min(u.size + o, u.max), u.min), N = b - u.size;
173
- e -= N, u.size = b;
174
- } else if (!d.includes(u.id)) {
175
- const b = Math.max(Math.min(u.size + o, u.max), u.min), N = b - u.size;
176
- e -= N, u.size = b;
163
+ ((t == null ? void 0 : t.givenSize) ?? null) !== null && (a = (100 - t.givenSize) / (L.value - 1).value), l.value.forEach((b) => {
164
+ i -= b.size, b.size >= b.max && u.push(b.id), b.size <= b.min && f.push(b.id);
165
+ }), !(Math.abs(i) < 0.1) && (l.value.forEach((b) => {
166
+ (t == null ? void 0 : t.givenSize) !== null && (t == null ? void 0 : t.id) === b.id || (b.size = Math.max(Math.min(a, b.max), b.min)), i -= b.size, b.size >= b.max && u.push(b.id), b.size <= b.min && f.push(b.id);
167
+ }), i > 0.1 && pe(i, u, f));
168
+ }, pe = (t, e, a) => {
169
+ let i;
170
+ t > 0 ? i = t / (L.value - e.length) : i = t / (L.value - a.length), l.value.forEach((u, f) => {
171
+ if (t > 0 && !e.includes(u.id)) {
172
+ const b = Math.max(Math.min(u.size + i, u.max), u.min), O = b - u.size;
173
+ t -= O, u.size = b;
174
+ } else if (!a.includes(u.id)) {
175
+ const b = Math.max(Math.min(u.size + i, u.max), u.min), O = b - u.size;
176
+ t -= O, u.size = b;
177
177
  }
178
- }), Math.abs(e) > 0.1 && we(() => {
178
+ }), Math.abs(t) > 0.1 && we(() => {
179
179
  g.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
180
180
  });
181
181
  };
182
- ee(() => h.firstSplitter, () => te()), ee(() => h.dblClickSplitter, (e) => {
183
- [...C.value.querySelectorAll(".splitpanes__splitter")].forEach((t, d) => {
184
- t.ondblclick = e ? (o) => Q(o, d) : void 0;
182
+ ee(() => m.firstSplitter, () => Y()), ee(() => m.dblClickSplitter, (t) => {
183
+ [...P.value.querySelectorAll(".splitpanes__splitter")].forEach((e, a) => {
184
+ e.ondblclick = t ? (i) => Z(i, a) : void 0;
185
185
  });
186
- }), Pe(() => g.value = !1), me(() => {
187
- he(), te(), Y(), p("ready"), g.value = !0;
186
+ }), Me(() => g.value = !1), he(() => {
187
+ de(), Y(), ue(), p("ready"), g.value = !0;
188
188
  });
189
189
  const ye = () => {
190
- var e;
190
+ var t;
191
191
  return We(
192
192
  "div",
193
- { ref: C, class: L.value },
194
- (e = S.default) == null ? void 0 : e.call(S)
193
+ { ref: P, class: E.value },
194
+ (t = k.default) == null ? void 0 : t.call(k)
195
195
  );
196
196
  };
197
- return j("panes", l), j("indexedPanes", w), j("horizontal", K(() => h.horizontal)), j("requestUpdate", fe), j("onPaneAdd", _e), j("onPaneRemove", ve), j("onPaneClick", se), (e, t) => (s(), _(Ue(ye)));
197
+ return j("panes", l), j("indexedPanes", w), j("horizontal", X(() => m.horizontal)), j("requestUpdate", _e), j("onPaneAdd", ve), j("onPaneRemove", ze), j("onPaneClick", se), (t, e) => (r(), _(Ue(ye)));
198
198
  }
199
199
  }, Oe = {
200
200
  __name: "pane",
@@ -203,255 +203,255 @@ const Ne = {
203
203
  minSize: { type: [Number, String], default: 0 },
204
204
  maxSize: { type: [Number, String], default: 100 }
205
205
  },
206
- setup(r) {
207
- var m;
208
- const p = r, h = ae("requestUpdate"), S = ae("onPaneAdd"), l = ae("horizontal"), w = ae("onPaneRemove"), B = ae("onPaneClick"), C = (m = Re()) == null ? void 0 : m.uid, g = ae("indexedPanes"), V = K(() => g.value[C]), U = T(null), L = K(() => {
206
+ setup(d) {
207
+ var c;
208
+ const p = d, m = ae("requestUpdate"), k = ae("onPaneAdd"), l = ae("horizontal"), w = ae("onPaneRemove"), L = ae("onPaneClick"), P = (c = Re()) == null ? void 0 : c.uid, g = ae("indexedPanes"), S = X(() => g.value[P]), B = D(null), E = X(() => {
209
209
  const y = isNaN(p.size) || p.size === void 0 ? 0 : parseFloat(p.size);
210
- return Math.max(Math.min(y, H.value), E.value);
211
- }), E = K(() => {
210
+ return Math.max(Math.min(y, T.value), $.value);
211
+ }), $ = X(() => {
212
212
  const y = parseFloat(p.minSize);
213
213
  return isNaN(y) ? 0 : y;
214
- }), H = K(() => {
214
+ }), T = X(() => {
215
215
  const y = parseFloat(p.maxSize);
216
216
  return isNaN(y) ? 100 : y;
217
- }), D = K(() => {
217
+ }), N = X(() => {
218
218
  var y;
219
- return `${l.value ? "height" : "width"}: ${(y = V.value) == null ? void 0 : y.size}%`;
219
+ return `${l.value ? "height" : "width"}: ${(y = S.value) == null ? void 0 : y.size}%`;
220
220
  });
221
- return me(() => {
222
- S({
223
- id: C,
224
- el: U.value,
225
- min: E.value,
226
- max: H.value,
221
+ return he(() => {
222
+ k({
223
+ id: P,
224
+ el: B.value,
225
+ min: $.value,
226
+ max: T.value,
227
227
  // The given size (useful to know the user intention).
228
- givenSize: p.size === void 0 ? null : L.value,
229
- size: L.value
228
+ givenSize: p.size === void 0 ? null : E.value,
229
+ size: E.value
230
230
  // The computed current size at any time.
231
231
  });
232
- }), ee(() => L.value, (y) => h({ uid: C, size: y })), ee(() => E.value, (y) => h({ uid: C, min: y })), ee(() => H.value, (y) => h({ uid: C, max: y })), Pe(() => w(C)), (y, O) => (s(), M("div", {
232
+ }), ee(() => E.value, (y) => m({ uid: P, size: y })), ee(() => $.value, (y) => m({ uid: P, min: y })), ee(() => T.value, (y) => m({ uid: P, max: y })), Me(() => w(P)), (y, A) => (r(), M("div", {
233
233
  ref_key: "paneEl",
234
- ref: U,
234
+ ref: B,
235
235
  class: "splitpanes__pane",
236
- onClick: O[0] || (O[0] = (J) => i(B)(J, y._.uid)),
237
- style: F(D.value)
236
+ onClick: A[0] || (A[0] = (Q) => s(L)(Q, y._.uid)),
237
+ style: H(N.value)
238
238
  }, [
239
- R(y.$slots, "default")
239
+ W(y.$slots, "default")
240
240
  ], 4));
241
241
  }
242
242
  };
243
- const Ae = /* @__PURE__ */ I({
243
+ const Ae = /* @__PURE__ */ R({
244
244
  __name: "index",
245
245
  props: {
246
246
  styles: { default: () => ({ width: "100%", height: "100%" }) },
247
247
  horizontal: { type: Boolean, default: !1 }
248
248
  },
249
- setup(r) {
250
- return (m, p) => (s(), _(i(Ne), {
251
- horizontal: m.horizontal,
252
- style: F(m.styles),
249
+ setup(d) {
250
+ return (c, p) => (r(), _(s(Ne), {
251
+ horizontal: c.horizontal,
252
+ style: H(c.styles),
253
253
  class: "splitpanes"
254
254
  }, {
255
255
  default: z(() => [
256
- R(m.$slots, "default", {}, void 0, !0)
256
+ W(c.$slots, "default", {}, void 0, !0)
257
257
  ]),
258
258
  _: 3
259
259
  }, 8, ["horizontal", "style"]));
260
260
  }
261
261
  });
262
- const ie = (r, m) => {
263
- const p = r.__vccOpts || r;
264
- for (const [h, S] of m)
265
- p[h] = S;
262
+ const ie = (d, c) => {
263
+ const p = d.__vccOpts || d;
264
+ for (const [m, k] of c)
265
+ p[m] = k;
266
266
  return p;
267
- }, Ge = /* @__PURE__ */ ie(Ae, [["__scopeId", "data-v-15862e4c"]]), qe = /* @__PURE__ */ I({
267
+ }, Ge = /* @__PURE__ */ ie(Ae, [["__scopeId", "data-v-15862e4c"]]), qe = /* @__PURE__ */ R({
268
268
  __name: "pane",
269
269
  props: {
270
270
  styles: { default: () => ({ background: "#ececec" }) }
271
271
  },
272
- setup(r) {
273
- return (m, p) => (s(), _(i(Oe), {
274
- style: F(m.styles)
272
+ setup(d) {
273
+ return (c, p) => (r(), _(s(Oe), {
274
+ style: H(c.styles)
275
275
  }, {
276
276
  default: z(() => [
277
- R(m.$slots, "default")
277
+ W(c.$slots, "default")
278
278
  ]),
279
279
  _: 3
280
280
  }, 8, ["style"]));
281
281
  }
282
282
  });
283
283
  /*! Element Plus Icons Vue v2.3.1 */
284
- var Ke = /* @__PURE__ */ I({
284
+ var Ke = /* @__PURE__ */ R({
285
285
  name: "Check",
286
286
  __name: "check",
287
- setup(r) {
288
- return (m, p) => (s(), M("svg", {
287
+ setup(d) {
288
+ return (c, p) => (r(), M("svg", {
289
289
  xmlns: "http://www.w3.org/2000/svg",
290
290
  viewBox: "0 0 1024 1024"
291
291
  }, [
292
- P("path", {
292
+ U("path", {
293
293
  fill: "currentColor",
294
294
  d: "M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"
295
295
  })
296
296
  ]));
297
297
  }
298
- }), Ye = Ke, Xe = /* @__PURE__ */ I({
298
+ }), Ye = Ke, Xe = /* @__PURE__ */ R({
299
299
  name: "CircleClose",
300
300
  __name: "circle-close",
301
- setup(r) {
302
- return (m, p) => (s(), M("svg", {
301
+ setup(d) {
302
+ return (c, p) => (r(), M("svg", {
303
303
  xmlns: "http://www.w3.org/2000/svg",
304
304
  viewBox: "0 0 1024 1024"
305
305
  }, [
306
- P("path", {
306
+ U("path", {
307
307
  fill: "currentColor",
308
308
  d: "m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"
309
309
  }),
310
- P("path", {
310
+ U("path", {
311
311
  fill: "currentColor",
312
312
  d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
313
313
  })
314
314
  ]));
315
315
  }
316
- }), Je = Xe, Qe = /* @__PURE__ */ I({
316
+ }), Je = Xe, Qe = /* @__PURE__ */ R({
317
317
  name: "Close",
318
318
  __name: "close",
319
- setup(r) {
320
- return (m, p) => (s(), M("svg", {
319
+ setup(d) {
320
+ return (c, p) => (r(), M("svg", {
321
321
  xmlns: "http://www.w3.org/2000/svg",
322
322
  viewBox: "0 0 1024 1024"
323
323
  }, [
324
- P("path", {
324
+ U("path", {
325
325
  fill: "currentColor",
326
326
  d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
327
327
  })
328
328
  ]));
329
329
  }
330
- }), Le = Qe, Ze = /* @__PURE__ */ I({
330
+ }), Le = Qe, Ze = /* @__PURE__ */ R({
331
331
  name: "DeleteFilled",
332
332
  __name: "delete-filled",
333
- setup(r) {
334
- return (m, p) => (s(), M("svg", {
333
+ setup(d) {
334
+ return (c, p) => (r(), M("svg", {
335
335
  xmlns: "http://www.w3.org/2000/svg",
336
336
  viewBox: "0 0 1024 1024"
337
337
  }, [
338
- P("path", {
338
+ U("path", {
339
339
  fill: "currentColor",
340
340
  d: "M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"
341
341
  })
342
342
  ]));
343
343
  }
344
- }), je = Ze, el = /* @__PURE__ */ I({
344
+ }), je = Ze, el = /* @__PURE__ */ R({
345
345
  name: "Delete",
346
346
  __name: "delete",
347
- setup(r) {
348
- return (m, p) => (s(), M("svg", {
347
+ setup(d) {
348
+ return (c, p) => (r(), M("svg", {
349
349
  xmlns: "http://www.w3.org/2000/svg",
350
350
  viewBox: "0 0 1024 1024"
351
351
  }, [
352
- P("path", {
352
+ U("path", {
353
353
  fill: "currentColor",
354
354
  d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"
355
355
  })
356
356
  ]));
357
357
  }
358
- }), ll = el, tl = /* @__PURE__ */ I({
358
+ }), ll = el, tl = /* @__PURE__ */ R({
359
359
  name: "Edit",
360
360
  __name: "edit",
361
- setup(r) {
362
- return (m, p) => (s(), M("svg", {
361
+ setup(d) {
362
+ return (c, p) => (r(), M("svg", {
363
363
  xmlns: "http://www.w3.org/2000/svg",
364
364
  viewBox: "0 0 1024 1024"
365
365
  }, [
366
- P("path", {
366
+ U("path", {
367
367
  fill: "currentColor",
368
368
  d: "M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"
369
369
  }),
370
- P("path", {
370
+ U("path", {
371
371
  fill: "currentColor",
372
372
  d: "m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"
373
373
  })
374
374
  ]));
375
375
  }
376
- }), al = tl, nl = /* @__PURE__ */ I({
376
+ }), al = tl, nl = /* @__PURE__ */ R({
377
377
  name: "Filter",
378
378
  __name: "filter",
379
- setup(r) {
380
- return (m, p) => (s(), M("svg", {
379
+ setup(d) {
380
+ return (c, p) => (r(), M("svg", {
381
381
  xmlns: "http://www.w3.org/2000/svg",
382
382
  viewBox: "0 0 1024 1024"
383
383
  }, [
384
- P("path", {
384
+ U("path", {
385
385
  fill: "currentColor",
386
386
  d: "M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"
387
387
  })
388
388
  ]));
389
389
  }
390
- }), Me = nl, ol = /* @__PURE__ */ I({
390
+ }), Pe = nl, ol = /* @__PURE__ */ R({
391
391
  name: "FolderOpened",
392
392
  __name: "folder-opened",
393
- setup(r) {
394
- return (m, p) => (s(), M("svg", {
393
+ setup(d) {
394
+ return (c, p) => (r(), M("svg", {
395
395
  xmlns: "http://www.w3.org/2000/svg",
396
396
  viewBox: "0 0 1024 1024"
397
397
  }, [
398
- P("path", {
398
+ U("path", {
399
399
  fill: "currentColor",
400
400
  d: "M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"
401
401
  })
402
402
  ]));
403
403
  }
404
- }), Ee = ol, il = /* @__PURE__ */ I({
404
+ }), Ee = ol, il = /* @__PURE__ */ R({
405
405
  name: "FullScreen",
406
406
  __name: "full-screen",
407
- setup(r) {
408
- return (m, p) => (s(), M("svg", {
407
+ setup(d) {
408
+ return (c, p) => (r(), M("svg", {
409
409
  xmlns: "http://www.w3.org/2000/svg",
410
410
  viewBox: "0 0 1024 1024"
411
411
  }, [
412
- P("path", {
412
+ U("path", {
413
413
  fill: "currentColor",
414
414
  d: "m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"
415
415
  })
416
416
  ]));
417
417
  }
418
- }), sl = il, rl = /* @__PURE__ */ I({
418
+ }), sl = il, rl = /* @__PURE__ */ R({
419
419
  name: "Minus",
420
420
  __name: "minus",
421
- setup(r) {
422
- return (m, p) => (s(), M("svg", {
421
+ setup(d) {
422
+ return (c, p) => (r(), M("svg", {
423
423
  xmlns: "http://www.w3.org/2000/svg",
424
424
  viewBox: "0 0 1024 1024"
425
425
  }, [
426
- P("path", {
426
+ U("path", {
427
427
  fill: "currentColor",
428
428
  d: "M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"
429
429
  })
430
430
  ]));
431
431
  }
432
- }), dl = rl, ul = /* @__PURE__ */ I({
432
+ }), dl = rl, ul = /* @__PURE__ */ R({
433
433
  name: "Search",
434
434
  __name: "search",
435
- setup(r) {
436
- return (m, p) => (s(), M("svg", {
435
+ setup(d) {
436
+ return (c, p) => (r(), M("svg", {
437
437
  xmlns: "http://www.w3.org/2000/svg",
438
438
  viewBox: "0 0 1024 1024"
439
439
  }, [
440
- P("path", {
440
+ U("path", {
441
441
  fill: "currentColor",
442
442
  d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"
443
443
  })
444
444
  ]));
445
445
  }
446
- }), pl = ul, cl = /* @__PURE__ */ I({
446
+ }), pl = ul, cl = /* @__PURE__ */ R({
447
447
  name: "Upload",
448
448
  __name: "upload",
449
- setup(r) {
450
- return (m, p) => (s(), M("svg", {
449
+ setup(d) {
450
+ return (c, p) => (r(), M("svg", {
451
451
  xmlns: "http://www.w3.org/2000/svg",
452
452
  viewBox: "0 0 1024 1024"
453
453
  }, [
454
- P("path", {
454
+ U("path", {
455
455
  fill: "currentColor",
456
456
  d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"
457
457
  })
@@ -460,40 +460,40 @@ var Ke = /* @__PURE__ */ I({
460
460
  }), $e = cl, ml = (
461
461
  /** @class */
462
462
  function() {
463
- function r(m) {
464
- if (!m)
463
+ function d(c) {
464
+ if (!c)
465
465
  throw new TypeError("Invalid argument; `value` has no value.");
466
- this.value = r.EMPTY, m && r.isGuid(m) && (this.value = m);
466
+ this.value = d.EMPTY, c && d.isGuid(c) && (this.value = c);
467
467
  }
468
- return r.isGuid = function(m) {
469
- var p = m.toString();
470
- return m && (m instanceof r || r.validator.test(p));
471
- }, r.create = function() {
472
- return new r([r.gen(2), r.gen(1), r.gen(1), r.gen(1), r.gen(3)].join("-"));
473
- }, r.createEmpty = function() {
474
- return new r("emptyguid");
475
- }, r.parse = function(m) {
476
- return new r(m);
477
- }, r.raw = function() {
478
- return [r.gen(2), r.gen(1), r.gen(1), r.gen(1), r.gen(3)].join("-");
479
- }, r.gen = function(m) {
480
- for (var p = "", h = 0; h < m; h++)
468
+ return d.isGuid = function(c) {
469
+ var p = c.toString();
470
+ return c && (c instanceof d || d.validator.test(p));
471
+ }, d.create = function() {
472
+ return new d([d.gen(2), d.gen(1), d.gen(1), d.gen(1), d.gen(3)].join("-"));
473
+ }, d.createEmpty = function() {
474
+ return new d("emptyguid");
475
+ }, d.parse = function(c) {
476
+ return new d(c);
477
+ }, d.raw = function() {
478
+ return [d.gen(2), d.gen(1), d.gen(1), d.gen(1), d.gen(3)].join("-");
479
+ }, d.gen = function(c) {
480
+ for (var p = "", m = 0; m < c; m++)
481
481
  p += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
482
482
  return p;
483
- }, r.prototype.equals = function(m) {
484
- return r.isGuid(m) && this.value === m.toString();
485
- }, r.prototype.isEmpty = function() {
486
- return this.value === r.EMPTY;
487
- }, r.prototype.toString = function() {
483
+ }, d.prototype.equals = function(c) {
484
+ return d.isGuid(c) && this.value === c.toString();
485
+ }, d.prototype.isEmpty = function() {
486
+ return this.value === d.EMPTY;
487
+ }, d.prototype.toString = function() {
488
488
  return this.value;
489
- }, r.prototype.toJSON = function() {
489
+ }, d.prototype.toJSON = function() {
490
490
  return {
491
491
  value: this.value
492
492
  };
493
- }, r.validator = new RegExp("^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$", "i"), r.EMPTY = "00000000-0000-0000-0000-000000000000", r;
493
+ }, d.validator = new RegExp("^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$", "i"), d.EMPTY = "00000000-0000-0000-0000-000000000000", d;
494
494
  }()
495
495
  ), hl = ml;
496
- const fl = { style: {} }, _l = ["id", "accept"], vl = { class: "filename" }, zl = /* @__PURE__ */ I({
496
+ const fl = { style: {} }, _l = ["id", "accept"], vl = { class: "filename" }, zl = /* @__PURE__ */ R({
497
497
  __name: "index",
498
498
  props: {
499
499
  size: { default: "default" },
@@ -503,61 +503,61 @@ const fl = { style: {} }, _l = ["id", "accept"], vl = { class: "filename" }, zl
503
503
  accept: { default: "*" }
504
504
  },
505
505
  emits: ["upload"],
506
- setup(r, { expose: m, emit: p }) {
507
- const h = p;
508
- let S = hl.create().toString(), l, w = T("");
509
- function B() {
506
+ setup(d, { expose: c, emit: p }) {
507
+ const m = p;
508
+ let k = hl.create().toString(), l, w = D("");
509
+ function L() {
510
510
  l.click();
511
511
  }
512
- function C() {
512
+ function P() {
513
513
  w.value = l.value;
514
514
  }
515
515
  function g() {
516
- l.files !== null && h("upload", l.files[0]);
516
+ l.files !== null && m("upload", l.files[0]);
517
517
  }
518
- function V() {
518
+ function S() {
519
519
  l.value = "", w.value = "";
520
520
  }
521
- return me(() => {
522
- l = document.getElementById(S);
523
- }), m({
524
- Clear: V
525
- }), (U, L) => {
526
- const E = x("el-button");
527
- return s(), M("div", fl, [
528
- $(E, {
529
- type: U.type,
530
- icon: i(Ee),
531
- size: U.size,
521
+ return he(() => {
522
+ l = document.getElementById(k);
523
+ }), c({
524
+ Clear: S
525
+ }), (B, E) => {
526
+ const $ = x("el-button");
527
+ return r(), M("div", fl, [
528
+ I($, {
529
+ type: B.type,
530
+ icon: s(Ee),
531
+ size: B.size,
532
532
  class: "btn",
533
- onClick: B
533
+ onClick: L
534
534
  }, {
535
- default: z(() => L[0] || (L[0] = [
536
- A("选择文件")
535
+ default: z(() => E[0] || (E[0] = [
536
+ G("选择文件")
537
537
  ])),
538
538
  _: 1,
539
539
  __: [0]
540
540
  }, 8, ["type", "icon", "size"]),
541
- Fe(P("input", {
541
+ Fe(U("input", {
542
542
  type: "file",
543
- id: i(S),
544
- onChange: C,
545
- accept: U.accept
543
+ id: s(k),
544
+ onChange: P,
545
+ accept: B.accept
546
546
  }, null, 40, _l), [
547
547
  [He, !1]
548
548
  ]),
549
- P("span", vl, oe(i(w)), 1),
550
- $(E, {
551
- type: U.type,
552
- icon: U.icon,
553
- size: U.size,
554
- disabled: i(w) == null || i(w) == "",
549
+ U("span", vl, oe(s(w)), 1),
550
+ I($, {
551
+ type: B.type,
552
+ icon: B.icon,
553
+ size: B.size,
554
+ disabled: s(w) == null || s(w) == "",
555
555
  class: "btn",
556
- title: i(w) == null || i(w) == "" ? "请选择文件" : "",
556
+ title: s(w) == null || s(w) == "" ? "请选择文件" : "",
557
557
  onClick: g
558
558
  }, {
559
559
  default: z(() => [
560
- A(oe(U.name), 1)
560
+ G(oe(B.name), 1)
561
561
  ]),
562
562
  _: 1
563
563
  }, 8, ["type", "icon", "size", "disabled", "title"])
@@ -565,149 +565,149 @@ const fl = { style: {} }, _l = ["id", "accept"], vl = { class: "filename" }, zl
565
565
  };
566
566
  }
567
567
  });
568
- const gl = /* @__PURE__ */ ie(zl, [["__scopeId", "data-v-d2ed1fe1"]]), yl = ["accept"], wl = { class: "filename" }, bl = { class: "content" }, xl = /* @__PURE__ */ I({
568
+ const gl = /* @__PURE__ */ ie(zl, [["__scopeId", "data-v-d2ed1fe1"]]), yl = ["accept"], wl = { class: "filename" }, bl = { class: "content" }, xl = /* @__PURE__ */ R({
569
569
  __name: "index",
570
570
  props: {
571
571
  size: { default: "default" },
572
572
  accept: { default: "*" }
573
573
  },
574
574
  emits: ["upload", "clear"],
575
- setup(r, { expose: m, emit: p }) {
576
- const h = r, S = p, l = T(), w = T([]);
577
- function B() {
578
- var L;
579
- (L = l.value) == null || L.click();
575
+ setup(d, { expose: c, emit: p }) {
576
+ const m = d, k = p, l = D(), w = D([]);
577
+ function L() {
578
+ var E;
579
+ (E = l.value) == null || E.click();
580
580
  }
581
- function C() {
582
- var L, E, H;
583
- if (w.value = [], (L = l.value) != null && L.files)
584
- for (let D = 0; D < ((H = (E = l.value) == null ? void 0 : E.files) == null ? void 0 : H.length); D++)
585
- w.value[D] = l.value.files[D];
581
+ function P() {
582
+ var E, $, T;
583
+ if (w.value = [], (E = l.value) != null && E.files)
584
+ for (let N = 0; N < ((T = ($ = l.value) == null ? void 0 : $.files) == null ? void 0 : T.length); N++)
585
+ w.value[N] = l.value.files[N];
586
586
  else
587
587
  w.value = [];
588
588
  }
589
- function g(L) {
590
- w.value.splice(L, 1);
589
+ function g(E) {
590
+ w.value.splice(E, 1);
591
591
  }
592
- function V() {
593
- S("upload", w.value);
592
+ function S() {
593
+ k("upload", w.value);
594
594
  }
595
- function U() {
595
+ function B() {
596
596
  w.value = [];
597
597
  }
598
- return m({
599
- Clear: U
600
- }), (L, E) => {
601
- const H = x("el-button");
602
- return s(), M("div", null, [
603
- P("input", {
598
+ return c({
599
+ Clear: B
600
+ }), (E, $) => {
601
+ const T = x("el-button");
602
+ return r(), M("div", null, [
603
+ U("input", {
604
604
  type: "file",
605
605
  ref_key: "files",
606
606
  ref: l,
607
607
  multiple: "",
608
608
  style: { display: "none" },
609
- onChange: C,
610
- accept: h.accept
609
+ onChange: P,
610
+ accept: m.accept
611
611
  }, null, 40, yl),
612
- $(H, {
612
+ I(T, {
613
613
  type: "success",
614
- size: h.size,
615
- icon: i(Ee),
616
- onClick: B
614
+ size: m.size,
615
+ icon: s(Ee),
616
+ onClick: L
617
617
  }, {
618
- default: z(() => E[0] || (E[0] = [
619
- A("选择文件")
618
+ default: z(() => $[0] || ($[0] = [
619
+ G("选择文件")
620
620
  ])),
621
621
  _: 1,
622
622
  __: [0]
623
623
  }, 8, ["size", "icon"]),
624
- $(H, {
624
+ I(T, {
625
625
  type: "success",
626
- size: h.size,
627
- icon: i($e),
628
- onClick: V,
626
+ size: m.size,
627
+ icon: s($e),
628
+ onClick: S,
629
629
  disabled: w.value.length == 0
630
630
  }, {
631
- default: z(() => E[1] || (E[1] = [
632
- A("上传文件")
631
+ default: z(() => $[1] || ($[1] = [
632
+ G("上传文件")
633
633
  ])),
634
634
  _: 1,
635
635
  __: [1]
636
636
  }, 8, ["size", "icon", "disabled"]),
637
- (s(!0), M(X, null, ne(w.value, (D, y) => (s(), M("p", wl, [
638
- P("span", bl, oe(D.name), 1),
639
- $(H, {
637
+ (r(!0), M(J, null, ne(w.value, (N, y) => (r(), M("p", wl, [
638
+ U("span", bl, oe(N.name), 1),
639
+ I(T, {
640
640
  size: "small",
641
- icon: i(Le),
641
+ icon: s(Le),
642
642
  class: "operation",
643
643
  link: "",
644
- onClick: (O) => g(y)
644
+ onClick: (A) => g(y)
645
645
  }, null, 8, ["icon", "onClick"])
646
646
  ]))), 256))
647
647
  ]);
648
648
  };
649
649
  }
650
650
  });
651
- const Vl = /* @__PURE__ */ ie(xl, [["__scopeId", "data-v-fd9596c6"]]), Sl = /* @__PURE__ */ I({
651
+ const Vl = /* @__PURE__ */ ie(xl, [["__scopeId", "data-v-fd9596c6"]]), Sl = /* @__PURE__ */ R({
652
652
  __name: "index",
653
653
  props: {
654
654
  asideWidth: { default: 220 },
655
655
  headerMaxHeight: { default: 60 },
656
656
  horizontal: { type: Boolean, default: !1 }
657
657
  },
658
- setup(r) {
659
- const m = be();
660
- return (p, h) => {
661
- const S = x("el-aside"), l = x("el-header"), w = x("el-main"), B = x("el-container");
662
- return s(), _(B, { class: "container" }, {
658
+ setup(d) {
659
+ const c = be();
660
+ return (p, m) => {
661
+ const k = x("el-aside"), l = x("el-header"), w = x("el-main"), L = x("el-container");
662
+ return r(), _(L, { class: "container" }, {
663
663
  default: z(() => [
664
- i(m).aside && !p.horizontal ? (s(), _(S, {
664
+ s(c).aside && !p.horizontal ? (r(), _(k, {
665
665
  key: 0,
666
666
  class: "aside",
667
- style: F("width: " + p.asideWidth + "px;")
667
+ style: H("width: " + p.asideWidth + "px;")
668
668
  }, {
669
669
  default: z(() => [
670
- R(p.$slots, "aside", {}, void 0, !0)
670
+ W(p.$slots, "aside", {}, void 0, !0)
671
671
  ]),
672
672
  _: 3
673
673
  }, 8, ["style"])) : v("", !0),
674
- i(m).header && p.horizontal ? (s(), _(l, {
674
+ s(c).header && p.horizontal ? (r(), _(l, {
675
675
  key: 1,
676
676
  class: "inside_header",
677
- style: F("height: " + p.headerMaxHeight + "px;")
677
+ style: H("height: " + p.headerMaxHeight + "px;")
678
678
  }, {
679
679
  default: z(() => [
680
- R(p.$slots, "header", {}, void 0, !0)
680
+ W(p.$slots, "header", {}, void 0, !0)
681
681
  ]),
682
682
  _: 3
683
683
  }, 8, ["style"])) : v("", !0),
684
- $(w, { class: "main" }, {
684
+ I(w, { class: "main" }, {
685
685
  default: z(() => [
686
- $(B, { class: "inside_container" }, {
686
+ I(L, { class: "inside_container" }, {
687
687
  default: z(() => [
688
- i(m).header && !p.horizontal ? (s(), _(l, {
688
+ s(c).header && !p.horizontal ? (r(), _(l, {
689
689
  key: 0,
690
690
  class: "inside_header",
691
- style: F("height: " + p.headerMaxHeight + "px;")
691
+ style: H("height: " + p.headerMaxHeight + "px;")
692
692
  }, {
693
693
  default: z(() => [
694
- R(p.$slots, "header", {}, void 0, !0)
694
+ W(p.$slots, "header", {}, void 0, !0)
695
695
  ]),
696
696
  _: 3
697
697
  }, 8, ["style"])) : v("", !0),
698
- i(m).aside && p.horizontal ? (s(), _(S, {
698
+ s(c).aside && p.horizontal ? (r(), _(k, {
699
699
  key: 1,
700
700
  class: "aside",
701
- style: F("width: " + p.asideWidth + "px;")
701
+ style: H("width: " + p.asideWidth + "px;")
702
702
  }, {
703
703
  default: z(() => [
704
- R(p.$slots, "aside", {}, void 0, !0)
704
+ W(p.$slots, "aside", {}, void 0, !0)
705
705
  ]),
706
706
  _: 3
707
707
  }, 8, ["style"])) : v("", !0),
708
- $(w, { class: "inside_main" }, {
708
+ I(w, { class: "inside_main" }, {
709
709
  default: z(() => [
710
- R(p.$slots, "default", {}, void 0, !0)
710
+ W(p.$slots, "default", {}, void 0, !0)
711
711
  ]),
712
712
  _: 3
713
713
  })
@@ -726,7 +726,7 @@ const Vl = /* @__PURE__ */ ie(xl, [["__scopeId", "data-v-fd9596c6"]]), Sl = /* @
726
726
  const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
727
727
  key: 0,
728
728
  class: "header"
729
- }, Ml = { class: "header_title" }, Pl = ["innerHTML"], Ul = { class: "header_title" }, Bl = { class: "pagination" }, Ll = /* @__PURE__ */ I({
729
+ }, Pl = { class: "header_title" }, Ml = ["innerHTML"], Ul = { class: "header_title" }, Bl = { class: "pagination" }, Ll = /* @__PURE__ */ R({
730
730
  __name: "index",
731
731
  props: {
732
732
  maxHeight: { default: 550 },
@@ -762,142 +762,143 @@ const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
762
762
  filter: { type: Boolean }
763
763
  },
764
764
  emits: ["row-click", "row-dblclick", "selection-change", "search", "clear", "delete", "edit", "page-change", "get-ref", "filter"],
765
- setup(r, { expose: m, emit: p }) {
766
- const h = r, S = p;
765
+ setup(d, { expose: c, emit: p }) {
766
+ const m = d, k = p;
767
767
  let l = Te({
768
- pageIndex: 1,
769
- pageSize: 10
770
- }), w = T(), B = T();
771
- const C = T([]), g = T([]), V = T(!1), U = be(), L = (a) => {
772
- S("row-click", a);
773
- }, E = (a) => {
774
- S("row-click", a);
775
- }, H = (a) => {
776
- S("selection-change", a);
777
- }, D = () => {
778
- if (h.tableColumn.length > 0)
779
- for (let a = 0; a < h.tableColumn.length; a++) {
780
- let c = h.tableColumn[a];
781
- l[c.prop] = null;
768
+ PageIndex: 1,
769
+ PageSize: 10
770
+ }), w = D(), L = D();
771
+ const P = D([]), g = D([]), S = D(!1), B = be(), E = (o) => {
772
+ k("row-click", o);
773
+ }, $ = (o) => {
774
+ k("row-click", o);
775
+ }, T = (o) => {
776
+ k("selection-change", o);
777
+ }, N = () => {
778
+ if (m.tableColumn.length > 0)
779
+ for (let o = 0; o < m.tableColumn.length; o++) {
780
+ let h = m.tableColumn[o];
781
+ l[h.prop] = null;
782
782
  }
783
- l.pageIndex = 1, S("clear", l.pageIndex, l.pageSize);
783
+ l.PageIndex = 1, k("clear", l.PageIndex, l.PageSize);
784
784
  }, y = () => {
785
- S("search", l);
786
- }, O = (a) => {
787
- S("edit", a);
788
- }, J = (a) => {
789
- S("delete", a);
790
- }, Q = (a) => {
791
- for (let c = 0; c < a.length; c++)
792
- l[a[c].prop] = a[c].label;
793
- }, se = () => l, le = () => {
794
- C.value.forEach((a) => {
795
- var c = g.value.find((W) => W.label == a.label);
796
- c && c.filter && (a.hidden = !c.check, a.hidden && (l[a.prop] = null));
797
- }), V.value = !1, B.value.hide(), S("filter", () => g.value);
798
- }, re = (a) => {
799
- C.value = a, h.filter && (g.value = [], C.value.forEach((c) => {
800
- c.filter ? c.check ? g.value.push({
801
- label: c.label,
785
+ k("search", l);
786
+ }, A = () => l, Q = (o) => {
787
+ k("edit", o);
788
+ }, Z = (o) => {
789
+ k("delete", o);
790
+ }, se = (o) => {
791
+ for (let h = 0; h < o.length; h++)
792
+ l[o[h].prop] = o[h].label;
793
+ }, le = () => l, re = () => {
794
+ P.value.forEach((o) => {
795
+ var h = g.value.find((F) => F.label == o.label);
796
+ h && h.filter && (o.hidden = !h.check, o.hidden && (l[o.prop] = null));
797
+ }), S.value = !1, L.value.hide(), k("filter", () => g.value);
798
+ }, n = (o) => {
799
+ P.value = o, m.filter && (g.value = [], P.value.forEach((h) => {
800
+ h.filter ? h.check ? g.value.push({
801
+ label: h.label,
802
802
  check: !0,
803
- prop: c.prop,
804
- filter: c.filter
803
+ prop: h.prop,
804
+ filter: h.filter
805
805
  }) : (g.value.push({
806
- label: c.label,
806
+ label: h.label,
807
807
  check: !1,
808
- prop: c.prop,
809
- filter: c.filter
810
- }), c.hidden = !0) : g.value.push({
811
- label: c.label,
808
+ prop: h.prop,
809
+ filter: h.filter
810
+ }), h.hidden = !0) : g.value.push({
811
+ label: h.label,
812
812
  check: !0,
813
- prop: c.prop,
814
- filter: c.filter
813
+ prop: h.prop,
814
+ filter: h.filter
815
815
  });
816
- })), C.value.forEach((c) => {
817
- var W = g.value.find((de) => de.label == c.label);
818
- W && W.filter && (c.hidden = !W.check, c.hidden && (l[c.prop] = null)), W != null && W.filter || (c.hidden = !1);
816
+ })), P.value.forEach((h) => {
817
+ var F = g.value.find((de) => de.label == h.label);
818
+ F && F.filter && (h.hidden = !F.check, h.hidden && (l[h.prop] = null)), F != null && F.filter || (h.hidden = !1);
819
819
  });
820
- }, n = (a) => {
821
- a && h.type == "selection" ? a.forEach((c) => {
822
- w.value.toggleRowSelection(c);
820
+ }, C = (o) => {
821
+ o && m.type == "selection" ? o.forEach((h) => {
822
+ w.value.toggleRowSelection(h);
823
823
  }) : w.value.clearSelection();
824
- }, k = () => {
824
+ }, V = () => {
825
825
  w.value.clearSelection();
826
826
  };
827
827
  return ee(
828
- () => l.pageIndex,
829
- (a, c) => {
830
- S("page-change", l.pageIndex, l.pageSize);
828
+ () => l.PageIndex,
829
+ (o, h) => {
830
+ k("page-change", l.PageIndex, l.PageSize);
831
831
  }
832
832
  ), ee(
833
- () => l.pageSize,
834
- (a, c) => {
835
- l.pageIndex = 1, S("page-change", l.pageIndex, l.pageSize);
833
+ () => l.PageSize,
834
+ (o, h) => {
835
+ l.PageIndex = 1, k("page-change", l.PageIndex, l.PageSize);
836
836
  }
837
- ), m({
838
- Assignment: Q,
839
- GetParameters: se,
840
- SetFilter: re,
841
- ToggleSelection: n,
842
- ToggleClear: k
843
- }), me(() => {
844
- if (h.tableColumn.length > 0)
845
- for (let a = 0; a < h.tableColumn.length; a++) {
846
- let c = h.tableColumn[a];
847
- l[c.prop] = null;
837
+ ), c({
838
+ Assignment: se,
839
+ GetParameters: le,
840
+ SetFilter: n,
841
+ ToggleSelection: C,
842
+ ToggleClear: V,
843
+ GetForm: A
844
+ }), he(() => {
845
+ if (m.tableColumn.length > 0)
846
+ for (let o = 0; o < m.tableColumn.length; o++) {
847
+ let h = m.tableColumn[o];
848
+ l[h.prop] = null;
848
849
  }
849
- h.tableData.forEach((a) => {
850
- h.defaultSelect && h.type == "selection" && h.defaultSelect(a) && w.value.toggleRowSelection(a, void 0, !1);
851
- }), l.pageSize = h.defaultSize, h.filter || (C.value = h.tableColumn);
852
- }), (a, c) => {
853
- const W = x("el-button"), de = x("el-icon"), he = x("el-checkbox"), pe = x("el-popover"), Z = x("el-table-column"), te = x("el-input"), fe = x("el-input-number"), _e = x("el-option"), ve = x("el-select"), Y = x("el-date-picker"), ce = x("el-time-picker"), ze = x("el-switch"), ge = x("el-popconfirm"), ue = x("el-table"), ye = x("el-pagination");
854
- return s(), M(X, null, [
855
- i(U).header ? (s(), M("div", Cl, [
856
- R(a.$slots, "header", {}, void 0, !0),
857
- a.filter ? (s(), _(pe, {
850
+ m.tableData.forEach((o) => {
851
+ m.defaultSelect && m.type == "selection" && m.defaultSelect(o) && w.value.toggleRowSelection(o, void 0, !1);
852
+ }), l.PageSize = m.defaultSize, m.filter || (P.value = m.tableColumn);
853
+ }), (o, h) => {
854
+ const F = x("el-button"), de = x("el-icon"), ce = x("el-checkbox"), fe = x("el-popover"), Y = x("el-table-column"), _e = x("el-input"), ve = x("el-input-number"), ze = x("el-option"), ue = x("el-select"), te = x("el-date-picker"), me = x("el-time-picker"), ge = x("el-switch"), pe = x("el-popconfirm"), ye = x("el-table"), t = x("el-pagination");
855
+ return r(), M(J, null, [
856
+ s(B).header ? (r(), M("div", Cl, [
857
+ W(o.$slots, "header", {}, void 0, !0),
858
+ o.filter ? (r(), _(fe, {
858
859
  key: 0,
859
860
  ref_key: "popover",
860
- ref: B,
861
+ ref: L,
861
862
  width: "150",
862
863
  trigger: "click",
863
864
  placement: "bottom"
864
865
  }, {
865
866
  reference: z(() => [
866
- $(W, {
867
+ I(F, {
867
868
  type: "link",
868
- icon: i(Me),
869
- onClick: c[0] || (c[0] = (e) => V.value = !V.value),
869
+ icon: s(Pe),
870
+ onClick: h[0] || (h[0] = (e) => S.value = !S.value),
870
871
  size: "small"
871
872
  }, null, 8, ["icon"])
872
873
  ]),
873
874
  default: z(() => [
874
- P("h4", null, [
875
- $(de, null, {
875
+ U("h4", null, [
876
+ I(de, null, {
876
877
  default: z(() => [
877
- $(i(Me))
878
+ I(s(Pe))
878
879
  ]),
879
880
  _: 1
880
881
  }),
881
- c[3] || (c[3] = A(" 显示字段筛选 "))
882
+ h[3] || (h[3] = G(" 显示字段筛选 "))
882
883
  ]),
883
- (s(!0), M(X, null, ne(g.value, (e) => (s(), M("p", null, [
884
- $(he, {
884
+ (r(!0), M(J, null, ne(g.value, (e) => (r(), M("p", null, [
885
+ I(ce, {
885
886
  modelValue: e.check,
886
- "onUpdate:modelValue": (t) => e.check = t,
887
+ "onUpdate:modelValue": (a) => e.check = a,
887
888
  label: e.label,
888
889
  value: e.label,
889
890
  disabled: !e.filter,
890
891
  size: "small"
891
892
  }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "value", "disabled"])
892
893
  ]))), 256)),
893
- $(W, {
894
+ I(F, {
894
895
  type: "primary",
895
896
  size: "small",
896
897
  style: { "margin-top": "10px", "margin-left": "5px" },
897
- onClick: le
898
+ onClick: re
898
899
  }, {
899
- default: z(() => c[4] || (c[4] = [
900
- A("确认")
900
+ default: z(() => h[4] || (h[4] = [
901
+ G("确认")
901
902
  ])),
902
903
  _: 1,
903
904
  __: [4]
@@ -906,55 +907,55 @@ const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
906
907
  _: 1
907
908
  }, 512)) : v("", !0)
908
909
  ])) : v("", !0),
909
- $(ue, {
910
- data: a.tableData,
911
- class: q([a.size && a.size == "small" ? "mini-table" : "table"]),
912
- "max-height": a.maxHeight,
913
- size: a.size,
914
- stripe: a.stripe,
915
- border: a.border,
916
- "row-key": a.rowKey,
917
- "highlight-current-row": a.highLight,
918
- onRowClick: L,
919
- onRowDblclick: E,
920
- onSelectionChange: H,
910
+ I(ye, {
911
+ data: o.tableData,
912
+ class: K([o.size && o.size == "small" ? "mini-table" : "table"]),
913
+ "max-height": o.maxHeight,
914
+ size: o.size,
915
+ stripe: o.stripe,
916
+ border: o.border,
917
+ "row-key": o.rowKey,
918
+ "highlight-current-row": o.highLight,
919
+ onRowClick: E,
920
+ onRowDblclick: $,
921
+ onSelectionChange: T,
921
922
  ref_key: "tableRef",
922
923
  ref: w,
923
- "header-cell-style": a.headStyle
924
+ "header-cell-style": o.headStyle
924
925
  }, {
925
926
  default: z(() => [
926
- a.type && a.type == "index" ? (s(), _(Z, {
927
+ o.type && o.type == "index" ? (r(), _(Y, {
927
928
  key: 0,
928
929
  align: "center",
929
930
  type: "index",
930
- width: a.typeWidth + "px",
931
- fixed: a.typeIsFixed ? "left" : !1,
932
- label: a.typeLabel
931
+ width: o.typeWidth + "px",
932
+ fixed: o.typeIsFixed ? "left" : !1,
933
+ label: o.typeLabel
933
934
  }, null, 8, ["width", "fixed", "label"])) : v("", !0),
934
- a.type == "selection" ? (s(), _(Z, {
935
+ o.type == "selection" ? (r(), _(Y, {
935
936
  key: 1,
936
937
  align: "center",
937
938
  type: "selection",
938
- width: a.typeWidth + "px",
939
- fixed: a.typeIsFixed ? "left" : !1
939
+ width: o.typeWidth + "px",
940
+ fixed: o.typeIsFixed ? "left" : !1
940
941
  }, null, 8, ["width", "fixed"])) : v("", !0),
941
- a.type == "expand" ? (s(), _(Z, {
942
+ o.type == "expand" ? (r(), _(Y, {
942
943
  key: 2,
943
944
  align: "center",
944
945
  type: "expand",
945
- width: a.typeWidth + "px",
946
- fixed: a.typeIsFixed ? "left" : !1,
947
- label: a.typeLabel
946
+ width: o.typeWidth + "px",
947
+ fixed: o.typeIsFixed ? "left" : !1,
948
+ label: o.typeLabel
948
949
  }, {
949
950
  default: z((e) => [
950
- R(a.$slots, "expand", {
951
+ W(o.$slots, "expand", {
951
952
  row: e == null ? void 0 : e.row
952
953
  }, void 0, !0)
953
954
  ]),
954
955
  _: 3
955
956
  }, 8, ["width", "fixed", "label"])) : v("", !0),
956
- (s(!0), M(X, null, ne(C.value, (e) => (s(), M(X, null, [
957
- e.hidden ? v("", !0) : (s(), _(Z, {
957
+ (r(!0), M(J, null, ne(P.value, (e) => (r(), M(J, null, [
958
+ e.hidden ? v("", !0) : (r(), _(Y, {
958
959
  key: 0,
959
960
  prop: e.costom ? !1 : e.prop,
960
961
  width: e.width ? e.width : "",
@@ -964,252 +965,252 @@ const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
964
965
  "show-overflow-tooltip": !!e.overflow
965
966
  }, Be({
966
967
  header: z(() => [
967
- P("div", Ml, oe(e.label), 1),
968
- e.search && (!e.type || e.type == "text") ? (s(), _(te, {
968
+ U("div", Pl, oe(e.label), 1),
969
+ e.search && (!e.type || e.type == "text") ? (r(), _(_e, {
969
970
  key: 0,
970
- modelValue: i(l)[e.prop],
971
- "onUpdate:modelValue": (t) => i(l)[e.prop] = t,
971
+ modelValue: s(l)[e.prop],
972
+ "onUpdate:modelValue": (a) => s(l)[e.prop] = a,
972
973
  size: e.size,
973
974
  clearable: "",
974
- style: F(
975
+ style: H(
975
976
  e.searchWidth ? "width: " + e.searchWidth + "px;" : "width: 92%"
976
977
  ),
977
978
  disabled: e.disabled,
978
979
  placeholder: e.placeholder ? e.placeholder : "请输入" + e.label,
979
- class: q([e.align && e.align == "center" ? "center" : ""]),
980
+ class: K([e.align && e.align == "center" ? "center" : ""]),
980
981
  onKeyup: Se(y, ["enter", "native"])
981
982
  }, null, 8, ["modelValue", "onUpdate:modelValue", "size", "style", "disabled", "placeholder", "class"])) : v("", !0),
982
- e.search && e.type == "number" ? (s(), _(fe, {
983
+ e.search && e.type == "number" ? (r(), _(ve, {
983
984
  key: 1,
984
- modelValue: i(l)[e.prop],
985
- "onUpdate:modelValue": (t) => i(l)[e.prop] = t,
985
+ modelValue: s(l)[e.prop],
986
+ "onUpdate:modelValue": (a) => s(l)[e.prop] = a,
986
987
  size: e.size,
987
988
  clearable: "",
988
- style: F(
989
+ style: H(
989
990
  e.searchWidth ? "width: " + e.searchWidth + "px;" : "width: 92%"
990
991
  ),
991
992
  disabled: e.disabled,
992
993
  placeholder: e.placeholder ? e.placeholder : "请输入" + e.label,
993
- class: q([e.align && e.align == "center" ? "center" : ""]),
994
+ class: K([e.align && e.align == "center" ? "center" : ""]),
994
995
  max: e.max != null ? e.max : 1 / 0,
995
996
  min: e.min != null ? e.min : -1 / 0,
996
997
  step: e.step != null ? e.step : 1,
997
998
  onKeyup: Se(y, ["enter", "native"])
998
999
  }, null, 8, ["modelValue", "onUpdate:modelValue", "size", "style", "disabled", "placeholder", "class", "max", "min", "step"])) : v("", !0),
999
- e.search && e.type == "select" ? (s(), _(ve, {
1000
+ e.search && e.type == "select" ? (r(), _(ue, {
1000
1001
  key: 2,
1001
- modelValue: i(l)[e.prop],
1002
- "onUpdate:modelValue": (t) => i(l)[e.prop] = t,
1002
+ modelValue: s(l)[e.prop],
1003
+ "onUpdate:modelValue": (a) => s(l)[e.prop] = a,
1003
1004
  size: e.size,
1004
1005
  clearable: "",
1005
1006
  filterable: "",
1006
- style: F(
1007
+ style: H(
1007
1008
  e.searchWidth ? "width: " + e.searchWidth + "px;" : "width: 92%"
1008
1009
  ),
1009
1010
  disabled: e.disabled,
1010
1011
  multiple: e.multiple,
1011
1012
  "collapse-tags": e.omit,
1012
1013
  placeholder: e.placeholder ? e.placeholder : "请选择" + e.label,
1013
- class: q([e.align && e.align == "center" ? "center" : ""])
1014
+ class: K([e.align && e.align == "center" ? "center" : ""])
1014
1015
  }, {
1015
1016
  default: z(() => [
1016
- (s(!0), M(X, null, ne(e.options, (t) => (s(), _(_e, {
1017
- label: t.label ? t.label : t.value,
1018
- value: t.value,
1019
- disabled: t.disabled
1017
+ (r(!0), M(J, null, ne(e.options, (a) => (r(), _(ze, {
1018
+ label: a.label ? a.label : a.value,
1019
+ value: a.value,
1020
+ disabled: a.disabled
1020
1021
  }, null, 8, ["label", "value", "disabled"]))), 256))
1021
1022
  ]),
1022
1023
  _: 2
1023
1024
  }, 1032, ["modelValue", "onUpdate:modelValue", "size", "style", "disabled", "multiple", "collapse-tags", "placeholder", "class"])) : v("", !0),
1024
- e.search && e.type == "date" ? (s(), _(Y, {
1025
+ e.search && e.type == "date" ? (r(), _(te, {
1025
1026
  key: 3,
1026
- modelValue: i(l)[e.prop],
1027
- "onUpdate:modelValue": (t) => i(l)[e.prop] = t,
1027
+ modelValue: s(l)[e.prop],
1028
+ "onUpdate:modelValue": (a) => s(l)[e.prop] = a,
1028
1029
  type: "date",
1029
- style: F(e.searchWidth ? "width: " + e.searchWidth + "px;" : ""),
1030
+ style: H(e.searchWidth ? "width: " + e.searchWidth + "px;" : ""),
1030
1031
  placeholder: e.placeholder ? e.placeholder : "请选择日期",
1031
1032
  size: e.size,
1032
- class: q([e.align && e.align == "center" ? "center" : ""])
1033
+ class: K([e.align && e.align == "center" ? "center" : ""])
1033
1034
  }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder", "size", "class"])) : v("", !0),
1034
- e.search && e.type == "time" ? (s(), _(ce, {
1035
+ e.search && e.type == "time" ? (r(), _(me, {
1035
1036
  key: 4,
1036
- modelValue: i(l)[e.prop],
1037
- "onUpdate:modelValue": (t) => i(l)[e.prop] = t,
1037
+ modelValue: s(l)[e.prop],
1038
+ "onUpdate:modelValue": (a) => s(l)[e.prop] = a,
1038
1039
  "arrow-control": "",
1039
- style: F(
1040
+ style: H(
1040
1041
  e.searchWidth ? "width: " + e.searchWidth + "px;" : "width: 92%"
1041
1042
  ),
1042
1043
  placeholder: e.placeholder ? e.placeholder : "请选择时间",
1043
1044
  size: e.size,
1044
- class: q([e.align && e.align == "center" ? "center" : ""])
1045
+ class: K([e.align && e.align == "center" ? "center" : ""])
1045
1046
  }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder", "size", "class"])) : v("", !0),
1046
- e.search && e.type == "datetime" ? (s(), _(Y, {
1047
+ e.search && e.type == "datetime" ? (r(), _(te, {
1047
1048
  key: 5,
1048
- modelValue: i(l)[e.prop],
1049
- "onUpdate:modelValue": (t) => i(l)[e.prop] = t,
1049
+ modelValue: s(l)[e.prop],
1050
+ "onUpdate:modelValue": (a) => s(l)[e.prop] = a,
1050
1051
  type: "datetime",
1051
- style: F(
1052
+ style: H(
1052
1053
  e.searchWidth ? "width: " + e.searchWidth + "px;" : "width: 92%"
1053
1054
  ),
1054
1055
  placeholder: e.placeholder ? e.placeholder : "请选择日期时间",
1055
1056
  size: e.size,
1056
- class: q([e.align && e.align == "center" ? "center" : ""])
1057
+ class: K([e.align && e.align == "center" ? "center" : ""])
1057
1058
  }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder", "size", "class"])) : v("", !0),
1058
- e.search && e.type == "daterange" ? (s(), _(Y, {
1059
+ e.search && e.type == "daterange" ? (r(), _(te, {
1059
1060
  key: 6,
1060
- modelValue: i(l)[e.prop],
1061
- "onUpdate:modelValue": (t) => i(l)[e.prop] = t,
1061
+ modelValue: s(l)[e.prop],
1062
+ "onUpdate:modelValue": (a) => s(l)[e.prop] = a,
1062
1063
  type: "daterange",
1063
1064
  "range-separator": "-",
1064
1065
  "start-placeholder": e.placeholder ? e.placeholder.split("&&")[0] : "请选择开始日期",
1065
1066
  "end-placeholder": e.placeholder ? e.placeholder.split("&&")[1] : "请选择结束日期",
1066
- style: F(
1067
+ style: H(
1067
1068
  e.searchWidth ? "width: " + e.searchWidth + "px;" : "width: 92%"
1068
1069
  ),
1069
1070
  size: e.size,
1070
- class: q([e.align && e.align == "center" ? "center" : ""])
1071
+ class: K([e.align && e.align == "center" ? "center" : ""])
1071
1072
  }, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "style", "size", "class"])) : v("", !0),
1072
- e.search && e.type == "timerange" ? (s(), _(ce, {
1073
+ e.search && e.type == "timerange" ? (r(), _(me, {
1073
1074
  key: 7,
1074
- modelValue: i(l)[e.prop],
1075
- "onUpdate:modelValue": (t) => i(l)[e.prop] = t,
1075
+ modelValue: s(l)[e.prop],
1076
+ "onUpdate:modelValue": (a) => s(l)[e.prop] = a,
1076
1077
  "is-range": "",
1077
1078
  "arrow-control": "",
1078
1079
  "range-separator": "-",
1079
1080
  "start-placeholder": e.placeholder ? e.placeholder.split("&&")[0] : "请选择开始时间",
1080
1081
  "end-placeholder": e.placeholder ? e.placeholder.split("&&")[1] : "请选择结束时间",
1081
- style: F(
1082
+ style: H(
1082
1083
  e.searchWidth ? "width: " + e.searchWidth + "px;" : "width: 92%"
1083
1084
  ),
1084
1085
  size: e.size,
1085
- class: q([e.align && e.align == "center" ? "center" : ""])
1086
+ class: K([e.align && e.align == "center" ? "center" : ""])
1086
1087
  }, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "style", "size", "class"])) : v("", !0),
1087
- e.search && e.type == "datetimerange" ? (s(), _(Y, {
1088
+ e.search && e.type == "datetimerange" ? (r(), _(te, {
1088
1089
  key: 8,
1089
- modelValue: i(l)[e.prop],
1090
- "onUpdate:modelValue": (t) => i(l)[e.prop] = t,
1090
+ modelValue: s(l)[e.prop],
1091
+ "onUpdate:modelValue": (a) => s(l)[e.prop] = a,
1091
1092
  type: "datetimerange",
1092
1093
  "range-separator": "-",
1093
1094
  "start-placeholder": e.placeholder ? e.placeholder.split("&&")[0] : "请选择开始日期时间",
1094
1095
  "end-placeholder": e.placeholder ? e.placeholder.split("&&")[1] : "请选择结束日期时间",
1095
- style: F(
1096
+ style: H(
1096
1097
  e.searchWidth ? "width: " + e.searchWidth + "px;" : "width: 92%"
1097
1098
  ),
1098
1099
  size: e.size,
1099
- class: q([e.align && e.align == "center" ? "center" : ""])
1100
+ class: K([e.align && e.align == "center" ? "center" : ""])
1100
1101
  }, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "style", "size", "class"])) : v("", !0),
1101
- e.search && e.type == "switch" ? (s(), _(ze, {
1102
+ e.search && e.type == "switch" ? (r(), _(ge, {
1102
1103
  key: 9,
1103
- modelValue: i(l)[e.prop],
1104
- "onUpdate:modelValue": (t) => i(l)[e.prop] = t,
1104
+ modelValue: s(l)[e.prop],
1105
+ "onUpdate:modelValue": (a) => s(l)[e.prop] = a,
1105
1106
  size: e.size,
1106
1107
  "active-text": e.openText,
1107
1108
  "inactive-text": e.closeText,
1108
- class: q([e.align && e.align == "center" ? "center" : ""])
1109
+ class: K([e.align && e.align == "center" ? "center" : ""])
1109
1110
  }, null, 8, ["modelValue", "onUpdate:modelValue", "size", "active-text", "inactive-text", "class"])) : v("", !0)
1110
1111
  ]),
1111
1112
  _: 2
1112
1113
  }, [
1113
1114
  e.costom ? {
1114
1115
  name: "default",
1115
- fn: z((t) => [
1116
- P("span", {
1117
- innerHTML: e.costom ? e.costom(t == null ? void 0 : t.row) : ""
1118
- }, null, 8, Pl)
1116
+ fn: z((a) => [
1117
+ U("span", {
1118
+ innerHTML: e.costom ? e.costom(a == null ? void 0 : a.row) : ""
1119
+ }, null, 8, Ml)
1119
1120
  ]),
1120
1121
  key: "0"
1121
1122
  } : void 0,
1122
1123
  e.component ? {
1123
1124
  name: "default",
1124
- fn: z((t) => [
1125
- (s(), _(Ue(e.component), {
1126
- data: t == null ? void 0 : t.row
1125
+ fn: z((a) => [
1126
+ (r(), _(Ue(e.component), {
1127
+ data: a == null ? void 0 : a.row
1127
1128
  }, null, 8, ["data"]))
1128
1129
  ]),
1129
1130
  key: "1"
1130
1131
  } : void 0
1131
1132
  ]), 1032, ["prop", "width", "min-width", "fixed", "align", "show-overflow-tooltip"]))
1132
1133
  ], 64))), 256)),
1133
- a.operate ? (s(), _(Z, {
1134
+ o.operate ? (r(), _(Y, {
1134
1135
  key: 3,
1135
1136
  align: "center",
1136
- "min-width": a.operateWidth ? a.operateWidth : "",
1137
- fixed: a.operateIsFixed ? "right" : !1,
1137
+ "min-width": o.operateWidth ? o.operateWidth : "",
1138
+ fixed: o.operateIsFixed ? "right" : !1,
1138
1139
  fit: ""
1139
1140
  }, {
1140
1141
  header: z(() => [
1141
- P("div", Ul, oe(a.operateLabel), 1),
1142
- R(a.$slots, "operate-front", {}, void 0, !0),
1143
- a.search ? (s(), _(W, {
1142
+ U("div", Ul, oe(o.operateLabel), 1),
1143
+ W(o.$slots, "operate-front", {}, void 0, !0),
1144
+ o.search ? (r(), _(F, {
1144
1145
  key: 0,
1145
1146
  type: "primary",
1146
- size: a.operateSize,
1147
- icon: i(pl),
1147
+ size: o.operateSize,
1148
+ icon: s(pl),
1148
1149
  onClick: y
1149
1150
  }, {
1150
- default: z(() => c[5] || (c[5] = [
1151
- A("搜索")
1151
+ default: z(() => h[5] || (h[5] = [
1152
+ G("搜索")
1152
1153
  ])),
1153
1154
  _: 1,
1154
1155
  __: [5]
1155
1156
  }, 8, ["size", "icon"])) : v("", !0),
1156
- R(a.$slots, "operate-middle", {}, void 0, !0),
1157
- a.clear ? (s(), _(W, {
1157
+ W(o.$slots, "operate-middle", {}, void 0, !0),
1158
+ o.clear ? (r(), _(F, {
1158
1159
  key: 1,
1159
1160
  type: "info",
1160
- size: a.operateSize,
1161
- icon: i(Je),
1162
- onClick: D
1161
+ size: o.operateSize,
1162
+ icon: s(Je),
1163
+ onClick: N
1163
1164
  }, {
1164
- default: z(() => c[6] || (c[6] = [
1165
- A("清空")
1165
+ default: z(() => h[6] || (h[6] = [
1166
+ G("清空")
1166
1167
  ])),
1167
1168
  _: 1,
1168
1169
  __: [6]
1169
1170
  }, 8, ["size", "icon"])) : v("", !0),
1170
- R(a.$slots, "operate", {}, void 0, !0)
1171
+ W(o.$slots, "operate", {}, void 0, !0)
1171
1172
  ]),
1172
1173
  default: z((e) => [
1173
- R(a.$slots, "row-operate-front", {
1174
+ W(o.$slots, "row-operate-front", {
1174
1175
  row: e == null ? void 0 : e.row
1175
1176
  }, void 0, !0),
1176
- a.edit ? (s(), _(W, {
1177
+ o.edit ? (r(), _(F, {
1177
1178
  key: 0,
1178
1179
  link: "",
1179
1180
  type: "primary",
1180
- size: a.rowButtonSize,
1181
- icon: i(al),
1182
- onClick: (t) => O(e == null ? void 0 : e.row)
1181
+ size: o.rowButtonSize,
1182
+ icon: s(al),
1183
+ onClick: (a) => Q(e == null ? void 0 : e.row)
1183
1184
  }, {
1184
- default: z(() => c[7] || (c[7] = [
1185
- A("修改")
1185
+ default: z(() => h[7] || (h[7] = [
1186
+ G("修改")
1186
1187
  ])),
1187
1188
  _: 2,
1188
1189
  __: [7]
1189
1190
  }, 1032, ["size", "icon", "onClick"])) : v("", !0),
1190
- R(a.$slots, "row-operate-middle", {
1191
+ W(o.$slots, "row-operate-middle", {
1191
1192
  row: e == null ? void 0 : e.row
1192
1193
  }, void 0, !0),
1193
- a.delete ? (s(), _(ge, {
1194
+ o.delete ? (r(), _(pe, {
1194
1195
  key: 1,
1195
1196
  "confirm-button-text": "否",
1196
1197
  "cancel-button-text": "是",
1197
1198
  "confirm-button-type": "text",
1198
1199
  "cancel-button-type": "danger",
1199
- icon: i(je),
1200
+ icon: s(je),
1200
1201
  width: "auto",
1201
- onCancel: (t) => J(e == null ? void 0 : e.row),
1202
- title: a.deleteTitle ? a.deleteTitle : "是否要删除当前行?"
1202
+ onCancel: (a) => Z(e == null ? void 0 : e.row),
1203
+ title: o.deleteTitle ? o.deleteTitle : "是否要删除当前行?"
1203
1204
  }, {
1204
1205
  reference: z(() => [
1205
- $(W, {
1206
+ I(F, {
1206
1207
  link: "",
1207
1208
  type: "danger",
1208
- size: a.rowButtonSize,
1209
- icon: i(ll)
1209
+ size: o.rowButtonSize,
1210
+ icon: s(ll)
1210
1211
  }, {
1211
- default: z(() => c[8] || (c[8] = [
1212
- A("删除")
1212
+ default: z(() => h[8] || (h[8] = [
1213
+ G("删除")
1213
1214
  ])),
1214
1215
  _: 1,
1215
1216
  __: [8]
@@ -1217,7 +1218,7 @@ const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
1217
1218
  ]),
1218
1219
  _: 2
1219
1220
  }, 1032, ["icon", "onCancel", "title"])) : v("", !0),
1220
- R(a.$slots, "row-operate", {
1221
+ W(o.$slots, "row-operate", {
1221
1222
  row: e == null ? void 0 : e.row
1222
1223
  }, void 0, !0)
1223
1224
  ]),
@@ -1226,19 +1227,19 @@ const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
1226
1227
  ]),
1227
1228
  _: 3
1228
1229
  }, 8, ["data", "class", "max-height", "size", "stripe", "border", "row-key", "highlight-current-row", "header-cell-style"]),
1229
- P("div", Bl, [
1230
- a.pagination ? (s(), _(ye, {
1230
+ U("div", Bl, [
1231
+ o.pagination ? (r(), _(t, {
1231
1232
  key: 0,
1232
- "current-page": i(l).pageIndex,
1233
- "onUpdate:currentPage": c[1] || (c[1] = (e) => i(l).pageIndex = e),
1234
- "page-size": i(l).pageSize,
1235
- "onUpdate:pageSize": c[2] || (c[2] = (e) => i(l).pageSize = e),
1236
- small: a.small,
1237
- "hide-on-Single-page": a.hideOnSinglePage,
1233
+ "current-page": s(l).PageIndex,
1234
+ "onUpdate:currentPage": h[1] || (h[1] = (e) => s(l).PageIndex = e),
1235
+ "page-size": s(l).PageSize,
1236
+ "onUpdate:pageSize": h[2] || (h[2] = (e) => s(l).PageSize = e),
1237
+ small: o.small,
1238
+ "hide-on-Single-page": o.hideOnSinglePage,
1238
1239
  background: "",
1239
1240
  layout: "prev, pager, next, total, jumper, sizes",
1240
1241
  "page-sizes": [10, 50, 100, 200],
1241
- total: a.total,
1242
+ total: o.total,
1242
1243
  class: "mt-4"
1243
1244
  }, null, 8, ["current-page", "page-size", "small", "hide-on-Single-page", "total"])) : v("", !0)
1244
1245
  ])
@@ -1246,7 +1247,7 @@ const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
1246
1247
  };
1247
1248
  }
1248
1249
  });
1249
- const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-a6277a35"]]), $l = { class: "dialog" }, Il = ["innerHTML"], Rl = { class: "form" }, Wl = /* @__PURE__ */ I({
1250
+ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-7d03b5eb"]]), $l = { class: "dialog" }, Il = ["innerHTML"], Rl = { class: "form" }, Wl = /* @__PURE__ */ R({
1250
1251
  __name: "index",
1251
1252
  props: /* @__PURE__ */ ke({
1252
1253
  title: { default: "弹出框" },
@@ -1265,49 +1266,49 @@ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-a6277a35"]]), $l = { cl
1265
1266
  formModifiers: {}
1266
1267
  }),
1267
1268
  emits: /* @__PURE__ */ ke(["close", "submit"], ["update:form"]),
1268
- setup(r, { emit: m }) {
1269
- let p = m, h = T(!1), S = !0, l = De(r, "form"), w = T();
1270
- function B() {
1269
+ setup(d, { emit: c }) {
1270
+ let p = c, m = D(!1), k = !0, l = De(d, "form"), w = D();
1271
+ function L() {
1271
1272
  p("close");
1272
1273
  }
1273
- function C() {
1274
+ function P() {
1274
1275
  w.value.validate((g) => {
1275
1276
  g && p("submit");
1276
1277
  });
1277
1278
  }
1278
- return (g, V) => {
1279
- const U = x("el-icon"), L = x("el-input"), E = x("el-input-number"), H = x("el-option"), D = x("el-select"), y = x("el-date-picker"), O = x("el-time-picker"), J = x("el-switch"), Q = x("el-form-item"), se = x("el-form"), le = x("el-button"), re = x("el-dialog");
1280
- return s(), M("div", $l, [
1281
- $(re, {
1282
- modelValue: i(S),
1283
- "onUpdate:modelValue": V[1] || (V[1] = (n) => Ce(S) ? S.value = n : S = n),
1279
+ return (g, S) => {
1280
+ const B = x("el-icon"), E = x("el-input"), $ = x("el-input-number"), T = x("el-option"), N = x("el-select"), y = x("el-date-picker"), A = x("el-time-picker"), Q = x("el-switch"), Z = x("el-form-item"), se = x("el-form"), le = x("el-button"), re = x("el-dialog");
1281
+ return r(), M("div", $l, [
1282
+ I(re, {
1283
+ modelValue: s(k),
1284
+ "onUpdate:modelValue": S[1] || (S[1] = (n) => Ce(k) ? k.value = n : k = n),
1284
1285
  width: g.width,
1285
- fullscreen: i(h),
1286
+ fullscreen: s(m),
1286
1287
  "close-on-click-modal": !1,
1287
1288
  "close-on-press-escape": !1,
1288
1289
  draggable: g.draggable,
1289
- onClose: B,
1290
+ onClose: L,
1290
1291
  overflow: ""
1291
1292
  }, Be({
1292
1293
  header: z(() => [
1293
- P("span", { innerHTML: g.title }, null, 8, Il),
1294
- g.fullscreen ? (s(), _(U, {
1294
+ U("span", { innerHTML: g.title }, null, 8, Il),
1295
+ g.fullscreen ? (r(), _(B, {
1295
1296
  key: 0,
1296
1297
  class: "fullscreen",
1297
- onClick: V[0] || (V[0] = (n) => Ce(h) ? h.value = !i(h) : h = !i(h))
1298
+ onClick: S[0] || (S[0] = (n) => Ce(m) ? m.value = !s(m) : m = !s(m))
1298
1299
  }, {
1299
1300
  default: z(() => [
1300
- i(h) ? v("", !0) : (s(), _(i(sl), { key: 0 })),
1301
- i(h) ? (s(), _(i(dl), { key: 1 })) : v("", !0)
1301
+ s(m) ? v("", !0) : (r(), _(s(sl), { key: 0 })),
1302
+ s(m) ? (r(), _(s(dl), { key: 1 })) : v("", !0)
1302
1303
  ]),
1303
1304
  _: 1
1304
1305
  })) : v("", !0)
1305
1306
  ]),
1306
1307
  default: z(() => [
1307
- R(g.$slots, "header", {}, void 0, !0),
1308
- P("div", Rl, [
1309
- $(se, {
1310
- model: i(l),
1308
+ W(g.$slots, "header", {}, void 0, !0),
1309
+ U("div", Rl, [
1310
+ I(se, {
1311
+ model: s(l),
1311
1312
  rules: g.rules,
1312
1313
  ref_key: "formRef",
1313
1314
  ref: w,
@@ -1316,17 +1317,17 @@ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-a6277a35"]]), $l = { cl
1316
1317
  size: g.formSize
1317
1318
  }, {
1318
1319
  default: z(() => [
1319
- (s(!0), M(X, null, ne(i(l), (n, k) => (s(), _(Q, {
1320
- key: k,
1320
+ (r(!0), M(J, null, ne(s(l), (n, C) => (r(), _(Z, {
1321
+ key: C,
1321
1322
  label: n.label,
1322
- prop: k,
1323
- style: F("width:" + (n.width ? n.width : "90%"))
1323
+ prop: C,
1324
+ style: H("width:" + (n.width ? n.width : "90%"))
1324
1325
  }, {
1325
1326
  default: z(() => [
1326
- !n.type || n.type == "text" ? (s(), _(L, {
1327
+ !n.type || n.type == "text" ? (r(), _(E, {
1327
1328
  key: 0,
1328
- modelValue: i(l)[k].default,
1329
- "onUpdate:modelValue": (a) => i(l)[k].default = a,
1329
+ modelValue: s(l)[C].default,
1330
+ "onUpdate:modelValue": (V) => s(l)[C].default = V,
1330
1331
  clearable: "",
1331
1332
  disabled: n.disabled,
1332
1333
  readonly: n.readonly,
@@ -1334,10 +1335,10 @@ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-a6277a35"]]), $l = { cl
1334
1335
  style: { width: "100%" },
1335
1336
  size: n.size ? n.size : "small"
1336
1337
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "readonly", "placeholder", "size"])) : v("", !0),
1337
- n.type == "textarea" ? (s(), _(L, {
1338
+ n.type == "textarea" ? (r(), _(E, {
1338
1339
  key: 1,
1339
- modelValue: i(l)[k].default,
1340
- "onUpdate:modelValue": (a) => i(l)[k].default = a,
1340
+ modelValue: s(l)[C].default,
1341
+ "onUpdate:modelValue": (V) => s(l)[C].default = V,
1341
1342
  type: "textarea",
1342
1343
  clearable: "",
1343
1344
  disabled: n.disabled,
@@ -1346,10 +1347,10 @@ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-a6277a35"]]), $l = { cl
1346
1347
  style: { width: "100%" },
1347
1348
  size: n.size ? n.size : "small"
1348
1349
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "readonly", "placeholder", "size"])) : v("", !0),
1349
- n.type == "number" ? (s(), _(E, {
1350
+ n.type == "number" ? (r(), _($, {
1350
1351
  key: 2,
1351
- modelValue: i(l)[k].default,
1352
- "onUpdate:modelValue": (a) => i(l)[k].default = a,
1352
+ modelValue: s(l)[C].default,
1353
+ "onUpdate:modelValue": (V) => s(l)[C].default = V,
1353
1354
  clearable: "",
1354
1355
  disabled: n.disabled,
1355
1356
  readonly: n.readonly,
@@ -1360,10 +1361,10 @@ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-a6277a35"]]), $l = { cl
1360
1361
  step: n.step != null ? n.step : 1,
1361
1362
  size: n.size ? n.size : "small"
1362
1363
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "readonly", "placeholder", "max", "min", "step", "size"])) : v("", !0),
1363
- n.type == "select" ? (s(), _(D, {
1364
+ n.type == "select" ? (r(), _(N, {
1364
1365
  key: 3,
1365
- modelValue: i(l)[k].default,
1366
- "onUpdate:modelValue": (a) => i(l)[k].default = a,
1366
+ modelValue: s(l)[C].default,
1367
+ "onUpdate:modelValue": (V) => s(l)[C].default = V,
1367
1368
  clearable: "",
1368
1369
  filterable: "",
1369
1370
  disabled: n.disabled,
@@ -1374,18 +1375,18 @@ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-a6277a35"]]), $l = { cl
1374
1375
  size: n.size ? n.size : "small"
1375
1376
  }, {
1376
1377
  default: z(() => [
1377
- (s(!0), M(X, null, ne(n.options, (a) => (s(), _(H, {
1378
- label: a.label ? a.label : a.value,
1379
- value: a.value,
1380
- disabled: a.disabled
1378
+ (r(!0), M(J, null, ne(n.options, (V) => (r(), _(T, {
1379
+ label: V.label ? V.label : V.value,
1380
+ value: V.value,
1381
+ disabled: V.disabled
1381
1382
  }, null, 8, ["label", "value", "disabled"]))), 256))
1382
1383
  ]),
1383
1384
  _: 2
1384
1385
  }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "multiple", "collapse-tags", "placeholder", "size"])) : v("", !0),
1385
- n.type == "date" ? (s(), _(y, {
1386
+ n.type == "date" ? (r(), _(y, {
1386
1387
  key: 4,
1387
- modelValue: i(l)[k].default,
1388
- "onUpdate:modelValue": (a) => i(l)[k].default = a,
1388
+ modelValue: s(l)[C].default,
1389
+ "onUpdate:modelValue": (V) => s(l)[C].default = V,
1389
1390
  type: "date",
1390
1391
  placeholder: n.placeholder ? n.placeholder : "请选择日期",
1391
1392
  disabled: n.disabled,
@@ -1393,10 +1394,10 @@ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-a6277a35"]]), $l = { cl
1393
1394
  style: { width: "100%" },
1394
1395
  size: n.size ? n.size : "small"
1395
1396
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled", "readonly", "size"])) : v("", !0),
1396
- n.type == "time" ? (s(), _(O, {
1397
+ n.type == "time" ? (r(), _(A, {
1397
1398
  key: 5,
1398
- modelValue: i(l)[k].default,
1399
- "onUpdate:modelValue": (a) => i(l)[k].default = a,
1399
+ modelValue: s(l)[C].default,
1400
+ "onUpdate:modelValue": (V) => s(l)[C].default = V,
1400
1401
  "arrow-control": "",
1401
1402
  placeholder: n.placeholder ? n.placeholder : "请选择时间",
1402
1403
  disabled: n.disabled,
@@ -1404,10 +1405,10 @@ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-a6277a35"]]), $l = { cl
1404
1405
  style: { width: "100%" },
1405
1406
  size: n.size ? n.size : "small"
1406
1407
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled", "readonly", "size"])) : v("", !0),
1407
- n.type == "datetime" ? (s(), _(y, {
1408
+ n.type == "datetime" ? (r(), _(y, {
1408
1409
  key: 6,
1409
- modelValue: i(l)[k].default,
1410
- "onUpdate:modelValue": (a) => i(l)[k].default = a,
1410
+ modelValue: s(l)[C].default,
1411
+ "onUpdate:modelValue": (V) => s(l)[C].default = V,
1411
1412
  type: "datetime",
1412
1413
  placeholder: n.placeholder ? n.placeholder : "请选择日期时间",
1413
1414
  disabled: n.disabled,
@@ -1415,10 +1416,10 @@ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-a6277a35"]]), $l = { cl
1415
1416
  style: { width: "100%" },
1416
1417
  size: n.size ? n.size : "small"
1417
1418
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled", "readonly", "size"])) : v("", !0),
1418
- n.type == "daterange" ? (s(), _(y, {
1419
+ n.type == "daterange" ? (r(), _(y, {
1419
1420
  key: 7,
1420
- modelValue: i(l)[k].default,
1421
- "onUpdate:modelValue": (a) => i(l)[k].default = a,
1421
+ modelValue: s(l)[C].default,
1422
+ "onUpdate:modelValue": (V) => s(l)[C].default = V,
1422
1423
  type: "daterange",
1423
1424
  "range-separator": "-",
1424
1425
  "start-placeholder": n.placeholder ? n.placeholder.split("&&")[0] : "请选择开始日期",
@@ -1428,10 +1429,10 @@ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-a6277a35"]]), $l = { cl
1428
1429
  style: { width: "100%" },
1429
1430
  size: n.size ? n.size : "small"
1430
1431
  }, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled", "readonly", "size"])) : v("", !0),
1431
- n.type == "timerange" ? (s(), _(O, {
1432
+ n.type == "timerange" ? (r(), _(A, {
1432
1433
  key: 8,
1433
- modelValue: i(l)[k].default,
1434
- "onUpdate:modelValue": (a) => i(l)[k].default = a,
1434
+ modelValue: s(l)[C].default,
1435
+ "onUpdate:modelValue": (V) => s(l)[C].default = V,
1435
1436
  "is-range": "",
1436
1437
  "arrow-control": "",
1437
1438
  "range-separator": "-",
@@ -1442,10 +1443,10 @@ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-a6277a35"]]), $l = { cl
1442
1443
  style: { width: "100%" },
1443
1444
  size: n.size ? n.size : "small"
1444
1445
  }, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled", "readonly", "size"])) : v("", !0),
1445
- n.type == "datetimerange" ? (s(), _(y, {
1446
+ n.type == "datetimerange" ? (r(), _(y, {
1446
1447
  key: 9,
1447
- modelValue: i(l)[k].default,
1448
- "onUpdate:modelValue": (a) => i(l)[k].default = a,
1448
+ modelValue: s(l)[C].default,
1449
+ "onUpdate:modelValue": (V) => s(l)[C].default = V,
1449
1450
  type: "datetimerange",
1450
1451
  "range-separator": "-",
1451
1452
  "start-placeholder": n.placeholder ? n.placeholder.split("&&")[0] : "请选择开始日期时间",
@@ -1455,10 +1456,10 @@ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-a6277a35"]]), $l = { cl
1455
1456
  style: { width: "100%" },
1456
1457
  size: n.size ? n.size : "small"
1457
1458
  }, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled", "readonly", "size"])) : v("", !0),
1458
- n.type == "switch" ? (s(), _(J, {
1459
+ n.type == "switch" ? (r(), _(Q, {
1459
1460
  key: 10,
1460
- modelValue: i(l)[k].default,
1461
- "onUpdate:modelValue": (a) => i(l)[k].default = a,
1461
+ modelValue: s(l)[C].default,
1462
+ "onUpdate:modelValue": (V) => s(l)[C].default = V,
1462
1463
  "active-text": n.openText,
1463
1464
  "inactive-text": n.closeText,
1464
1465
  disabled: n.disabled,
@@ -1472,35 +1473,35 @@ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-a6277a35"]]), $l = { cl
1472
1473
  _: 1
1473
1474
  }, 8, ["model", "rules", "label-width", "size"])
1474
1475
  ]),
1475
- R(g.$slots, "footer", {}, void 0, !0)
1476
+ W(g.$slots, "footer", {}, void 0, !0)
1476
1477
  ]),
1477
1478
  _: 2
1478
1479
  }, [
1479
1480
  g.footer ? {
1480
1481
  name: "footer",
1481
1482
  fn: z(() => [
1482
- $(le, {
1483
+ I(le, {
1483
1484
  type: "primary",
1484
1485
  size: g.buttonSize,
1485
- icon: i(Ye),
1486
+ icon: s(Ye),
1486
1487
  class: "btn",
1487
1488
  loading: g.loading,
1488
- onClick: C
1489
+ onClick: P
1489
1490
  }, {
1490
1491
  default: z(() => [
1491
- A(oe(g.loading ? "提交中" : "提交"), 1)
1492
+ G(oe(g.loading ? "提交中" : "提交"), 1)
1492
1493
  ]),
1493
1494
  _: 1
1494
1495
  }, 8, ["size", "icon", "loading"]),
1495
- $(le, {
1496
+ I(le, {
1496
1497
  type: "info",
1497
1498
  size: g.buttonSize,
1498
- icon: i(Le),
1499
+ icon: s(Le),
1499
1500
  class: "btn",
1500
- onClick: B
1501
+ onClick: L
1501
1502
  }, {
1502
- default: z(() => V[2] || (V[2] = [
1503
- A("取消")
1503
+ default: z(() => S[2] || (S[2] = [
1504
+ G("取消")
1504
1505
  ])),
1505
1506
  _: 1,
1506
1507
  __: [2]
@@ -1514,12 +1515,12 @@ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-a6277a35"]]), $l = { cl
1514
1515
  }
1515
1516
  });
1516
1517
  const Fl = /* @__PURE__ */ ie(Wl, [["__scopeId", "data-v-fbcd9a4f"]]);
1517
- function Tl(r, m, p) {
1518
- return m.default == null || m.default.toString() == "" ? p(new Error(m.label + "不能为空")) : p();
1518
+ function Tl(d, c, p) {
1519
+ return c.default == null || c.default.toString() == "" ? p(new Error(c.label + "不能为空")) : p();
1519
1520
  }
1520
1521
  const Dl = {
1521
- install: (r) => {
1522
- r.component("SplitPanes", Ge), r.component("Pane", qe), r.component("UpLoadFile", gl), r.component("Layout", kl), r.component("TableForm", El), r.component("UpLoadFiles", Vl), r.component("DvDialog", Fl);
1522
+ install: (d) => {
1523
+ d.component("SplitPanes", Ge), d.component("Pane", qe), d.component("UpLoadFile", gl), d.component("Layout", kl), d.component("TableForm", El), d.component("UpLoadFiles", Vl), d.component("DvDialog", Fl);
1523
1524
  }
1524
1525
  };
1525
1526
  export {