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