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