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