dld-vue-ui 1.2.61 → 1.3.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 +2 -3
- package/dist/dld-vue-ui.js +244 -244
- package/dist/dld-vue-ui.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dld-vue-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useSlots as be, ref as D, computed as K, watch as le, onBeforeUnmount as Pe, onMounted as ce, provide as ee, openBlock as r, createBlock as _, resolveDynamicComponent as Ue, inject as ne, getCurrentInstance as
|
|
2
|
-
const
|
|
1
|
+
import { useSlots as be, ref as D, computed as K, watch as le, onBeforeUnmount as Pe, onMounted as ce, provide as ee, openBlock as r, createBlock as _, resolveDynamicComponent as Ue, inject as ne, getCurrentInstance as Re, createElementBlock as P, unref as i, normalizeStyle as F, renderSlot as W, nextTick as we, h as We, defineComponent as R, withCtx as g, createElementVNode as U, resolveComponent as V, createVNode as I, createTextVNode as A, withDirectives as Fe, vShow as He, toDisplayString as ie, Fragment as J, renderList as oe, createCommentVNode as z, reactive as De, normalizeClass as q, createSlots as Be, withKeys as ke, mergeModels as Se, useModel as Te, isRef as Ce } from "vue";
|
|
2
|
+
const Ne = {
|
|
3
3
|
__name: "splitpanes",
|
|
4
4
|
props: {
|
|
5
5
|
horizontal: { type: Boolean },
|
|
@@ -20,7 +20,7 @@ const Te = {
|
|
|
20
20
|
"splitter-click"
|
|
21
21
|
],
|
|
22
22
|
setup(d, { emit: m }) {
|
|
23
|
-
const c = m, h = d,
|
|
23
|
+
const c = m, h = d, C = be(), t = D([]), k = K(() => t.value.reduce((a, o) => (a[~~o.id] = o) && a, {})), L = K(() => t.value.length), M = D(null), w = D(!1), S = D({
|
|
24
24
|
mouseDown: !1,
|
|
25
25
|
dragging: !1,
|
|
26
26
|
activeSplitter: null,
|
|
@@ -32,45 +32,45 @@ const Te = {
|
|
|
32
32
|
timeoutId: null
|
|
33
33
|
}), E = K(() => ({
|
|
34
34
|
[`splitpanes splitpanes--${h.horizontal ? "horizontal" : "vertical"}`]: !0,
|
|
35
|
-
"splitpanes--dragging":
|
|
35
|
+
"splitpanes--dragging": S.value.dragging
|
|
36
36
|
})), $ = () => {
|
|
37
37
|
document.addEventListener("mousemove", b, { passive: !1 }), document.addEventListener("mouseup", O), "ontouchstart" in window && (document.addEventListener("touchmove", b, { passive: !1 }), document.addEventListener("touchend", O));
|
|
38
38
|
}, H = () => {
|
|
39
39
|
document.removeEventListener("mousemove", b, { passive: !1 }), document.removeEventListener("mouseup", O), "ontouchstart" in window && (document.removeEventListener("touchmove", b, { passive: !1 }), document.removeEventListener("touchend", O));
|
|
40
|
-
},
|
|
40
|
+
}, T = (a, o) => {
|
|
41
41
|
const u = a.target.closest(".splitpanes__splitter");
|
|
42
42
|
if (u) {
|
|
43
43
|
const { left: n, top: p } = u.getBoundingClientRect(), { clientX: f, clientY: x } = "ontouchstart" in window && a.touches ? a.touches[0] : a;
|
|
44
|
-
|
|
44
|
+
S.value.cursorOffset = h.horizontal ? x - p : f - n;
|
|
45
45
|
}
|
|
46
|
-
$(),
|
|
46
|
+
$(), S.value.mouseDown = !0, S.value.activeSplitter = o;
|
|
47
47
|
}, b = (a) => {
|
|
48
|
-
|
|
48
|
+
S.value.mouseDown && (a.preventDefault(), S.value.dragging = !0, requestAnimationFrame(() => {
|
|
49
49
|
e(te(a)), c("resize", t.value.map((o) => ({ min: o.min, max: o.max, size: o.size })));
|
|
50
50
|
}));
|
|
51
51
|
}, O = () => {
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
S.value.dragging && c("resized", t.value.map((a) => ({ min: a.min, max: a.max, size: a.size }))), S.value.mouseDown = !1, setTimeout(() => {
|
|
53
|
+
S.value.dragging = !1, H();
|
|
54
54
|
}, 100);
|
|
55
55
|
}, Q = (a, o) => {
|
|
56
|
-
"ontouchstart" in window && (a.preventDefault(), h.dblClickSplitter && (B.value.splitter === o ? (clearTimeout(B.value.timeoutId), B.value.timeoutId = null, Z(a, o), B.value.splitter = null) : (B.value.splitter = o, B.value.timeoutId = setTimeout(() => B.value.splitter = null, 500)))),
|
|
56
|
+
"ontouchstart" in window && (a.preventDefault(), h.dblClickSplitter && (B.value.splitter === o ? (clearTimeout(B.value.timeoutId), B.value.timeoutId = null, Z(a, o), B.value.splitter = null) : (B.value.splitter = o, B.value.timeoutId = setTimeout(() => B.value.splitter = null, 500)))), S.value.dragging || c("splitter-click", t.value[o]);
|
|
57
57
|
}, Z = (a, o) => {
|
|
58
58
|
let u = 0;
|
|
59
59
|
t.value = t.value.map((n, p) => (n.size = p === o ? n.max : n.min, p !== o && (u += n.min), n)), t.value[o].size -= u, c("pane-maximize", t.value[o]), c("resized", t.value.map((n) => ({ min: n.min, max: n.max, size: n.size })));
|
|
60
60
|
}, re = (a, o) => {
|
|
61
|
-
c("pane-click",
|
|
61
|
+
c("pane-click", k.value[o]);
|
|
62
62
|
}, te = (a) => {
|
|
63
63
|
const o = M.value.getBoundingClientRect(), { clientX: u, clientY: n } = "ontouchstart" in window && a.touches ? a.touches[0] : a;
|
|
64
64
|
return {
|
|
65
|
-
x: u - (h.horizontal ? 0 :
|
|
66
|
-
y: n - (h.horizontal ?
|
|
65
|
+
x: u - (h.horizontal ? 0 : S.value.cursorOffset) - o.left,
|
|
66
|
+
y: n - (h.horizontal ? S.value.cursorOffset : 0) - o.top
|
|
67
67
|
};
|
|
68
68
|
}, de = (a) => {
|
|
69
69
|
a = a[h.horizontal ? "y" : "x"];
|
|
70
70
|
const o = M.value[h.horizontal ? "clientHeight" : "clientWidth"];
|
|
71
71
|
return h.rtl && !h.horizontal && (a = o - a), a * 100 / o;
|
|
72
72
|
}, e = (a) => {
|
|
73
|
-
const o =
|
|
73
|
+
const o = S.value.activeSplitter;
|
|
74
74
|
let u = {
|
|
75
75
|
prevPanesSize: v(o),
|
|
76
76
|
nextPanesSize: Y(o),
|
|
@@ -78,21 +78,21 @@ const Te = {
|
|
|
78
78
|
nextReachedMinPanes: 0
|
|
79
79
|
};
|
|
80
80
|
const n = 0 + (h.pushOtherPanes ? 0 : u.prevPanesSize), p = 100 - (h.pushOtherPanes ? 0 : u.nextPanesSize), f = Math.max(Math.min(de(a), p), n);
|
|
81
|
-
let x = [o, o + 1],
|
|
82
|
-
const xe =
|
|
83
|
-
if (xe ||
|
|
84
|
-
xe ? (
|
|
81
|
+
let x = [o, o + 1], N = t.value[x[0]] || null, G = t.value[x[1]] || null;
|
|
82
|
+
const xe = N.max < 100 && f >= N.max + u.prevPanesSize, Ie = G.max < 100 && f <= 100 - (G.max + Y(o + 1));
|
|
83
|
+
if (xe || Ie) {
|
|
84
|
+
xe ? (N.size = N.max, G.size = Math.max(100 - N.max - u.prevPanesSize - u.nextPanesSize, 0)) : (N.size = Math.max(100 - G.max - u.prevPanesSize - Y(o + 1), 0), G.size = G.max);
|
|
85
85
|
return;
|
|
86
86
|
}
|
|
87
87
|
if (h.pushOtherPanes) {
|
|
88
88
|
const Ve = s(u, f);
|
|
89
89
|
if (!Ve)
|
|
90
90
|
return;
|
|
91
|
-
({ sums: u, panesToResize: x } = Ve),
|
|
91
|
+
({ sums: u, panesToResize: x } = Ve), N = t.value[x[0]] || null, G = t.value[x[1]] || null;
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
N !== null && (N.size = Math.min(Math.max(f - u.prevPanesSize - u.prevReachedMinPanes, N.min), N.max)), G !== null && (G.size = Math.min(Math.max(100 - f - u.nextPanesSize - u.nextReachedMinPanes, G.min), G.max));
|
|
94
94
|
}, s = (a, o) => {
|
|
95
|
-
const u =
|
|
95
|
+
const u = S.value.activeSplitter, n = [u, u + 1];
|
|
96
96
|
return o < a.prevPanesSize + t.value[n[0]].min && (n[0] = me(u).index, a.prevReachedMinPanes = 0, n[0] < u && t.value.forEach((p, f) => {
|
|
97
97
|
f > n[0] && f <= u && (p.size = p.min, a.prevReachedMinPanes += p.min);
|
|
98
98
|
}), a.prevPanesSize = v(n[0]), n[0] === void 0) ? (a.prevReachedMinPanes = 0, t.value[0].size = t.value[0].min, t.value.forEach((p, f) => {
|
|
@@ -110,7 +110,7 @@ const Te = {
|
|
|
110
110
|
});
|
|
111
111
|
}, j = (a, o, u = !1) => {
|
|
112
112
|
const n = a - 1, p = document.createElement("div");
|
|
113
|
-
p.classList.add("splitpanes__splitter"), u || (p.onmousedown = (f) =>
|
|
113
|
+
p.classList.add("splitpanes__splitter"), u || (p.onmousedown = (f) => T(f, n), typeof window < "u" && "ontouchstart" in window && (p.ontouchstart = (f) => T(f, n)), p.onclick = (f) => Q(f, n + 1)), h.dblClickSplitter && (p.ondblclick = (f) => Z(f, n + 1)), o.parentNode.insertBefore(p, o);
|
|
114
114
|
}, pe = (a) => {
|
|
115
115
|
a.onmousedown = void 0, a.onclick = void 0, a.ondblclick = void 0, a.remove();
|
|
116
116
|
}, ae = () => {
|
|
@@ -124,7 +124,7 @@ const Te = {
|
|
|
124
124
|
n.className.includes("splitpanes__pane") && (!u && h.firstSplitter ? j(u, n, !0) : u && j(u, n), u++);
|
|
125
125
|
});
|
|
126
126
|
}, X = ({ uid: a, ...o }) => {
|
|
127
|
-
const u =
|
|
127
|
+
const u = k.value[a];
|
|
128
128
|
Object.entries(o).forEach(([n, p]) => u[n] = p);
|
|
129
129
|
}, _e = (a) => {
|
|
130
130
|
var o;
|
|
@@ -138,7 +138,7 @@ const Te = {
|
|
|
138
138
|
ae(), ue({ removedPane: { ...u } }), c("pane-remove", { removed: u, panes: t.value.map((n) => ({ min: n.min, max: n.max, size: n.size })) });
|
|
139
139
|
});
|
|
140
140
|
}, ue = (a = {}) => {
|
|
141
|
-
!a.addedPane && !a.removedPane ?
|
|
141
|
+
!a.addedPane && !a.removedPane ? ge() : t.value.some((o) => o.givenSize !== null || o.min || o.max < 100) ? ye(a) : ze(), w.value && c("resized", t.value.map((o) => ({ min: o.min, max: o.max, size: o.size })));
|
|
142
142
|
}, ze = () => {
|
|
143
143
|
const a = 100 / L.value;
|
|
144
144
|
let o = 0;
|
|
@@ -146,7 +146,7 @@ const Te = {
|
|
|
146
146
|
t.value.forEach((p) => {
|
|
147
147
|
p.size = Math.max(Math.min(a, p.max), p.min), o -= p.size, p.size >= p.max && u.push(p.id), p.size <= p.min && n.push(p.id);
|
|
148
148
|
}), o > 0.1 && l(o, u, n);
|
|
149
|
-
},
|
|
149
|
+
}, ge = () => {
|
|
150
150
|
let a = 100;
|
|
151
151
|
const o = [], u = [];
|
|
152
152
|
let n = 0;
|
|
@@ -157,7 +157,7 @@ const Te = {
|
|
|
157
157
|
a > 0.1 && (t.value.forEach((f) => {
|
|
158
158
|
f.givenSize === null && (f.size = Math.max(Math.min(a / (L.value - n), f.max), f.min)), p -= f.size;
|
|
159
159
|
}), p > 0.1 && l(p, o, u));
|
|
160
|
-
},
|
|
160
|
+
}, ye = ({ addedPane: a, removedPane: o } = {}) => {
|
|
161
161
|
let u = 100 / L.value, n = 0;
|
|
162
162
|
const p = [], f = [];
|
|
163
163
|
((a == null ? void 0 : a.givenSize) ?? null) !== null && (u = (100 - a.givenSize) / (L.value - 1).value), t.value.forEach((x) => {
|
|
@@ -169,11 +169,11 @@ const Te = {
|
|
|
169
169
|
let n;
|
|
170
170
|
a > 0 ? n = a / (L.value - o.length) : n = a / (L.value - u.length), t.value.forEach((p, f) => {
|
|
171
171
|
if (a > 0 && !o.includes(p.id)) {
|
|
172
|
-
const x = Math.max(Math.min(p.size + n, p.max), p.min),
|
|
173
|
-
a -=
|
|
172
|
+
const x = Math.max(Math.min(p.size + n, p.max), p.min), N = x - p.size;
|
|
173
|
+
a -= N, p.size = x;
|
|
174
174
|
} else if (!u.includes(p.id)) {
|
|
175
|
-
const x = Math.max(Math.min(p.size + n, p.max), p.min),
|
|
176
|
-
a -=
|
|
175
|
+
const x = Math.max(Math.min(p.size + n, p.max), p.min), N = x - p.size;
|
|
176
|
+
a -= N, p.size = x;
|
|
177
177
|
}
|
|
178
178
|
}), Math.abs(a) > 0.1 && we(() => {
|
|
179
179
|
w.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
|
|
@@ -186,15 +186,15 @@ const Te = {
|
|
|
186
186
|
}), Pe(() => w.value = !1), ce(() => {
|
|
187
187
|
fe(), ae(), ue(), c("ready"), w.value = !0;
|
|
188
188
|
});
|
|
189
|
-
const
|
|
189
|
+
const y = () => {
|
|
190
190
|
var a;
|
|
191
|
-
return
|
|
191
|
+
return We(
|
|
192
192
|
"div",
|
|
193
193
|
{ ref: M, class: E.value },
|
|
194
|
-
(a =
|
|
194
|
+
(a = C.default) == null ? void 0 : a.call(C)
|
|
195
195
|
);
|
|
196
196
|
};
|
|
197
|
-
return ee("panes", t), ee("indexedPanes",
|
|
197
|
+
return ee("panes", t), ee("indexedPanes", k), ee("horizontal", K(() => h.horizontal)), ee("requestUpdate", X), ee("onPaneAdd", _e), ee("onPaneRemove", ve), ee("onPaneClick", re), (a, o) => (r(), _(Ue(y)));
|
|
198
198
|
}
|
|
199
199
|
}, Oe = {
|
|
200
200
|
__name: "pane",
|
|
@@ -205,7 +205,7 @@ const Te = {
|
|
|
205
205
|
},
|
|
206
206
|
setup(d) {
|
|
207
207
|
var m;
|
|
208
|
-
const c = d, h = ne("requestUpdate"),
|
|
208
|
+
const c = d, h = ne("requestUpdate"), C = ne("onPaneAdd"), t = ne("horizontal"), k = ne("onPaneRemove"), L = ne("onPaneClick"), M = (m = Re()) == null ? void 0 : m.uid, w = ne("indexedPanes"), S = K(() => w.value[M]), B = D(null), E = K(() => {
|
|
209
209
|
const b = isNaN(c.size) || c.size === void 0 ? 0 : parseFloat(c.size);
|
|
210
210
|
return Math.max(Math.min(b, H.value), $.value);
|
|
211
211
|
}), $ = K(() => {
|
|
@@ -214,12 +214,12 @@ const Te = {
|
|
|
214
214
|
}), H = K(() => {
|
|
215
215
|
const b = parseFloat(c.maxSize);
|
|
216
216
|
return isNaN(b) ? 100 : b;
|
|
217
|
-
}),
|
|
217
|
+
}), T = K(() => {
|
|
218
218
|
var b;
|
|
219
|
-
return `${t.value ? "height" : "width"}: ${(b =
|
|
219
|
+
return `${t.value ? "height" : "width"}: ${(b = S.value) == null ? void 0 : b.size}%`;
|
|
220
220
|
});
|
|
221
221
|
return ce(() => {
|
|
222
|
-
|
|
222
|
+
C({
|
|
223
223
|
id: M,
|
|
224
224
|
el: B.value,
|
|
225
225
|
min: $.value,
|
|
@@ -229,31 +229,31 @@ const Te = {
|
|
|
229
229
|
size: E.value
|
|
230
230
|
// The computed current size at any time.
|
|
231
231
|
});
|
|
232
|
-
}), le(() => E.value, (b) => h({ uid: M, size: b })), le(() => $.value, (b) => h({ uid: M, min: b })), le(() => H.value, (b) => h({ uid: M, max: b })), Pe(() =>
|
|
232
|
+
}), le(() => E.value, (b) => h({ uid: M, size: b })), le(() => $.value, (b) => h({ uid: M, min: b })), le(() => H.value, (b) => h({ uid: M, max: b })), Pe(() => k(M)), (b, O) => (r(), P("div", {
|
|
233
233
|
ref_key: "paneEl",
|
|
234
234
|
ref: B,
|
|
235
235
|
class: "splitpanes__pane",
|
|
236
236
|
onClick: O[0] || (O[0] = (Q) => i(L)(Q, b._.uid)),
|
|
237
|
-
style:
|
|
237
|
+
style: F(T.value)
|
|
238
238
|
}, [
|
|
239
|
-
|
|
239
|
+
W(b.$slots, "default")
|
|
240
240
|
], 4));
|
|
241
241
|
}
|
|
242
242
|
};
|
|
243
|
-
const Ae = /* @__PURE__ */
|
|
243
|
+
const Ae = /* @__PURE__ */ R({
|
|
244
244
|
__name: "index",
|
|
245
245
|
props: {
|
|
246
246
|
styles: { default: () => ({ width: "100%", height: "100%" }) },
|
|
247
247
|
horizontal: { type: Boolean, default: !1 }
|
|
248
248
|
},
|
|
249
249
|
setup(d) {
|
|
250
|
-
return (m, c) => (r(), _(i(
|
|
250
|
+
return (m, c) => (r(), _(i(Ne), {
|
|
251
251
|
horizontal: m.horizontal,
|
|
252
|
-
style:
|
|
252
|
+
style: F(m.styles),
|
|
253
253
|
class: "splitpanes"
|
|
254
254
|
}, {
|
|
255
|
-
default:
|
|
256
|
-
|
|
255
|
+
default: g(() => [
|
|
256
|
+
W(m.$slots, "default", {}, void 0, !0)
|
|
257
257
|
]),
|
|
258
258
|
_: 3
|
|
259
259
|
}, 8, ["horizontal", "style"]));
|
|
@@ -261,27 +261,27 @@ const Ae = /* @__PURE__ */ W({
|
|
|
261
261
|
});
|
|
262
262
|
const se = (d, m) => {
|
|
263
263
|
const c = d.__vccOpts || d;
|
|
264
|
-
for (const [h,
|
|
265
|
-
c[h] =
|
|
264
|
+
for (const [h, C] of m)
|
|
265
|
+
c[h] = C;
|
|
266
266
|
return c;
|
|
267
|
-
}, Ge = /* @__PURE__ */ se(Ae, [["__scopeId", "data-v-15862e4c"]]), qe = /* @__PURE__ */
|
|
267
|
+
}, Ge = /* @__PURE__ */ se(Ae, [["__scopeId", "data-v-15862e4c"]]), qe = /* @__PURE__ */ R({
|
|
268
268
|
__name: "pane",
|
|
269
269
|
props: {
|
|
270
270
|
styles: { default: () => ({ background: "#ececec" }) }
|
|
271
271
|
},
|
|
272
272
|
setup(d) {
|
|
273
273
|
return (m, c) => (r(), _(i(Oe), {
|
|
274
|
-
style:
|
|
274
|
+
style: F(m.styles)
|
|
275
275
|
}, {
|
|
276
|
-
default:
|
|
277
|
-
|
|
276
|
+
default: g(() => [
|
|
277
|
+
W(m.$slots, "default")
|
|
278
278
|
]),
|
|
279
279
|
_: 3
|
|
280
280
|
}, 8, ["style"]));
|
|
281
281
|
}
|
|
282
282
|
});
|
|
283
283
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
284
|
-
var Ye = /* @__PURE__ */
|
|
284
|
+
var Ye = /* @__PURE__ */ R({
|
|
285
285
|
name: "Check",
|
|
286
286
|
__name: "check",
|
|
287
287
|
setup(d) {
|
|
@@ -295,7 +295,7 @@ var Ye = /* @__PURE__ */ W({
|
|
|
295
295
|
})
|
|
296
296
|
]));
|
|
297
297
|
}
|
|
298
|
-
}), Ke = Ye, Xe = /* @__PURE__ */
|
|
298
|
+
}), Ke = Ye, Xe = /* @__PURE__ */ R({
|
|
299
299
|
name: "CircleClose",
|
|
300
300
|
__name: "circle-close",
|
|
301
301
|
setup(d) {
|
|
@@ -313,7 +313,7 @@ var Ye = /* @__PURE__ */ W({
|
|
|
313
313
|
})
|
|
314
314
|
]));
|
|
315
315
|
}
|
|
316
|
-
}), Je = Xe, Qe = /* @__PURE__ */
|
|
316
|
+
}), Je = Xe, Qe = /* @__PURE__ */ R({
|
|
317
317
|
name: "Close",
|
|
318
318
|
__name: "close",
|
|
319
319
|
setup(d) {
|
|
@@ -327,7 +327,7 @@ var Ye = /* @__PURE__ */ W({
|
|
|
327
327
|
})
|
|
328
328
|
]));
|
|
329
329
|
}
|
|
330
|
-
}), Le = Qe, Ze = /* @__PURE__ */
|
|
330
|
+
}), Le = Qe, Ze = /* @__PURE__ */ R({
|
|
331
331
|
name: "DeleteFilled",
|
|
332
332
|
__name: "delete-filled",
|
|
333
333
|
setup(d) {
|
|
@@ -341,7 +341,7 @@ var Ye = /* @__PURE__ */ W({
|
|
|
341
341
|
})
|
|
342
342
|
]));
|
|
343
343
|
}
|
|
344
|
-
}), je = Ze, el = /* @__PURE__ */
|
|
344
|
+
}), je = Ze, el = /* @__PURE__ */ R({
|
|
345
345
|
name: "Delete",
|
|
346
346
|
__name: "delete",
|
|
347
347
|
setup(d) {
|
|
@@ -355,7 +355,7 @@ var Ye = /* @__PURE__ */ W({
|
|
|
355
355
|
})
|
|
356
356
|
]));
|
|
357
357
|
}
|
|
358
|
-
}), ll = el, tl = /* @__PURE__ */
|
|
358
|
+
}), ll = el, tl = /* @__PURE__ */ R({
|
|
359
359
|
name: "Edit",
|
|
360
360
|
__name: "edit",
|
|
361
361
|
setup(d) {
|
|
@@ -373,7 +373,7 @@ var Ye = /* @__PURE__ */ W({
|
|
|
373
373
|
})
|
|
374
374
|
]));
|
|
375
375
|
}
|
|
376
|
-
}), al = tl, nl = /* @__PURE__ */
|
|
376
|
+
}), al = tl, nl = /* @__PURE__ */ R({
|
|
377
377
|
name: "Filter",
|
|
378
378
|
__name: "filter",
|
|
379
379
|
setup(d) {
|
|
@@ -387,7 +387,7 @@ var Ye = /* @__PURE__ */ W({
|
|
|
387
387
|
})
|
|
388
388
|
]));
|
|
389
389
|
}
|
|
390
|
-
}), Me = nl, ol = /* @__PURE__ */
|
|
390
|
+
}), Me = nl, ol = /* @__PURE__ */ R({
|
|
391
391
|
name: "FolderOpened",
|
|
392
392
|
__name: "folder-opened",
|
|
393
393
|
setup(d) {
|
|
@@ -401,7 +401,7 @@ var Ye = /* @__PURE__ */ W({
|
|
|
401
401
|
})
|
|
402
402
|
]));
|
|
403
403
|
}
|
|
404
|
-
}), Ee = ol, il = /* @__PURE__ */
|
|
404
|
+
}), Ee = ol, il = /* @__PURE__ */ R({
|
|
405
405
|
name: "FullScreen",
|
|
406
406
|
__name: "full-screen",
|
|
407
407
|
setup(d) {
|
|
@@ -415,7 +415,7 @@ var Ye = /* @__PURE__ */ W({
|
|
|
415
415
|
})
|
|
416
416
|
]));
|
|
417
417
|
}
|
|
418
|
-
}), sl = il, rl = /* @__PURE__ */
|
|
418
|
+
}), sl = il, rl = /* @__PURE__ */ R({
|
|
419
419
|
name: "Minus",
|
|
420
420
|
__name: "minus",
|
|
421
421
|
setup(d) {
|
|
@@ -429,7 +429,7 @@ var Ye = /* @__PURE__ */ W({
|
|
|
429
429
|
})
|
|
430
430
|
]));
|
|
431
431
|
}
|
|
432
|
-
}), dl = rl, ul = /* @__PURE__ */
|
|
432
|
+
}), dl = rl, ul = /* @__PURE__ */ R({
|
|
433
433
|
name: "Search",
|
|
434
434
|
__name: "search",
|
|
435
435
|
setup(d) {
|
|
@@ -443,7 +443,7 @@ var Ye = /* @__PURE__ */ W({
|
|
|
443
443
|
})
|
|
444
444
|
]));
|
|
445
445
|
}
|
|
446
|
-
}), pl = ul, cl = /* @__PURE__ */
|
|
446
|
+
}), pl = ul, cl = /* @__PURE__ */ R({
|
|
447
447
|
name: "Upload",
|
|
448
448
|
__name: "upload",
|
|
449
449
|
setup(d) {
|
|
@@ -493,7 +493,7 @@ var Ye = /* @__PURE__ */ W({
|
|
|
493
493
|
}, d.validator = new RegExp("^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$", "i"), d.EMPTY = "00000000-0000-0000-0000-000000000000", d;
|
|
494
494
|
}()
|
|
495
495
|
), hl = ml;
|
|
496
|
-
const fl = { style: {} }, _l = ["id", "accept"], vl = { class: "filename" }, zl = /* @__PURE__ */
|
|
496
|
+
const fl = { style: {} }, _l = ["id", "accept"], vl = { class: "filename" }, zl = /* @__PURE__ */ R({
|
|
497
497
|
__name: "index",
|
|
498
498
|
props: {
|
|
499
499
|
size: { default: "default" },
|
|
@@ -505,58 +505,58 @@ const fl = { style: {} }, _l = ["id", "accept"], vl = { class: "filename" }, zl
|
|
|
505
505
|
emits: ["upload"],
|
|
506
506
|
setup(d, { expose: m, emit: c }) {
|
|
507
507
|
const h = c;
|
|
508
|
-
let
|
|
508
|
+
let C = hl.create().toString(), t, k = D("");
|
|
509
509
|
function L() {
|
|
510
510
|
t.click();
|
|
511
511
|
}
|
|
512
512
|
function M() {
|
|
513
|
-
|
|
513
|
+
k.value = t.value;
|
|
514
514
|
}
|
|
515
515
|
function w() {
|
|
516
516
|
t.files !== null && h("upload", t.files[0]);
|
|
517
517
|
}
|
|
518
|
-
function
|
|
519
|
-
t.value = "",
|
|
518
|
+
function S() {
|
|
519
|
+
t.value = "", k.value = "";
|
|
520
520
|
}
|
|
521
521
|
return ce(() => {
|
|
522
|
-
t = document.getElementById(
|
|
522
|
+
t = document.getElementById(C);
|
|
523
523
|
}), m({
|
|
524
|
-
Clear:
|
|
524
|
+
Clear: S
|
|
525
525
|
}), (B, E) => {
|
|
526
526
|
const $ = V("el-button");
|
|
527
527
|
return r(), P("div", fl, [
|
|
528
|
-
|
|
528
|
+
I($, {
|
|
529
529
|
type: B.type,
|
|
530
530
|
icon: i(Ee),
|
|
531
531
|
size: B.size,
|
|
532
532
|
class: "btn",
|
|
533
533
|
onClick: L
|
|
534
534
|
}, {
|
|
535
|
-
default:
|
|
535
|
+
default: g(() => E[0] || (E[0] = [
|
|
536
536
|
A("选择文件")
|
|
537
537
|
])),
|
|
538
538
|
_: 1,
|
|
539
539
|
__: [0]
|
|
540
540
|
}, 8, ["type", "icon", "size"]),
|
|
541
|
-
|
|
541
|
+
Fe(U("input", {
|
|
542
542
|
type: "file",
|
|
543
|
-
id: i(
|
|
543
|
+
id: i(C),
|
|
544
544
|
onChange: M,
|
|
545
545
|
accept: B.accept
|
|
546
546
|
}, null, 40, _l), [
|
|
547
547
|
[He, !1]
|
|
548
548
|
]),
|
|
549
|
-
U("span", vl, ie(i(
|
|
550
|
-
|
|
549
|
+
U("span", vl, ie(i(k)), 1),
|
|
550
|
+
I($, {
|
|
551
551
|
type: B.type,
|
|
552
552
|
icon: B.icon,
|
|
553
553
|
size: B.size,
|
|
554
|
-
disabled: i(
|
|
554
|
+
disabled: i(k) == null || i(k) == "",
|
|
555
555
|
class: "btn",
|
|
556
|
-
title: i(
|
|
556
|
+
title: i(k) == null || i(k) == "" ? "请选择文件" : "",
|
|
557
557
|
onClick: w
|
|
558
558
|
}, {
|
|
559
|
-
default:
|
|
559
|
+
default: g(() => [
|
|
560
560
|
A(ie(B.name), 1)
|
|
561
561
|
]),
|
|
562
562
|
_: 1
|
|
@@ -565,7 +565,7 @@ const fl = { style: {} }, _l = ["id", "accept"], vl = { class: "filename" }, zl
|
|
|
565
565
|
};
|
|
566
566
|
}
|
|
567
567
|
});
|
|
568
|
-
const
|
|
568
|
+
const gl = /* @__PURE__ */ se(zl, [["__scopeId", "data-v-d2ed1fe1"]]), yl = ["accept"], wl = { class: "filename" }, bl = { class: "content" }, xl = /* @__PURE__ */ R({
|
|
569
569
|
__name: "index",
|
|
570
570
|
props: {
|
|
571
571
|
size: { default: "default" },
|
|
@@ -573,27 +573,27 @@ const yl = /* @__PURE__ */ se(zl, [["__scopeId", "data-v-d2ed1fe1"]]), gl = ["ac
|
|
|
573
573
|
},
|
|
574
574
|
emits: ["upload", "clear"],
|
|
575
575
|
setup(d, { expose: m, emit: c }) {
|
|
576
|
-
const h = d,
|
|
576
|
+
const h = d, C = c, t = D(), k = D([]);
|
|
577
577
|
function L() {
|
|
578
578
|
var E;
|
|
579
579
|
(E = t.value) == null || E.click();
|
|
580
580
|
}
|
|
581
581
|
function M() {
|
|
582
582
|
var E, $, H;
|
|
583
|
-
if (
|
|
584
|
-
for (let
|
|
585
|
-
|
|
583
|
+
if (k.value = [], (E = t.value) != null && E.files)
|
|
584
|
+
for (let T = 0; T < ((H = ($ = t.value) == null ? void 0 : $.files) == null ? void 0 : H.length); T++)
|
|
585
|
+
k.value[T] = t.value.files[T];
|
|
586
586
|
else
|
|
587
|
-
|
|
587
|
+
k.value = [];
|
|
588
588
|
}
|
|
589
589
|
function w(E) {
|
|
590
|
-
|
|
590
|
+
k.value.splice(E, 1);
|
|
591
591
|
}
|
|
592
|
-
function
|
|
593
|
-
|
|
592
|
+
function S() {
|
|
593
|
+
C("upload", k.value);
|
|
594
594
|
}
|
|
595
595
|
function B() {
|
|
596
|
-
|
|
596
|
+
k.value = [];
|
|
597
597
|
}
|
|
598
598
|
return m({
|
|
599
599
|
Clear: B
|
|
@@ -608,35 +608,35 @@ const yl = /* @__PURE__ */ se(zl, [["__scopeId", "data-v-d2ed1fe1"]]), gl = ["ac
|
|
|
608
608
|
style: { display: "none" },
|
|
609
609
|
onChange: M,
|
|
610
610
|
accept: h.accept
|
|
611
|
-
}, null, 40,
|
|
612
|
-
|
|
611
|
+
}, null, 40, yl),
|
|
612
|
+
I(H, {
|
|
613
613
|
type: "success",
|
|
614
614
|
size: h.size,
|
|
615
615
|
icon: i(Ee),
|
|
616
616
|
onClick: L
|
|
617
617
|
}, {
|
|
618
|
-
default:
|
|
618
|
+
default: g(() => $[0] || ($[0] = [
|
|
619
619
|
A("选择文件")
|
|
620
620
|
])),
|
|
621
621
|
_: 1,
|
|
622
622
|
__: [0]
|
|
623
623
|
}, 8, ["size", "icon"]),
|
|
624
|
-
|
|
624
|
+
I(H, {
|
|
625
625
|
type: "success",
|
|
626
626
|
size: h.size,
|
|
627
627
|
icon: i($e),
|
|
628
|
-
onClick:
|
|
629
|
-
disabled:
|
|
628
|
+
onClick: S,
|
|
629
|
+
disabled: k.value.length == 0
|
|
630
630
|
}, {
|
|
631
|
-
default:
|
|
631
|
+
default: g(() => $[1] || ($[1] = [
|
|
632
632
|
A("上传文件")
|
|
633
633
|
])),
|
|
634
634
|
_: 1,
|
|
635
635
|
__: [1]
|
|
636
636
|
}, 8, ["size", "icon", "disabled"]),
|
|
637
|
-
(r(!0), P(J, null, oe(
|
|
638
|
-
U("span", bl, ie(
|
|
639
|
-
|
|
637
|
+
(r(!0), P(J, null, oe(k.value, (T, b) => (r(), P("p", wl, [
|
|
638
|
+
U("span", bl, ie(T.name), 1),
|
|
639
|
+
I(H, {
|
|
640
640
|
size: "small",
|
|
641
641
|
icon: i(Le),
|
|
642
642
|
class: "operation",
|
|
@@ -648,7 +648,7 @@ const yl = /* @__PURE__ */ se(zl, [["__scopeId", "data-v-d2ed1fe1"]]), gl = ["ac
|
|
|
648
648
|
};
|
|
649
649
|
}
|
|
650
650
|
});
|
|
651
|
-
const Vl = /* @__PURE__ */ se(xl, [["__scopeId", "data-v-fd9596c6"]]), kl = /* @__PURE__ */
|
|
651
|
+
const Vl = /* @__PURE__ */ se(xl, [["__scopeId", "data-v-fd9596c6"]]), kl = /* @__PURE__ */ R({
|
|
652
652
|
__name: "index",
|
|
653
653
|
props: {
|
|
654
654
|
asideWidth: { default: 220 },
|
|
@@ -658,56 +658,56 @@ const Vl = /* @__PURE__ */ se(xl, [["__scopeId", "data-v-fd9596c6"]]), kl = /* @
|
|
|
658
658
|
setup(d) {
|
|
659
659
|
const m = be();
|
|
660
660
|
return (c, h) => {
|
|
661
|
-
const
|
|
661
|
+
const C = V("el-aside"), t = V("el-header"), k = V("el-main"), L = V("el-container");
|
|
662
662
|
return r(), _(L, { class: "container" }, {
|
|
663
|
-
default:
|
|
664
|
-
i(m).aside && !c.horizontal ? (r(), _(
|
|
663
|
+
default: g(() => [
|
|
664
|
+
i(m).aside && !c.horizontal ? (r(), _(C, {
|
|
665
665
|
key: 0,
|
|
666
666
|
class: "aside",
|
|
667
|
-
style:
|
|
667
|
+
style: F("width: " + c.asideWidth + "px;")
|
|
668
668
|
}, {
|
|
669
|
-
default:
|
|
670
|
-
|
|
669
|
+
default: g(() => [
|
|
670
|
+
W(c.$slots, "aside", {}, void 0, !0)
|
|
671
671
|
]),
|
|
672
672
|
_: 3
|
|
673
673
|
}, 8, ["style"])) : z("", !0),
|
|
674
674
|
i(m).header && c.horizontal ? (r(), _(t, {
|
|
675
675
|
key: 1,
|
|
676
676
|
class: "inside_header",
|
|
677
|
-
style:
|
|
677
|
+
style: F("height: " + c.headerMaxHeight + "px;")
|
|
678
678
|
}, {
|
|
679
|
-
default:
|
|
680
|
-
|
|
679
|
+
default: g(() => [
|
|
680
|
+
W(c.$slots, "header", {}, void 0, !0)
|
|
681
681
|
]),
|
|
682
682
|
_: 3
|
|
683
683
|
}, 8, ["style"])) : z("", !0),
|
|
684
|
-
|
|
685
|
-
default:
|
|
686
|
-
|
|
687
|
-
default:
|
|
684
|
+
I(k, { class: "main" }, {
|
|
685
|
+
default: g(() => [
|
|
686
|
+
I(L, { class: "inside_container" }, {
|
|
687
|
+
default: g(() => [
|
|
688
688
|
i(m).header && !c.horizontal ? (r(), _(t, {
|
|
689
689
|
key: 0,
|
|
690
690
|
class: "inside_header",
|
|
691
|
-
style:
|
|
691
|
+
style: F("height: " + c.headerMaxHeight + "px;")
|
|
692
692
|
}, {
|
|
693
|
-
default:
|
|
694
|
-
|
|
693
|
+
default: g(() => [
|
|
694
|
+
W(c.$slots, "header", {}, void 0, !0)
|
|
695
695
|
]),
|
|
696
696
|
_: 3
|
|
697
697
|
}, 8, ["style"])) : z("", !0),
|
|
698
|
-
i(m).aside && c.horizontal ? (r(), _(
|
|
698
|
+
i(m).aside && c.horizontal ? (r(), _(C, {
|
|
699
699
|
key: 1,
|
|
700
700
|
class: "aside",
|
|
701
|
-
style:
|
|
701
|
+
style: F("width: " + c.asideWidth + "px;")
|
|
702
702
|
}, {
|
|
703
|
-
default:
|
|
704
|
-
|
|
703
|
+
default: g(() => [
|
|
704
|
+
W(c.$slots, "aside", {}, void 0, !0)
|
|
705
705
|
]),
|
|
706
706
|
_: 3
|
|
707
707
|
}, 8, ["style"])) : z("", !0),
|
|
708
|
-
|
|
709
|
-
default:
|
|
710
|
-
|
|
708
|
+
I(k, { class: "inside_main" }, {
|
|
709
|
+
default: g(() => [
|
|
710
|
+
W(c.$slots, "default", {}, void 0, !0)
|
|
711
711
|
]),
|
|
712
712
|
_: 3
|
|
713
713
|
})
|
|
@@ -726,7 +726,7 @@ const Vl = /* @__PURE__ */ se(xl, [["__scopeId", "data-v-fd9596c6"]]), kl = /* @
|
|
|
726
726
|
const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
727
727
|
key: 0,
|
|
728
728
|
class: "header"
|
|
729
|
-
}, Ml = { class: "header_title" }, Pl = ["innerHTML"], Ul = { class: "header_title" }, Bl = { class: "pagination" }, Ll = /* @__PURE__ */
|
|
729
|
+
}, Ml = { class: "header_title" }, Pl = ["innerHTML"], Ul = { class: "header_title" }, Bl = { class: "pagination" }, Ll = /* @__PURE__ */ R({
|
|
730
730
|
__name: "index",
|
|
731
731
|
props: {
|
|
732
732
|
maxHeight: { default: 550 },
|
|
@@ -757,35 +757,35 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
757
757
|
total: { default: 0 },
|
|
758
758
|
hideOnSinglePage: { type: Boolean, default: !1 },
|
|
759
759
|
defaultSelect: {},
|
|
760
|
-
defaultSize: { default:
|
|
760
|
+
defaultSize: { default: 10 },
|
|
761
761
|
filter: { type: Boolean }
|
|
762
762
|
},
|
|
763
|
-
emits: ["row-click", "row-dblclick", "selection-change", "search", "clear", "delete", "edit", "page-
|
|
763
|
+
emits: ["row-click", "row-dblclick", "selection-change", "search", "clear", "delete", "edit", "page-change", "get-ref", "filter"],
|
|
764
764
|
setup(d, { expose: m, emit: c }) {
|
|
765
|
-
const h = d,
|
|
765
|
+
const h = d, C = c;
|
|
766
766
|
let t = De({
|
|
767
767
|
pageIndex: 1,
|
|
768
|
-
pageSize:
|
|
769
|
-
}),
|
|
770
|
-
const M = D([]), w = D([]),
|
|
771
|
-
|
|
768
|
+
pageSize: 10
|
|
769
|
+
}), k = D(), L = D();
|
|
770
|
+
const M = D([]), w = D([]), S = D(!1), B = be(), E = (e) => {
|
|
771
|
+
C("row-click", e);
|
|
772
772
|
}, $ = (e) => {
|
|
773
|
-
|
|
773
|
+
C("row-click", e);
|
|
774
774
|
}, H = (e) => {
|
|
775
|
-
|
|
776
|
-
},
|
|
775
|
+
C("selection-change", e);
|
|
776
|
+
}, T = () => {
|
|
777
777
|
if (h.tableColumn.length > 0)
|
|
778
778
|
for (let e = 0; e < h.tableColumn.length; e++) {
|
|
779
779
|
let s = h.tableColumn[e];
|
|
780
780
|
t[s.prop] = null;
|
|
781
781
|
}
|
|
782
|
-
|
|
782
|
+
t.pageIndex = 1, C("clear", t.pageIndex, t.pageSize);
|
|
783
783
|
}, b = () => {
|
|
784
|
-
|
|
784
|
+
C("search", t);
|
|
785
785
|
}, O = (e) => {
|
|
786
|
-
|
|
786
|
+
C("edit", e);
|
|
787
787
|
}, Q = (e) => {
|
|
788
|
-
|
|
788
|
+
C("delete", e);
|
|
789
789
|
}, Z = (e) => {
|
|
790
790
|
for (let s = 0; s < e.length; s++)
|
|
791
791
|
t[e[s].prop] = e[s].label;
|
|
@@ -793,7 +793,7 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
793
793
|
M.value.forEach((e) => {
|
|
794
794
|
var s = w.value.find((v) => v.label == e.label);
|
|
795
795
|
s && s.filter && (e.hidden = !s.check, e.hidden && (t[e.prop] = null));
|
|
796
|
-
}),
|
|
796
|
+
}), S.value = !1, L.value.hide(), C("filter", () => w.value);
|
|
797
797
|
}, de = (e) => {
|
|
798
798
|
M.value = e, h.filter && (w.value = [], M.value.forEach((s) => {
|
|
799
799
|
s.filter ? s.check ? w.value.push({
|
|
@@ -820,12 +820,12 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
820
820
|
return le(
|
|
821
821
|
() => t.pageIndex,
|
|
822
822
|
(e, s) => {
|
|
823
|
-
|
|
823
|
+
C("page-change", t.pageIndex, t.pageSize);
|
|
824
824
|
}
|
|
825
825
|
), le(
|
|
826
826
|
() => t.pageSize,
|
|
827
827
|
(e, s) => {
|
|
828
|
-
|
|
828
|
+
t.pageIndex = 1, C("page-change", t.pageIndex, t.pageSize);
|
|
829
829
|
}
|
|
830
830
|
), m({
|
|
831
831
|
Assignment: Z,
|
|
@@ -838,15 +838,15 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
838
838
|
t[s.prop] = null;
|
|
839
839
|
}
|
|
840
840
|
h.tableData.forEach((e) => {
|
|
841
|
-
h.defaultSelect && h.type == "selection" && h.defaultSelect(e) &&
|
|
841
|
+
h.defaultSelect && h.type == "selection" && h.defaultSelect(e) && k.value.toggleRowSelection(e, void 0, !1);
|
|
842
842
|
}), t.pageSize = h.defaultSize, h.filter || (M.value = h.tableColumn);
|
|
843
843
|
}), (e, s) => {
|
|
844
|
-
const v = V("el-table-column"), Y = V("el-input"), me = V("el-input-number"), he = V("el-option"), fe = V("el-select"), j = V("el-date-picker"), pe = V("el-time-picker"), ae = V("el-switch"), X = V("el-button"), _e = V("el-icon"), ve = V("el-checkbox"), ue = V("el-popover"), ze = V("el-popconfirm"),
|
|
844
|
+
const v = V("el-table-column"), Y = V("el-input"), me = V("el-input-number"), he = V("el-option"), fe = V("el-select"), j = V("el-date-picker"), pe = V("el-time-picker"), ae = V("el-switch"), X = V("el-button"), _e = V("el-icon"), ve = V("el-checkbox"), ue = V("el-popover"), ze = V("el-popconfirm"), ge = V("el-table"), ye = V("el-pagination");
|
|
845
845
|
return r(), P(J, null, [
|
|
846
846
|
i(B).header ? (r(), P("div", Cl, [
|
|
847
|
-
|
|
847
|
+
W(e.$slots, "header", {}, void 0, !0)
|
|
848
848
|
])) : z("", !0),
|
|
849
|
-
|
|
849
|
+
I(ge, {
|
|
850
850
|
data: e.tableData,
|
|
851
851
|
class: q([e.size && e.size == "small" ? "mini-table" : "table"]),
|
|
852
852
|
"max-height": e.maxHeight,
|
|
@@ -858,10 +858,10 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
858
858
|
onRowDblclick: $,
|
|
859
859
|
onSelectionChange: H,
|
|
860
860
|
ref_key: "tableRef",
|
|
861
|
-
ref:
|
|
861
|
+
ref: k,
|
|
862
862
|
"header-cell-style": e.headStyle
|
|
863
863
|
}, {
|
|
864
|
-
default:
|
|
864
|
+
default: g(() => [
|
|
865
865
|
e.type && e.type == "index" ? (r(), _(v, {
|
|
866
866
|
key: 0,
|
|
867
867
|
align: "center",
|
|
@@ -885,8 +885,8 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
885
885
|
fixed: e.typeIsFixed ? "left" : !1,
|
|
886
886
|
label: e.typeLabel
|
|
887
887
|
}, {
|
|
888
|
-
default:
|
|
889
|
-
|
|
888
|
+
default: g((l) => [
|
|
889
|
+
W(e.$slots, "expand", {
|
|
890
890
|
row: l == null ? void 0 : l.row
|
|
891
891
|
}, void 0, !0)
|
|
892
892
|
]),
|
|
@@ -902,15 +902,15 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
902
902
|
align: l.align ? l.align : "left",
|
|
903
903
|
"show-overflow-tooltip": !!l.overflow
|
|
904
904
|
}, Be({
|
|
905
|
-
header:
|
|
905
|
+
header: g(() => [
|
|
906
906
|
U("div", Ml, ie(l.label), 1),
|
|
907
907
|
l.search && (!l.type || l.type == "text") ? (r(), _(Y, {
|
|
908
908
|
key: 0,
|
|
909
909
|
modelValue: i(t)[l.prop],
|
|
910
|
-
"onUpdate:modelValue": (
|
|
910
|
+
"onUpdate:modelValue": (y) => i(t)[l.prop] = y,
|
|
911
911
|
size: l.size,
|
|
912
912
|
clearable: "",
|
|
913
|
-
style:
|
|
913
|
+
style: F(
|
|
914
914
|
l.searchWidth ? "width: " + l.searchWidth + "px;" : "width: 92%"
|
|
915
915
|
),
|
|
916
916
|
disabled: l.disabled,
|
|
@@ -921,10 +921,10 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
921
921
|
l.search && l.type == "number" ? (r(), _(me, {
|
|
922
922
|
key: 1,
|
|
923
923
|
modelValue: i(t)[l.prop],
|
|
924
|
-
"onUpdate:modelValue": (
|
|
924
|
+
"onUpdate:modelValue": (y) => i(t)[l.prop] = y,
|
|
925
925
|
size: l.size,
|
|
926
926
|
clearable: "",
|
|
927
|
-
style:
|
|
927
|
+
style: F(
|
|
928
928
|
l.searchWidth ? "width: " + l.searchWidth + "px;" : "width: 92%"
|
|
929
929
|
),
|
|
930
930
|
disabled: l.disabled,
|
|
@@ -938,11 +938,11 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
938
938
|
l.search && l.type == "select" ? (r(), _(fe, {
|
|
939
939
|
key: 2,
|
|
940
940
|
modelValue: i(t)[l.prop],
|
|
941
|
-
"onUpdate:modelValue": (
|
|
941
|
+
"onUpdate:modelValue": (y) => i(t)[l.prop] = y,
|
|
942
942
|
size: l.size,
|
|
943
943
|
clearable: "",
|
|
944
944
|
filterable: "",
|
|
945
|
-
style:
|
|
945
|
+
style: F(
|
|
946
946
|
l.searchWidth ? "width: " + l.searchWidth + "px;" : "width: 92%"
|
|
947
947
|
),
|
|
948
948
|
disabled: l.disabled,
|
|
@@ -951,11 +951,11 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
951
951
|
placeholder: l.placeholder ? l.placeholder : "请选择" + l.label,
|
|
952
952
|
class: q([l.align && l.align == "center" ? "center" : ""])
|
|
953
953
|
}, {
|
|
954
|
-
default:
|
|
955
|
-
(r(!0), P(J, null, oe(l.options, (
|
|
956
|
-
label:
|
|
957
|
-
value:
|
|
958
|
-
disabled:
|
|
954
|
+
default: g(() => [
|
|
955
|
+
(r(!0), P(J, null, oe(l.options, (y) => (r(), _(he, {
|
|
956
|
+
label: y.label ? y.label : y.value,
|
|
957
|
+
value: y.value,
|
|
958
|
+
disabled: y.disabled
|
|
959
959
|
}, null, 8, ["label", "value", "disabled"]))), 256))
|
|
960
960
|
]),
|
|
961
961
|
_: 2
|
|
@@ -963,9 +963,9 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
963
963
|
l.search && l.type == "date" ? (r(), _(j, {
|
|
964
964
|
key: 3,
|
|
965
965
|
modelValue: i(t)[l.prop],
|
|
966
|
-
"onUpdate:modelValue": (
|
|
966
|
+
"onUpdate:modelValue": (y) => i(t)[l.prop] = y,
|
|
967
967
|
type: "date",
|
|
968
|
-
style:
|
|
968
|
+
style: F(l.searchWidth ? "width: " + l.searchWidth + "px;" : ""),
|
|
969
969
|
placeholder: l.placeholder ? l.placeholder : "请选择日期",
|
|
970
970
|
size: l.size,
|
|
971
971
|
class: q([l.align && l.align == "center" ? "center" : ""])
|
|
@@ -973,9 +973,9 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
973
973
|
l.search && l.type == "time" ? (r(), _(pe, {
|
|
974
974
|
key: 4,
|
|
975
975
|
modelValue: i(t)[l.prop],
|
|
976
|
-
"onUpdate:modelValue": (
|
|
976
|
+
"onUpdate:modelValue": (y) => i(t)[l.prop] = y,
|
|
977
977
|
"arrow-control": "",
|
|
978
|
-
style:
|
|
978
|
+
style: F(
|
|
979
979
|
l.searchWidth ? "width: " + l.searchWidth + "px;" : "width: 92%"
|
|
980
980
|
),
|
|
981
981
|
placeholder: l.placeholder ? l.placeholder : "请选择时间",
|
|
@@ -985,9 +985,9 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
985
985
|
l.search && l.type == "datetime" ? (r(), _(j, {
|
|
986
986
|
key: 5,
|
|
987
987
|
modelValue: i(t)[l.prop],
|
|
988
|
-
"onUpdate:modelValue": (
|
|
988
|
+
"onUpdate:modelValue": (y) => i(t)[l.prop] = y,
|
|
989
989
|
type: "datetime",
|
|
990
|
-
style:
|
|
990
|
+
style: F(
|
|
991
991
|
l.searchWidth ? "width: " + l.searchWidth + "px;" : "width: 92%"
|
|
992
992
|
),
|
|
993
993
|
placeholder: l.placeholder ? l.placeholder : "请选择日期时间",
|
|
@@ -997,12 +997,12 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
997
997
|
l.search && l.type == "daterange" ? (r(), _(j, {
|
|
998
998
|
key: 6,
|
|
999
999
|
modelValue: i(t)[l.prop],
|
|
1000
|
-
"onUpdate:modelValue": (
|
|
1000
|
+
"onUpdate:modelValue": (y) => i(t)[l.prop] = y,
|
|
1001
1001
|
type: "daterange",
|
|
1002
1002
|
"range-separator": "-",
|
|
1003
1003
|
"start-placeholder": l.placeholder ? l.placeholder.split("&&")[0] : "请选择开始日期",
|
|
1004
1004
|
"end-placeholder": l.placeholder ? l.placeholder.split("&&")[1] : "请选择结束日期",
|
|
1005
|
-
style:
|
|
1005
|
+
style: F(
|
|
1006
1006
|
l.searchWidth ? "width: " + l.searchWidth + "px;" : "width: 92%"
|
|
1007
1007
|
),
|
|
1008
1008
|
size: l.size,
|
|
@@ -1011,13 +1011,13 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
1011
1011
|
l.search && l.type == "timerange" ? (r(), _(pe, {
|
|
1012
1012
|
key: 7,
|
|
1013
1013
|
modelValue: i(t)[l.prop],
|
|
1014
|
-
"onUpdate:modelValue": (
|
|
1014
|
+
"onUpdate:modelValue": (y) => i(t)[l.prop] = y,
|
|
1015
1015
|
"is-range": "",
|
|
1016
1016
|
"arrow-control": "",
|
|
1017
1017
|
"range-separator": "-",
|
|
1018
1018
|
"start-placeholder": l.placeholder ? l.placeholder.split("&&")[0] : "请选择开始时间",
|
|
1019
1019
|
"end-placeholder": l.placeholder ? l.placeholder.split("&&")[1] : "请选择结束时间",
|
|
1020
|
-
style:
|
|
1020
|
+
style: F(
|
|
1021
1021
|
l.searchWidth ? "width: " + l.searchWidth + "px;" : "width: 92%"
|
|
1022
1022
|
),
|
|
1023
1023
|
size: l.size,
|
|
@@ -1026,12 +1026,12 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
1026
1026
|
l.search && l.type == "datetimerange" ? (r(), _(j, {
|
|
1027
1027
|
key: 8,
|
|
1028
1028
|
modelValue: i(t)[l.prop],
|
|
1029
|
-
"onUpdate:modelValue": (
|
|
1029
|
+
"onUpdate:modelValue": (y) => i(t)[l.prop] = y,
|
|
1030
1030
|
type: "datetimerange",
|
|
1031
1031
|
"range-separator": "-",
|
|
1032
1032
|
"start-placeholder": l.placeholder ? l.placeholder.split("&&")[0] : "请选择开始日期时间",
|
|
1033
1033
|
"end-placeholder": l.placeholder ? l.placeholder.split("&&")[1] : "请选择结束日期时间",
|
|
1034
|
-
style:
|
|
1034
|
+
style: F(
|
|
1035
1035
|
l.searchWidth ? "width: " + l.searchWidth + "px;" : "width: 92%"
|
|
1036
1036
|
),
|
|
1037
1037
|
size: l.size,
|
|
@@ -1040,7 +1040,7 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
1040
1040
|
l.search && l.type == "switch" ? (r(), _(ae, {
|
|
1041
1041
|
key: 9,
|
|
1042
1042
|
modelValue: i(t)[l.prop],
|
|
1043
|
-
"onUpdate:modelValue": (
|
|
1043
|
+
"onUpdate:modelValue": (y) => i(t)[l.prop] = y,
|
|
1044
1044
|
size: l.size,
|
|
1045
1045
|
"active-text": l.openText,
|
|
1046
1046
|
"inactive-text": l.closeText,
|
|
@@ -1051,18 +1051,18 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
1051
1051
|
}, [
|
|
1052
1052
|
l.costom ? {
|
|
1053
1053
|
name: "default",
|
|
1054
|
-
fn:
|
|
1054
|
+
fn: g((y) => [
|
|
1055
1055
|
U("span", {
|
|
1056
|
-
innerHTML: l.costom ? l.costom(
|
|
1056
|
+
innerHTML: l.costom ? l.costom(y == null ? void 0 : y.row) : ""
|
|
1057
1057
|
}, null, 8, Pl)
|
|
1058
1058
|
]),
|
|
1059
1059
|
key: "0"
|
|
1060
1060
|
} : void 0,
|
|
1061
1061
|
l.component ? {
|
|
1062
1062
|
name: "default",
|
|
1063
|
-
fn:
|
|
1063
|
+
fn: g((y) => [
|
|
1064
1064
|
(r(), _(Ue(l.component), {
|
|
1065
|
-
data:
|
|
1065
|
+
data: y == null ? void 0 : y.row
|
|
1066
1066
|
}, null, 8, ["data"]))
|
|
1067
1067
|
]),
|
|
1068
1068
|
key: "1"
|
|
@@ -1075,9 +1075,9 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
1075
1075
|
"min-width": e.operateWidth ? e.operateWidth : "",
|
|
1076
1076
|
fixed: e.operateIsFixed ? "right" : !1
|
|
1077
1077
|
}, {
|
|
1078
|
-
header:
|
|
1078
|
+
header: g(() => [
|
|
1079
1079
|
U("div", Ul, ie(e.operateLabel), 1),
|
|
1080
|
-
|
|
1080
|
+
W(e.$slots, "operate-front", {}, void 0, !0),
|
|
1081
1081
|
e.search ? (r(), _(X, {
|
|
1082
1082
|
key: 0,
|
|
1083
1083
|
type: "primary",
|
|
@@ -1085,27 +1085,27 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
1085
1085
|
icon: i(pl),
|
|
1086
1086
|
onClick: b
|
|
1087
1087
|
}, {
|
|
1088
|
-
default:
|
|
1088
|
+
default: g(() => s[3] || (s[3] = [
|
|
1089
1089
|
A("搜索")
|
|
1090
1090
|
])),
|
|
1091
1091
|
_: 1,
|
|
1092
1092
|
__: [3]
|
|
1093
1093
|
}, 8, ["size", "icon"])) : z("", !0),
|
|
1094
|
-
|
|
1094
|
+
W(e.$slots, "operate-middle", {}, void 0, !0),
|
|
1095
1095
|
e.clear ? (r(), _(X, {
|
|
1096
1096
|
key: 1,
|
|
1097
1097
|
type: "info",
|
|
1098
1098
|
size: e.operateSize,
|
|
1099
1099
|
icon: i(Je),
|
|
1100
|
-
onClick:
|
|
1100
|
+
onClick: T
|
|
1101
1101
|
}, {
|
|
1102
|
-
default:
|
|
1102
|
+
default: g(() => s[4] || (s[4] = [
|
|
1103
1103
|
A("清空")
|
|
1104
1104
|
])),
|
|
1105
1105
|
_: 1,
|
|
1106
1106
|
__: [4]
|
|
1107
1107
|
}, 8, ["size", "icon"])) : z("", !0),
|
|
1108
|
-
|
|
1108
|
+
W(e.$slots, "operate", {}, void 0, !0),
|
|
1109
1109
|
e.filter ? (r(), _(ue, {
|
|
1110
1110
|
key: 2,
|
|
1111
1111
|
ref_key: "popover",
|
|
@@ -1114,41 +1114,41 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
1114
1114
|
trigger: "click",
|
|
1115
1115
|
placement: "bottom"
|
|
1116
1116
|
}, {
|
|
1117
|
-
reference:
|
|
1118
|
-
|
|
1117
|
+
reference: g(() => [
|
|
1118
|
+
I(X, {
|
|
1119
1119
|
type: "link",
|
|
1120
1120
|
size: e.operateSize,
|
|
1121
1121
|
icon: i(Me),
|
|
1122
|
-
onClick: s[0] || (s[0] = (l) =>
|
|
1122
|
+
onClick: s[0] || (s[0] = (l) => S.value = !S.value)
|
|
1123
1123
|
}, null, 8, ["size", "icon"])
|
|
1124
1124
|
]),
|
|
1125
|
-
default:
|
|
1125
|
+
default: g(() => [
|
|
1126
1126
|
U("h4", null, [
|
|
1127
|
-
|
|
1128
|
-
default:
|
|
1129
|
-
|
|
1127
|
+
I(_e, null, {
|
|
1128
|
+
default: g(() => [
|
|
1129
|
+
I(i(Me))
|
|
1130
1130
|
]),
|
|
1131
1131
|
_: 1
|
|
1132
1132
|
}),
|
|
1133
1133
|
s[5] || (s[5] = A(" 显示字段筛选 "))
|
|
1134
1134
|
]),
|
|
1135
1135
|
(r(!0), P(J, null, oe(w.value, (l) => (r(), P("p", null, [
|
|
1136
|
-
|
|
1136
|
+
I(ve, {
|
|
1137
1137
|
modelValue: l.check,
|
|
1138
|
-
"onUpdate:modelValue": (
|
|
1138
|
+
"onUpdate:modelValue": (y) => l.check = y,
|
|
1139
1139
|
label: l.label,
|
|
1140
1140
|
value: l.label,
|
|
1141
1141
|
disabled: !l.filter,
|
|
1142
1142
|
size: "small"
|
|
1143
1143
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "value", "disabled"])
|
|
1144
1144
|
]))), 256)),
|
|
1145
|
-
|
|
1145
|
+
I(X, {
|
|
1146
1146
|
type: "primary",
|
|
1147
1147
|
size: "small",
|
|
1148
1148
|
style: { "margin-top": "10px", "margin-left": "5px" },
|
|
1149
1149
|
onClick: te
|
|
1150
1150
|
}, {
|
|
1151
|
-
default:
|
|
1151
|
+
default: g(() => s[6] || (s[6] = [
|
|
1152
1152
|
A("确认")
|
|
1153
1153
|
])),
|
|
1154
1154
|
_: 1,
|
|
@@ -1158,8 +1158,8 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
1158
1158
|
_: 1
|
|
1159
1159
|
}, 512)) : z("", !0)
|
|
1160
1160
|
]),
|
|
1161
|
-
default:
|
|
1162
|
-
|
|
1161
|
+
default: g((l) => [
|
|
1162
|
+
W(e.$slots, "row-operate-front", {
|
|
1163
1163
|
row: l == null ? void 0 : l.row
|
|
1164
1164
|
}, void 0, !0),
|
|
1165
1165
|
e.edit ? (r(), _(X, {
|
|
@@ -1168,15 +1168,15 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
1168
1168
|
type: "primary",
|
|
1169
1169
|
size: e.rowButtonSize,
|
|
1170
1170
|
icon: i(al),
|
|
1171
|
-
onClick: (
|
|
1171
|
+
onClick: (y) => O(l == null ? void 0 : l.row)
|
|
1172
1172
|
}, {
|
|
1173
|
-
default:
|
|
1173
|
+
default: g(() => s[7] || (s[7] = [
|
|
1174
1174
|
A("修改")
|
|
1175
1175
|
])),
|
|
1176
1176
|
_: 2,
|
|
1177
1177
|
__: [7]
|
|
1178
1178
|
}, 1032, ["size", "icon", "onClick"])) : z("", !0),
|
|
1179
|
-
|
|
1179
|
+
W(e.$slots, "row-operate-middle", {
|
|
1180
1180
|
row: l == null ? void 0 : l.row
|
|
1181
1181
|
}, void 0, !0),
|
|
1182
1182
|
e.delete ? (r(), _(ze, {
|
|
@@ -1187,17 +1187,17 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
1187
1187
|
"cancel-button-type": "danger",
|
|
1188
1188
|
icon: i(je),
|
|
1189
1189
|
width: "auto",
|
|
1190
|
-
onCancel: (
|
|
1190
|
+
onCancel: (y) => Q(l == null ? void 0 : l.row),
|
|
1191
1191
|
title: e.deleteTitle ? e.deleteTitle : "是否要删除当前行?"
|
|
1192
1192
|
}, {
|
|
1193
|
-
reference:
|
|
1194
|
-
|
|
1193
|
+
reference: g(() => [
|
|
1194
|
+
I(X, {
|
|
1195
1195
|
link: "",
|
|
1196
1196
|
type: "danger",
|
|
1197
1197
|
size: e.rowButtonSize,
|
|
1198
1198
|
icon: i(ll)
|
|
1199
1199
|
}, {
|
|
1200
|
-
default:
|
|
1200
|
+
default: g(() => s[8] || (s[8] = [
|
|
1201
1201
|
A("删除")
|
|
1202
1202
|
])),
|
|
1203
1203
|
_: 1,
|
|
@@ -1206,7 +1206,7 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
1206
1206
|
]),
|
|
1207
1207
|
_: 2
|
|
1208
1208
|
}, 1032, ["icon", "onCancel", "title"])) : z("", !0),
|
|
1209
|
-
|
|
1209
|
+
W(e.$slots, "row-operate", {
|
|
1210
1210
|
row: l == null ? void 0 : l.row
|
|
1211
1211
|
}, void 0, !0)
|
|
1212
1212
|
]),
|
|
@@ -1216,7 +1216,7 @@ 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
|
U("div", Bl, [
|
|
1219
|
-
e.pagination ? (r(), _(
|
|
1219
|
+
e.pagination ? (r(), _(ye, {
|
|
1220
1220
|
key: 0,
|
|
1221
1221
|
"current-page": i(t).pageIndex,
|
|
1222
1222
|
"onUpdate:currentPage": s[1] || (s[1] = (l) => i(t).pageIndex = l),
|
|
@@ -1226,7 +1226,7 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
1226
1226
|
"hide-on-Single-page": e.hideOnSinglePage,
|
|
1227
1227
|
background: "",
|
|
1228
1228
|
layout: "prev, pager, next, total, jumper, sizes",
|
|
1229
|
-
"page-sizes": [
|
|
1229
|
+
"page-sizes": [10, 50, 100, 200],
|
|
1230
1230
|
total: e.total,
|
|
1231
1231
|
class: "mt-4"
|
|
1232
1232
|
}, null, 8, ["current-page", "page-size", "small", "hide-on-Single-page", "total"])) : z("", !0)
|
|
@@ -1235,7 +1235,7 @@ const Sl = /* @__PURE__ */ se(kl, [["__scopeId", "data-v-79d244c7"]]), Cl = {
|
|
|
1235
1235
|
};
|
|
1236
1236
|
}
|
|
1237
1237
|
});
|
|
1238
|
-
const El = /* @__PURE__ */ se(Ll, [["__scopeId", "data-v-
|
|
1238
|
+
const El = /* @__PURE__ */ se(Ll, [["__scopeId", "data-v-6043d3a1"]]), $l = { class: "dialog" }, Il = ["innerHTML"], Rl = { class: "form" }, Wl = /* @__PURE__ */ R({
|
|
1239
1239
|
__name: "index",
|
|
1240
1240
|
props: /* @__PURE__ */ Se({
|
|
1241
1241
|
title: { default: "弹出框" },
|
|
@@ -1255,21 +1255,21 @@ const El = /* @__PURE__ */ se(Ll, [["__scopeId", "data-v-587bd6a2"]]), $l = { cl
|
|
|
1255
1255
|
}),
|
|
1256
1256
|
emits: /* @__PURE__ */ Se(["close", "submit"], ["update:form"]),
|
|
1257
1257
|
setup(d, { emit: m }) {
|
|
1258
|
-
let c = m, h = D(!1),
|
|
1258
|
+
let c = m, h = D(!1), C = !0, t = Te(d, "form"), k = D();
|
|
1259
1259
|
function L() {
|
|
1260
1260
|
c("close");
|
|
1261
1261
|
}
|
|
1262
1262
|
function M() {
|
|
1263
|
-
|
|
1263
|
+
k.value.validate((w) => {
|
|
1264
1264
|
w && c("submit");
|
|
1265
1265
|
});
|
|
1266
1266
|
}
|
|
1267
|
-
return (w,
|
|
1268
|
-
const B = V("el-icon"), E = V("el-input"), $ = V("el-input-number"), H = V("el-option"),
|
|
1267
|
+
return (w, S) => {
|
|
1268
|
+
const B = V("el-icon"), E = V("el-input"), $ = V("el-input-number"), H = V("el-option"), T = V("el-select"), b = V("el-date-picker"), O = V("el-time-picker"), Q = V("el-switch"), Z = V("el-form-item"), re = V("el-form"), te = V("el-button"), de = V("el-dialog");
|
|
1269
1269
|
return r(), P("div", $l, [
|
|
1270
|
-
|
|
1271
|
-
modelValue: i(
|
|
1272
|
-
"onUpdate:modelValue":
|
|
1270
|
+
I(de, {
|
|
1271
|
+
modelValue: i(C),
|
|
1272
|
+
"onUpdate:modelValue": S[1] || (S[1] = (e) => Ce(C) ? C.value = e : C = e),
|
|
1273
1273
|
width: w.width,
|
|
1274
1274
|
fullscreen: i(h),
|
|
1275
1275
|
"close-on-click-modal": !1,
|
|
@@ -1278,40 +1278,40 @@ const El = /* @__PURE__ */ se(Ll, [["__scopeId", "data-v-587bd6a2"]]), $l = { cl
|
|
|
1278
1278
|
onClose: L,
|
|
1279
1279
|
overflow: ""
|
|
1280
1280
|
}, Be({
|
|
1281
|
-
header:
|
|
1282
|
-
U("span", { innerHTML: w.title }, null, 8,
|
|
1281
|
+
header: g(() => [
|
|
1282
|
+
U("span", { innerHTML: w.title }, null, 8, Il),
|
|
1283
1283
|
w.fullscreen ? (r(), _(B, {
|
|
1284
1284
|
key: 0,
|
|
1285
1285
|
class: "fullscreen",
|
|
1286
|
-
onClick:
|
|
1286
|
+
onClick: S[0] || (S[0] = (e) => Ce(h) ? h.value = !i(h) : h = !i(h))
|
|
1287
1287
|
}, {
|
|
1288
|
-
default:
|
|
1288
|
+
default: g(() => [
|
|
1289
1289
|
i(h) ? z("", !0) : (r(), _(i(sl), { key: 0 })),
|
|
1290
1290
|
i(h) ? (r(), _(i(dl), { key: 1 })) : z("", !0)
|
|
1291
1291
|
]),
|
|
1292
1292
|
_: 1
|
|
1293
1293
|
})) : z("", !0)
|
|
1294
1294
|
]),
|
|
1295
|
-
default:
|
|
1296
|
-
|
|
1297
|
-
U("div",
|
|
1298
|
-
|
|
1295
|
+
default: g(() => [
|
|
1296
|
+
W(w.$slots, "header", {}, void 0, !0),
|
|
1297
|
+
U("div", Rl, [
|
|
1298
|
+
I(re, {
|
|
1299
1299
|
model: i(t),
|
|
1300
1300
|
rules: w.rules,
|
|
1301
1301
|
ref_key: "formRef",
|
|
1302
|
-
ref:
|
|
1302
|
+
ref: k,
|
|
1303
1303
|
inline: !0,
|
|
1304
1304
|
"label-width": w.lableWidth,
|
|
1305
1305
|
size: w.formSize
|
|
1306
1306
|
}, {
|
|
1307
|
-
default:
|
|
1307
|
+
default: g(() => [
|
|
1308
1308
|
(r(!0), P(J, null, oe(i(t), (e, s) => (r(), _(Z, {
|
|
1309
1309
|
key: s,
|
|
1310
1310
|
label: e.label,
|
|
1311
1311
|
prop: s,
|
|
1312
|
-
style:
|
|
1312
|
+
style: F("width:" + (e.width ? e.width : "90%"))
|
|
1313
1313
|
}, {
|
|
1314
|
-
default:
|
|
1314
|
+
default: g(() => [
|
|
1315
1315
|
!e.type || e.type == "text" ? (r(), _(E, {
|
|
1316
1316
|
key: 0,
|
|
1317
1317
|
modelValue: i(t)[s].default,
|
|
@@ -1349,7 +1349,7 @@ const El = /* @__PURE__ */ se(Ll, [["__scopeId", "data-v-587bd6a2"]]), $l = { cl
|
|
|
1349
1349
|
step: e.step != null ? e.step : 1,
|
|
1350
1350
|
size: e.size ? e.size : "small"
|
|
1351
1351
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "readonly", "placeholder", "max", "min", "step", "size"])) : z("", !0),
|
|
1352
|
-
e.type == "select" ? (r(), _(
|
|
1352
|
+
e.type == "select" ? (r(), _(T, {
|
|
1353
1353
|
key: 3,
|
|
1354
1354
|
modelValue: i(t)[s].default,
|
|
1355
1355
|
"onUpdate:modelValue": (v) => i(t)[s].default = v,
|
|
@@ -1362,7 +1362,7 @@ const El = /* @__PURE__ */ se(Ll, [["__scopeId", "data-v-587bd6a2"]]), $l = { cl
|
|
|
1362
1362
|
style: { width: "100%" },
|
|
1363
1363
|
size: e.size ? e.size : "small"
|
|
1364
1364
|
}, {
|
|
1365
|
-
default:
|
|
1365
|
+
default: g(() => [
|
|
1366
1366
|
(r(!0), P(J, null, oe(e.options, (v) => (r(), _(H, {
|
|
1367
1367
|
label: v.label ? v.label : v.value,
|
|
1368
1368
|
value: v.value,
|
|
@@ -1461,14 +1461,14 @@ const El = /* @__PURE__ */ se(Ll, [["__scopeId", "data-v-587bd6a2"]]), $l = { cl
|
|
|
1461
1461
|
_: 1
|
|
1462
1462
|
}, 8, ["model", "rules", "label-width", "size"])
|
|
1463
1463
|
]),
|
|
1464
|
-
|
|
1464
|
+
W(w.$slots, "footer", {}, void 0, !0)
|
|
1465
1465
|
]),
|
|
1466
1466
|
_: 2
|
|
1467
1467
|
}, [
|
|
1468
1468
|
w.footer ? {
|
|
1469
1469
|
name: "footer",
|
|
1470
|
-
fn:
|
|
1471
|
-
|
|
1470
|
+
fn: g(() => [
|
|
1471
|
+
I(te, {
|
|
1472
1472
|
type: "primary",
|
|
1473
1473
|
size: w.buttonSize,
|
|
1474
1474
|
icon: i(Ke),
|
|
@@ -1476,19 +1476,19 @@ const El = /* @__PURE__ */ se(Ll, [["__scopeId", "data-v-587bd6a2"]]), $l = { cl
|
|
|
1476
1476
|
loading: w.loading,
|
|
1477
1477
|
onClick: M
|
|
1478
1478
|
}, {
|
|
1479
|
-
default:
|
|
1479
|
+
default: g(() => [
|
|
1480
1480
|
A(ie(w.loading ? "提交中" : "提交"), 1)
|
|
1481
1481
|
]),
|
|
1482
1482
|
_: 1
|
|
1483
1483
|
}, 8, ["size", "icon", "loading"]),
|
|
1484
|
-
|
|
1484
|
+
I(te, {
|
|
1485
1485
|
type: "info",
|
|
1486
1486
|
size: w.buttonSize,
|
|
1487
1487
|
icon: i(Le),
|
|
1488
1488
|
class: "btn",
|
|
1489
1489
|
onClick: L
|
|
1490
1490
|
}, {
|
|
1491
|
-
default:
|
|
1491
|
+
default: g(() => S[2] || (S[2] = [
|
|
1492
1492
|
A("取消")
|
|
1493
1493
|
])),
|
|
1494
1494
|
_: 1,
|
|
@@ -1502,23 +1502,23 @@ const El = /* @__PURE__ */ se(Ll, [["__scopeId", "data-v-587bd6a2"]]), $l = { cl
|
|
|
1502
1502
|
};
|
|
1503
1503
|
}
|
|
1504
1504
|
});
|
|
1505
|
-
const
|
|
1505
|
+
const Fl = /* @__PURE__ */ se(Wl, [["__scopeId", "data-v-fbcd9a4f"]]);
|
|
1506
1506
|
function Dl(d, m, c) {
|
|
1507
1507
|
return m.default == null || m.default.toString() == "" ? c(new Error(m.label + "不能为空")) : c();
|
|
1508
1508
|
}
|
|
1509
|
-
const
|
|
1509
|
+
const Tl = {
|
|
1510
1510
|
install: (d) => {
|
|
1511
|
-
d.component("SplitPanes", Ge), d.component("Pane", qe), d.component("UpLoadFile",
|
|
1511
|
+
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", Fl);
|
|
1512
1512
|
}
|
|
1513
1513
|
};
|
|
1514
1514
|
export {
|
|
1515
|
-
|
|
1515
|
+
Fl as DvDialog,
|
|
1516
1516
|
Dl as FormValidate,
|
|
1517
1517
|
Sl as Layout,
|
|
1518
1518
|
qe as Pane,
|
|
1519
1519
|
Ge as SplitPanes,
|
|
1520
1520
|
El as TableForm,
|
|
1521
|
-
|
|
1521
|
+
gl as UpLoadFile,
|
|
1522
1522
|
Vl as UpLoadFiles,
|
|
1523
|
-
|
|
1523
|
+
Tl as default
|
|
1524
1524
|
};
|