dld-vue-ui 2.0.5 → 2.0.7
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.
- package/dist/dld-vue-ui.js +214 -208
- package/dist/dld-vue-ui.umd.cjs +1 -1
- package/dist/packages/TableForm/index.vue.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dld-vue-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useSlots as be, ref as N, computed as X, watch as
|
|
1
|
+
import { useSlots as be, ref as N, computed as X, watch as ne, onBeforeUnmount as Me, onMounted as he, provide as ee, openBlock as r, createBlock as _, resolveDynamicComponent as Ue, inject as ae, getCurrentInstance as Re, createElementBlock as M, unref as s, normalizeStyle as H, renderSlot as F, nextTick as we, h as We, defineComponent as W, withCtx as z, createElementVNode as U, resolveComponent as x, createVNode as R, createTextVNode as G, withDirectives as Fe, vShow as He, toDisplayString as ie, Fragment as Q, renderList as oe, createCommentVNode as v, reactive as Te, normalizeClass as K, createSlots as Be, withKeys as Se, mergeModels as ke, useModel as De, isRef as Ce } from "vue";
|
|
2
2
|
const Ne = {
|
|
3
3
|
__name: "splitpanes",
|
|
4
4
|
props: {
|
|
@@ -19,8 +19,8 @@ const Ne = {
|
|
|
19
19
|
"pane-remove",
|
|
20
20
|
"splitter-click"
|
|
21
21
|
],
|
|
22
|
-
setup(d, { emit:
|
|
23
|
-
const p =
|
|
22
|
+
setup(d, { emit: m }) {
|
|
23
|
+
const p = m, c = d, k = be(), l = N([]), w = X(() => l.value.reduce((t, e) => (t[~~e.id] = e) && t, {})), L = X(() => l.value.length), P = N(null), g = N(!1), S = N({
|
|
24
24
|
mouseDown: !1,
|
|
25
25
|
dragging: !1,
|
|
26
26
|
activeSplitter: null,
|
|
@@ -31,9 +31,9 @@ const Ne = {
|
|
|
31
31
|
splitter: null,
|
|
32
32
|
timeoutId: null
|
|
33
33
|
}), E = X(() => ({
|
|
34
|
-
[`splitpanes splitpanes--${
|
|
34
|
+
[`splitpanes splitpanes--${c.horizontal ? "horizontal" : "vertical"}`]: !0,
|
|
35
35
|
"splitpanes--dragging": S.value.dragging
|
|
36
|
-
})),
|
|
36
|
+
})), I = () => {
|
|
37
37
|
document.addEventListener("mousemove", y, { passive: !1 }), document.addEventListener("mouseup", A), "ontouchstart" in window && (document.addEventListener("touchmove", y, { passive: !1 }), document.addEventListener("touchend", A));
|
|
38
38
|
}, T = () => {
|
|
39
39
|
document.removeEventListener("mousemove", y, { passive: !1 }), document.removeEventListener("mouseup", A), "ontouchstart" in window && (document.removeEventListener("touchmove", y, { passive: !1 }), document.removeEventListener("touchend", A));
|
|
@@ -41,9 +41,9 @@ const Ne = {
|
|
|
41
41
|
const a = t.target.closest(".splitpanes__splitter");
|
|
42
42
|
if (a) {
|
|
43
43
|
const { left: i, top: u } = a.getBoundingClientRect(), { clientX: f, clientY: b } = "ontouchstart" in window && t.touches ? t.touches[0] : t;
|
|
44
|
-
S.value.cursorOffset =
|
|
44
|
+
S.value.cursorOffset = c.horizontal ? b - u : f - i;
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
I(), S.value.mouseDown = !0, S.value.activeSplitter = e;
|
|
47
47
|
}, y = (t) => {
|
|
48
48
|
S.value.mouseDown && (t.preventDefault(), S.value.dragging = !0, requestAnimationFrame(() => {
|
|
49
49
|
n(le(t)), p("resize", l.value.map((e) => ({ min: e.min, max: e.max, size: e.size })));
|
|
@@ -52,23 +52,23 @@ const Ne = {
|
|
|
52
52
|
S.value.dragging && p("resized", l.value.map((t) => ({ min: t.min, max: t.max, size: t.size }))), S.value.mouseDown = !1, setTimeout(() => {
|
|
53
53
|
S.value.dragging = !1, T();
|
|
54
54
|
}, 100);
|
|
55
|
-
}, Q = (t, e) => {
|
|
56
|
-
"ontouchstart" in window && (t.preventDefault(), m.dblClickSplitter && (B.value.splitter === e ? (clearTimeout(B.value.timeoutId), B.value.timeoutId = null, Z(t, e), B.value.splitter = null) : (B.value.splitter = e, B.value.timeoutId = setTimeout(() => B.value.splitter = null, 500)))), S.value.dragging || p("splitter-click", l.value[e]);
|
|
57
55
|
}, Z = (t, e) => {
|
|
56
|
+
"ontouchstart" in window && (t.preventDefault(), c.dblClickSplitter && (B.value.splitter === e ? (clearTimeout(B.value.timeoutId), B.value.timeoutId = null, j(t, e), B.value.splitter = null) : (B.value.splitter = e, B.value.timeoutId = setTimeout(() => B.value.splitter = null, 500)))), S.value.dragging || p("splitter-click", l.value[e]);
|
|
57
|
+
}, j = (t, e) => {
|
|
58
58
|
let a = 0;
|
|
59
59
|
l.value = l.value.map((i, u) => (i.size = u === e ? i.max : i.min, u !== e && (a += i.min), i)), l.value[e].size -= a, p("pane-maximize", l.value[e]), p("resized", l.value.map((i) => ({ min: i.min, max: i.max, size: i.size })));
|
|
60
|
-
},
|
|
60
|
+
}, re = (t, e) => {
|
|
61
61
|
p("pane-click", w.value[e]);
|
|
62
62
|
}, le = (t) => {
|
|
63
63
|
const e = P.value.getBoundingClientRect(), { clientX: a, clientY: i } = "ontouchstart" in window && t.touches ? t.touches[0] : t;
|
|
64
64
|
return {
|
|
65
|
-
x: a - (
|
|
66
|
-
y: i - (
|
|
65
|
+
x: a - (c.horizontal ? 0 : S.value.cursorOffset) - e.left,
|
|
66
|
+
y: i - (c.horizontal ? S.value.cursorOffset : 0) - e.top
|
|
67
67
|
};
|
|
68
|
-
},
|
|
69
|
-
t = t[
|
|
70
|
-
const e = P.value[
|
|
71
|
-
return
|
|
68
|
+
}, de = (t) => {
|
|
69
|
+
t = t[c.horizontal ? "y" : "x"];
|
|
70
|
+
const e = P.value[c.horizontal ? "clientHeight" : "clientWidth"];
|
|
71
|
+
return c.rtl && !c.horizontal && (t = e - t), t * 100 / e;
|
|
72
72
|
}, n = (t) => {
|
|
73
73
|
const e = S.value.activeSplitter;
|
|
74
74
|
let a = {
|
|
@@ -77,14 +77,14 @@ const Ne = {
|
|
|
77
77
|
prevReachedMinPanes: 0,
|
|
78
78
|
nextReachedMinPanes: 0
|
|
79
79
|
};
|
|
80
|
-
const i = 0 + (
|
|
80
|
+
const i = 0 + (c.pushOtherPanes ? 0 : a.prevPanesSize), u = 100 - (c.pushOtherPanes ? 0 : a.nextPanesSize), f = Math.max(Math.min(de(t), u), i);
|
|
81
81
|
let b = [e, e + 1], O = l.value[b[0]] || null, q = l.value[b[1]] || null;
|
|
82
82
|
const xe = O.max < 100 && f >= O.max + a.prevPanesSize, Ie = q.max < 100 && f <= 100 - (q.max + o(e + 1));
|
|
83
83
|
if (xe || Ie) {
|
|
84
84
|
xe ? (O.size = O.max, q.size = Math.max(100 - O.max - a.prevPanesSize - a.nextPanesSize, 0)) : (O.size = Math.max(100 - q.max - a.prevPanesSize - o(e + 1), 0), q.size = q.max);
|
|
85
85
|
return;
|
|
86
86
|
}
|
|
87
|
-
if (
|
|
87
|
+
if (c.pushOtherPanes) {
|
|
88
88
|
const Ve = C(a, f);
|
|
89
89
|
if (!Ve)
|
|
90
90
|
return;
|
|
@@ -97,12 +97,12 @@ const Ne = {
|
|
|
97
97
|
f > i[0] && f <= a && (u.size = u.min, t.prevReachedMinPanes += u.min);
|
|
98
98
|
}), t.prevPanesSize = V(i[0]), i[0] === void 0) ? (t.prevReachedMinPanes = 0, l.value[0].size = l.value[0].min, l.value.forEach((u, f) => {
|
|
99
99
|
f > 0 && f <= a && (u.size = u.min, t.prevReachedMinPanes += u.min);
|
|
100
|
-
}), l.value[i[1]].size = 100 - t.prevReachedMinPanes - l.value[0].min - t.prevPanesSize - t.nextPanesSize, null) : e > 100 - t.nextPanesSize - l.value[i[1]].min && (i[1] =
|
|
100
|
+
}), l.value[i[1]].size = 100 - t.prevReachedMinPanes - l.value[0].min - t.prevPanesSize - t.nextPanesSize, null) : e > 100 - t.nextPanesSize - l.value[i[1]].min && (i[1] = $(a).index, t.nextReachedMinPanes = 0, i[1] > a + 1 && l.value.forEach((u, f) => {
|
|
101
101
|
f > a && f < i[1] && (u.size = u.min, t.nextReachedMinPanes += u.min);
|
|
102
102
|
}), t.nextPanesSize = o(i[1] - 1), i[1] === void 0) ? (t.nextReachedMinPanes = 0, l.value.forEach((u, f) => {
|
|
103
103
|
f < L.value - 1 && f >= a + 1 && (u.size = u.min, t.nextReachedMinPanes += u.min);
|
|
104
104
|
}), l.value[i[0]].size = 100 - t.prevPanesSize - o(i[0] - 1), null) : { sums: t, panesToResize: i };
|
|
105
|
-
}, V = (t) => l.value.reduce((e, a, i) => e + (i < t ? a.size : 0), 0), o = (t) => l.value.reduce((e, a, i) => e + (i > t + 1 ? a.size : 0), 0), h = (t) => [...l.value].reverse().find((e) => e.index < t && e.size > e.min) || {},
|
|
105
|
+
}, V = (t) => l.value.reduce((e, a, i) => e + (i < t ? a.size : 0), 0), o = (t) => l.value.reduce((e, a, i) => e + (i > t + 1 ? a.size : 0), 0), h = (t) => [...l.value].reverse().find((e) => e.index < t && e.size > e.min) || {}, $ = (t) => l.value.find((e) => e.index > t + 1 && e.size > e.min) || {}, J = () => {
|
|
106
106
|
var t;
|
|
107
107
|
Array.from(((t = P.value) == null ? void 0 : t.children) || []).forEach((e) => {
|
|
108
108
|
const a = e.classList.contains("splitpanes__pane"), i = e.classList.contains("splitpanes__splitter");
|
|
@@ -110,7 +110,7 @@ const Ne = {
|
|
|
110
110
|
});
|
|
111
111
|
}, ce = (t, e, a = !1) => {
|
|
112
112
|
const i = t - 1, u = document.createElement("div");
|
|
113
|
-
u.classList.add("splitpanes__splitter"), a || (u.onmousedown = (f) => D(f, i), typeof window < "u" && "ontouchstart" in window && (u.ontouchstart = (f) => D(f, i)), u.onclick = (f) =>
|
|
113
|
+
u.classList.add("splitpanes__splitter"), a || (u.onmousedown = (f) => D(f, i), typeof window < "u" && "ontouchstart" in window && (u.ontouchstart = (f) => D(f, i)), u.onclick = (f) => Z(f, i + 1)), c.dblClickSplitter && (u.ondblclick = (f) => j(f, i + 1)), e.parentNode.insertBefore(u, e);
|
|
114
114
|
}, fe = (t) => {
|
|
115
115
|
t.onmousedown = void 0, t.onclick = void 0, t.ondblclick = void 0, t.remove();
|
|
116
116
|
}, Y = () => {
|
|
@@ -121,7 +121,7 @@ const Ne = {
|
|
|
121
121
|
});
|
|
122
122
|
let a = 0;
|
|
123
123
|
e.forEach((i) => {
|
|
124
|
-
i.className.includes("splitpanes__pane") && (!a &&
|
|
124
|
+
i.className.includes("splitpanes__pane") && (!a && c.firstSplitter ? ce(a, i, !0) : a && ce(a, i), a++);
|
|
125
125
|
});
|
|
126
126
|
}, _e = ({ uid: t, ...e }) => {
|
|
127
127
|
const a = w.value[t];
|
|
@@ -179,12 +179,12 @@ const Ne = {
|
|
|
179
179
|
g.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
|
|
180
180
|
});
|
|
181
181
|
};
|
|
182
|
-
|
|
182
|
+
ne(() => c.firstSplitter, () => Y()), ne(() => c.dblClickSplitter, (t) => {
|
|
183
183
|
[...P.value.querySelectorAll(".splitpanes__splitter")].forEach((e, a) => {
|
|
184
|
-
e.ondblclick = t ? (i) =>
|
|
184
|
+
e.ondblclick = t ? (i) => j(i, a) : void 0;
|
|
185
185
|
});
|
|
186
186
|
}), Me(() => g.value = !1), he(() => {
|
|
187
|
-
|
|
187
|
+
J(), Y(), ue(), p("ready"), g.value = !0;
|
|
188
188
|
});
|
|
189
189
|
const ye = () => {
|
|
190
190
|
var t;
|
|
@@ -194,7 +194,7 @@ const Ne = {
|
|
|
194
194
|
(t = k.default) == null ? void 0 : t.call(k)
|
|
195
195
|
);
|
|
196
196
|
};
|
|
197
|
-
return
|
|
197
|
+
return ee("panes", l), ee("indexedPanes", w), ee("horizontal", X(() => c.horizontal)), ee("requestUpdate", _e), ee("onPaneAdd", ve), ee("onPaneRemove", ze), ee("onPaneClick", re), (t, e) => (r(), _(Ue(ye)));
|
|
198
198
|
}
|
|
199
199
|
}, Oe = {
|
|
200
200
|
__name: "pane",
|
|
@@ -204,11 +204,11 @@ const Ne = {
|
|
|
204
204
|
maxSize: { type: [Number, String], default: 100 }
|
|
205
205
|
},
|
|
206
206
|
setup(d) {
|
|
207
|
-
var
|
|
208
|
-
const p = d,
|
|
207
|
+
var m;
|
|
208
|
+
const p = d, c = ae("requestUpdate"), k = ae("onPaneAdd"), l = ae("horizontal"), w = ae("onPaneRemove"), L = ae("onPaneClick"), P = (m = Re()) == null ? void 0 : m.uid, g = ae("indexedPanes"), S = X(() => g.value[P]), B = N(null), E = X(() => {
|
|
209
209
|
const y = isNaN(p.size) || p.size === void 0 ? 0 : parseFloat(p.size);
|
|
210
|
-
return Math.max(Math.min(y, T.value),
|
|
211
|
-
}),
|
|
210
|
+
return Math.max(Math.min(y, T.value), I.value);
|
|
211
|
+
}), I = X(() => {
|
|
212
212
|
const y = parseFloat(p.minSize);
|
|
213
213
|
return isNaN(y) ? 0 : y;
|
|
214
214
|
}), T = X(() => {
|
|
@@ -222,70 +222,70 @@ const Ne = {
|
|
|
222
222
|
k({
|
|
223
223
|
id: P,
|
|
224
224
|
el: B.value,
|
|
225
|
-
min:
|
|
225
|
+
min: I.value,
|
|
226
226
|
max: T.value,
|
|
227
227
|
// The given size (useful to know the user intention).
|
|
228
228
|
givenSize: p.size === void 0 ? null : E.value,
|
|
229
229
|
size: E.value
|
|
230
230
|
// The computed current size at any time.
|
|
231
231
|
});
|
|
232
|
-
}),
|
|
232
|
+
}), ne(() => E.value, (y) => c({ uid: P, size: y })), ne(() => I.value, (y) => c({ uid: P, min: y })), ne(() => T.value, (y) => c({ uid: P, max: y })), Me(() => w(P)), (y, A) => (r(), M("div", {
|
|
233
233
|
ref_key: "paneEl",
|
|
234
234
|
ref: B,
|
|
235
235
|
class: "splitpanes__pane",
|
|
236
|
-
onClick: A[0] || (A[0] = (
|
|
236
|
+
onClick: A[0] || (A[0] = (Z) => s(L)(Z, y._.uid)),
|
|
237
237
|
style: H(D.value)
|
|
238
238
|
}, [
|
|
239
|
-
|
|
239
|
+
F(y.$slots, "default")
|
|
240
240
|
], 4));
|
|
241
241
|
}
|
|
242
242
|
};
|
|
243
|
-
const Ae = /* @__PURE__ */
|
|
243
|
+
const Ae = /* @__PURE__ */ W({
|
|
244
244
|
__name: "index",
|
|
245
245
|
props: {
|
|
246
246
|
styles: { default: () => ({ width: "100%", height: "100%" }) },
|
|
247
247
|
horizontal: { type: Boolean, default: !1 }
|
|
248
248
|
},
|
|
249
249
|
setup(d) {
|
|
250
|
-
return (
|
|
251
|
-
horizontal:
|
|
252
|
-
style: H(
|
|
250
|
+
return (m, p) => (r(), _(s(Ne), {
|
|
251
|
+
horizontal: m.horizontal,
|
|
252
|
+
style: H(m.styles),
|
|
253
253
|
class: "splitpanes"
|
|
254
254
|
}, {
|
|
255
255
|
default: z(() => [
|
|
256
|
-
|
|
256
|
+
F(m.$slots, "default", {}, void 0, !0)
|
|
257
257
|
]),
|
|
258
258
|
_: 3
|
|
259
259
|
}, 8, ["horizontal", "style"]));
|
|
260
260
|
}
|
|
261
261
|
});
|
|
262
|
-
const
|
|
262
|
+
const se = (d, m) => {
|
|
263
263
|
const p = d.__vccOpts || d;
|
|
264
|
-
for (const [
|
|
265
|
-
p[
|
|
264
|
+
for (const [c, k] of m)
|
|
265
|
+
p[c] = k;
|
|
266
266
|
return p;
|
|
267
|
-
}, Ge = /* @__PURE__ */
|
|
267
|
+
}, Ge = /* @__PURE__ */ se(Ae, [["__scopeId", "data-v-15862e4c"]]), qe = /* @__PURE__ */ W({
|
|
268
268
|
__name: "pane",
|
|
269
269
|
props: {
|
|
270
270
|
styles: { default: () => ({ background: "#ececec" }) }
|
|
271
271
|
},
|
|
272
272
|
setup(d) {
|
|
273
|
-
return (
|
|
274
|
-
style: H(
|
|
273
|
+
return (m, p) => (r(), _(s(Oe), {
|
|
274
|
+
style: H(m.styles)
|
|
275
275
|
}, {
|
|
276
276
|
default: z(() => [
|
|
277
|
-
|
|
277
|
+
F(m.$slots, "default")
|
|
278
278
|
]),
|
|
279
279
|
_: 3
|
|
280
280
|
}, 8, ["style"]));
|
|
281
281
|
}
|
|
282
282
|
});
|
|
283
283
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
284
|
-
var Ke = /* @__PURE__ */
|
|
284
|
+
var Ke = /* @__PURE__ */ W({
|
|
285
285
|
name: "Check",
|
|
286
286
|
__name: "check",
|
|
287
287
|
setup(d) {
|
|
288
|
-
return (
|
|
288
|
+
return (m, p) => (r(), M("svg", {
|
|
289
289
|
xmlns: "http://www.w3.org/2000/svg",
|
|
290
290
|
viewBox: "0 0 1024 1024"
|
|
291
291
|
}, [
|
|
@@ -295,11 +295,11 @@ var Ke = /* @__PURE__ */ R({
|
|
|
295
295
|
})
|
|
296
296
|
]));
|
|
297
297
|
}
|
|
298
|
-
}), Ye = Ke, Xe = /* @__PURE__ */
|
|
298
|
+
}), Ye = Ke, Xe = /* @__PURE__ */ W({
|
|
299
299
|
name: "CircleClose",
|
|
300
300
|
__name: "circle-close",
|
|
301
301
|
setup(d) {
|
|
302
|
-
return (
|
|
302
|
+
return (m, p) => (r(), M("svg", {
|
|
303
303
|
xmlns: "http://www.w3.org/2000/svg",
|
|
304
304
|
viewBox: "0 0 1024 1024"
|
|
305
305
|
}, [
|
|
@@ -313,11 +313,11 @@ var Ke = /* @__PURE__ */ R({
|
|
|
313
313
|
})
|
|
314
314
|
]));
|
|
315
315
|
}
|
|
316
|
-
}), Je = Xe, Qe = /* @__PURE__ */
|
|
316
|
+
}), Je = Xe, Qe = /* @__PURE__ */ W({
|
|
317
317
|
name: "Close",
|
|
318
318
|
__name: "close",
|
|
319
319
|
setup(d) {
|
|
320
|
-
return (
|
|
320
|
+
return (m, p) => (r(), M("svg", {
|
|
321
321
|
xmlns: "http://www.w3.org/2000/svg",
|
|
322
322
|
viewBox: "0 0 1024 1024"
|
|
323
323
|
}, [
|
|
@@ -327,11 +327,11 @@ var Ke = /* @__PURE__ */ R({
|
|
|
327
327
|
})
|
|
328
328
|
]));
|
|
329
329
|
}
|
|
330
|
-
}), Le = Qe, Ze = /* @__PURE__ */
|
|
330
|
+
}), Le = Qe, Ze = /* @__PURE__ */ W({
|
|
331
331
|
name: "DeleteFilled",
|
|
332
332
|
__name: "delete-filled",
|
|
333
333
|
setup(d) {
|
|
334
|
-
return (
|
|
334
|
+
return (m, p) => (r(), M("svg", {
|
|
335
335
|
xmlns: "http://www.w3.org/2000/svg",
|
|
336
336
|
viewBox: "0 0 1024 1024"
|
|
337
337
|
}, [
|
|
@@ -341,11 +341,11 @@ var Ke = /* @__PURE__ */ R({
|
|
|
341
341
|
})
|
|
342
342
|
]));
|
|
343
343
|
}
|
|
344
|
-
}), je = Ze, el = /* @__PURE__ */
|
|
344
|
+
}), je = Ze, el = /* @__PURE__ */ W({
|
|
345
345
|
name: "Delete",
|
|
346
346
|
__name: "delete",
|
|
347
347
|
setup(d) {
|
|
348
|
-
return (
|
|
348
|
+
return (m, p) => (r(), M("svg", {
|
|
349
349
|
xmlns: "http://www.w3.org/2000/svg",
|
|
350
350
|
viewBox: "0 0 1024 1024"
|
|
351
351
|
}, [
|
|
@@ -355,11 +355,11 @@ var Ke = /* @__PURE__ */ R({
|
|
|
355
355
|
})
|
|
356
356
|
]));
|
|
357
357
|
}
|
|
358
|
-
}), ll = el, tl = /* @__PURE__ */
|
|
358
|
+
}), ll = el, tl = /* @__PURE__ */ W({
|
|
359
359
|
name: "Edit",
|
|
360
360
|
__name: "edit",
|
|
361
361
|
setup(d) {
|
|
362
|
-
return (
|
|
362
|
+
return (m, p) => (r(), M("svg", {
|
|
363
363
|
xmlns: "http://www.w3.org/2000/svg",
|
|
364
364
|
viewBox: "0 0 1024 1024"
|
|
365
365
|
}, [
|
|
@@ -373,11 +373,11 @@ var Ke = /* @__PURE__ */ R({
|
|
|
373
373
|
})
|
|
374
374
|
]));
|
|
375
375
|
}
|
|
376
|
-
}), al = tl, nl = /* @__PURE__ */
|
|
376
|
+
}), al = tl, nl = /* @__PURE__ */ W({
|
|
377
377
|
name: "Filter",
|
|
378
378
|
__name: "filter",
|
|
379
379
|
setup(d) {
|
|
380
|
-
return (
|
|
380
|
+
return (m, p) => (r(), M("svg", {
|
|
381
381
|
xmlns: "http://www.w3.org/2000/svg",
|
|
382
382
|
viewBox: "0 0 1024 1024"
|
|
383
383
|
}, [
|
|
@@ -387,11 +387,11 @@ var Ke = /* @__PURE__ */ R({
|
|
|
387
387
|
})
|
|
388
388
|
]));
|
|
389
389
|
}
|
|
390
|
-
}), Pe = nl, ol = /* @__PURE__ */
|
|
390
|
+
}), Pe = nl, ol = /* @__PURE__ */ W({
|
|
391
391
|
name: "FolderOpened",
|
|
392
392
|
__name: "folder-opened",
|
|
393
393
|
setup(d) {
|
|
394
|
-
return (
|
|
394
|
+
return (m, p) => (r(), M("svg", {
|
|
395
395
|
xmlns: "http://www.w3.org/2000/svg",
|
|
396
396
|
viewBox: "0 0 1024 1024"
|
|
397
397
|
}, [
|
|
@@ -401,11 +401,11 @@ var Ke = /* @__PURE__ */ R({
|
|
|
401
401
|
})
|
|
402
402
|
]));
|
|
403
403
|
}
|
|
404
|
-
}), Ee = ol, il = /* @__PURE__ */
|
|
404
|
+
}), Ee = ol, il = /* @__PURE__ */ W({
|
|
405
405
|
name: "FullScreen",
|
|
406
406
|
__name: "full-screen",
|
|
407
407
|
setup(d) {
|
|
408
|
-
return (
|
|
408
|
+
return (m, p) => (r(), M("svg", {
|
|
409
409
|
xmlns: "http://www.w3.org/2000/svg",
|
|
410
410
|
viewBox: "0 0 1024 1024"
|
|
411
411
|
}, [
|
|
@@ -415,11 +415,11 @@ var Ke = /* @__PURE__ */ R({
|
|
|
415
415
|
})
|
|
416
416
|
]));
|
|
417
417
|
}
|
|
418
|
-
}), sl = il, rl = /* @__PURE__ */
|
|
418
|
+
}), sl = il, rl = /* @__PURE__ */ W({
|
|
419
419
|
name: "Minus",
|
|
420
420
|
__name: "minus",
|
|
421
421
|
setup(d) {
|
|
422
|
-
return (
|
|
422
|
+
return (m, p) => (r(), M("svg", {
|
|
423
423
|
xmlns: "http://www.w3.org/2000/svg",
|
|
424
424
|
viewBox: "0 0 1024 1024"
|
|
425
425
|
}, [
|
|
@@ -429,11 +429,11 @@ var Ke = /* @__PURE__ */ R({
|
|
|
429
429
|
})
|
|
430
430
|
]));
|
|
431
431
|
}
|
|
432
|
-
}), dl = rl, ul = /* @__PURE__ */
|
|
432
|
+
}), dl = rl, ul = /* @__PURE__ */ W({
|
|
433
433
|
name: "Search",
|
|
434
434
|
__name: "search",
|
|
435
435
|
setup(d) {
|
|
436
|
-
return (
|
|
436
|
+
return (m, p) => (r(), M("svg", {
|
|
437
437
|
xmlns: "http://www.w3.org/2000/svg",
|
|
438
438
|
viewBox: "0 0 1024 1024"
|
|
439
439
|
}, [
|
|
@@ -443,11 +443,11 @@ var Ke = /* @__PURE__ */ R({
|
|
|
443
443
|
})
|
|
444
444
|
]));
|
|
445
445
|
}
|
|
446
|
-
}), pl = ul, cl = /* @__PURE__ */
|
|
446
|
+
}), pl = ul, cl = /* @__PURE__ */ W({
|
|
447
447
|
name: "Upload",
|
|
448
448
|
__name: "upload",
|
|
449
449
|
setup(d) {
|
|
450
|
-
return (
|
|
450
|
+
return (m, p) => (r(), M("svg", {
|
|
451
451
|
xmlns: "http://www.w3.org/2000/svg",
|
|
452
452
|
viewBox: "0 0 1024 1024"
|
|
453
453
|
}, [
|
|
@@ -460,28 +460,28 @@ var Ke = /* @__PURE__ */ R({
|
|
|
460
460
|
}), $e = cl, ml = (
|
|
461
461
|
/** @class */
|
|
462
462
|
function() {
|
|
463
|
-
function d(
|
|
464
|
-
if (!
|
|
463
|
+
function d(m) {
|
|
464
|
+
if (!m)
|
|
465
465
|
throw new TypeError("Invalid argument; `value` has no value.");
|
|
466
|
-
this.value = d.EMPTY,
|
|
466
|
+
this.value = d.EMPTY, m && d.isGuid(m) && (this.value = m);
|
|
467
467
|
}
|
|
468
|
-
return d.isGuid = function(
|
|
469
|
-
var p =
|
|
470
|
-
return
|
|
468
|
+
return d.isGuid = function(m) {
|
|
469
|
+
var p = m.toString();
|
|
470
|
+
return m && (m instanceof d || d.validator.test(p));
|
|
471
471
|
}, d.create = function() {
|
|
472
472
|
return new d([d.gen(2), d.gen(1), d.gen(1), d.gen(1), d.gen(3)].join("-"));
|
|
473
473
|
}, d.createEmpty = function() {
|
|
474
474
|
return new d("emptyguid");
|
|
475
|
-
}, d.parse = function(
|
|
476
|
-
return new d(
|
|
475
|
+
}, d.parse = function(m) {
|
|
476
|
+
return new d(m);
|
|
477
477
|
}, d.raw = function() {
|
|
478
478
|
return [d.gen(2), d.gen(1), d.gen(1), d.gen(1), d.gen(3)].join("-");
|
|
479
|
-
}, d.gen = function(
|
|
480
|
-
for (var p = "",
|
|
479
|
+
}, d.gen = function(m) {
|
|
480
|
+
for (var p = "", c = 0; c < m; c++)
|
|
481
481
|
p += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
482
482
|
return p;
|
|
483
|
-
}, d.prototype.equals = function(
|
|
484
|
-
return d.isGuid(
|
|
483
|
+
}, d.prototype.equals = function(m) {
|
|
484
|
+
return d.isGuid(m) && this.value === m.toString();
|
|
485
485
|
}, d.prototype.isEmpty = function() {
|
|
486
486
|
return this.value === d.EMPTY;
|
|
487
487
|
}, d.prototype.toString = function() {
|
|
@@ -493,7 +493,7 @@ var Ke = /* @__PURE__ */ R({
|
|
|
493
493
|
}, d.validator = new RegExp("^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$", "i"), d.EMPTY = "00000000-0000-0000-0000-000000000000", d;
|
|
494
494
|
}()
|
|
495
495
|
), hl = ml;
|
|
496
|
-
const fl = { style: {} }, _l = ["id", "accept"], vl = { class: "filename" }, zl = /* @__PURE__ */
|
|
496
|
+
const fl = { style: {} }, _l = ["id", "accept"], vl = { class: "filename" }, zl = /* @__PURE__ */ W({
|
|
497
497
|
__name: "index",
|
|
498
498
|
props: {
|
|
499
499
|
size: { default: "default" },
|
|
@@ -503,8 +503,8 @@ const fl = { style: {} }, _l = ["id", "accept"], vl = { class: "filename" }, zl
|
|
|
503
503
|
accept: { default: "*" }
|
|
504
504
|
},
|
|
505
505
|
emits: ["upload"],
|
|
506
|
-
setup(d, { expose:
|
|
507
|
-
const
|
|
506
|
+
setup(d, { expose: m, emit: p }) {
|
|
507
|
+
const c = p;
|
|
508
508
|
let k = hl.create().toString(), l, w = N("");
|
|
509
509
|
function L() {
|
|
510
510
|
l.click();
|
|
@@ -513,19 +513,19 @@ const fl = { style: {} }, _l = ["id", "accept"], vl = { class: "filename" }, zl
|
|
|
513
513
|
w.value = l.value;
|
|
514
514
|
}
|
|
515
515
|
function g() {
|
|
516
|
-
l.files !== null &&
|
|
516
|
+
l.files !== null && c("upload", l.files[0]);
|
|
517
517
|
}
|
|
518
518
|
function S() {
|
|
519
519
|
l.value = "", w.value = "";
|
|
520
520
|
}
|
|
521
521
|
return he(() => {
|
|
522
522
|
l = document.getElementById(k);
|
|
523
|
-
}),
|
|
523
|
+
}), m({
|
|
524
524
|
Clear: S
|
|
525
525
|
}), (B, E) => {
|
|
526
|
-
const
|
|
526
|
+
const I = x("el-button");
|
|
527
527
|
return r(), M("div", fl, [
|
|
528
|
-
I
|
|
528
|
+
R(I, {
|
|
529
529
|
type: B.type,
|
|
530
530
|
icon: s(Ee),
|
|
531
531
|
size: B.size,
|
|
@@ -546,8 +546,8 @@ const fl = { style: {} }, _l = ["id", "accept"], vl = { class: "filename" }, zl
|
|
|
546
546
|
}, null, 40, _l), [
|
|
547
547
|
[He, !1]
|
|
548
548
|
]),
|
|
549
|
-
U("span", vl,
|
|
550
|
-
I
|
|
549
|
+
U("span", vl, ie(s(w)), 1),
|
|
550
|
+
R(I, {
|
|
551
551
|
type: B.type,
|
|
552
552
|
icon: B.icon,
|
|
553
553
|
size: B.size,
|
|
@@ -557,7 +557,7 @@ const fl = { style: {} }, _l = ["id", "accept"], vl = { class: "filename" }, zl
|
|
|
557
557
|
onClick: g
|
|
558
558
|
}, {
|
|
559
559
|
default: z(() => [
|
|
560
|
-
G(
|
|
560
|
+
G(ie(B.name), 1)
|
|
561
561
|
]),
|
|
562
562
|
_: 1
|
|
563
563
|
}, 8, ["type", "icon", "size", "disabled", "title"])
|
|
@@ -565,23 +565,23 @@ const fl = { style: {} }, _l = ["id", "accept"], vl = { class: "filename" }, zl
|
|
|
565
565
|
};
|
|
566
566
|
}
|
|
567
567
|
});
|
|
568
|
-
const gl = /* @__PURE__ */
|
|
568
|
+
const gl = /* @__PURE__ */ se(zl, [["__scopeId", "data-v-d2ed1fe1"]]), yl = ["accept"], wl = { class: "filename" }, bl = { class: "content" }, xl = /* @__PURE__ */ W({
|
|
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:
|
|
576
|
-
const
|
|
575
|
+
setup(d, { expose: m, emit: p }) {
|
|
576
|
+
const c = d, k = p, l = N(), w = N([]);
|
|
577
577
|
function L() {
|
|
578
578
|
var E;
|
|
579
579
|
(E = l.value) == null || E.click();
|
|
580
580
|
}
|
|
581
581
|
function P() {
|
|
582
|
-
var E,
|
|
582
|
+
var E, I, T;
|
|
583
583
|
if (w.value = [], (E = l.value) != null && E.files)
|
|
584
|
-
for (let D = 0; D < ((T = (
|
|
584
|
+
for (let D = 0; D < ((T = (I = l.value) == null ? void 0 : I.files) == null ? void 0 : T.length); D++)
|
|
585
585
|
w.value[D] = l.value.files[D];
|
|
586
586
|
else
|
|
587
587
|
w.value = [];
|
|
@@ -595,9 +595,9 @@ const gl = /* @__PURE__ */ ie(zl, [["__scopeId", "data-v-d2ed1fe1"]]), yl = ["ac
|
|
|
595
595
|
function B() {
|
|
596
596
|
w.value = [];
|
|
597
597
|
}
|
|
598
|
-
return
|
|
598
|
+
return m({
|
|
599
599
|
Clear: B
|
|
600
|
-
}), (E,
|
|
600
|
+
}), (E, I) => {
|
|
601
601
|
const T = x("el-button");
|
|
602
602
|
return r(), M("div", null, [
|
|
603
603
|
U("input", {
|
|
@@ -607,36 +607,36 @@ const gl = /* @__PURE__ */ ie(zl, [["__scopeId", "data-v-d2ed1fe1"]]), yl = ["ac
|
|
|
607
607
|
multiple: "",
|
|
608
608
|
style: { display: "none" },
|
|
609
609
|
onChange: P,
|
|
610
|
-
accept:
|
|
610
|
+
accept: c.accept
|
|
611
611
|
}, null, 40, yl),
|
|
612
|
-
|
|
612
|
+
R(T, {
|
|
613
613
|
type: "success",
|
|
614
|
-
size:
|
|
614
|
+
size: c.size,
|
|
615
615
|
icon: s(Ee),
|
|
616
616
|
onClick: L
|
|
617
617
|
}, {
|
|
618
|
-
default: z(() =>
|
|
618
|
+
default: z(() => I[0] || (I[0] = [
|
|
619
619
|
G("选择文件")
|
|
620
620
|
])),
|
|
621
621
|
_: 1,
|
|
622
622
|
__: [0]
|
|
623
623
|
}, 8, ["size", "icon"]),
|
|
624
|
-
|
|
624
|
+
R(T, {
|
|
625
625
|
type: "success",
|
|
626
|
-
size:
|
|
626
|
+
size: c.size,
|
|
627
627
|
icon: s($e),
|
|
628
628
|
onClick: S,
|
|
629
629
|
disabled: w.value.length == 0
|
|
630
630
|
}, {
|
|
631
|
-
default: z(() =>
|
|
631
|
+
default: z(() => I[1] || (I[1] = [
|
|
632
632
|
G("上传文件")
|
|
633
633
|
])),
|
|
634
634
|
_: 1,
|
|
635
635
|
__: [1]
|
|
636
636
|
}, 8, ["size", "icon", "disabled"]),
|
|
637
|
-
(r(!0), M(
|
|
638
|
-
U("span", bl,
|
|
639
|
-
|
|
637
|
+
(r(!0), M(Q, null, oe(w.value, (D, y) => (r(), M("p", wl, [
|
|
638
|
+
U("span", bl, ie(D.name), 1),
|
|
639
|
+
R(T, {
|
|
640
640
|
size: "small",
|
|
641
641
|
icon: s(Le),
|
|
642
642
|
class: "operation",
|
|
@@ -648,7 +648,7 @@ const gl = /* @__PURE__ */ ie(zl, [["__scopeId", "data-v-d2ed1fe1"]]), yl = ["ac
|
|
|
648
648
|
};
|
|
649
649
|
}
|
|
650
650
|
});
|
|
651
|
-
const Vl = /* @__PURE__ */
|
|
651
|
+
const Vl = /* @__PURE__ */ se(xl, [["__scopeId", "data-v-fd9596c6"]]), Sl = /* @__PURE__ */ W({
|
|
652
652
|
__name: "index",
|
|
653
653
|
props: {
|
|
654
654
|
asideWidth: { default: 220 },
|
|
@@ -656,58 +656,58 @@ const Vl = /* @__PURE__ */ ie(xl, [["__scopeId", "data-v-fd9596c6"]]), Sl = /* @
|
|
|
656
656
|
horizontal: { type: Boolean, default: !1 }
|
|
657
657
|
},
|
|
658
658
|
setup(d) {
|
|
659
|
-
const
|
|
660
|
-
return (p,
|
|
659
|
+
const m = be();
|
|
660
|
+
return (p, c) => {
|
|
661
661
|
const k = x("el-aside"), l = x("el-header"), w = x("el-main"), L = x("el-container");
|
|
662
662
|
return r(), _(L, { class: "container" }, {
|
|
663
663
|
default: z(() => [
|
|
664
|
-
s(
|
|
664
|
+
s(m).aside && !p.horizontal ? (r(), _(k, {
|
|
665
665
|
key: 0,
|
|
666
666
|
class: "aside",
|
|
667
667
|
style: H("width: " + p.asideWidth + "px;")
|
|
668
668
|
}, {
|
|
669
669
|
default: z(() => [
|
|
670
|
-
|
|
670
|
+
F(p.$slots, "aside", {}, void 0, !0)
|
|
671
671
|
]),
|
|
672
672
|
_: 3
|
|
673
673
|
}, 8, ["style"])) : v("", !0),
|
|
674
|
-
s(
|
|
674
|
+
s(m).header && p.horizontal ? (r(), _(l, {
|
|
675
675
|
key: 1,
|
|
676
676
|
class: "inside_header",
|
|
677
677
|
style: H("height: " + p.headerMaxHeight + "px;")
|
|
678
678
|
}, {
|
|
679
679
|
default: z(() => [
|
|
680
|
-
|
|
680
|
+
F(p.$slots, "header", {}, void 0, !0)
|
|
681
681
|
]),
|
|
682
682
|
_: 3
|
|
683
683
|
}, 8, ["style"])) : v("", !0),
|
|
684
|
-
|
|
684
|
+
R(w, { class: "main" }, {
|
|
685
685
|
default: z(() => [
|
|
686
|
-
|
|
686
|
+
R(L, { class: "inside_container" }, {
|
|
687
687
|
default: z(() => [
|
|
688
|
-
s(
|
|
688
|
+
s(m).header && !p.horizontal ? (r(), _(l, {
|
|
689
689
|
key: 0,
|
|
690
690
|
class: "inside_header",
|
|
691
691
|
style: H("height: " + p.headerMaxHeight + "px;")
|
|
692
692
|
}, {
|
|
693
693
|
default: z(() => [
|
|
694
|
-
|
|
694
|
+
F(p.$slots, "header", {}, void 0, !0)
|
|
695
695
|
]),
|
|
696
696
|
_: 3
|
|
697
697
|
}, 8, ["style"])) : v("", !0),
|
|
698
|
-
s(
|
|
698
|
+
s(m).aside && p.horizontal ? (r(), _(k, {
|
|
699
699
|
key: 1,
|
|
700
700
|
class: "aside",
|
|
701
701
|
style: H("width: " + p.asideWidth + "px;")
|
|
702
702
|
}, {
|
|
703
703
|
default: z(() => [
|
|
704
|
-
|
|
704
|
+
F(p.$slots, "aside", {}, void 0, !0)
|
|
705
705
|
]),
|
|
706
706
|
_: 3
|
|
707
707
|
}, 8, ["style"])) : v("", !0),
|
|
708
|
-
|
|
708
|
+
R(w, { class: "inside_main" }, {
|
|
709
709
|
default: z(() => [
|
|
710
|
-
|
|
710
|
+
F(p.$slots, "default", {}, void 0, !0)
|
|
711
711
|
]),
|
|
712
712
|
_: 3
|
|
713
713
|
})
|
|
@@ -723,10 +723,10 @@ const Vl = /* @__PURE__ */ ie(xl, [["__scopeId", "data-v-fd9596c6"]]), Sl = /* @
|
|
|
723
723
|
};
|
|
724
724
|
}
|
|
725
725
|
});
|
|
726
|
-
const kl = /* @__PURE__ */
|
|
726
|
+
const kl = /* @__PURE__ */ se(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
727
727
|
key: 0,
|
|
728
728
|
class: "header"
|
|
729
|
-
}, Pl = { class: "header_title" }, Ml = ["innerHTML"], Ul = { class: "header_title" }, Bl = { class: "pagination" }, Ll = /* @__PURE__ */
|
|
729
|
+
}, Pl = { class: "header_title" }, Ml = ["innerHTML"], Ul = { class: "header_title" }, Bl = { class: "pagination" }, Ll = /* @__PURE__ */ W({
|
|
730
730
|
__name: "index",
|
|
731
731
|
props: {
|
|
732
732
|
maxHeight: { default: 550 },
|
|
@@ -762,41 +762,52 @@ const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
762
762
|
filter: { type: Boolean }
|
|
763
763
|
},
|
|
764
764
|
emits: ["row-click", "row-dblclick", "selection-change", "search", "clear", "delete", "edit", "page-change", "get-ref", "filter"],
|
|
765
|
-
setup(d, { expose:
|
|
766
|
-
const
|
|
765
|
+
setup(d, { expose: m, emit: p }) {
|
|
766
|
+
const c = d, k = p;
|
|
767
767
|
let l = Te({
|
|
768
768
|
PageIndex: 1,
|
|
769
769
|
PageSize: 10
|
|
770
770
|
}), w = N(), L = N();
|
|
771
771
|
const P = N([]), g = N([]), S = N(!1), B = be(), E = (o) => {
|
|
772
772
|
k("row-click", o);
|
|
773
|
-
},
|
|
773
|
+
}, I = (o) => {
|
|
774
774
|
k("row-click", o);
|
|
775
775
|
}, T = (o) => {
|
|
776
776
|
k("selection-change", o);
|
|
777
777
|
}, D = () => {
|
|
778
|
-
if (
|
|
779
|
-
for (let o = 0; o <
|
|
780
|
-
let h =
|
|
778
|
+
if (c.tableColumn.length > 0)
|
|
779
|
+
for (let o = 0; o < c.tableColumn.length; o++) {
|
|
780
|
+
let h = c.tableColumn[o];
|
|
781
781
|
l[h.prop] = null;
|
|
782
782
|
}
|
|
783
783
|
l.PageIndex = 1, k("clear", l.PageIndex, l.PageSize);
|
|
784
784
|
}, y = () => {
|
|
785
785
|
k("search", l);
|
|
786
|
-
}, A = (
|
|
787
|
-
|
|
786
|
+
}, A = (o) => {
|
|
787
|
+
if (o) {
|
|
788
|
+
let h = l.PageSize;
|
|
789
|
+
if (c.tableColumn.length > 0)
|
|
790
|
+
for (let $ = 0; $ < c.tableColumn.length; $++) {
|
|
791
|
+
let J = c.tableColumn[$];
|
|
792
|
+
l[J.prop] = null;
|
|
793
|
+
}
|
|
794
|
+
l.PageIndex = 1, l.PageSize = h;
|
|
795
|
+
}
|
|
796
|
+
return l;
|
|
788
797
|
}, Z = (o) => {
|
|
798
|
+
k("edit", o);
|
|
799
|
+
}, j = (o) => {
|
|
789
800
|
k("delete", o);
|
|
790
|
-
},
|
|
801
|
+
}, re = (o) => {
|
|
791
802
|
for (let h = 0; h < o.length; h++)
|
|
792
803
|
l[o[h].prop] = o[h].label;
|
|
793
|
-
}, le = () => l,
|
|
804
|
+
}, le = () => l, de = () => {
|
|
794
805
|
P.value.forEach((o) => {
|
|
795
|
-
var h = g.value.find((
|
|
806
|
+
var h = g.value.find(($) => $.label == o.label);
|
|
796
807
|
h && h.filter && (o.hidden = !h.check, o.hidden && (l[o.prop] = null));
|
|
797
808
|
}), S.value = !1, L.value.hide(), k("filter", () => g.value);
|
|
798
809
|
}, n = (o) => {
|
|
799
|
-
P.value = o,
|
|
810
|
+
P.value = o, c.filter && (g.value = [], P.value.forEach((h) => {
|
|
800
811
|
h.filter ? h.check ? g.value.push({
|
|
801
812
|
label: h.label,
|
|
802
813
|
check: !0,
|
|
@@ -814,28 +825,23 @@ const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
814
825
|
filter: h.filter
|
|
815
826
|
});
|
|
816
827
|
})), P.value.forEach((h) => {
|
|
817
|
-
var
|
|
818
|
-
|
|
828
|
+
var $ = g.value.find((J) => J.label == h.label);
|
|
829
|
+
$ && $.filter && (h.hidden = !$.check, h.hidden && (l[h.prop] = null)), $ != null && $.filter || (h.hidden = !1);
|
|
819
830
|
});
|
|
820
831
|
}, C = (o) => {
|
|
821
|
-
o &&
|
|
832
|
+
o && c.type == "selection" ? o.forEach((h) => {
|
|
822
833
|
w.value.toggleRowSelection(h);
|
|
823
834
|
}) : w.value.clearSelection();
|
|
824
835
|
}, V = () => {
|
|
825
836
|
w.value.clearSelection();
|
|
826
837
|
};
|
|
827
|
-
return
|
|
828
|
-
|
|
829
|
-
(o, h) => {
|
|
838
|
+
return ne(
|
|
839
|
+
[l.PageIndex, l.PageSize],
|
|
840
|
+
([o, h], [$, J]) => {
|
|
830
841
|
k("page-change", l.PageIndex, l.PageSize);
|
|
831
842
|
}
|
|
832
|
-
),
|
|
833
|
-
|
|
834
|
-
(o, h) => {
|
|
835
|
-
l.PageIndex = 1, k("page-change", l.PageIndex, l.PageSize);
|
|
836
|
-
}
|
|
837
|
-
), c({
|
|
838
|
-
Assignment: se,
|
|
843
|
+
), m({
|
|
844
|
+
Assignment: re,
|
|
839
845
|
GetParameters: le,
|
|
840
846
|
SetFilter: n,
|
|
841
847
|
ToggleSelection: C,
|
|
@@ -843,19 +849,19 @@ const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
843
849
|
GetForm: A,
|
|
844
850
|
ClearForm: D
|
|
845
851
|
}), he(() => {
|
|
846
|
-
if (
|
|
847
|
-
for (let o = 0; o <
|
|
848
|
-
let h =
|
|
852
|
+
if (c.tableColumn.length > 0)
|
|
853
|
+
for (let o = 0; o < c.tableColumn.length; o++) {
|
|
854
|
+
let h = c.tableColumn[o];
|
|
849
855
|
l[h.prop] = null;
|
|
850
856
|
}
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
}), l.PageSize =
|
|
857
|
+
c.tableData.forEach((o) => {
|
|
858
|
+
c.defaultSelect && c.type == "selection" && c.defaultSelect(o) && w.value.toggleRowSelection(o, void 0, !1);
|
|
859
|
+
}), l.PageSize = c.defaultSize, c.filter || (P.value = c.tableColumn);
|
|
854
860
|
}), (o, h) => {
|
|
855
|
-
const
|
|
856
|
-
return r(), M(
|
|
861
|
+
const $ = x("el-button"), J = x("el-icon"), ce = x("el-checkbox"), fe = x("el-popover"), Y = x("el-table-column"), _e = x("el-input"), ve = x("el-input-number"), ze = x("el-option"), ue = x("el-select"), te = x("el-date-picker"), me = x("el-time-picker"), ge = x("el-switch"), pe = x("el-popconfirm"), ye = x("el-table"), t = x("el-pagination");
|
|
862
|
+
return r(), M(Q, null, [
|
|
857
863
|
s(B).header ? (r(), M("div", Cl, [
|
|
858
|
-
|
|
864
|
+
F(o.$slots, "header", {}, void 0, !0),
|
|
859
865
|
o.filter ? (r(), _(fe, {
|
|
860
866
|
key: 0,
|
|
861
867
|
ref_key: "popover",
|
|
@@ -865,7 +871,7 @@ const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
865
871
|
placement: "bottom"
|
|
866
872
|
}, {
|
|
867
873
|
reference: z(() => [
|
|
868
|
-
|
|
874
|
+
R($, {
|
|
869
875
|
type: "link",
|
|
870
876
|
icon: s(Pe),
|
|
871
877
|
onClick: h[0] || (h[0] = (e) => S.value = !S.value),
|
|
@@ -874,16 +880,16 @@ const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
874
880
|
]),
|
|
875
881
|
default: z(() => [
|
|
876
882
|
U("h4", null, [
|
|
877
|
-
|
|
883
|
+
R(J, null, {
|
|
878
884
|
default: z(() => [
|
|
879
|
-
|
|
885
|
+
R(s(Pe))
|
|
880
886
|
]),
|
|
881
887
|
_: 1
|
|
882
888
|
}),
|
|
883
889
|
h[3] || (h[3] = G(" 显示字段筛选 "))
|
|
884
890
|
]),
|
|
885
|
-
(r(!0), M(
|
|
886
|
-
|
|
891
|
+
(r(!0), M(Q, null, oe(g.value, (e) => (r(), M("p", null, [
|
|
892
|
+
R(ce, {
|
|
887
893
|
modelValue: e.check,
|
|
888
894
|
"onUpdate:modelValue": (a) => e.check = a,
|
|
889
895
|
label: e.label,
|
|
@@ -892,11 +898,11 @@ const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
892
898
|
size: "small"
|
|
893
899
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "value", "disabled"])
|
|
894
900
|
]))), 256)),
|
|
895
|
-
|
|
901
|
+
R($, {
|
|
896
902
|
type: "primary",
|
|
897
903
|
size: "small",
|
|
898
904
|
style: { "margin-top": "10px", "margin-left": "5px" },
|
|
899
|
-
onClick:
|
|
905
|
+
onClick: de
|
|
900
906
|
}, {
|
|
901
907
|
default: z(() => h[4] || (h[4] = [
|
|
902
908
|
G("确认")
|
|
@@ -908,7 +914,7 @@ const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
908
914
|
_: 1
|
|
909
915
|
}, 512)) : v("", !0)
|
|
910
916
|
])) : v("", !0),
|
|
911
|
-
|
|
917
|
+
R(ye, {
|
|
912
918
|
data: o.tableData,
|
|
913
919
|
class: K([o.size && o.size == "small" ? "mini-table" : "table"]),
|
|
914
920
|
"max-height": o.maxHeight,
|
|
@@ -918,7 +924,7 @@ const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
918
924
|
"row-key": o.rowKey,
|
|
919
925
|
"highlight-current-row": o.highLight,
|
|
920
926
|
onRowClick: E,
|
|
921
|
-
onRowDblclick:
|
|
927
|
+
onRowDblclick: I,
|
|
922
928
|
onSelectionChange: T,
|
|
923
929
|
ref_key: "tableRef",
|
|
924
930
|
ref: w,
|
|
@@ -949,13 +955,13 @@ const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
949
955
|
label: o.typeLabel
|
|
950
956
|
}, {
|
|
951
957
|
default: z((e) => [
|
|
952
|
-
|
|
958
|
+
F(o.$slots, "expand", {
|
|
953
959
|
row: e == null ? void 0 : e.row
|
|
954
960
|
}, void 0, !0)
|
|
955
961
|
]),
|
|
956
962
|
_: 3
|
|
957
963
|
}, 8, ["width", "fixed", "label"])) : v("", !0),
|
|
958
|
-
(r(!0), M(
|
|
964
|
+
(r(!0), M(Q, null, oe(P.value, (e) => (r(), M(Q, null, [
|
|
959
965
|
e.hidden ? v("", !0) : (r(), _(Y, {
|
|
960
966
|
key: 0,
|
|
961
967
|
prop: e.costom ? !1 : e.prop,
|
|
@@ -966,7 +972,7 @@ const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
966
972
|
"show-overflow-tooltip": !!e.overflow
|
|
967
973
|
}, Be({
|
|
968
974
|
header: z(() => [
|
|
969
|
-
U("div", Pl,
|
|
975
|
+
U("div", Pl, ie(e.label), 1),
|
|
970
976
|
e.search && (!e.type || e.type == "text") ? (r(), _(_e, {
|
|
971
977
|
key: 0,
|
|
972
978
|
modelValue: s(l)[e.prop],
|
|
@@ -1015,7 +1021,7 @@ const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
1015
1021
|
class: K([e.align && e.align == "center" ? "center" : ""])
|
|
1016
1022
|
}, {
|
|
1017
1023
|
default: z(() => [
|
|
1018
|
-
(r(!0), M(
|
|
1024
|
+
(r(!0), M(Q, null, oe(e.options, (a) => (r(), _(ze, {
|
|
1019
1025
|
label: a.label ? a.label : a.value,
|
|
1020
1026
|
value: a.value,
|
|
1021
1027
|
disabled: a.disabled
|
|
@@ -1140,9 +1146,9 @@ const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
1140
1146
|
fit: ""
|
|
1141
1147
|
}, {
|
|
1142
1148
|
header: z(() => [
|
|
1143
|
-
U("div", Ul,
|
|
1144
|
-
|
|
1145
|
-
o.search ? (r(), _(
|
|
1149
|
+
U("div", Ul, ie(o.operateLabel), 1),
|
|
1150
|
+
F(o.$slots, "operate-front", {}, void 0, !0),
|
|
1151
|
+
o.search ? (r(), _($, {
|
|
1146
1152
|
key: 0,
|
|
1147
1153
|
type: "primary",
|
|
1148
1154
|
size: o.operateSize,
|
|
@@ -1155,8 +1161,8 @@ const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
1155
1161
|
_: 1,
|
|
1156
1162
|
__: [5]
|
|
1157
1163
|
}, 8, ["size", "icon"])) : v("", !0),
|
|
1158
|
-
|
|
1159
|
-
o.clear ? (r(), _(
|
|
1164
|
+
F(o.$slots, "operate-middle", {}, void 0, !0),
|
|
1165
|
+
o.clear ? (r(), _($, {
|
|
1160
1166
|
key: 1,
|
|
1161
1167
|
type: "info",
|
|
1162
1168
|
size: o.operateSize,
|
|
@@ -1169,19 +1175,19 @@ const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
1169
1175
|
_: 1,
|
|
1170
1176
|
__: [6]
|
|
1171
1177
|
}, 8, ["size", "icon"])) : v("", !0),
|
|
1172
|
-
|
|
1178
|
+
F(o.$slots, "operate", {}, void 0, !0)
|
|
1173
1179
|
]),
|
|
1174
1180
|
default: z((e) => [
|
|
1175
|
-
|
|
1181
|
+
F(o.$slots, "row-operate-front", {
|
|
1176
1182
|
row: e == null ? void 0 : e.row
|
|
1177
1183
|
}, void 0, !0),
|
|
1178
|
-
o.edit ? (r(), _(
|
|
1184
|
+
o.edit ? (r(), _($, {
|
|
1179
1185
|
key: 0,
|
|
1180
1186
|
link: "",
|
|
1181
1187
|
type: "primary",
|
|
1182
1188
|
size: o.rowButtonSize,
|
|
1183
1189
|
icon: s(al),
|
|
1184
|
-
onClick: (a) =>
|
|
1190
|
+
onClick: (a) => Z(e == null ? void 0 : e.row)
|
|
1185
1191
|
}, {
|
|
1186
1192
|
default: z(() => h[7] || (h[7] = [
|
|
1187
1193
|
G("修改")
|
|
@@ -1189,7 +1195,7 @@ const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
1189
1195
|
_: 2,
|
|
1190
1196
|
__: [7]
|
|
1191
1197
|
}, 1032, ["size", "icon", "onClick"])) : v("", !0),
|
|
1192
|
-
|
|
1198
|
+
F(o.$slots, "row-operate-middle", {
|
|
1193
1199
|
row: e == null ? void 0 : e.row
|
|
1194
1200
|
}, void 0, !0),
|
|
1195
1201
|
o.delete ? (r(), _(pe, {
|
|
@@ -1200,11 +1206,11 @@ const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
1200
1206
|
"cancel-button-type": "danger",
|
|
1201
1207
|
icon: s(je),
|
|
1202
1208
|
width: "auto",
|
|
1203
|
-
onCancel: (a) =>
|
|
1209
|
+
onCancel: (a) => j(e == null ? void 0 : e.row),
|
|
1204
1210
|
title: o.deleteTitle ? o.deleteTitle : "是否要删除当前行?"
|
|
1205
1211
|
}, {
|
|
1206
1212
|
reference: z(() => [
|
|
1207
|
-
|
|
1213
|
+
R($, {
|
|
1208
1214
|
link: "",
|
|
1209
1215
|
type: "danger",
|
|
1210
1216
|
size: o.rowButtonSize,
|
|
@@ -1219,7 +1225,7 @@ const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
1219
1225
|
]),
|
|
1220
1226
|
_: 2
|
|
1221
1227
|
}, 1032, ["icon", "onCancel", "title"])) : v("", !0),
|
|
1222
|
-
|
|
1228
|
+
F(o.$slots, "row-operate", {
|
|
1223
1229
|
row: e == null ? void 0 : e.row
|
|
1224
1230
|
}, void 0, !0)
|
|
1225
1231
|
]),
|
|
@@ -1248,7 +1254,7 @@ const kl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
1248
1254
|
};
|
|
1249
1255
|
}
|
|
1250
1256
|
});
|
|
1251
|
-
const El = /* @__PURE__ */
|
|
1257
|
+
const El = /* @__PURE__ */ se(Ll, [["__scopeId", "data-v-8776b027"]]), $l = { class: "dialog" }, Il = ["innerHTML"], Rl = { class: "form" }, Wl = /* @__PURE__ */ W({
|
|
1252
1258
|
__name: "index",
|
|
1253
1259
|
props: /* @__PURE__ */ ke({
|
|
1254
1260
|
title: { default: "弹出框" },
|
|
@@ -1267,8 +1273,8 @@ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-f6dd5f1f"]]), $l = { cl
|
|
|
1267
1273
|
formModifiers: {}
|
|
1268
1274
|
}),
|
|
1269
1275
|
emits: /* @__PURE__ */ ke(["close", "submit"], ["update:form"]),
|
|
1270
|
-
setup(d, { emit:
|
|
1271
|
-
let p =
|
|
1276
|
+
setup(d, { emit: m }) {
|
|
1277
|
+
let p = m, c = N(!1), k = !0, l = De(d, "form"), w = N();
|
|
1272
1278
|
function L() {
|
|
1273
1279
|
p("close");
|
|
1274
1280
|
}
|
|
@@ -1278,13 +1284,13 @@ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-f6dd5f1f"]]), $l = { cl
|
|
|
1278
1284
|
});
|
|
1279
1285
|
}
|
|
1280
1286
|
return (g, S) => {
|
|
1281
|
-
const B = x("el-icon"), E = x("el-input"),
|
|
1287
|
+
const B = x("el-icon"), E = x("el-input"), I = x("el-input-number"), T = x("el-option"), D = x("el-select"), y = x("el-date-picker"), A = x("el-time-picker"), Z = x("el-switch"), j = x("el-form-item"), re = x("el-form"), le = x("el-button"), de = x("el-dialog");
|
|
1282
1288
|
return r(), M("div", $l, [
|
|
1283
|
-
|
|
1289
|
+
R(de, {
|
|
1284
1290
|
modelValue: s(k),
|
|
1285
1291
|
"onUpdate:modelValue": S[1] || (S[1] = (n) => Ce(k) ? k.value = n : k = n),
|
|
1286
1292
|
width: g.width,
|
|
1287
|
-
fullscreen: s(
|
|
1293
|
+
fullscreen: s(c),
|
|
1288
1294
|
"close-on-click-modal": !1,
|
|
1289
1295
|
"close-on-press-escape": !1,
|
|
1290
1296
|
draggable: g.draggable,
|
|
@@ -1296,19 +1302,19 @@ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-f6dd5f1f"]]), $l = { cl
|
|
|
1296
1302
|
g.fullscreen ? (r(), _(B, {
|
|
1297
1303
|
key: 0,
|
|
1298
1304
|
class: "fullscreen",
|
|
1299
|
-
onClick: S[0] || (S[0] = (n) => Ce(
|
|
1305
|
+
onClick: S[0] || (S[0] = (n) => Ce(c) ? c.value = !s(c) : c = !s(c))
|
|
1300
1306
|
}, {
|
|
1301
1307
|
default: z(() => [
|
|
1302
|
-
s(
|
|
1303
|
-
s(
|
|
1308
|
+
s(c) ? v("", !0) : (r(), _(s(sl), { key: 0 })),
|
|
1309
|
+
s(c) ? (r(), _(s(dl), { key: 1 })) : v("", !0)
|
|
1304
1310
|
]),
|
|
1305
1311
|
_: 1
|
|
1306
1312
|
})) : v("", !0)
|
|
1307
1313
|
]),
|
|
1308
1314
|
default: z(() => [
|
|
1309
|
-
|
|
1315
|
+
F(g.$slots, "header", {}, void 0, !0),
|
|
1310
1316
|
U("div", Rl, [
|
|
1311
|
-
|
|
1317
|
+
R(re, {
|
|
1312
1318
|
model: s(l),
|
|
1313
1319
|
rules: g.rules,
|
|
1314
1320
|
ref_key: "formRef",
|
|
@@ -1318,7 +1324,7 @@ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-f6dd5f1f"]]), $l = { cl
|
|
|
1318
1324
|
size: g.formSize
|
|
1319
1325
|
}, {
|
|
1320
1326
|
default: z(() => [
|
|
1321
|
-
(r(!0), M(
|
|
1327
|
+
(r(!0), M(Q, null, oe(s(l), (n, C) => (r(), _(j, {
|
|
1322
1328
|
key: C,
|
|
1323
1329
|
label: n.label,
|
|
1324
1330
|
prop: C,
|
|
@@ -1348,7 +1354,7 @@ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-f6dd5f1f"]]), $l = { cl
|
|
|
1348
1354
|
style: { width: "100%" },
|
|
1349
1355
|
size: n.size ? n.size : "small"
|
|
1350
1356
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "readonly", "placeholder", "size"])) : v("", !0),
|
|
1351
|
-
n.type == "number" ? (r(), _(
|
|
1357
|
+
n.type == "number" ? (r(), _(I, {
|
|
1352
1358
|
key: 2,
|
|
1353
1359
|
modelValue: s(l)[C].default,
|
|
1354
1360
|
"onUpdate:modelValue": (V) => s(l)[C].default = V,
|
|
@@ -1376,7 +1382,7 @@ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-f6dd5f1f"]]), $l = { cl
|
|
|
1376
1382
|
size: n.size ? n.size : "small"
|
|
1377
1383
|
}, {
|
|
1378
1384
|
default: z(() => [
|
|
1379
|
-
(r(!0), M(
|
|
1385
|
+
(r(!0), M(Q, null, oe(n.options, (V) => (r(), _(T, {
|
|
1380
1386
|
label: V.label ? V.label : V.value,
|
|
1381
1387
|
value: V.value,
|
|
1382
1388
|
disabled: V.disabled
|
|
@@ -1457,7 +1463,7 @@ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-f6dd5f1f"]]), $l = { cl
|
|
|
1457
1463
|
style: { width: "100%" },
|
|
1458
1464
|
size: n.size ? n.size : "small"
|
|
1459
1465
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled", "readonly", "size"])) : v("", !0),
|
|
1460
|
-
n.type == "switch" ? (r(), _(
|
|
1466
|
+
n.type == "switch" ? (r(), _(Z, {
|
|
1461
1467
|
key: 10,
|
|
1462
1468
|
modelValue: s(l)[C].default,
|
|
1463
1469
|
"onUpdate:modelValue": (V) => s(l)[C].default = V,
|
|
@@ -1474,14 +1480,14 @@ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-f6dd5f1f"]]), $l = { cl
|
|
|
1474
1480
|
_: 1
|
|
1475
1481
|
}, 8, ["model", "rules", "label-width", "size"])
|
|
1476
1482
|
]),
|
|
1477
|
-
|
|
1483
|
+
F(g.$slots, "footer", {}, void 0, !0)
|
|
1478
1484
|
]),
|
|
1479
1485
|
_: 2
|
|
1480
1486
|
}, [
|
|
1481
1487
|
g.footer ? {
|
|
1482
1488
|
name: "footer",
|
|
1483
1489
|
fn: z(() => [
|
|
1484
|
-
|
|
1490
|
+
R(le, {
|
|
1485
1491
|
type: "primary",
|
|
1486
1492
|
size: g.buttonSize,
|
|
1487
1493
|
icon: s(Ye),
|
|
@@ -1490,11 +1496,11 @@ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-f6dd5f1f"]]), $l = { cl
|
|
|
1490
1496
|
onClick: P
|
|
1491
1497
|
}, {
|
|
1492
1498
|
default: z(() => [
|
|
1493
|
-
G(
|
|
1499
|
+
G(ie(g.loading ? "提交中" : "提交"), 1)
|
|
1494
1500
|
]),
|
|
1495
1501
|
_: 1
|
|
1496
1502
|
}, 8, ["size", "icon", "loading"]),
|
|
1497
|
-
|
|
1503
|
+
R(le, {
|
|
1498
1504
|
type: "info",
|
|
1499
1505
|
size: g.buttonSize,
|
|
1500
1506
|
icon: s(Le),
|
|
@@ -1515,9 +1521,9 @@ const El = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-f6dd5f1f"]]), $l = { cl
|
|
|
1515
1521
|
};
|
|
1516
1522
|
}
|
|
1517
1523
|
});
|
|
1518
|
-
const Fl = /* @__PURE__ */
|
|
1519
|
-
function Tl(d,
|
|
1520
|
-
return
|
|
1524
|
+
const Fl = /* @__PURE__ */ se(Wl, [["__scopeId", "data-v-fbcd9a4f"]]);
|
|
1525
|
+
function Tl(d, m, p) {
|
|
1526
|
+
return m.default == null || m.default.toString() == "" ? p(new Error(m.label + "不能为空")) : p();
|
|
1521
1527
|
}
|
|
1522
1528
|
const Dl = {
|
|
1523
1529
|
install: (d) => {
|