dld-vue-ui 1.3.2 → 1.3.3

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