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