dld-vue-ui 1.2.3 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { useSlots as be, ref as T, computed as X, watch as te, onBeforeUnmount as Pe, onMounted as ce, provide as le, openBlock as r, createBlock as v, resolveDynamicComponent as Ue, inject as oe, getCurrentInstance as Re, createElementBlock as P, unref as f, normalizeStyle as D, renderSlot as H, nextTick as we, h as Fe, defineComponent as F, withCtx as z, createElementVNode as B, resolveComponent as k, createVNode as R, createTextVNode as G, withDirectives as Ie, vShow as He, toDisplayString as re, Fragment as Q, renderList as ie, createCommentVNode as b, reactive as De, normalizeClass as Y, createSlots as Be, withKeys as ke, mergeModels as Se, useModel as Ne } from "vue";
1
+ import { useSlots as be, ref as T, computed as X, watch as te, onBeforeUnmount as Pe, onMounted as ce, provide as le, openBlock as s, createBlock as v, resolveDynamicComponent as Ue, inject as oe, getCurrentInstance as Re, createElementBlock as P, unref as r, normalizeStyle as D, renderSlot as H, nextTick as we, h as Fe, defineComponent as F, withCtx as z, createElementVNode as B, resolveComponent as k, createVNode as R, createTextVNode as G, withDirectives as Ie, vShow as He, toDisplayString as re, Fragment as Q, renderList as ie, createCommentVNode as b, reactive as De, normalizeClass as Y, createSlots as Be, withKeys as ke, mergeModels as Se, useModel as Ne } from "vue";
2
2
  const Te = {
3
3
  __name: "splitpanes",
4
4
  props: {
@@ -19,8 +19,8 @@ const Te = {
19
19
  "pane-remove",
20
20
  "splitter-click"
21
21
  ],
22
- setup(d, { emit: m }) {
23
- const c = m, s = d, S = be(), a = T([]), C = X(() => a.value.reduce((t, o) => (t[~~o.id] = o) && t, {})), E = X(() => a.value.length), g = T(null), M = T(!1), U = T({
22
+ setup(u, { emit: h }) {
23
+ const m = h, d = u, S = be(), a = T([]), C = X(() => a.value.reduce((t, o) => (t[~~o.id] = o) && t, {})), E = X(() => a.value.length), g = T(null), M = T(!1), U = T({
24
24
  mouseDown: !1,
25
25
  dragging: !1,
26
26
  activeSplitter: null,
@@ -31,86 +31,86 @@ const Te = {
31
31
  splitter: null,
32
32
  timeoutId: null
33
33
  }), $ = X(() => ({
34
- [`splitpanes splitpanes--${s.horizontal ? "horizontal" : "vertical"}`]: !0,
34
+ [`splitpanes splitpanes--${d.horizontal ? "horizontal" : "vertical"}`]: !0,
35
35
  "splitpanes--dragging": U.value.dragging
36
36
  })), W = () => {
37
37
  document.addEventListener("mousemove", x, { passive: !1 }), document.addEventListener("mouseup", A), "ontouchstart" in window && (document.addEventListener("touchmove", x, { passive: !1 }), document.addEventListener("touchend", A));
38
38
  }, N = () => {
39
39
  document.removeEventListener("mousemove", x, { passive: !1 }), document.removeEventListener("mouseup", A), "ontouchstart" in window && (document.removeEventListener("touchmove", x, { passive: !1 }), document.removeEventListener("touchend", A));
40
40
  }, I = (t, o) => {
41
- const u = t.target.closest(".splitpanes__splitter");
42
- if (u) {
43
- const { left: n, top: p } = u.getBoundingClientRect(), { clientX: _, clientY: V } = "ontouchstart" in window && t.touches ? t.touches[0] : t;
44
- U.value.cursorOffset = s.horizontal ? V - p : _ - n;
41
+ const p = t.target.closest(".splitpanes__splitter");
42
+ if (p) {
43
+ const { left: n, top: c } = p.getBoundingClientRect(), { clientX: _, clientY: V } = "ontouchstart" in window && t.touches ? t.touches[0] : t;
44
+ U.value.cursorOffset = d.horizontal ? V - c : _ - n;
45
45
  }
46
46
  W(), U.value.mouseDown = !0, U.value.activeSplitter = o;
47
47
  }, x = (t) => {
48
48
  U.value.mouseDown && (t.preventDefault(), U.value.dragging = !0, requestAnimationFrame(() => {
49
- l(de(t)), c("resize", a.value.map((o) => ({ min: o.min, max: o.max, size: o.size })));
49
+ l(de(t)), m("resize", a.value.map((o) => ({ min: o.min, max: o.max, size: o.size })));
50
50
  }));
51
51
  }, A = () => {
52
- U.value.dragging && c("resized", a.value.map((t) => ({ min: t.min, max: t.max, size: t.size }))), U.value.mouseDown = !1, setTimeout(() => {
52
+ U.value.dragging && m("resized", a.value.map((t) => ({ min: t.min, max: t.max, size: t.size }))), U.value.mouseDown = !1, setTimeout(() => {
53
53
  U.value.dragging = !1, N();
54
54
  }, 100);
55
55
  }, Z = (t, o) => {
56
- "ontouchstart" in window && (t.preventDefault(), s.dblClickSplitter && (L.value.splitter === o ? (clearTimeout(L.value.timeoutId), L.value.timeoutId = null, j(t, o), L.value.splitter = null) : (L.value.splitter = o, L.value.timeoutId = setTimeout(() => L.value.splitter = null, 500)))), U.value.dragging || c("splitter-click", a.value[o]);
56
+ "ontouchstart" in window && (t.preventDefault(), d.dblClickSplitter && (L.value.splitter === o ? (clearTimeout(L.value.timeoutId), L.value.timeoutId = null, j(t, o), L.value.splitter = null) : (L.value.splitter = o, L.value.timeoutId = setTimeout(() => L.value.splitter = null, 500)))), U.value.dragging || m("splitter-click", a.value[o]);
57
57
  }, j = (t, o) => {
58
- let u = 0;
59
- a.value = a.value.map((n, p) => (n.size = p === o ? n.max : n.min, p !== o && (u += n.min), n)), a.value[o].size -= u, c("pane-maximize", a.value[o]), c("resized", a.value.map((n) => ({ min: n.min, max: n.max, size: n.size })));
58
+ let p = 0;
59
+ a.value = a.value.map((n, c) => (n.size = c === o ? n.max : n.min, c !== o && (p += n.min), n)), a.value[o].size -= p, m("pane-maximize", a.value[o]), m("resized", a.value.map((n) => ({ min: n.min, max: n.max, size: n.size })));
60
60
  }, ae = (t, o) => {
61
- c("pane-click", C.value[o]);
61
+ m("pane-click", C.value[o]);
62
62
  }, de = (t) => {
63
- const o = g.value.getBoundingClientRect(), { clientX: u, clientY: n } = "ontouchstart" in window && t.touches ? t.touches[0] : t;
63
+ const o = g.value.getBoundingClientRect(), { clientX: p, clientY: n } = "ontouchstart" in window && t.touches ? t.touches[0] : t;
64
64
  return {
65
- x: u - (s.horizontal ? 0 : U.value.cursorOffset) - o.left,
66
- y: n - (s.horizontal ? U.value.cursorOffset : 0) - o.top
65
+ x: p - (d.horizontal ? 0 : U.value.cursorOffset) - o.left,
66
+ y: n - (d.horizontal ? U.value.cursorOffset : 0) - o.top
67
67
  };
68
68
  }, i = (t) => {
69
- t = t[s.horizontal ? "y" : "x"];
70
- const o = g.value[s.horizontal ? "clientHeight" : "clientWidth"];
71
- return s.rtl && !s.horizontal && (t = o - t), t * 100 / o;
69
+ t = t[d.horizontal ? "y" : "x"];
70
+ const o = g.value[d.horizontal ? "clientHeight" : "clientWidth"];
71
+ return d.rtl && !d.horizontal && (t = o - t), t * 100 / o;
72
72
  }, l = (t) => {
73
73
  const o = U.value.activeSplitter;
74
- let u = {
74
+ let p = {
75
75
  prevPanesSize: y(o),
76
76
  nextPanesSize: K(o),
77
77
  prevReachedMinPanes: 0,
78
78
  nextReachedMinPanes: 0
79
79
  };
80
- const n = 0 + (s.pushOtherPanes ? 0 : u.prevPanesSize), p = 100 - (s.pushOtherPanes ? 0 : u.nextPanesSize), _ = Math.max(Math.min(i(t), p), n);
80
+ const n = 0 + (d.pushOtherPanes ? 0 : p.prevPanesSize), c = 100 - (d.pushOtherPanes ? 0 : p.nextPanesSize), _ = Math.max(Math.min(i(t), c), n);
81
81
  let V = [o, o + 1], O = a.value[V[0]] || null, q = a.value[V[1]] || null;
82
- const xe = O.max < 100 && _ >= O.max + u.prevPanesSize, We = q.max < 100 && _ <= 100 - (q.max + K(o + 1));
82
+ const xe = O.max < 100 && _ >= O.max + p.prevPanesSize, We = q.max < 100 && _ <= 100 - (q.max + K(o + 1));
83
83
  if (xe || We) {
84
- xe ? (O.size = O.max, q.size = Math.max(100 - O.max - u.prevPanesSize - u.nextPanesSize, 0)) : (O.size = Math.max(100 - q.max - u.prevPanesSize - K(o + 1), 0), q.size = q.max);
84
+ xe ? (O.size = O.max, q.size = Math.max(100 - O.max - p.prevPanesSize - p.nextPanesSize, 0)) : (O.size = Math.max(100 - q.max - p.prevPanesSize - K(o + 1), 0), q.size = q.max);
85
85
  return;
86
86
  }
87
- if (s.pushOtherPanes) {
88
- const Ve = h(u, _);
87
+ if (d.pushOtherPanes) {
88
+ const Ve = f(p, _);
89
89
  if (!Ve)
90
90
  return;
91
- ({ sums: u, panesToResize: V } = Ve), O = a.value[V[0]] || null, q = a.value[V[1]] || null;
91
+ ({ sums: p, panesToResize: V } = Ve), O = a.value[V[0]] || null, q = a.value[V[1]] || null;
92
92
  }
93
- O !== null && (O.size = Math.min(Math.max(_ - u.prevPanesSize - u.prevReachedMinPanes, O.min), O.max)), q !== null && (q.size = Math.min(Math.max(100 - _ - u.nextPanesSize - u.nextReachedMinPanes, q.min), q.max));
94
- }, h = (t, o) => {
95
- const u = U.value.activeSplitter, n = [u, u + 1];
96
- return o < t.prevPanesSize + a.value[n[0]].min && (n[0] = me(u).index, t.prevReachedMinPanes = 0, n[0] < u && a.value.forEach((p, _) => {
97
- _ > n[0] && _ <= u && (p.size = p.min, t.prevReachedMinPanes += p.min);
98
- }), t.prevPanesSize = y(n[0]), n[0] === void 0) ? (t.prevReachedMinPanes = 0, a.value[0].size = a.value[0].min, a.value.forEach((p, _) => {
99
- _ > 0 && _ <= u && (p.size = p.min, t.prevReachedMinPanes += p.min);
100
- }), a.value[n[1]].size = 100 - t.prevReachedMinPanes - a.value[0].min - t.prevPanesSize - t.nextPanesSize, null) : o > 100 - t.nextPanesSize - a.value[n[1]].min && (n[1] = he(u).index, t.nextReachedMinPanes = 0, n[1] > u + 1 && a.value.forEach((p, _) => {
101
- _ > u && _ < n[1] && (p.size = p.min, t.nextReachedMinPanes += p.min);
102
- }), t.nextPanesSize = K(n[1] - 1), n[1] === void 0) ? (t.nextReachedMinPanes = 0, a.value.forEach((p, _) => {
103
- _ < E.value - 1 && _ >= u + 1 && (p.size = p.min, t.nextReachedMinPanes += p.min);
93
+ O !== null && (O.size = Math.min(Math.max(_ - p.prevPanesSize - p.prevReachedMinPanes, O.min), O.max)), q !== null && (q.size = Math.min(Math.max(100 - _ - p.nextPanesSize - p.nextReachedMinPanes, q.min), q.max));
94
+ }, f = (t, o) => {
95
+ const p = U.value.activeSplitter, n = [p, p + 1];
96
+ return o < t.prevPanesSize + a.value[n[0]].min && (n[0] = me(p).index, t.prevReachedMinPanes = 0, n[0] < p && a.value.forEach((c, _) => {
97
+ _ > n[0] && _ <= p && (c.size = c.min, t.prevReachedMinPanes += c.min);
98
+ }), t.prevPanesSize = y(n[0]), n[0] === void 0) ? (t.prevReachedMinPanes = 0, a.value[0].size = a.value[0].min, a.value.forEach((c, _) => {
99
+ _ > 0 && _ <= p && (c.size = c.min, t.prevReachedMinPanes += c.min);
100
+ }), a.value[n[1]].size = 100 - t.prevReachedMinPanes - a.value[0].min - t.prevPanesSize - t.nextPanesSize, null) : o > 100 - t.nextPanesSize - a.value[n[1]].min && (n[1] = he(p).index, t.nextReachedMinPanes = 0, n[1] > p + 1 && a.value.forEach((c, _) => {
101
+ _ > p && _ < n[1] && (c.size = c.min, t.nextReachedMinPanes += c.min);
102
+ }), t.nextPanesSize = K(n[1] - 1), n[1] === void 0) ? (t.nextReachedMinPanes = 0, a.value.forEach((c, _) => {
103
+ _ < E.value - 1 && _ >= p + 1 && (c.size = c.min, t.nextReachedMinPanes += c.min);
104
104
  }), a.value[n[0]].size = 100 - t.prevPanesSize - K(n[0] - 1), null) : { sums: t, panesToResize: n };
105
- }, y = (t) => a.value.reduce((o, u, n) => o + (n < t ? u.size : 0), 0), K = (t) => a.value.reduce((o, u, n) => o + (n > t + 1 ? u.size : 0), 0), me = (t) => [...a.value].reverse().find((o) => o.index < t && o.size > o.min) || {}, he = (t) => a.value.find((o) => o.index > t + 1 && o.size > o.min) || {}, fe = () => {
105
+ }, y = (t) => a.value.reduce((o, p, n) => o + (n < t ? p.size : 0), 0), K = (t) => a.value.reduce((o, p, n) => o + (n > t + 1 ? p.size : 0), 0), me = (t) => [...a.value].reverse().find((o) => o.index < t && o.size > o.min) || {}, he = (t) => a.value.find((o) => o.index > t + 1 && o.size > o.min) || {}, fe = () => {
106
106
  var t;
107
107
  Array.from(((t = g.value) == null ? void 0 : t.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."));
108
+ const p = o.classList.contains("splitpanes__pane"), n = o.classList.contains("splitpanes__splitter");
109
+ !p && !n && (o.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
110
110
  });
111
- }, ee = (t, o, u = !1) => {
112
- const n = t - 1, p = document.createElement("div");
113
- p.classList.add("splitpanes__splitter"), u || (p.onmousedown = (_) => I(_, n), typeof window < "u" && "ontouchstart" in window && (p.ontouchstart = (_) => I(_, n)), p.onclick = (_) => Z(_, n + 1)), s.dblClickSplitter && (p.ondblclick = (_) => j(_, n + 1)), o.parentNode.insertBefore(p, o);
111
+ }, ee = (t, o, p = !1) => {
112
+ const n = t - 1, c = document.createElement("div");
113
+ c.classList.add("splitpanes__splitter"), p || (c.onmousedown = (_) => I(_, n), typeof window < "u" && "ontouchstart" in window && (c.ontouchstart = (_) => I(_, n)), c.onclick = (_) => Z(_, n + 1)), d.dblClickSplitter && (c.ondblclick = (_) => j(_, n + 1)), o.parentNode.insertBefore(c, o);
114
114
  }, pe = (t) => {
115
115
  t.onmousedown = void 0, t.onclick = void 0, t.ondblclick = void 0, t.remove();
116
116
  }, ne = () => {
@@ -119,72 +119,72 @@ const Te = {
119
119
  o.forEach((n) => {
120
120
  n.className.includes("splitpanes__splitter") && pe(n);
121
121
  });
122
- let u = 0;
122
+ let p = 0;
123
123
  o.forEach((n) => {
124
- n.className.includes("splitpanes__pane") && (!u && s.firstSplitter ? ee(u, n, !0) : u && ee(u, n), u++);
124
+ n.className.includes("splitpanes__pane") && (!p && d.firstSplitter ? ee(p, n, !0) : p && ee(p, n), p++);
125
125
  });
126
126
  }, J = ({ uid: t, ...o }) => {
127
- const u = C.value[t];
128
- Object.entries(o).forEach(([n, p]) => u[n] = p);
127
+ const p = C.value[t];
128
+ Object.entries(o).forEach(([n, c]) => p[n] = c);
129
129
  }, _e = (t) => {
130
130
  var o;
131
- let u = -1;
132
- Array.from(((o = g.value) == null ? void 0 : o.children) || []).some((n) => (n.className.includes("splitpanes__pane") && u++, n.isSameNode(t.el))), a.value.splice(u, 0, { ...t, index: u }), a.value.forEach((n, p) => n.index = p), M.value && we(() => {
133
- ne(), ue({ addedPane: a.value[u] }), c("pane-add", { index: u, panes: a.value.map((n) => ({ min: n.min, max: n.max, size: n.size })) });
131
+ let p = -1;
132
+ Array.from(((o = g.value) == null ? void 0 : o.children) || []).some((n) => (n.className.includes("splitpanes__pane") && p++, n.isSameNode(t.el))), a.value.splice(p, 0, { ...t, index: p }), a.value.forEach((n, c) => n.index = c), M.value && we(() => {
133
+ ne(), ue({ addedPane: a.value[p] }), m("pane-add", { index: p, panes: a.value.map((n) => ({ min: n.min, max: n.max, size: n.size })) });
134
134
  });
135
135
  }, ve = (t) => {
136
- const o = a.value.findIndex((n) => n.id === t), u = a.value.splice(o, 1)[0];
137
- a.value.forEach((n, p) => n.index = p), we(() => {
138
- ne(), ue({ removedPane: { ...u } }), c("pane-remove", { removed: u, panes: a.value.map((n) => ({ min: n.min, max: n.max, size: n.size })) });
136
+ const o = a.value.findIndex((n) => n.id === t), p = a.value.splice(o, 1)[0];
137
+ a.value.forEach((n, c) => n.index = c), we(() => {
138
+ ne(), ue({ removedPane: { ...p } }), m("pane-remove", { removed: p, panes: a.value.map((n) => ({ min: n.min, max: n.max, size: n.size })) });
139
139
  });
140
140
  }, ue = (t = {}) => {
141
- !t.addedPane && !t.removedPane ? ge() : a.value.some((o) => o.givenSize !== null || o.min || o.max < 100) ? ze(t) : ye(), M.value && c("resized", a.value.map((o) => ({ min: o.min, max: o.max, size: o.size })));
141
+ !t.addedPane && !t.removedPane ? ge() : a.value.some((o) => o.givenSize !== null || o.min || o.max < 100) ? ze(t) : ye(), M.value && m("resized", a.value.map((o) => ({ min: o.min, max: o.max, size: o.size })));
142
142
  }, ye = () => {
143
143
  const t = 100 / E.value;
144
144
  let o = 0;
145
- const u = [], n = [];
146
- a.value.forEach((p) => {
147
- p.size = Math.max(Math.min(t, 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 && e(o, u, n);
145
+ const p = [], n = [];
146
+ a.value.forEach((c) => {
147
+ c.size = Math.max(Math.min(t, c.max), c.min), o -= c.size, c.size >= c.max && p.push(c.id), c.size <= c.min && n.push(c.id);
148
+ }), o > 0.1 && e(o, p, n);
149
149
  }, ge = () => {
150
150
  let t = 100;
151
- const o = [], u = [];
151
+ const o = [], p = [];
152
152
  let n = 0;
153
153
  a.value.forEach((_) => {
154
- t -= _.size, _.givenSize !== null && n++, _.size >= _.max && o.push(_.id), _.size <= _.min && u.push(_.id);
154
+ t -= _.size, _.givenSize !== null && n++, _.size >= _.max && o.push(_.id), _.size <= _.min && p.push(_.id);
155
155
  });
156
- let p = 100;
156
+ let c = 100;
157
157
  t > 0.1 && (a.value.forEach((_) => {
158
- _.givenSize === null && (_.size = Math.max(Math.min(t / (E.value - n), _.max), _.min)), p -= _.size;
159
- }), p > 0.1 && e(p, o, u));
158
+ _.givenSize === null && (_.size = Math.max(Math.min(t / (E.value - n), _.max), _.min)), c -= _.size;
159
+ }), c > 0.1 && e(c, o, p));
160
160
  }, ze = ({ addedPane: t, removedPane: o } = {}) => {
161
- let u = 100 / E.value, n = 0;
162
- const p = [], _ = [];
163
- ((t == null ? void 0 : t.givenSize) ?? null) !== null && (u = (100 - t.givenSize) / (E.value - 1).value), a.value.forEach((V) => {
164
- n -= V.size, V.size >= V.max && p.push(V.id), V.size <= V.min && _.push(V.id);
161
+ let p = 100 / E.value, n = 0;
162
+ const c = [], _ = [];
163
+ ((t == null ? void 0 : t.givenSize) ?? null) !== null && (p = (100 - t.givenSize) / (E.value - 1).value), a.value.forEach((V) => {
164
+ n -= V.size, V.size >= V.max && c.push(V.id), V.size <= V.min && _.push(V.id);
165
165
  }), !(Math.abs(n) < 0.1) && (a.value.forEach((V) => {
166
- (t == null ? void 0 : t.givenSize) !== null && (t == null ? void 0 : t.id) === V.id || (V.size = Math.max(Math.min(u, V.max), V.min)), n -= V.size, V.size >= V.max && p.push(V.id), V.size <= V.min && _.push(V.id);
167
- }), n > 0.1 && e(n, p, _));
168
- }, e = (t, o, u) => {
166
+ (t == null ? void 0 : t.givenSize) !== null && (t == null ? void 0 : t.id) === V.id || (V.size = Math.max(Math.min(p, V.max), V.min)), n -= V.size, V.size >= V.max && c.push(V.id), V.size <= V.min && _.push(V.id);
167
+ }), n > 0.1 && e(n, c, _));
168
+ }, e = (t, o, p) => {
169
169
  let n;
170
- t > 0 ? n = t / (E.value - o.length) : n = t / (E.value - u.length), a.value.forEach((p, _) => {
171
- if (t > 0 && !o.includes(p.id)) {
172
- const V = Math.max(Math.min(p.size + n, p.max), p.min), O = V - p.size;
173
- t -= O, p.size = V;
174
- } else if (!u.includes(p.id)) {
175
- const V = Math.max(Math.min(p.size + n, p.max), p.min), O = V - p.size;
176
- t -= O, p.size = V;
170
+ t > 0 ? n = t / (E.value - o.length) : n = t / (E.value - p.length), a.value.forEach((c, _) => {
171
+ if (t > 0 && !o.includes(c.id)) {
172
+ const V = Math.max(Math.min(c.size + n, c.max), c.min), O = V - c.size;
173
+ t -= O, c.size = V;
174
+ } else if (!p.includes(c.id)) {
175
+ const V = Math.max(Math.min(c.size + n, c.max), c.min), O = V - c.size;
176
+ t -= O, c.size = V;
177
177
  }
178
178
  }), Math.abs(t) > 0.1 && we(() => {
179
179
  M.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
180
180
  });
181
181
  };
182
- te(() => s.firstSplitter, () => ne()), te(() => s.dblClickSplitter, (t) => {
183
- [...g.value.querySelectorAll(".splitpanes__splitter")].forEach((o, u) => {
184
- o.ondblclick = t ? (n) => j(n, u) : void 0;
182
+ te(() => d.firstSplitter, () => ne()), te(() => d.dblClickSplitter, (t) => {
183
+ [...g.value.querySelectorAll(".splitpanes__splitter")].forEach((o, p) => {
184
+ o.ondblclick = t ? (n) => j(n, p) : void 0;
185
185
  });
186
186
  }), Pe(() => M.value = !1), ce(() => {
187
- fe(), ne(), ue(), c("ready"), M.value = !0;
187
+ fe(), ne(), ue(), m("ready"), M.value = !0;
188
188
  });
189
189
  const w = () => {
190
190
  var t;
@@ -194,7 +194,7 @@ const Te = {
194
194
  (t = S.default) == null ? void 0 : t.call(S)
195
195
  );
196
196
  };
197
- return le("panes", a), le("indexedPanes", C), le("horizontal", X(() => s.horizontal)), le("requestUpdate", J), le("onPaneAdd", _e), le("onPaneRemove", ve), le("onPaneClick", ae), (t, o) => (r(), v(Ue(w)));
197
+ return le("panes", a), le("indexedPanes", C), le("horizontal", X(() => d.horizontal)), le("requestUpdate", J), le("onPaneAdd", _e), le("onPaneRemove", ve), le("onPaneClick", ae), (t, o) => (s(), v(Ue(w)));
198
198
  }
199
199
  }, Oe = {
200
200
  __name: "pane",
@@ -203,16 +203,16 @@ const Te = {
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, s = oe("requestUpdate"), S = oe("onPaneAdd"), a = oe("horizontal"), C = oe("onPaneRemove"), E = oe("onPaneClick"), g = (m = Re()) == null ? void 0 : m.uid, M = oe("indexedPanes"), U = X(() => M.value[g]), L = T(null), $ = X(() => {
209
- const x = isNaN(c.size) || c.size === void 0 ? 0 : parseFloat(c.size);
206
+ setup(u) {
207
+ var h;
208
+ const m = u, d = oe("requestUpdate"), S = oe("onPaneAdd"), a = oe("horizontal"), C = oe("onPaneRemove"), E = oe("onPaneClick"), g = (h = Re()) == null ? void 0 : h.uid, M = oe("indexedPanes"), U = X(() => M.value[g]), L = T(null), $ = X(() => {
209
+ const x = isNaN(m.size) || m.size === void 0 ? 0 : parseFloat(m.size);
210
210
  return Math.max(Math.min(x, N.value), W.value);
211
211
  }), W = X(() => {
212
- const x = parseFloat(c.minSize);
212
+ const x = parseFloat(m.minSize);
213
213
  return isNaN(x) ? 0 : x;
214
214
  }), N = X(() => {
215
- const x = parseFloat(c.maxSize);
215
+ const x = parseFloat(m.maxSize);
216
216
  return isNaN(x) ? 100 : x;
217
217
  }), I = X(() => {
218
218
  var x;
@@ -225,15 +225,15 @@ const Te = {
225
225
  min: W.value,
226
226
  max: N.value,
227
227
  // The given size (useful to know the user intention).
228
- givenSize: c.size === void 0 ? null : $.value,
228
+ givenSize: m.size === void 0 ? null : $.value,
229
229
  size: $.value
230
230
  // The computed current size at any time.
231
231
  });
232
- }), te(() => $.value, (x) => s({ uid: g, size: x })), te(() => W.value, (x) => s({ uid: g, min: x })), te(() => N.value, (x) => s({ uid: g, max: x })), Pe(() => C(g)), (x, A) => (r(), P("div", {
232
+ }), te(() => $.value, (x) => d({ uid: g, size: x })), te(() => W.value, (x) => d({ uid: g, min: x })), te(() => N.value, (x) => d({ uid: g, max: x })), Pe(() => C(g)), (x, A) => (s(), P("div", {
233
233
  ref_key: "paneEl",
234
234
  ref: L,
235
235
  class: "splitpanes__pane",
236
- onClick: A[0] || (A[0] = (Z) => f(E)(Z, x._.uid)),
236
+ onClick: A[0] || (A[0] = (Z) => r(E)(Z, x._.uid)),
237
237
  style: D(I.value)
238
238
  }, [
239
239
  H(x.$slots, "default")
@@ -246,35 +246,35 @@ const Ae = /* @__PURE__ */ F({
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(), v(f(Te), {
251
- horizontal: m.horizontal,
252
- style: D(m.styles),
249
+ setup(u) {
250
+ return (h, m) => (s(), v(r(Te), {
251
+ horizontal: h.horizontal,
252
+ style: D(h.styles),
253
253
  class: "splitpanes"
254
254
  }, {
255
255
  default: z(() => [
256
- H(m.$slots, "default", {}, void 0, !0)
256
+ H(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 [s, S] of m)
265
- c[s] = S;
266
- return c;
262
+ const se = (u, h) => {
263
+ const m = u.__vccOpts || u;
264
+ for (const [d, S] of h)
265
+ m[d] = S;
266
+ return m;
267
267
  }, Ge = /* @__PURE__ */ se(Ae, [["__scopeId", "data-v-15862e4c"]]), qe = /* @__PURE__ */ F({
268
268
  __name: "pane",
269
269
  props: {
270
270
  styles: { default: () => ({ background: "#ececec" }) }
271
271
  },
272
- setup(d) {
273
- return (m, c) => (r(), v(f(Oe), {
274
- style: D(m.styles)
272
+ setup(u) {
273
+ return (h, m) => (s(), v(r(Oe), {
274
+ style: D(h.styles)
275
275
  }, {
276
276
  default: z(() => [
277
- H(m.$slots, "default")
277
+ H(h.$slots, "default")
278
278
  ]),
279
279
  _: 3
280
280
  }, 8, ["style"]));
@@ -284,8 +284,8 @@ const se = (d, m) => {
284
284
  var Ye = /* @__PURE__ */ F({
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) => (s(), P("svg", {
289
289
  xmlns: "http://www.w3.org/2000/svg",
290
290
  viewBox: "0 0 1024 1024"
291
291
  }, [
@@ -298,8 +298,8 @@ var Ye = /* @__PURE__ */ F({
298
298
  }), Ke = Ye, Xe = /* @__PURE__ */ F({
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) => (s(), P("svg", {
303
303
  xmlns: "http://www.w3.org/2000/svg",
304
304
  viewBox: "0 0 1024 1024"
305
305
  }, [
@@ -316,8 +316,8 @@ var Ye = /* @__PURE__ */ F({
316
316
  }), Je = Xe, Qe = /* @__PURE__ */ F({
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) => (s(), P("svg", {
321
321
  xmlns: "http://www.w3.org/2000/svg",
322
322
  viewBox: "0 0 1024 1024"
323
323
  }, [
@@ -330,8 +330,8 @@ var Ye = /* @__PURE__ */ F({
330
330
  }), Le = Qe, Ze = /* @__PURE__ */ F({
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) => (s(), P("svg", {
335
335
  xmlns: "http://www.w3.org/2000/svg",
336
336
  viewBox: "0 0 1024 1024"
337
337
  }, [
@@ -344,8 +344,8 @@ var Ye = /* @__PURE__ */ F({
344
344
  }), je = Ze, el = /* @__PURE__ */ F({
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) => (s(), P("svg", {
349
349
  xmlns: "http://www.w3.org/2000/svg",
350
350
  viewBox: "0 0 1024 1024"
351
351
  }, [
@@ -358,8 +358,8 @@ var Ye = /* @__PURE__ */ F({
358
358
  }), ll = el, tl = /* @__PURE__ */ F({
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) => (s(), P("svg", {
363
363
  xmlns: "http://www.w3.org/2000/svg",
364
364
  viewBox: "0 0 1024 1024"
365
365
  }, [
@@ -376,8 +376,8 @@ var Ye = /* @__PURE__ */ F({
376
376
  }), al = tl, nl = /* @__PURE__ */ F({
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) => (s(), P("svg", {
381
381
  xmlns: "http://www.w3.org/2000/svg",
382
382
  viewBox: "0 0 1024 1024"
383
383
  }, [
@@ -390,8 +390,8 @@ var Ye = /* @__PURE__ */ F({
390
390
  }), Ce = nl, ol = /* @__PURE__ */ F({
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) => (s(), P("svg", {
395
395
  xmlns: "http://www.w3.org/2000/svg",
396
396
  viewBox: "0 0 1024 1024"
397
397
  }, [
@@ -404,8 +404,8 @@ var Ye = /* @__PURE__ */ F({
404
404
  }), Ee = ol, il = /* @__PURE__ */ F({
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) => (s(), P("svg", {
409
409
  xmlns: "http://www.w3.org/2000/svg",
410
410
  viewBox: "0 0 1024 1024"
411
411
  }, [
@@ -418,8 +418,8 @@ var Ye = /* @__PURE__ */ F({
418
418
  }), rl = il, sl = /* @__PURE__ */ F({
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) => (s(), P("svg", {
423
423
  xmlns: "http://www.w3.org/2000/svg",
424
424
  viewBox: "0 0 1024 1024"
425
425
  }, [
@@ -432,8 +432,8 @@ var Ye = /* @__PURE__ */ F({
432
432
  }), dl = sl, ul = /* @__PURE__ */ F({
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) => (s(), P("svg", {
437
437
  xmlns: "http://www.w3.org/2000/svg",
438
438
  viewBox: "0 0 1024 1024"
439
439
  }, [
@@ -446,8 +446,8 @@ var Ye = /* @__PURE__ */ F({
446
446
  }), pl = ul, cl = /* @__PURE__ */ F({
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) => (s(), P("svg", {
451
451
  xmlns: "http://www.w3.org/2000/svg",
452
452
  viewBox: "0 0 1024 1024"
453
453
  }, [
@@ -460,37 +460,37 @@ var Ye = /* @__PURE__ */ F({
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 = "", s = 0; s < m; s++)
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 = "", d = 0; d < h; d++)
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" }, yl = /* @__PURE__ */ F({
@@ -503,8 +503,8 @@ const fl = { style: {} }, _l = ["id", "accept"], vl = { class: "filename" }, yl
503
503
  accept: { default: "*" }
504
504
  },
505
505
  emits: ["upload"],
506
- setup(d, { expose: m, emit: c }) {
507
- const s = c;
506
+ setup(u, { expose: h, emit: m }) {
507
+ const d = m;
508
508
  let S = hl.create().toString(), a, C = T("");
509
509
  function E() {
510
510
  a.click();
@@ -513,21 +513,21 @@ const fl = { style: {} }, _l = ["id", "accept"], vl = { class: "filename" }, yl
513
513
  C.value = a.value;
514
514
  }
515
515
  function M() {
516
- a.files !== null && s("upload", a.files[0]);
516
+ a.files !== null && d("upload", a.files[0]);
517
517
  }
518
518
  function U() {
519
519
  a.value = "", C.value = "";
520
520
  }
521
521
  return ce(() => {
522
522
  a = document.getElementById(S);
523
- }), m({
523
+ }), h({
524
524
  Clear: U
525
525
  }), (L, $) => {
526
526
  const W = k("el-button");
527
- return r(), P("div", fl, [
527
+ return s(), P("div", fl, [
528
528
  R(W, {
529
529
  type: L.type,
530
- icon: f(Ee),
530
+ icon: r(Ee),
531
531
  size: L.size,
532
532
  class: "btn",
533
533
  onClick: E
@@ -540,20 +540,20 @@ const fl = { style: {} }, _l = ["id", "accept"], vl = { class: "filename" }, yl
540
540
  }, 8, ["type", "icon", "size"]),
541
541
  Ie(B("input", {
542
542
  type: "file",
543
- id: f(S),
543
+ id: r(S),
544
544
  onChange: g,
545
545
  accept: L.accept
546
546
  }, null, 40, _l), [
547
547
  [He, !1]
548
548
  ]),
549
- B("span", vl, re(f(C)), 1),
549
+ B("span", vl, re(r(C)), 1),
550
550
  R(W, {
551
551
  type: L.type,
552
552
  icon: L.icon,
553
553
  size: L.size,
554
- disabled: f(C) == null || f(C) == "",
554
+ disabled: r(C) == null || r(C) == "",
555
555
  class: "btn",
556
- title: f(C) == null || f(C) == "" ? "请选择文件" : "",
556
+ title: r(C) == null || r(C) == "" ? "请选择文件" : "",
557
557
  onClick: M
558
558
  }, {
559
559
  default: z(() => [
@@ -572,8 +572,8 @@ const gl = /* @__PURE__ */ se(yl, [["__scopeId", "data-v-d2ed1fe1"]]), zl = ["ac
572
572
  accept: { default: "*" }
573
573
  },
574
574
  emits: ["upload", "clear"],
575
- setup(d, { expose: m, emit: c }) {
576
- const s = d, S = c, a = T(), C = T([]);
575
+ setup(u, { expose: h, emit: m }) {
576
+ const d = u, S = m, a = T(), C = T([]);
577
577
  function E() {
578
578
  var $;
579
579
  ($ = a.value) == null || $.click();
@@ -595,11 +595,11 @@ const gl = /* @__PURE__ */ se(yl, [["__scopeId", "data-v-d2ed1fe1"]]), zl = ["ac
595
595
  function L() {
596
596
  C.value = [];
597
597
  }
598
- return m({
598
+ return h({
599
599
  Clear: L
600
600
  }), ($, W) => {
601
601
  const N = k("el-button");
602
- return r(), P("div", null, [
602
+ return s(), P("div", null, [
603
603
  B("input", {
604
604
  type: "file",
605
605
  ref_key: "files",
@@ -607,12 +607,12 @@ const gl = /* @__PURE__ */ se(yl, [["__scopeId", "data-v-d2ed1fe1"]]), zl = ["ac
607
607
  multiple: "",
608
608
  style: { display: "none" },
609
609
  onChange: g,
610
- accept: s.accept
610
+ accept: d.accept
611
611
  }, null, 40, zl),
612
612
  R(N, {
613
613
  type: "success",
614
- size: s.size,
615
- icon: f(Ee),
614
+ size: d.size,
615
+ icon: r(Ee),
616
616
  onClick: E
617
617
  }, {
618
618
  default: z(() => W[0] || (W[0] = [
@@ -623,8 +623,8 @@ const gl = /* @__PURE__ */ se(yl, [["__scopeId", "data-v-d2ed1fe1"]]), zl = ["ac
623
623
  }, 8, ["size", "icon"]),
624
624
  R(N, {
625
625
  type: "success",
626
- size: s.size,
627
- icon: f($e),
626
+ size: d.size,
627
+ icon: r($e),
628
628
  onClick: U,
629
629
  disabled: C.value.length == 0
630
630
  }, {
@@ -634,11 +634,11 @@ const gl = /* @__PURE__ */ se(yl, [["__scopeId", "data-v-d2ed1fe1"]]), zl = ["ac
634
634
  _: 1,
635
635
  __: [1]
636
636
  }, 8, ["size", "icon", "disabled"]),
637
- (r(!0), P(Q, null, ie(C.value, (I, x) => (r(), P("p", wl, [
637
+ (s(!0), P(Q, null, ie(C.value, (I, x) => (s(), P("p", wl, [
638
638
  B("span", bl, re(I.name), 1),
639
639
  R(N, {
640
640
  size: "small",
641
- icon: f(Le),
641
+ icon: r(Le),
642
642
  class: "operation",
643
643
  link: "",
644
644
  onClick: (A) => M(x)
@@ -655,29 +655,29 @@ const Vl = /* @__PURE__ */ se(xl, [["__scopeId", "data-v-fd9596c6"]]), kl = /* @
655
655
  headerMaxHeight: { default: 60 },
656
656
  horizontal: { type: Boolean, default: !1 }
657
657
  },
658
- setup(d) {
659
- const m = be();
660
- return (c, s) => {
658
+ setup(u) {
659
+ const h = be();
660
+ return (m, d) => {
661
661
  const S = k("el-aside"), a = k("el-header"), C = k("el-main"), E = k("el-container");
662
- return r(), v(E, { class: "container" }, {
662
+ return s(), v(E, { class: "container" }, {
663
663
  default: z(() => [
664
- f(m).aside && !c.horizontal ? (r(), v(S, {
664
+ r(h).aside && !m.horizontal ? (s(), v(S, {
665
665
  key: 0,
666
666
  class: "aside",
667
- style: D("width: " + c.asideWidth + "px;")
667
+ style: D("width: " + m.asideWidth + "px;")
668
668
  }, {
669
669
  default: z(() => [
670
- H(c.$slots, "aside", {}, void 0, !0)
670
+ H(m.$slots, "aside", {}, void 0, !0)
671
671
  ]),
672
672
  _: 3
673
673
  }, 8, ["style"])) : b("", !0),
674
- f(m).header && c.horizontal ? (r(), v(a, {
674
+ r(h).header && m.horizontal ? (s(), v(a, {
675
675
  key: 1,
676
676
  class: "inside_header",
677
- style: D("height: " + c.headerMaxHeight + "px;")
677
+ style: D("height: " + m.headerMaxHeight + "px;")
678
678
  }, {
679
679
  default: z(() => [
680
- H(c.$slots, "header", {}, void 0, !0)
680
+ H(m.$slots, "header", {}, void 0, !0)
681
681
  ]),
682
682
  _: 3
683
683
  }, 8, ["style"])) : b("", !0),
@@ -685,29 +685,29 @@ const Vl = /* @__PURE__ */ se(xl, [["__scopeId", "data-v-fd9596c6"]]), kl = /* @
685
685
  default: z(() => [
686
686
  R(E, { class: "inside_container" }, {
687
687
  default: z(() => [
688
- f(m).header && !c.horizontal ? (r(), v(a, {
688
+ r(h).header && !m.horizontal ? (s(), v(a, {
689
689
  key: 0,
690
690
  class: "inside_header",
691
- style: D("height: " + c.headerMaxHeight + "px;")
691
+ style: D("height: " + m.headerMaxHeight + "px;")
692
692
  }, {
693
693
  default: z(() => [
694
- H(c.$slots, "header", {}, void 0, !0)
694
+ H(m.$slots, "header", {}, void 0, !0)
695
695
  ]),
696
696
  _: 3
697
697
  }, 8, ["style"])) : b("", !0),
698
- f(m).aside && c.horizontal ? (r(), v(S, {
698
+ r(h).aside && m.horizontal ? (s(), v(S, {
699
699
  key: 1,
700
700
  class: "aside",
701
- style: D("width: " + c.asideWidth + "px;")
701
+ style: D("width: " + m.asideWidth + "px;")
702
702
  }, {
703
703
  default: z(() => [
704
- H(c.$slots, "aside", {}, void 0, !0)
704
+ H(m.$slots, "aside", {}, void 0, !0)
705
705
  ]),
706
706
  _: 3
707
707
  }, 8, ["style"])) : b("", !0),
708
708
  R(C, { class: "inside_main" }, {
709
709
  default: z(() => [
710
- H(c.$slots, "default", {}, void 0, !0)
710
+ H(m.$slots, "default", {}, void 0, !0)
711
711
  ]),
712
712
  _: 3
713
713
  })
@@ -761,8 +761,8 @@ 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-index", "page-size", "get-ref", "filter"],
764
- setup(d, { expose: m, emit: c }) {
765
- const s = d, S = c;
764
+ setup(u, { expose: h, emit: m }) {
765
+ const d = u, S = m;
766
766
  let a = De({
767
767
  pageIndex: 1,
768
768
  pageSize: 5
@@ -774,10 +774,10 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
774
774
  }, N = (l) => {
775
775
  S("selection-change", l);
776
776
  }, I = () => {
777
- if (s.tableColumn.length > 0)
778
- for (let l = 0; l < s.tableColumn.length; l++) {
779
- let h = s.tableColumn[l];
780
- a[h.prop] = null;
777
+ if (d.tableColumn.length > 0)
778
+ for (let l = 0; l < d.tableColumn.length; l++) {
779
+ let f = d.tableColumn[l];
780
+ a[f.prop] = null;
781
781
  }
782
782
  S("clear");
783
783
  }, x = () => {
@@ -787,63 +787,63 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
787
787
  }, Z = (l) => {
788
788
  S("delete", l);
789
789
  }, j = (l) => {
790
- for (let h = 0; h < l.length; h++)
791
- a[l[h].prop] = l[h].label;
790
+ for (let f = 0; f < l.length; f++)
791
+ a[l[f].prop] = l[f].label;
792
792
  }, ae = () => a, de = () => {
793
793
  g.value.forEach((l) => {
794
- var h = M.value.find((y) => y.label == l.label);
795
- h && h.filter && (l.hidden = !h.check, l.hidden && (a[l.prop] = null));
794
+ var f = M.value.find((y) => y.label == l.label);
795
+ f && f.filter && (l.hidden = !f.check, l.hidden && (a[l.prop] = null));
796
796
  }), U.value = !1, E.value.hide(), S("filter", () => M.value);
797
797
  }, i = (l) => {
798
- g.value = l, s.filter && (M.value = [], g.value.forEach((h) => {
799
- h.filter ? h.check ? M.value.push({
800
- label: h.label,
798
+ g.value = l, d.filter && (M.value = [], g.value.forEach((f) => {
799
+ f.filter ? f.check ? M.value.push({
800
+ label: f.label,
801
801
  check: !0,
802
- prop: h.prop,
803
- filter: h.filter
802
+ prop: f.prop,
803
+ filter: f.filter
804
804
  }) : (M.value.push({
805
- label: h.label,
805
+ label: f.label,
806
806
  check: !1,
807
- prop: h.prop,
808
- filter: h.filter
809
- }), h.hidden = !0) : M.value.push({
810
- label: h.label,
807
+ prop: f.prop,
808
+ filter: f.filter
809
+ }), f.hidden = !0) : M.value.push({
810
+ label: f.label,
811
811
  check: !0,
812
- prop: h.prop,
813
- filter: h.filter
812
+ prop: f.prop,
813
+ filter: f.filter
814
814
  });
815
- })), g.value.forEach((h) => {
816
- var y = M.value.find((K) => K.label == h.label);
817
- y && y.filter && (h.hidden = !y.check, h.hidden && (a[h.prop] = null)), y != null && y.filter || (h.hidden = !1);
815
+ })), g.value.forEach((f) => {
816
+ var y = M.value.find((K) => K.label == f.label);
817
+ y && y.filter && (f.hidden = !y.check, f.hidden && (a[f.prop] = null)), y != null && y.filter || (f.hidden = !1);
818
818
  });
819
819
  };
820
820
  return te(
821
821
  () => a.pageIndex,
822
- (l, h) => {
823
- S("page-index", Number(l), Number(h));
822
+ (l, f) => {
823
+ S("page-index", Number(l), Number(f));
824
824
  }
825
825
  ), te(
826
826
  () => a.pageSize,
827
- (l, h) => {
828
- S("page-size", Number(l), Number(h));
827
+ (l, f) => {
828
+ S("page-size", Number(l), Number(f));
829
829
  }
830
- ), m({
830
+ ), h({
831
831
  Assignment: j,
832
832
  GetParameters: ae,
833
833
  SetFilter: i
834
834
  }), ce(() => {
835
- if (s.tableColumn.length > 0)
836
- for (let l = 0; l < s.tableColumn.length; l++) {
837
- let h = s.tableColumn[l];
838
- a[h.prop] = null;
835
+ if (d.tableColumn.length > 0)
836
+ for (let l = 0; l < d.tableColumn.length; l++) {
837
+ let f = d.tableColumn[l];
838
+ a[f.prop] = null;
839
839
  }
840
- s.tableData.forEach((l) => {
841
- s.defaultSelect && s.type == "selection" && s.defaultSelect(l) && C.value.toggleRowSelection(l, void 0, !1);
842
- }), a.pageSize = s.defaultSize, s.filter || (g.value = s.tableColumn);
843
- }), (l, h) => {
840
+ d.tableData.forEach((l) => {
841
+ d.defaultSelect && d.type == "selection" && d.defaultSelect(l) && C.value.toggleRowSelection(l, void 0, !1);
842
+ }), a.pageSize = d.defaultSize, d.filter || (g.value = d.tableColumn);
843
+ }), (l, f) => {
844
844
  const y = k("el-table-column"), K = k("el-input"), me = k("el-input-number"), he = k("el-option"), fe = k("el-select"), ee = k("el-date-picker"), pe = k("el-time-picker"), ne = k("el-switch"), J = k("el-button"), _e = k("el-icon"), ve = k("el-checkbox"), ue = k("el-popover"), ye = k("el-popconfirm"), ge = k("el-table"), ze = k("el-pagination");
845
- return r(), P(Q, null, [
846
- f(L).header ? (r(), P("div", Cl, [
845
+ return s(), P(Q, null, [
846
+ r(L).header ? (s(), P("div", Cl, [
847
847
  H(l.$slots, "header", {}, void 0, !0)
848
848
  ])) : b("", !0),
849
849
  R(ge, {
@@ -862,7 +862,7 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
862
862
  "header-cell-style": l.headStyle
863
863
  }, {
864
864
  default: z(() => [
865
- l.type && l.type == "index" ? (r(), v(y, {
865
+ l.type && l.type == "index" ? (s(), v(y, {
866
866
  key: 0,
867
867
  align: "center",
868
868
  type: "index",
@@ -870,14 +870,14 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
870
870
  fixed: l.typeIsFixed ? "left" : !1,
871
871
  label: l.typeLabel
872
872
  }, null, 8, ["width", "fixed", "label"])) : b("", !0),
873
- l.type == "selection" ? (r(), v(y, {
873
+ l.type == "selection" ? (s(), v(y, {
874
874
  key: 1,
875
875
  align: "center",
876
876
  type: "selection",
877
877
  width: l.typeWidth + "px",
878
878
  fixed: l.typeIsFixed ? "left" : !1
879
879
  }, null, 8, ["width", "fixed"])) : b("", !0),
880
- l.type == "expand" ? (r(), v(y, {
880
+ l.type == "expand" ? (s(), v(y, {
881
881
  key: 2,
882
882
  align: "center",
883
883
  type: "expand",
@@ -892,8 +892,8 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
892
892
  ]),
893
893
  _: 3
894
894
  }, 8, ["width", "fixed", "label"])) : b("", !0),
895
- (r(!0), P(Q, null, ie(g.value, (e) => (r(), P(Q, null, [
896
- e.hidden ? b("", !0) : (r(), v(y, {
895
+ (s(!0), P(Q, null, ie(g.value, (e) => (s(), P(Q, null, [
896
+ e.hidden ? b("", !0) : (s(), v(y, {
897
897
  key: 0,
898
898
  prop: e.costom ? !1 : e.prop,
899
899
  width: e.width ? e.width : "",
@@ -904,10 +904,10 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
904
904
  }, Be({
905
905
  header: z(() => [
906
906
  B("div", Ml, re(e.label), 1),
907
- e.search && (!e.type || e.type == "text") ? (r(), v(K, {
907
+ e.search && (!e.type || e.type == "text") ? (s(), v(K, {
908
908
  key: 0,
909
- modelValue: f(a)[e.prop],
910
- "onUpdate:modelValue": (w) => f(a)[e.prop] = w,
909
+ modelValue: r(a)[e.prop],
910
+ "onUpdate:modelValue": (w) => r(a)[e.prop] = w,
911
911
  size: e.size,
912
912
  clearable: "",
913
913
  style: D(
@@ -918,10 +918,10 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
918
918
  class: Y([e.align && e.align == "center" ? "center" : ""]),
919
919
  onKeyup: ke(x, ["enter", "native"])
920
920
  }, null, 8, ["modelValue", "onUpdate:modelValue", "size", "style", "disabled", "placeholder", "class"])) : b("", !0),
921
- e.search && e.type == "number" ? (r(), v(me, {
921
+ e.search && e.type == "number" ? (s(), v(me, {
922
922
  key: 1,
923
- modelValue: f(a)[e.prop],
924
- "onUpdate:modelValue": (w) => f(a)[e.prop] = w,
923
+ modelValue: r(a)[e.prop],
924
+ "onUpdate:modelValue": (w) => r(a)[e.prop] = w,
925
925
  size: e.size,
926
926
  clearable: "",
927
927
  style: D(
@@ -935,10 +935,10 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
935
935
  step: e.step != null ? e.step : 1,
936
936
  onKeyup: ke(x, ["enter", "native"])
937
937
  }, null, 8, ["modelValue", "onUpdate:modelValue", "size", "style", "disabled", "placeholder", "class", "max", "min", "step"])) : b("", !0),
938
- e.search && e.type == "select" ? (r(), v(fe, {
938
+ e.search && e.type == "select" ? (s(), v(fe, {
939
939
  key: 2,
940
- modelValue: f(a)[e.prop],
941
- "onUpdate:modelValue": (w) => f(a)[e.prop] = w,
940
+ modelValue: r(a)[e.prop],
941
+ "onUpdate:modelValue": (w) => r(a)[e.prop] = w,
942
942
  size: e.size,
943
943
  clearable: "",
944
944
  filterable: "",
@@ -952,7 +952,7 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
952
952
  class: Y([e.align && e.align == "center" ? "center" : ""])
953
953
  }, {
954
954
  default: z(() => [
955
- (r(!0), P(Q, null, ie(e.options, (w) => (r(), v(he, {
955
+ (s(!0), P(Q, null, ie(e.options, (w) => (s(), v(he, {
956
956
  label: w.label ? w.label : w.value,
957
957
  value: w.value,
958
958
  disabled: w.disabled
@@ -960,20 +960,20 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
960
960
  ]),
961
961
  _: 2
962
962
  }, 1032, ["modelValue", "onUpdate:modelValue", "size", "style", "disabled", "multiple", "collapse-tags", "placeholder", "class"])) : b("", !0),
963
- e.search && e.type == "date" ? (r(), v(ee, {
963
+ e.search && e.type == "date" ? (s(), v(ee, {
964
964
  key: 3,
965
- modelValue: f(a)[e.prop],
966
- "onUpdate:modelValue": (w) => f(a)[e.prop] = w,
965
+ modelValue: r(a)[e.prop],
966
+ "onUpdate:modelValue": (w) => r(a)[e.prop] = w,
967
967
  type: "date",
968
968
  style: D(e.searchWidth ? "width: " + e.searchWidth + "px;" : ""),
969
969
  placeholder: e.placeholder ? e.placeholder : "请选择日期",
970
970
  size: e.size,
971
971
  class: Y([e.align && e.align == "center" ? "center" : ""])
972
972
  }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder", "size", "class"])) : b("", !0),
973
- e.search && e.type == "time" ? (r(), v(pe, {
973
+ e.search && e.type == "time" ? (s(), v(pe, {
974
974
  key: 4,
975
- modelValue: f(a)[e.prop],
976
- "onUpdate:modelValue": (w) => f(a)[e.prop] = w,
975
+ modelValue: r(a)[e.prop],
976
+ "onUpdate:modelValue": (w) => r(a)[e.prop] = w,
977
977
  "arrow-control": "",
978
978
  style: D(
979
979
  e.searchWidth ? "width: " + e.searchWidth + "px;" : "width: 92%"
@@ -982,10 +982,10 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
982
982
  size: e.size,
983
983
  class: Y([e.align && e.align == "center" ? "center" : ""])
984
984
  }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder", "size", "class"])) : b("", !0),
985
- e.search && e.type == "datetime" ? (r(), v(ee, {
985
+ e.search && e.type == "datetime" ? (s(), v(ee, {
986
986
  key: 5,
987
- modelValue: f(a)[e.prop],
988
- "onUpdate:modelValue": (w) => f(a)[e.prop] = w,
987
+ modelValue: r(a)[e.prop],
988
+ "onUpdate:modelValue": (w) => r(a)[e.prop] = w,
989
989
  type: "datetime",
990
990
  style: D(
991
991
  e.searchWidth ? "width: " + e.searchWidth + "px;" : "width: 92%"
@@ -994,10 +994,10 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
994
994
  size: e.size,
995
995
  class: Y([e.align && e.align == "center" ? "center" : ""])
996
996
  }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder", "size", "class"])) : b("", !0),
997
- e.search && e.type == "daterange" ? (r(), v(ee, {
997
+ e.search && e.type == "daterange" ? (s(), v(ee, {
998
998
  key: 6,
999
- modelValue: f(a)[e.prop],
1000
- "onUpdate:modelValue": (w) => f(a)[e.prop] = w,
999
+ modelValue: r(a)[e.prop],
1000
+ "onUpdate:modelValue": (w) => r(a)[e.prop] = w,
1001
1001
  type: "daterange",
1002
1002
  "range-separator": "-",
1003
1003
  "start-placeholder": e.placeholder ? e.placeholder.split("&&")[0] : "请选择开始日期",
@@ -1008,10 +1008,10 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
1008
1008
  size: e.size,
1009
1009
  class: Y([e.align && e.align == "center" ? "center" : ""])
1010
1010
  }, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "style", "size", "class"])) : b("", !0),
1011
- e.search && e.type == "timerange" ? (r(), v(pe, {
1011
+ e.search && e.type == "timerange" ? (s(), v(pe, {
1012
1012
  key: 7,
1013
- modelValue: f(a)[e.prop],
1014
- "onUpdate:modelValue": (w) => f(a)[e.prop] = w,
1013
+ modelValue: r(a)[e.prop],
1014
+ "onUpdate:modelValue": (w) => r(a)[e.prop] = w,
1015
1015
  "is-range": "",
1016
1016
  "arrow-control": "",
1017
1017
  "range-separator": "-",
@@ -1023,10 +1023,10 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
1023
1023
  size: e.size,
1024
1024
  class: Y([e.align && e.align == "center" ? "center" : ""])
1025
1025
  }, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "style", "size", "class"])) : b("", !0),
1026
- e.search && e.type == "datetimerange" ? (r(), v(ee, {
1026
+ e.search && e.type == "datetimerange" ? (s(), v(ee, {
1027
1027
  key: 8,
1028
- modelValue: f(a)[e.prop],
1029
- "onUpdate:modelValue": (w) => f(a)[e.prop] = w,
1028
+ modelValue: r(a)[e.prop],
1029
+ "onUpdate:modelValue": (w) => r(a)[e.prop] = w,
1030
1030
  type: "datetimerange",
1031
1031
  "range-separator": "-",
1032
1032
  "start-placeholder": e.placeholder ? e.placeholder.split("&&")[0] : "请选择开始日期时间",
@@ -1037,10 +1037,10 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
1037
1037
  size: e.size,
1038
1038
  class: Y([e.align && e.align == "center" ? "center" : ""])
1039
1039
  }, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "style", "size", "class"])) : b("", !0),
1040
- e.search && e.type == "switch" ? (r(), v(ne, {
1040
+ e.search && e.type == "switch" ? (s(), v(ne, {
1041
1041
  key: 9,
1042
- modelValue: f(a)[e.prop],
1043
- "onUpdate:modelValue": (w) => f(a)[e.prop] = w,
1042
+ modelValue: r(a)[e.prop],
1043
+ "onUpdate:modelValue": (w) => r(a)[e.prop] = w,
1044
1044
  size: e.size,
1045
1045
  "active-text": e.openText,
1046
1046
  "inactive-text": e.closeText,
@@ -1061,7 +1061,7 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
1061
1061
  e.component ? {
1062
1062
  name: "default",
1063
1063
  fn: z((w) => [
1064
- (r(), v(Ue(e.component), {
1064
+ (s(), v(Ue(e.component), {
1065
1065
  data: w == null ? void 0 : w.row
1066
1066
  }, null, 8, ["data"]))
1067
1067
  ]),
@@ -1069,7 +1069,7 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
1069
1069
  } : void 0
1070
1070
  ]), 1032, ["prop", "width", "min-width", "fixed", "align", "show-overflow-tooltip"]))
1071
1071
  ], 64))), 256)),
1072
- l.operate ? (r(), v(y, {
1072
+ l.operate ? (s(), v(y, {
1073
1073
  key: 3,
1074
1074
  align: "center",
1075
1075
  width: l.operateWidth ? l.operateWidth : "",
@@ -1078,35 +1078,35 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
1078
1078
  header: z(() => [
1079
1079
  B("div", Ul, re(l.operateLabel), 1),
1080
1080
  H(l.$slots, "operate-front", {}, void 0, !0),
1081
- l.search ? (r(), v(J, {
1081
+ l.search ? (s(), v(J, {
1082
1082
  key: 0,
1083
1083
  type: "primary",
1084
1084
  size: l.operateSize,
1085
- icon: f(pl),
1085
+ icon: r(pl),
1086
1086
  onClick: x
1087
1087
  }, {
1088
- default: z(() => h[3] || (h[3] = [
1088
+ default: z(() => f[3] || (f[3] = [
1089
1089
  G("搜索")
1090
1090
  ])),
1091
1091
  _: 1,
1092
1092
  __: [3]
1093
1093
  }, 8, ["size", "icon"])) : b("", !0),
1094
1094
  H(l.$slots, "operate-middle", {}, void 0, !0),
1095
- l.clear ? (r(), v(J, {
1095
+ l.clear ? (s(), v(J, {
1096
1096
  key: 1,
1097
1097
  type: "info",
1098
1098
  size: l.operateSize,
1099
- icon: f(Je),
1099
+ icon: r(Je),
1100
1100
  onClick: I
1101
1101
  }, {
1102
- default: z(() => h[4] || (h[4] = [
1102
+ default: z(() => f[4] || (f[4] = [
1103
1103
  G("清空")
1104
1104
  ])),
1105
1105
  _: 1,
1106
1106
  __: [4]
1107
1107
  }, 8, ["size", "icon"])) : b("", !0),
1108
1108
  H(l.$slots, "operate", {}, void 0, !0),
1109
- l.filter ? (r(), v(ue, {
1109
+ l.filter ? (s(), v(ue, {
1110
1110
  key: 2,
1111
1111
  ref_key: "popover",
1112
1112
  ref: E,
@@ -1118,21 +1118,21 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
1118
1118
  R(J, {
1119
1119
  type: "link",
1120
1120
  size: l.operateSize,
1121
- icon: f(Ce),
1122
- onClick: h[0] || (h[0] = (e) => U.value = !U.value)
1121
+ icon: r(Ce),
1122
+ onClick: f[0] || (f[0] = (e) => U.value = !U.value)
1123
1123
  }, null, 8, ["size", "icon"])
1124
1124
  ]),
1125
1125
  default: z(() => [
1126
1126
  B("h4", null, [
1127
1127
  R(_e, null, {
1128
1128
  default: z(() => [
1129
- R(f(Ce))
1129
+ R(r(Ce))
1130
1130
  ]),
1131
1131
  _: 1
1132
1132
  }),
1133
- h[5] || (h[5] = G(" 显示字段筛选 "))
1133
+ f[5] || (f[5] = G(" 显示字段筛选 "))
1134
1134
  ]),
1135
- (r(!0), P(Q, null, ie(M.value, (e) => (r(), P("p", null, [
1135
+ (s(!0), P(Q, null, ie(M.value, (e) => (s(), P("p", null, [
1136
1136
  R(ve, {
1137
1137
  modelValue: e.check,
1138
1138
  "onUpdate:modelValue": (w) => e.check = w,
@@ -1148,7 +1148,7 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
1148
1148
  style: { "margin-top": "10px", "margin-left": "5px" },
1149
1149
  onClick: de
1150
1150
  }, {
1151
- default: z(() => h[6] || (h[6] = [
1151
+ default: z(() => f[6] || (f[6] = [
1152
1152
  G("确认")
1153
1153
  ])),
1154
1154
  _: 1,
@@ -1162,15 +1162,15 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
1162
1162
  H(l.$slots, "row-operate-front", {
1163
1163
  row: e == null ? void 0 : e.row
1164
1164
  }, void 0, !0),
1165
- l.edit ? (r(), v(J, {
1165
+ l.edit ? (s(), v(J, {
1166
1166
  key: 0,
1167
1167
  link: "",
1168
1168
  type: "primary",
1169
1169
  size: l.rowButtonSize,
1170
- icon: f(al),
1170
+ icon: r(al),
1171
1171
  onClick: (w) => A(e == null ? void 0 : e.row)
1172
1172
  }, {
1173
- default: z(() => h[7] || (h[7] = [
1173
+ default: z(() => f[7] || (f[7] = [
1174
1174
  G("修改")
1175
1175
  ])),
1176
1176
  _: 2,
@@ -1179,13 +1179,13 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
1179
1179
  H(l.$slots, "row-operate-middle", {
1180
1180
  row: e == null ? void 0 : e.row
1181
1181
  }, void 0, !0),
1182
- l.delete ? (r(), v(ye, {
1182
+ l.delete ? (s(), v(ye, {
1183
1183
  key: 1,
1184
1184
  "confirm-button-text": "否",
1185
1185
  "cancel-button-text": "是",
1186
1186
  "confirm-button-type": "text",
1187
1187
  "cancel-button-type": "danger",
1188
- icon: f(je),
1188
+ icon: r(je),
1189
1189
  width: "auto",
1190
1190
  onCancel: (w) => Z(e == null ? void 0 : e.row),
1191
1191
  title: l.deleteTitle ? l.deleteTitle : "是否要删除当前行?"
@@ -1195,9 +1195,9 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
1195
1195
  link: "",
1196
1196
  type: "danger",
1197
1197
  size: l.rowButtonSize,
1198
- icon: f(ll)
1198
+ icon: r(ll)
1199
1199
  }, {
1200
- default: z(() => h[8] || (h[8] = [
1200
+ default: z(() => f[8] || (f[8] = [
1201
1201
  G("删除")
1202
1202
  ])),
1203
1203
  _: 1,
@@ -1216,12 +1216,12 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
1216
1216
  _: 3
1217
1217
  }, 8, ["data", "class", "max-height", "size", "stripe", "border", "highlight-current-row", "header-cell-style"]),
1218
1218
  B("div", Bl, [
1219
- l.pagination ? (r(), v(ze, {
1219
+ l.pagination ? (s(), v(ze, {
1220
1220
  key: 0,
1221
- "current-page": f(a).pageIndex,
1222
- "onUpdate:currentPage": h[1] || (h[1] = (e) => f(a).pageIndex = e),
1223
- "page-size": f(a).pageSize,
1224
- "onUpdate:pageSize": h[2] || (h[2] = (e) => f(a).pageSize = e),
1221
+ "current-page": r(a).pageIndex,
1222
+ "onUpdate:currentPage": f[1] || (f[1] = (e) => r(a).pageIndex = e),
1223
+ "page-size": r(a).pageSize,
1224
+ "onUpdate:pageSize": f[2] || (f[2] = (e) => r(a).pageSize = e),
1225
1225
  small: l.small,
1226
1226
  "hide-on-Single-page": l.hideOnSinglePage,
1227
1227
  background: "",
@@ -1254,19 +1254,21 @@ const El = /* @__PURE__ */ se(Ll, [["__scopeId", "data-v-b417a1fd"]]), $l = { cl
1254
1254
  formModifiers: {}
1255
1255
  }),
1256
1256
  emits: /* @__PURE__ */ Se(["close", "submit"], ["update:form"]),
1257
- setup(d, { emit: m }) {
1258
- const c = m, s = Ne(d, "form"), S = T(!1), a = T();
1257
+ setup(u, { emit: h }) {
1258
+ const m = h;
1259
+ let d = Ne(u, "form");
1260
+ const S = T(!1), a = T();
1259
1261
  function C() {
1260
- c("close");
1262
+ m("close");
1261
1263
  }
1262
1264
  function E() {
1263
1265
  a.value.validate((g) => {
1264
- g && c("submit");
1266
+ g && m("submit");
1265
1267
  });
1266
1268
  }
1267
1269
  return (g, M) => {
1268
1270
  const U = k("el-icon"), L = k("el-input"), $ = k("el-input-number"), W = k("el-option"), N = k("el-select"), I = k("el-date-picker"), x = k("el-time-picker"), A = k("el-switch"), Z = k("el-form-item"), j = k("el-form"), ae = k("el-button"), de = k("el-dialog");
1269
- return r(), P("div", $l, [
1271
+ return s(), P("div", $l, [
1270
1272
  R(de, {
1271
1273
  modelValue: Me,
1272
1274
  "onUpdate:modelValue": M[1] || (M[1] = (i) => Me = i),
@@ -1280,14 +1282,14 @@ const El = /* @__PURE__ */ se(Ll, [["__scopeId", "data-v-b417a1fd"]]), $l = { cl
1280
1282
  }, Be({
1281
1283
  header: z(() => [
1282
1284
  B("span", { innerHTML: g.title }, null, 8, Wl),
1283
- g.fullscreen ? (r(), v(U, {
1285
+ g.fullscreen ? (s(), v(U, {
1284
1286
  key: 0,
1285
1287
  class: "fullscreen",
1286
1288
  onClick: M[0] || (M[0] = (i) => S.value = !S.value)
1287
1289
  }, {
1288
1290
  default: z(() => [
1289
- S.value ? b("", !0) : (r(), v(f(rl), { key: 0 })),
1290
- S.value ? (r(), v(f(dl), { key: 1 })) : b("", !0)
1291
+ S.value ? b("", !0) : (s(), v(r(rl), { key: 0 })),
1292
+ S.value ? (s(), v(r(dl), { key: 1 })) : b("", !0)
1291
1293
  ]),
1292
1294
  _: 1
1293
1295
  })) : b("", !0)
@@ -1296,7 +1298,7 @@ const El = /* @__PURE__ */ se(Ll, [["__scopeId", "data-v-b417a1fd"]]), $l = { cl
1296
1298
  H(g.$slots, "header", {}, void 0, !0),
1297
1299
  B("div", Rl, [
1298
1300
  R(j, {
1299
- model: s.value,
1301
+ model: r(d),
1300
1302
  rules: g.rules,
1301
1303
  ref_key: "formRef",
1302
1304
  ref: a,
@@ -1305,27 +1307,27 @@ const El = /* @__PURE__ */ se(Ll, [["__scopeId", "data-v-b417a1fd"]]), $l = { cl
1305
1307
  size: g.formSize
1306
1308
  }, {
1307
1309
  default: z(() => [
1308
- (r(!0), P(Q, null, ie(s.value, (i, l, h) => (r(), v(Z, {
1309
- key: h,
1310
+ (s(!0), P(Q, null, ie(r(d), (i, l, f) => (s(), v(Z, {
1311
+ key: f,
1310
1312
  label: i.label,
1311
1313
  prop: l,
1312
1314
  style: D("width:" + (i.width ? i.width : "90%"))
1313
1315
  }, {
1314
1316
  default: z(() => [
1315
- !i.type || i.type == "text" ? (r(), v(L, {
1317
+ !i.type || i.type == "text" ? (s(), v(L, {
1316
1318
  key: 0,
1317
- modelValue: s.value[l].default,
1318
- "onUpdate:modelValue": (y) => s.value[l].default = y,
1319
+ modelValue: r(d)[l].default,
1320
+ "onUpdate:modelValue": (y) => r(d)[l].default = y,
1319
1321
  clearable: "",
1320
1322
  disabled: i.disabled,
1321
1323
  readonly: i.readonly,
1322
1324
  placeholder: i.placeholder ? i.placeholder : "请输入" + i.label,
1323
1325
  style: { width: "100%" }
1324
1326
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "readonly", "placeholder"])) : b("", !0),
1325
- i.type == "number" ? (r(), v($, {
1327
+ i.type == "number" ? (s(), v($, {
1326
1328
  key: 1,
1327
- modelValue: s.value[l].default,
1328
- "onUpdate:modelValue": (y) => s.value[l].default = y,
1329
+ modelValue: r(d)[l].default,
1330
+ "onUpdate:modelValue": (y) => r(d)[l].default = y,
1329
1331
  clearable: "",
1330
1332
  disabled: i.disabled,
1331
1333
  readonly: i.readonly,
@@ -1335,10 +1337,10 @@ const El = /* @__PURE__ */ se(Ll, [["__scopeId", "data-v-b417a1fd"]]), $l = { cl
1335
1337
  min: i.min != null ? i.min : -1 / 0,
1336
1338
  step: i.step != null ? i.step : 1
1337
1339
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "readonly", "placeholder", "max", "min", "step"])) : b("", !0),
1338
- i.type == "select" ? (r(), v(N, {
1340
+ i.type == "select" ? (s(), v(N, {
1339
1341
  key: 2,
1340
- modelValue: s.value[l].default,
1341
- "onUpdate:modelValue": (y) => s.value[l].default = y,
1342
+ modelValue: r(d)[l].default,
1343
+ "onUpdate:modelValue": (y) => r(d)[l].default = y,
1342
1344
  clearable: "",
1343
1345
  filterable: "",
1344
1346
  disabled: i.disabled,
@@ -1348,7 +1350,7 @@ const El = /* @__PURE__ */ se(Ll, [["__scopeId", "data-v-b417a1fd"]]), $l = { cl
1348
1350
  style: { width: "100%" }
1349
1351
  }, {
1350
1352
  default: z(() => [
1351
- (r(!0), P(Q, null, ie(i.options, (y) => (r(), v(W, {
1353
+ (s(!0), P(Q, null, ie(i.options, (y) => (s(), v(W, {
1352
1354
  label: y.label ? y.label : y.value,
1353
1355
  value: y.value,
1354
1356
  disabled: y.disabled
@@ -1356,40 +1358,40 @@ const El = /* @__PURE__ */ se(Ll, [["__scopeId", "data-v-b417a1fd"]]), $l = { cl
1356
1358
  ]),
1357
1359
  _: 2
1358
1360
  }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "multiple", "collapse-tags", "placeholder"])) : b("", !0),
1359
- i.type == "date" ? (r(), v(I, {
1361
+ i.type == "date" ? (s(), v(I, {
1360
1362
  key: 3,
1361
- modelValue: s.value[l].default,
1362
- "onUpdate:modelValue": (y) => s.value[l].default = y,
1363
+ modelValue: r(d)[l].default,
1364
+ "onUpdate:modelValue": (y) => r(d)[l].default = y,
1363
1365
  type: "date",
1364
1366
  placeholder: i.placeholder ? i.placeholder : "请选择日期",
1365
1367
  disabled: i.disabled,
1366
1368
  readonly: i.readonly,
1367
1369
  style: { width: "100%" }
1368
1370
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled", "readonly"])) : b("", !0),
1369
- i.type == "time" ? (r(), v(x, {
1371
+ i.type == "time" ? (s(), v(x, {
1370
1372
  key: 4,
1371
- modelValue: s.value[l].default,
1372
- "onUpdate:modelValue": (y) => s.value[l].default = y,
1373
+ modelValue: r(d)[l].default,
1374
+ "onUpdate:modelValue": (y) => r(d)[l].default = y,
1373
1375
  "arrow-control": "",
1374
1376
  placeholder: i.placeholder ? i.placeholder : "请选择时间",
1375
1377
  disabled: i.disabled,
1376
1378
  readonly: i.readonly,
1377
1379
  style: { width: "100%" }
1378
1380
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled", "readonly"])) : b("", !0),
1379
- i.type == "datetime" ? (r(), v(I, {
1381
+ i.type == "datetime" ? (s(), v(I, {
1380
1382
  key: 5,
1381
- modelValue: s.value[l].default,
1382
- "onUpdate:modelValue": (y) => s.value[l].default = y,
1383
+ modelValue: r(d)[l].default,
1384
+ "onUpdate:modelValue": (y) => r(d)[l].default = y,
1383
1385
  type: "datetime",
1384
1386
  placeholder: i.placeholder ? i.placeholder : "请选择日期时间",
1385
1387
  disabled: i.disabled,
1386
1388
  readonly: i.readonly,
1387
1389
  style: { width: "100%" }
1388
1390
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled", "readonly"])) : b("", !0),
1389
- i.type == "daterange" ? (r(), v(I, {
1391
+ i.type == "daterange" ? (s(), v(I, {
1390
1392
  key: 6,
1391
- modelValue: s.value[l].default,
1392
- "onUpdate:modelValue": (y) => s.value[l].default = y,
1393
+ modelValue: r(d)[l].default,
1394
+ "onUpdate:modelValue": (y) => r(d)[l].default = y,
1393
1395
  type: "daterange",
1394
1396
  "range-separator": "-",
1395
1397
  "start-placeholder": i.placeholder ? i.placeholder.split("&&")[0] : "请选择开始日期",
@@ -1398,10 +1400,10 @@ const El = /* @__PURE__ */ se(Ll, [["__scopeId", "data-v-b417a1fd"]]), $l = { cl
1398
1400
  readonly: i.readonly,
1399
1401
  style: { width: "100%" }
1400
1402
  }, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled", "readonly"])) : b("", !0),
1401
- i.type == "timerange" ? (r(), v(x, {
1403
+ i.type == "timerange" ? (s(), v(x, {
1402
1404
  key: 7,
1403
- modelValue: s.value[l].default,
1404
- "onUpdate:modelValue": (y) => s.value[l].default = y,
1405
+ modelValue: r(d)[l].default,
1406
+ "onUpdate:modelValue": (y) => r(d)[l].default = y,
1405
1407
  "is-range": "",
1406
1408
  "arrow-control": "",
1407
1409
  "range-separator": "-",
@@ -1411,10 +1413,10 @@ const El = /* @__PURE__ */ se(Ll, [["__scopeId", "data-v-b417a1fd"]]), $l = { cl
1411
1413
  readonly: i.readonly,
1412
1414
  style: { width: "100%" }
1413
1415
  }, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled", "readonly"])) : b("", !0),
1414
- i.type == "datetimerange" ? (r(), v(I, {
1416
+ i.type == "datetimerange" ? (s(), v(I, {
1415
1417
  key: 8,
1416
- modelValue: s.value[l].default,
1417
- "onUpdate:modelValue": (y) => s.value[l].default = y,
1418
+ modelValue: r(d)[l].default,
1419
+ "onUpdate:modelValue": (y) => r(d)[l].default = y,
1418
1420
  type: "datetimerange",
1419
1421
  "range-separator": "-",
1420
1422
  "start-placeholder": i.placeholder ? i.placeholder.split("&&")[0] : "请选择开始日期时间",
@@ -1423,10 +1425,10 @@ const El = /* @__PURE__ */ se(Ll, [["__scopeId", "data-v-b417a1fd"]]), $l = { cl
1423
1425
  readonly: i.readonly,
1424
1426
  style: { width: "100%" }
1425
1427
  }, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled", "readonly"])) : b("", !0),
1426
- i.type == "switch" ? (r(), v(A, {
1428
+ i.type == "switch" ? (s(), v(A, {
1427
1429
  key: 9,
1428
- modelValue: s.value[l].default,
1429
- "onUpdate:modelValue": (y) => s.value[l].default = y,
1430
+ modelValue: r(d)[l].default,
1431
+ "onUpdate:modelValue": (y) => r(d)[l].default = y,
1430
1432
  "active-text": i.openText,
1431
1433
  "inactive-text": i.closeText,
1432
1434
  disabled: i.disabled,
@@ -1449,7 +1451,7 @@ const El = /* @__PURE__ */ se(Ll, [["__scopeId", "data-v-b417a1fd"]]), $l = { cl
1449
1451
  R(ae, {
1450
1452
  type: "primary",
1451
1453
  size: g.buttonSize,
1452
- icon: f(Ke),
1454
+ icon: r(Ke),
1453
1455
  class: "btn",
1454
1456
  loading: g.loading,
1455
1457
  onClick: E
@@ -1462,7 +1464,7 @@ const El = /* @__PURE__ */ se(Ll, [["__scopeId", "data-v-b417a1fd"]]), $l = { cl
1462
1464
  R(ae, {
1463
1465
  type: "info",
1464
1466
  size: g.buttonSize,
1465
- icon: f(Le),
1467
+ icon: r(Le),
1466
1468
  class: "btn",
1467
1469
  onClick: C
1468
1470
  }, {
@@ -1480,13 +1482,13 @@ const El = /* @__PURE__ */ se(Ll, [["__scopeId", "data-v-b417a1fd"]]), $l = { cl
1480
1482
  };
1481
1483
  }
1482
1484
  });
1483
- const Il = /* @__PURE__ */ se(Fl, [["__scopeId", "data-v-98c59677"]]);
1484
- function Dl(d, m, c) {
1485
- return m.default == null || m.default.toString() == "" ? c(new Error(m.label + "不能为空")) : c();
1485
+ const Il = /* @__PURE__ */ se(Fl, [["__scopeId", "data-v-3385eac2"]]);
1486
+ function Dl(u, h, m) {
1487
+ return h.default == null || h.default.toString() == "" ? m(new Error(h.label + "不能为空")) : m();
1486
1488
  }
1487
1489
  const Nl = {
1488
- install: (d) => {
1489
- 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", Il);
1490
+ install: (u) => {
1491
+ u.component("SplitPanes", Ge), u.component("Pane", qe), u.component("UpLoadFile", gl), u.component("Layout", Sl), u.component("TableForm", El), u.component("UpLoadFiles", Vl), u.component("DvDialog", Il);
1490
1492
  }
1491
1493
  };
1492
1494
  export {