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