z-ui-pc 0.5.16 → 0.5.18
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/index.css +1 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +1180 -1176
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ref as T, defineComponent as X, resolveComponent as S, createBlock as
|
|
2
|
-
import
|
|
1
|
+
import { ref as T, defineComponent as X, resolveComponent as S, createBlock as R, openBlock as g, unref as i, createSlots as ft, withCtx as B, createElementVNode as x, normalizeStyle as gt, toDisplayString as q, useCssVars as Te, computed as G, createElementBlock as b, renderSlot as pe, createTextVNode as W, normalizeClass as re, createCommentVNode as z, provide as Oo, inject as Lo, resolveDynamicComponent as jt, mergeProps as oe, toHandlers as _e, watch as et, nextTick as ne, isRef as Ae, normalizeProps as Ho, guardReactiveProps as Uo, mergeModels as Ie, useModel as Ge, createVNode as E, Fragment as K, renderList as se, useSlots as Kt, resolveDirective as Fe, withDirectives as de, onBeforeUnmount as He, markRaw as St, watchEffect as tt, getCurrentScope as Ft, onScopeDispose as Ct, withModifiers as ye, watchPostEffect as ht, onActivated as Qo, onDeactivated as zo, onMounted as Ue, onUnmounted as At, useTemplateRef as Zo, Teleport as Yo, withKeys as Xo, h as vt, isVNode as Wo, Transition as qt, getCurrentInstance as Jt, defineAsyncComponent as jo, render as Tt } from "vue";
|
|
2
|
+
import N, { isNumber as Gt, cloneDeep as fe, isUndefined as Oe, isEqual as $t, omit as xt, merge as Ne, mergeWith as Ko, isObject as je, isString as eo, isFunction as to, sortBy as qo, debounce as Jo, isNull as Pt } from "lodash";
|
|
3
3
|
import ve from "dayjs";
|
|
4
4
|
import { CircleClose as oo, Search as no, Close as rt, EditPen as uo, CloseBold as Et, Plus as ao, Loading as $o, ArrowDownBold as en, ArrowUp as tn, ArrowDown as on, Delete as nn, CircleCloseFilled as un, QuestionFilled as Mt } from "@element-plus/icons-vue";
|
|
5
5
|
import { ElAnchor as an, ElMessage as yt, ElMessageBox as sn, ElLoading as ln, ElInput as rn } from "element-plus";
|
|
6
6
|
import { VueDraggable as Ke } from "vue-draggable-plus";
|
|
7
7
|
import cn from "mitt";
|
|
8
|
-
import { useRoute as
|
|
9
|
-
const
|
|
8
|
+
import { useRoute as dn } from "vue-router";
|
|
9
|
+
const Dn = (e, t) => (o) => {
|
|
10
10
|
const n = t || Reflect.get(e, "name");
|
|
11
11
|
if (!n) {
|
|
12
12
|
console.error("Component is missing a name and cannot be registered:", e);
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
15
15
|
o.component(n, e);
|
|
16
|
-
}, ge = (e, t) => (e.install =
|
|
16
|
+
}, ge = (e, t) => (e.install = Dn(e, t), e), J = T({
|
|
17
17
|
visible: !1,
|
|
18
18
|
content: "",
|
|
19
19
|
rect: {},
|
|
@@ -37,25 +37,25 @@ const dn = (e, t) => (o) => {
|
|
|
37
37
|
});
|
|
38
38
|
return (o, n) => {
|
|
39
39
|
const u = S("el-tooltip");
|
|
40
|
-
return g(),
|
|
41
|
-
visible:
|
|
42
|
-
"onUpdate:visible": n[0] || (n[0] = (a) =>
|
|
43
|
-
effect:
|
|
44
|
-
placement:
|
|
40
|
+
return g(), R(u, {
|
|
41
|
+
visible: i(J).visible,
|
|
42
|
+
"onUpdate:visible": n[0] || (n[0] = (a) => i(J).visible = a),
|
|
43
|
+
effect: i(J).effect,
|
|
44
|
+
placement: i(J).placement,
|
|
45
45
|
trigger: "hover",
|
|
46
46
|
"virtual-triggering": "",
|
|
47
47
|
"virtual-ref": t.value,
|
|
48
48
|
"popper-class": "auto-tooltip",
|
|
49
|
-
"raw-content":
|
|
50
|
-
content:
|
|
51
|
-
enterable:
|
|
49
|
+
"raw-content": i(J).rawContent,
|
|
50
|
+
content: i(J).rawContent ? i(J).content : void 0,
|
|
51
|
+
enterable: i(J).enterable
|
|
52
52
|
}, ft({ _: 2 }, [
|
|
53
|
-
|
|
53
|
+
i(J).rawContent ? void 0 : {
|
|
54
54
|
name: "content",
|
|
55
55
|
fn: B(() => [
|
|
56
|
-
|
|
57
|
-
style: gt({ maxWidth:
|
|
58
|
-
}, q(
|
|
56
|
+
x("div", {
|
|
57
|
+
style: gt({ maxWidth: i(J).tipWidth || void 0, wordBreak: "break-all" })
|
|
58
|
+
}, q(i(J).content), 5)
|
|
59
59
|
]),
|
|
60
60
|
key: "0"
|
|
61
61
|
}
|
|
@@ -78,17 +78,17 @@ const dn = (e, t) => (o) => {
|
|
|
78
78
|
"3b3e28cb": u.color,
|
|
79
79
|
"2be529ce": o.value
|
|
80
80
|
}));
|
|
81
|
-
const t =
|
|
81
|
+
const t = G(() => {
|
|
82
82
|
const u = parseFloat(String(e.size));
|
|
83
83
|
return isNaN(u) ? "24px" : `${u}px`;
|
|
84
|
-
}), o =
|
|
84
|
+
}), o = G(() => {
|
|
85
85
|
const u = parseFloat(String(e.fontSize));
|
|
86
86
|
return isNaN(u) ? "14px" : `${u}px`;
|
|
87
|
-
}), n =
|
|
87
|
+
}), n = G(() => {
|
|
88
88
|
const u = String(e.content);
|
|
89
89
|
return u && e.showFirstLetter && u.length > 1 ? Array.from(u).filter(Boolean)[0] || "" : e.content || "";
|
|
90
90
|
});
|
|
91
|
-
return (u, a) => (g(),
|
|
91
|
+
return (u, a) => (g(), b("div", fn, [
|
|
92
92
|
pe(u.$slots, "default", {}, () => [
|
|
93
93
|
W(q(n.value), 1)
|
|
94
94
|
], !0)
|
|
@@ -121,9 +121,9 @@ const dn = (e, t) => (o) => {
|
|
|
121
121
|
"441450ce": t.value,
|
|
122
122
|
"0c7a2aa7": o.value
|
|
123
123
|
}));
|
|
124
|
-
const t =
|
|
125
|
-
return (n, u) => (g(),
|
|
126
|
-
|
|
124
|
+
const t = G(() => Gt(e.mb) ? `${e.mb}px` : e.mb), o = G(() => Gt(e.mt) ? `${e.mt}px` : e.mt);
|
|
125
|
+
return (n, u) => (g(), b("div", Cn, [
|
|
126
|
+
x("div", {
|
|
127
127
|
class: re([
|
|
128
128
|
"classify-title",
|
|
129
129
|
{
|
|
@@ -134,12 +134,12 @@ const dn = (e, t) => (o) => {
|
|
|
134
134
|
pe(n.$slots, "default", {}, () => [
|
|
135
135
|
W(q(n.title), 1)
|
|
136
136
|
], !0),
|
|
137
|
-
n.tips || n.$slots.tips ? (g(),
|
|
137
|
+
n.tips || n.$slots.tips ? (g(), b("span", hn, [
|
|
138
138
|
pe(n.$slots, "tips", {}, () => [
|
|
139
139
|
W(q(n.tips), 1)
|
|
140
140
|
], !0)
|
|
141
|
-
])) :
|
|
142
|
-
n.required ? (g(),
|
|
141
|
+
])) : z("", !0),
|
|
142
|
+
n.required ? (g(), b("span", An, "*")) : z("", !0)
|
|
143
143
|
], 2)
|
|
144
144
|
]));
|
|
145
145
|
}
|
|
@@ -154,7 +154,7 @@ const dn = (e, t) => (o) => {
|
|
|
154
154
|
setup(e) {
|
|
155
155
|
return (t, o) => {
|
|
156
156
|
const n = S("el-empty");
|
|
157
|
-
return g(),
|
|
157
|
+
return g(), R(n, {
|
|
158
158
|
class: "z-empty",
|
|
159
159
|
image: t.image,
|
|
160
160
|
"image-size": t.imageSize,
|
|
@@ -172,7 +172,7 @@ const dn = (e, t) => (o) => {
|
|
|
172
172
|
e.value = o;
|
|
173
173
|
}
|
|
174
174
|
};
|
|
175
|
-
}, xe = () =>
|
|
175
|
+
}, xe = () => i(Lo(ro));
|
|
176
176
|
var ee = /* @__PURE__ */ ((e) => (e.INPUT = "el-input", e.SELECT = "base-select", e.DATE = "el-date-picker", e.DATE_RANGE = "date-range", e.SWITCH = "el-switch", e.RADIO = "base-radio", e.GROUP_SELECT_INPUT = "group-select-input", e.SEARCH_INPUT = "base-search-input", e.CASCADER = "el-cascader", e.NUMBER_RANGE = "number-range", e.DATE_RANGE_AND_SELECT_GROUP = "date-range-and-select-group", e.NUMBER_INPUT = "number-input", e))(ee || {}), ie = /* @__PURE__ */ ((e) => (e.CHANGE = "change", e.OPEN_CONFIG_DIALOG = "openConfigDialog", e.COLUMNS_LOADED = "columnsLoaded", e.SAVE_CONFIG = "saveConfig", e.UPDATE_ACTIVE_GROUP = "updateActiveGroup", e))(ie || {});
|
|
177
177
|
const wn = {
|
|
178
178
|
key: 0,
|
|
@@ -184,69 +184,69 @@ const wn = {
|
|
|
184
184
|
disabled: { type: Boolean, default: !1 }
|
|
185
185
|
},
|
|
186
186
|
setup(e) {
|
|
187
|
-
const t = xe(), o =
|
|
188
|
-
t.updateFormData(e.prop, fe(
|
|
187
|
+
const t = xe(), o = G(() => t.formItems.find((r) => r.prop === e.prop)), n = (r) => {
|
|
188
|
+
t.updateFormData(e.prop, fe(r));
|
|
189
189
|
}, u = () => o.value?.parseColumnEvent(() => {
|
|
190
190
|
t.emit(ie.CHANGE);
|
|
191
|
-
}) ?? {}, a =
|
|
191
|
+
}) ?? {}, a = G({
|
|
192
192
|
get() {
|
|
193
193
|
return t.activeGroupColumnsMap.get(o.value?.prop)?.dynamicExpression;
|
|
194
194
|
},
|
|
195
|
-
set(
|
|
195
|
+
set(r) {
|
|
196
196
|
const l = t.activeGroupColumnsMap.get(o.value?.prop);
|
|
197
|
-
l && (l.dynamicExpression =
|
|
197
|
+
l && (l.dynamicExpression = r);
|
|
198
198
|
}
|
|
199
|
-
}), s =
|
|
200
|
-
const
|
|
199
|
+
}), s = G(() => {
|
|
200
|
+
const r = o.value?.attrs ?? {};
|
|
201
201
|
return e.disabled ? {
|
|
202
|
-
...
|
|
202
|
+
...r,
|
|
203
203
|
disabled: !0
|
|
204
|
-
} :
|
|
204
|
+
} : r;
|
|
205
205
|
});
|
|
206
|
-
return (
|
|
207
|
-
(g(),
|
|
206
|
+
return (r, l) => o.value ? (g(), b("div", wn, [
|
|
207
|
+
(g(), R(jt(o.value.getFormComponent), oe(s.value, {
|
|
208
208
|
"dynamic-expression": a.value,
|
|
209
|
-
"onUpdate:dynamicExpression": l[0] || (l[0] = (
|
|
210
|
-
"model-value":
|
|
209
|
+
"onUpdate:dynamicExpression": l[0] || (l[0] = (D) => a.value = D),
|
|
210
|
+
"model-value": i(t).formData[r.prop]
|
|
211
211
|
}, _e(u()), {
|
|
212
|
-
"onUpdate:modelValue": l[1] || (l[1] = (
|
|
212
|
+
"onUpdate:modelValue": l[1] || (l[1] = (D) => n(D))
|
|
213
213
|
}), null, 16, ["dynamic-expression", "model-value"]))
|
|
214
|
-
])) :
|
|
214
|
+
])) : z("", !0);
|
|
215
215
|
}
|
|
216
216
|
}), kn = /* @__PURE__ */ te(In, [["__scopeId", "data-v-78cd4e80"]]), qe = "列信息", Le = "默认筛选", Sn = "自定义筛选", Tn = 10;
|
|
217
217
|
function Gn(e) {
|
|
218
218
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
219
219
|
}
|
|
220
|
-
var Xe = { exports: {} }, xn = Xe.exports,
|
|
220
|
+
var Xe = { exports: {} }, xn = Xe.exports, Rt;
|
|
221
221
|
function Pn() {
|
|
222
|
-
return
|
|
222
|
+
return Rt || (Rt = 1, (function(e, t) {
|
|
223
223
|
(function(o, n) {
|
|
224
224
|
e.exports = n();
|
|
225
225
|
})(xn, (function() {
|
|
226
|
-
var o, n, u = 1e3, a = 6e4, s = 36e5,
|
|
226
|
+
var o, n, u = 1e3, a = 6e4, s = 36e5, r = 864e5, l = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, D = 31536e6, d = 2628e6, m = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, F = { years: D, months: d, days: r, hours: s, minutes: a, seconds: u, milliseconds: 1, weeks: 6048e5 }, c = function(y) {
|
|
227
227
|
return y instanceof I;
|
|
228
|
-
}, f = function(y,
|
|
229
|
-
return new I(y,
|
|
230
|
-
},
|
|
228
|
+
}, f = function(y, w, v) {
|
|
229
|
+
return new I(y, v, w.$l);
|
|
230
|
+
}, p = function(y) {
|
|
231
231
|
return n.p(y) + "s";
|
|
232
232
|
}, C = function(y) {
|
|
233
233
|
return y < 0;
|
|
234
|
-
},
|
|
234
|
+
}, A = function(y) {
|
|
235
235
|
return C(y) ? Math.ceil(y) : Math.floor(y);
|
|
236
|
-
},
|
|
236
|
+
}, h = function(y) {
|
|
237
237
|
return Math.abs(y);
|
|
238
|
-
}, k = function(y,
|
|
239
|
-
return y ? C(y) ? { negative: !0, format: "" +
|
|
238
|
+
}, k = function(y, w) {
|
|
239
|
+
return y ? C(y) ? { negative: !0, format: "" + h(y) + w } : { negative: !1, format: "" + y + w } : { negative: !1, format: "" };
|
|
240
240
|
}, I = (function() {
|
|
241
|
-
function y(
|
|
242
|
-
var
|
|
243
|
-
if (this.$d = {}, this.$l = M,
|
|
244
|
-
if (typeof
|
|
245
|
-
if (typeof
|
|
246
|
-
|
|
241
|
+
function y(v, V, M) {
|
|
242
|
+
var L = this;
|
|
243
|
+
if (this.$d = {}, this.$l = M, v === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), V) return f(v * F[p(V)], this);
|
|
244
|
+
if (typeof v == "number") return this.$ms = v, this.parseFromMilliseconds(), this;
|
|
245
|
+
if (typeof v == "object") return Object.keys(v).forEach((function(_) {
|
|
246
|
+
L.$d[p(_)] = v[_];
|
|
247
247
|
})), this.calMilliseconds(), this;
|
|
248
|
-
if (typeof
|
|
249
|
-
var Y =
|
|
248
|
+
if (typeof v == "string") {
|
|
249
|
+
var Y = v.match(m);
|
|
250
250
|
if (Y) {
|
|
251
251
|
var $ = Y.slice(2).map((function(_) {
|
|
252
252
|
return _ != null ? Number(_) : 0;
|
|
@@ -256,103 +256,103 @@ function Pn() {
|
|
|
256
256
|
}
|
|
257
257
|
return this;
|
|
258
258
|
}
|
|
259
|
-
var
|
|
260
|
-
return
|
|
261
|
-
var
|
|
259
|
+
var w = y.prototype;
|
|
260
|
+
return w.calMilliseconds = function() {
|
|
261
|
+
var v = this;
|
|
262
262
|
this.$ms = Object.keys(this.$d).reduce((function(V, M) {
|
|
263
|
-
return V + (
|
|
263
|
+
return V + (v.$d[M] || 0) * F[M];
|
|
264
264
|
}), 0);
|
|
265
|
-
},
|
|
266
|
-
var
|
|
267
|
-
this.$d.years =
|
|
268
|
-
},
|
|
269
|
-
var
|
|
265
|
+
}, w.parseFromMilliseconds = function() {
|
|
266
|
+
var v = this.$ms;
|
|
267
|
+
this.$d.years = A(v / D), v %= D, this.$d.months = A(v / d), v %= d, this.$d.days = A(v / r), v %= r, this.$d.hours = A(v / s), v %= s, this.$d.minutes = A(v / a), v %= a, this.$d.seconds = A(v / u), v %= u, this.$d.milliseconds = v;
|
|
268
|
+
}, w.toISOString = function() {
|
|
269
|
+
var v = k(this.$d.years, "Y"), V = k(this.$d.months, "M"), M = +this.$d.days || 0;
|
|
270
270
|
this.$d.weeks && (M += 7 * this.$d.weeks);
|
|
271
|
-
var
|
|
271
|
+
var L = k(M, "D"), Y = k(this.$d.hours, "H"), $ = k(this.$d.minutes, "M"), _ = this.$d.seconds || 0;
|
|
272
272
|
this.$d.milliseconds && (_ += this.$d.milliseconds / 1e3, _ = Math.round(1e3 * _) / 1e3);
|
|
273
|
-
var H = k(_, "S"), U =
|
|
273
|
+
var H = k(_, "S"), U = v.negative || V.negative || L.negative || Y.negative || $.negative || H.negative, j = Y.format || $.format || H.format ? "T" : "", ue = (U ? "-" : "") + "P" + v.format + V.format + L.format + j + Y.format + $.format + H.format;
|
|
274
274
|
return ue === "P" || ue === "-P" ? "P0D" : ue;
|
|
275
|
-
},
|
|
275
|
+
}, w.toJSON = function() {
|
|
276
276
|
return this.toISOString();
|
|
277
|
-
},
|
|
278
|
-
var V =
|
|
279
|
-
return V.replace(l, (function(
|
|
280
|
-
return Y || String(M[
|
|
277
|
+
}, w.format = function(v) {
|
|
278
|
+
var V = v || "YYYY-MM-DDTHH:mm:ss", M = { Y: this.$d.years, YY: n.s(this.$d.years, 2, "0"), YYYY: n.s(this.$d.years, 4, "0"), M: this.$d.months, MM: n.s(this.$d.months, 2, "0"), D: this.$d.days, DD: n.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: n.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: n.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: n.s(this.$d.seconds, 2, "0"), SSS: n.s(this.$d.milliseconds, 3, "0") };
|
|
279
|
+
return V.replace(l, (function(L, Y) {
|
|
280
|
+
return Y || String(M[L]);
|
|
281
281
|
}));
|
|
282
|
-
},
|
|
283
|
-
return this.$ms / F[
|
|
284
|
-
},
|
|
285
|
-
var V = this.$ms, M =
|
|
286
|
-
return M === "milliseconds" ? V %= 1e3 : V = M === "weeks" ?
|
|
287
|
-
},
|
|
288
|
-
var
|
|
289
|
-
return
|
|
290
|
-
},
|
|
291
|
-
return this.add(
|
|
292
|
-
},
|
|
282
|
+
}, w.as = function(v) {
|
|
283
|
+
return this.$ms / F[p(v)];
|
|
284
|
+
}, w.get = function(v) {
|
|
285
|
+
var V = this.$ms, M = p(v);
|
|
286
|
+
return M === "milliseconds" ? V %= 1e3 : V = M === "weeks" ? A(V / F[M]) : this.$d[M], V || 0;
|
|
287
|
+
}, w.add = function(v, V, M) {
|
|
288
|
+
var L;
|
|
289
|
+
return L = V ? v * F[p(V)] : c(v) ? v.$ms : f(v, this).$ms, f(this.$ms + L * (M ? -1 : 1), this);
|
|
290
|
+
}, w.subtract = function(v, V) {
|
|
291
|
+
return this.add(v, V, !0);
|
|
292
|
+
}, w.locale = function(v) {
|
|
293
293
|
var V = this.clone();
|
|
294
|
-
return V.$l =
|
|
295
|
-
},
|
|
294
|
+
return V.$l = v, V;
|
|
295
|
+
}, w.clone = function() {
|
|
296
296
|
return f(this.$ms, this);
|
|
297
|
-
},
|
|
298
|
-
return o().add(this.$ms, "ms").locale(this.$l).fromNow(!
|
|
299
|
-
},
|
|
297
|
+
}, w.humanize = function(v) {
|
|
298
|
+
return o().add(this.$ms, "ms").locale(this.$l).fromNow(!v);
|
|
299
|
+
}, w.valueOf = function() {
|
|
300
300
|
return this.asMilliseconds();
|
|
301
|
-
},
|
|
301
|
+
}, w.milliseconds = function() {
|
|
302
302
|
return this.get("milliseconds");
|
|
303
|
-
},
|
|
303
|
+
}, w.asMilliseconds = function() {
|
|
304
304
|
return this.as("milliseconds");
|
|
305
|
-
},
|
|
305
|
+
}, w.seconds = function() {
|
|
306
306
|
return this.get("seconds");
|
|
307
|
-
},
|
|
307
|
+
}, w.asSeconds = function() {
|
|
308
308
|
return this.as("seconds");
|
|
309
|
-
},
|
|
309
|
+
}, w.minutes = function() {
|
|
310
310
|
return this.get("minutes");
|
|
311
|
-
},
|
|
311
|
+
}, w.asMinutes = function() {
|
|
312
312
|
return this.as("minutes");
|
|
313
|
-
},
|
|
313
|
+
}, w.hours = function() {
|
|
314
314
|
return this.get("hours");
|
|
315
|
-
},
|
|
315
|
+
}, w.asHours = function() {
|
|
316
316
|
return this.as("hours");
|
|
317
|
-
},
|
|
317
|
+
}, w.days = function() {
|
|
318
318
|
return this.get("days");
|
|
319
|
-
},
|
|
319
|
+
}, w.asDays = function() {
|
|
320
320
|
return this.as("days");
|
|
321
|
-
},
|
|
321
|
+
}, w.weeks = function() {
|
|
322
322
|
return this.get("weeks");
|
|
323
|
-
},
|
|
323
|
+
}, w.asWeeks = function() {
|
|
324
324
|
return this.as("weeks");
|
|
325
|
-
},
|
|
325
|
+
}, w.months = function() {
|
|
326
326
|
return this.get("months");
|
|
327
|
-
},
|
|
327
|
+
}, w.asMonths = function() {
|
|
328
328
|
return this.as("months");
|
|
329
|
-
},
|
|
329
|
+
}, w.years = function() {
|
|
330
330
|
return this.get("years");
|
|
331
|
-
},
|
|
331
|
+
}, w.asYears = function() {
|
|
332
332
|
return this.as("years");
|
|
333
333
|
}, y;
|
|
334
|
-
})(), P = function(y,
|
|
335
|
-
return y.add(
|
|
334
|
+
})(), P = function(y, w, v) {
|
|
335
|
+
return y.add(w.years() * v, "y").add(w.months() * v, "M").add(w.days() * v, "d").add(w.hours() * v, "h").add(w.minutes() * v, "m").add(w.seconds() * v, "s").add(w.milliseconds() * v, "ms");
|
|
336
336
|
};
|
|
337
|
-
return function(y,
|
|
338
|
-
o =
|
|
339
|
-
var $ =
|
|
340
|
-
return f(
|
|
341
|
-
},
|
|
342
|
-
var V =
|
|
343
|
-
|
|
344
|
-
return c(
|
|
345
|
-
},
|
|
346
|
-
return c(
|
|
337
|
+
return function(y, w, v) {
|
|
338
|
+
o = v, n = v().$utils(), v.duration = function(L, Y) {
|
|
339
|
+
var $ = v.locale();
|
|
340
|
+
return f(L, { $l: $ }, Y);
|
|
341
|
+
}, v.isDuration = c;
|
|
342
|
+
var V = w.prototype.add, M = w.prototype.subtract;
|
|
343
|
+
w.prototype.add = function(L, Y) {
|
|
344
|
+
return c(L) ? P(this, L, 1) : V.bind(this)(L, Y);
|
|
345
|
+
}, w.prototype.subtract = function(L, Y) {
|
|
346
|
+
return c(L) ? P(this, L, -1) : M.bind(this)(L, Y);
|
|
347
347
|
};
|
|
348
348
|
};
|
|
349
349
|
}));
|
|
350
350
|
})(Xe)), Xe.exports;
|
|
351
351
|
}
|
|
352
352
|
var Mn = Pn();
|
|
353
|
-
const
|
|
354
|
-
ve.extend(
|
|
355
|
-
const Qe = "YYYY-MM-DD HH:mm:ss",
|
|
353
|
+
const Rn = /* @__PURE__ */ Gn(Mn);
|
|
354
|
+
ve.extend(Rn);
|
|
355
|
+
const Qe = "YYYY-MM-DD HH:mm:ss", Nn = (e, t = Qe) => [ve(e).startOf("day"), ve(e).endOf("day")].map((o) => o.format(t)), io = (e = Qe) => Nn(void 0, e);
|
|
356
356
|
function Il(e) {
|
|
357
357
|
return ve.duration(Math.ceil(Number(e) || 0), "seconds").format("mm:ss");
|
|
358
358
|
}
|
|
@@ -413,7 +413,7 @@ const kl = (e, t = "HH:mm:ss") => {
|
|
|
413
413
|
const o = co[e];
|
|
414
414
|
return typeof o == "function" ? o(...t) : void 0;
|
|
415
415
|
}, be = (e, t) => ({
|
|
416
|
-
value:
|
|
416
|
+
value: G({
|
|
417
417
|
get() {
|
|
418
418
|
return e.modelValue;
|
|
419
419
|
},
|
|
@@ -426,16 +426,16 @@ const kl = (e, t = "HH:mm:ss") => {
|
|
|
426
426
|
let u = !1;
|
|
427
427
|
const a = (s) => {
|
|
428
428
|
o.value = s, n.value = !1, u || (u = !0, ne().then(() => {
|
|
429
|
-
|
|
429
|
+
N.isFunction(t) && t();
|
|
430
430
|
}));
|
|
431
431
|
};
|
|
432
432
|
return et(
|
|
433
433
|
() => e.options,
|
|
434
434
|
() => {
|
|
435
|
-
if (
|
|
435
|
+
if (N.isFunction(e.options)) {
|
|
436
436
|
const s = e.options();
|
|
437
|
-
Do(s) ? (n.value = !0, s.then((
|
|
438
|
-
a(
|
|
437
|
+
Do(s) ? (n.value = !0, s.then((r) => {
|
|
438
|
+
a(r);
|
|
439
439
|
})) : a(s);
|
|
440
440
|
} else
|
|
441
441
|
a(e.options);
|
|
@@ -490,31 +490,31 @@ const kl = (e, t = "HH:mm:ss") => {
|
|
|
490
490
|
Te((f) => ({
|
|
491
491
|
"21c74aa6": F.value
|
|
492
492
|
}));
|
|
493
|
-
const o = e, n = t, { parseOptions: u, loadingOptions: a } = ze(o), { value: s } = be(o, n),
|
|
493
|
+
const o = e, n = t, { parseOptions: u, loadingOptions: a } = ze(o), { value: s } = be(o, n), r = G(() => N.omit(o.on, ["blur", "change"])), l = G(() => Be(N.omit(o, ["on", "options", "modelValue"]))), D = () => {
|
|
494
494
|
n("change", s.value);
|
|
495
495
|
};
|
|
496
|
-
let
|
|
497
|
-
const
|
|
498
|
-
f ?
|
|
499
|
-
}, F =
|
|
496
|
+
let d;
|
|
497
|
+
const m = async (f) => {
|
|
498
|
+
f ? d = fe(s.value) : (await ne(), $t(d, s.value) || D(), d = void 0), o.on.visibleChange?.(f);
|
|
499
|
+
}, F = G(() => o.width || "100%"), c = (f, p) => {
|
|
500
500
|
const C = Reflect.get(o.on, f);
|
|
501
|
-
C && C(
|
|
501
|
+
C && C(p), D(), d = fe(o.props.multiple ? p ?? [] : p);
|
|
502
502
|
};
|
|
503
|
-
return (f,
|
|
503
|
+
return (f, p) => {
|
|
504
504
|
const C = S("el-cascader");
|
|
505
|
-
return g(),
|
|
506
|
-
modelValue:
|
|
507
|
-
"onUpdate:modelValue":
|
|
508
|
-
loading:
|
|
509
|
-
}, l.value, { options:
|
|
510
|
-
onVisibleChange:
|
|
511
|
-
onClear:
|
|
512
|
-
onRemoveTag:
|
|
505
|
+
return g(), R(C, oe({
|
|
506
|
+
modelValue: i(s),
|
|
507
|
+
"onUpdate:modelValue": p[0] || (p[0] = (A) => Ae(s) ? s.value = A : null),
|
|
508
|
+
loading: i(a)
|
|
509
|
+
}, l.value, { options: i(u) }, _e(r.value), {
|
|
510
|
+
onVisibleChange: m,
|
|
511
|
+
onClear: p[1] || (p[1] = (A) => c("clear", A)),
|
|
512
|
+
onRemoveTag: p[2] || (p[2] = (A) => c("removeTag", A))
|
|
513
513
|
}), ft({ _: 2 }, [
|
|
514
514
|
f.$slots.default ? {
|
|
515
515
|
name: "default",
|
|
516
|
-
fn: B(({ node:
|
|
517
|
-
pe(f.$slots, "default", Ho(Uo({ node:
|
|
516
|
+
fn: B(({ node: A, data: h }) => [
|
|
517
|
+
pe(f.$slots, "default", Ho(Uo({ node: A, data: h })))
|
|
518
518
|
]),
|
|
519
519
|
key: "0"
|
|
520
520
|
} : void 0
|
|
@@ -591,9 +591,9 @@ const kl = (e, t = "HH:mm:ss") => {
|
|
|
591
591
|
}),
|
|
592
592
|
emits: /* @__PURE__ */ Ie(["update:modelValue", "change"], ["update:dynamicExpression"]),
|
|
593
593
|
setup(e, { emit: t }) {
|
|
594
|
-
const o = e, n = Ge(e, "dynamicExpression"), u = t, { value: a } = be(o, u), { pushDynamicExpression: s, updateDynamicExpression:
|
|
594
|
+
const o = e, n = Ge(e, "dynamicExpression"), u = t, { value: a } = be(o, u), { pushDynamicExpression: s, updateDynamicExpression: r } = zn(n), l = G(
|
|
595
595
|
() => Be(
|
|
596
|
-
|
|
596
|
+
N.omit(o, [
|
|
597
597
|
"on",
|
|
598
598
|
"modelValue",
|
|
599
599
|
"defaultTime",
|
|
@@ -603,49 +603,49 @@ const kl = (e, t = "HH:mm:ss") => {
|
|
|
603
603
|
"popperClass"
|
|
604
604
|
])
|
|
605
605
|
)
|
|
606
|
-
),
|
|
606
|
+
), D = G(() => {
|
|
607
607
|
if (o.useDefaultTimeToDay)
|
|
608
608
|
return [new Date(2e3, 1, 1, 0, 0, 0), new Date(2e3, 1, 1, 23, 59, 59)];
|
|
609
|
-
}),
|
|
609
|
+
}), d = (c, f) => {
|
|
610
610
|
if (!c)
|
|
611
611
|
return c;
|
|
612
|
-
const
|
|
613
|
-
return o.autoAddSeconds &&
|
|
614
|
-
},
|
|
612
|
+
const p = o.format || "", C = ve(c).format(p);
|
|
613
|
+
return o.autoAddSeconds && p === "YYYY-MM-DD HH:mm" ? `${C}:${f ? "59" : "00"}` : C;
|
|
614
|
+
}, m = G(() => ({
|
|
615
615
|
...o.on,
|
|
616
616
|
"update:modelValue": (c) => {
|
|
617
617
|
const f = c ?? "";
|
|
618
618
|
if (Array.isArray(f)) {
|
|
619
|
-
const [
|
|
620
|
-
u("update:modelValue", [
|
|
619
|
+
const [p, C] = f;
|
|
620
|
+
u("update:modelValue", [d(p), d(C, !0)]);
|
|
621
621
|
} else
|
|
622
|
-
u("update:modelValue",
|
|
623
|
-
|
|
622
|
+
u("update:modelValue", d(f, !0));
|
|
623
|
+
r();
|
|
624
624
|
},
|
|
625
625
|
/* clear 事件会触发 emit */
|
|
626
|
-
change:
|
|
626
|
+
change: N.debounce(() => {
|
|
627
627
|
u("change", a.value);
|
|
628
628
|
})
|
|
629
|
-
})), F =
|
|
629
|
+
})), F = G(
|
|
630
630
|
() => o.shortcuts?.map((c) => {
|
|
631
|
-
const { value: f, text:
|
|
631
|
+
const { value: f, text: p } = c;
|
|
632
632
|
return {
|
|
633
|
-
text:
|
|
633
|
+
text: p,
|
|
634
634
|
value: () => (s({
|
|
635
635
|
expression: "GET_DATE_RANGE",
|
|
636
|
-
params: [
|
|
636
|
+
params: [p, o.format || "", o.autoAddSeconds]
|
|
637
637
|
}), typeof f == "function" ? f() : f)
|
|
638
638
|
};
|
|
639
639
|
})
|
|
640
640
|
);
|
|
641
641
|
return (c, f) => {
|
|
642
|
-
const
|
|
643
|
-
return g(),
|
|
642
|
+
const p = S("el-date-picker");
|
|
643
|
+
return g(), R(p, oe(l.value, {
|
|
644
644
|
"popper-class": `z-base-date-popper ${o.popperClass || ""}`,
|
|
645
|
-
"model-value":
|
|
646
|
-
"default-time":
|
|
645
|
+
"model-value": i(a),
|
|
646
|
+
"default-time": D.value,
|
|
647
647
|
shortcuts: F.value
|
|
648
|
-
}, _e(
|
|
648
|
+
}, _e(m.value)), null, 16, ["popper-class", "model-value", "default-time", "shortcuts"]);
|
|
649
649
|
};
|
|
650
650
|
}
|
|
651
651
|
}), Zn = { class: "base-date-range-and-select-group__date" }, Yn = { class: "base-date-range-and-select-group__select" }, Xn = /* @__PURE__ */ X({
|
|
@@ -712,57 +712,57 @@ const kl = (e, t = "HH:mm:ss") => {
|
|
|
712
712
|
}),
|
|
713
713
|
emits: /* @__PURE__ */ Ie(["update:modelValue", "change"], ["update:dynamicExpression"]),
|
|
714
714
|
setup(e, { emit: t }) {
|
|
715
|
-
const o = e, n = Ge(e, "dynamicExpression"), u = t, a =
|
|
716
|
-
o.defaultSelectFirst && !s.value?.length &&
|
|
717
|
-
}),
|
|
715
|
+
const o = e, n = Ge(e, "dynamicExpression"), u = t, a = G(() => Be(N.omit(o, ["options", "on", "modelValue"]))), { value: s } = be(o, u), { parseOptions: r, loadingOptions: l } = ze(o, () => {
|
|
716
|
+
o.defaultSelectFirst && !s.value?.length && r.value.length && u("update:modelValue", ["", "", r.value[0]?.value ?? ""]);
|
|
717
|
+
}), D = () => {
|
|
718
718
|
ne().then(() => {
|
|
719
719
|
u("change", s.value);
|
|
720
720
|
});
|
|
721
|
-
},
|
|
721
|
+
}, d = G({
|
|
722
722
|
get() {
|
|
723
723
|
return o.modelValue[2];
|
|
724
724
|
},
|
|
725
725
|
set(C) {
|
|
726
|
-
const [
|
|
727
|
-
s.value = [
|
|
726
|
+
const [A, h] = o.modelValue;
|
|
727
|
+
s.value = [A, h, C], A && h && D(), m(n.value, C);
|
|
728
728
|
}
|
|
729
|
-
}),
|
|
729
|
+
}), m = (C, A) => {
|
|
730
730
|
if (C) {
|
|
731
|
-
const { params: [
|
|
731
|
+
const { params: [h] = [] } = C;
|
|
732
732
|
n.value = {
|
|
733
733
|
expression: "GET_DATE_RANGE_SELECT_GROUP",
|
|
734
|
-
params: [
|
|
734
|
+
params: [h, A ?? ""]
|
|
735
735
|
};
|
|
736
736
|
} else
|
|
737
737
|
n.value = void 0;
|
|
738
|
-
}, F =
|
|
738
|
+
}, F = G({
|
|
739
739
|
get() {
|
|
740
740
|
return o.modelValue.slice(0, 2);
|
|
741
741
|
},
|
|
742
742
|
set(C) {
|
|
743
|
-
const
|
|
744
|
-
s.value = I, $t(
|
|
743
|
+
const A = fe(s.value), h = o.whenEmptyDateClearSelect && !C ? "" : s.value?.[2], I = [...C || ["", ""], h];
|
|
744
|
+
s.value = I, $t(A, I) || D();
|
|
745
745
|
}
|
|
746
|
-
}), c =
|
|
746
|
+
}), c = G(() => {
|
|
747
747
|
if (!o.disabledSelectByEmptyData)
|
|
748
748
|
return !1;
|
|
749
|
-
const [C,
|
|
750
|
-
return !C || !
|
|
751
|
-
}), f =
|
|
749
|
+
const [C, A] = o.modelValue;
|
|
750
|
+
return !C || !A;
|
|
751
|
+
}), f = G({
|
|
752
752
|
get() {
|
|
753
753
|
return fe(n.value);
|
|
754
754
|
},
|
|
755
755
|
set(C) {
|
|
756
|
-
|
|
756
|
+
m(C, s.value?.[2]);
|
|
757
757
|
}
|
|
758
|
-
}),
|
|
758
|
+
}), p = G(() => ({
|
|
759
759
|
clearable: !1,
|
|
760
760
|
...o.selectOptions ?? {},
|
|
761
761
|
...o.selectAttrs ?? {}
|
|
762
762
|
}));
|
|
763
|
-
return (C,
|
|
764
|
-
const
|
|
765
|
-
return g(),
|
|
763
|
+
return (C, A) => {
|
|
764
|
+
const h = S("el-option"), k = S("el-select");
|
|
765
|
+
return g(), b("div", {
|
|
766
766
|
class: re([
|
|
767
767
|
"base-date-range-and-select-group__container",
|
|
768
768
|
{
|
|
@@ -770,26 +770,26 @@ const kl = (e, t = "HH:mm:ss") => {
|
|
|
770
770
|
}
|
|
771
771
|
])
|
|
772
772
|
}, [
|
|
773
|
-
|
|
773
|
+
x("div", Zn, [
|
|
774
774
|
E(it, oe({
|
|
775
775
|
"dynamic-expression": f.value,
|
|
776
|
-
"onUpdate:dynamicExpression":
|
|
776
|
+
"onUpdate:dynamicExpression": A[0] || (A[0] = (I) => f.value = I),
|
|
777
777
|
modelValue: F.value,
|
|
778
|
-
"onUpdate:modelValue":
|
|
778
|
+
"onUpdate:modelValue": A[1] || (A[1] = (I) => F.value = I)
|
|
779
779
|
}, a.value), null, 16, ["dynamic-expression", "modelValue"])
|
|
780
780
|
]),
|
|
781
|
-
|
|
781
|
+
x("div", Yn, [
|
|
782
782
|
E(k, oe({
|
|
783
|
-
modelValue:
|
|
784
|
-
"onUpdate:modelValue":
|
|
785
|
-
},
|
|
783
|
+
modelValue: d.value,
|
|
784
|
+
"onUpdate:modelValue": A[2] || (A[2] = (I) => d.value = I)
|
|
785
|
+
}, p.value ?? {}, {
|
|
786
786
|
style: { width: C.selectWidth },
|
|
787
787
|
disabled: c.value ?? C.disabled,
|
|
788
788
|
clearable: !1,
|
|
789
|
-
loading:
|
|
789
|
+
loading: i(l)
|
|
790
790
|
}), {
|
|
791
791
|
default: B(() => [
|
|
792
|
-
(g(!0),
|
|
792
|
+
(g(!0), b(K, null, se(i(r), (I) => (g(), R(h, oe({
|
|
793
793
|
key: I.value
|
|
794
794
|
}, { ref_for: !0 }, I), null, 16))), 128))
|
|
795
795
|
]),
|
|
@@ -803,14 +803,14 @@ const kl = (e, t = "HH:mm:ss") => {
|
|
|
803
803
|
name: "BaseInput",
|
|
804
804
|
__name: "BaseInput",
|
|
805
805
|
setup(e) {
|
|
806
|
-
const t = Kt(), o =
|
|
806
|
+
const t = Kt(), o = G(() => Object.keys(t));
|
|
807
807
|
return (n, u) => {
|
|
808
808
|
const a = S("el-input"), s = Fe("paste-trim");
|
|
809
|
-
return
|
|
810
|
-
se(o.value, (
|
|
811
|
-
name:
|
|
809
|
+
return de((g(), R(a, { class: "base-input" }, ft({ _: 2 }, [
|
|
810
|
+
se(o.value, (r) => ({
|
|
811
|
+
name: r,
|
|
812
812
|
fn: B(() => [
|
|
813
|
-
pe(n.$slots,
|
|
813
|
+
pe(n.$slots, r)
|
|
814
814
|
])
|
|
815
815
|
}))
|
|
816
816
|
]), 1024)), [
|
|
@@ -857,66 +857,66 @@ const kl = (e, t = "HH:mm:ss") => {
|
|
|
857
857
|
},
|
|
858
858
|
emits: ["update:modelValue", "change"],
|
|
859
859
|
setup(e, { emit: t }) {
|
|
860
|
-
const o = e, n = t, { value: u } = be(o, n), a =
|
|
861
|
-
() => Be(
|
|
860
|
+
const o = e, n = t, { value: u } = be(o, n), a = G(
|
|
861
|
+
() => Be(N.omit(o, ["on", "modelValue", "precision", "max", "min"]))
|
|
862
862
|
);
|
|
863
863
|
let s = o.modelValue;
|
|
864
|
-
const
|
|
864
|
+
const r = (F) => {
|
|
865
865
|
let c = F;
|
|
866
866
|
isNaN(Number(c)) && (c = s), s !== c && (s = c), u.value = s;
|
|
867
867
|
}, l = () => {
|
|
868
868
|
let F = "^\\d+$";
|
|
869
869
|
return o.precision && (F = `^\\d+(\\.)?(\\d{1,${o.precision}})?$`), new RegExp(F);
|
|
870
|
-
},
|
|
871
|
-
|
|
872
|
-
},
|
|
870
|
+
}, D = () => {
|
|
871
|
+
r(parseFloat(s)), o.on?.change?.(s), n("change", s);
|
|
872
|
+
}, d = (F) => {
|
|
873
873
|
if (typeof F != "number" && !F) {
|
|
874
|
-
|
|
874
|
+
r(F);
|
|
875
875
|
return;
|
|
876
876
|
}
|
|
877
877
|
const { min: c, max: f } = o;
|
|
878
878
|
if (F && !l().test(F)) {
|
|
879
|
-
|
|
879
|
+
r(s);
|
|
880
880
|
return;
|
|
881
881
|
}
|
|
882
|
-
const
|
|
883
|
-
|
|
884
|
-
},
|
|
882
|
+
const p = Number(F), C = typeof c < "u" && p < c, A = typeof f < "u" && p > f;
|
|
883
|
+
r(A ? f : C ? c : F), o.on?.input?.(s);
|
|
884
|
+
}, m = G(() => N.omit(o.on, ["change", "input"]));
|
|
885
885
|
return (F, c) => {
|
|
886
|
-
const f = S("el-input"),
|
|
887
|
-
return g(),
|
|
888
|
-
|
|
889
|
-
modelValue:
|
|
886
|
+
const f = S("el-input"), p = Fe("paste-trim");
|
|
887
|
+
return g(), b("div", Kn, [
|
|
888
|
+
de((g(), R(f, oe(a.value, {
|
|
889
|
+
modelValue: i(u),
|
|
890
890
|
"onUpdate:modelValue": c[0] || (c[0] = (C) => Ae(u) ? u.value = C : null)
|
|
891
|
-
}, _e(
|
|
892
|
-
onInput:
|
|
893
|
-
onChange:
|
|
891
|
+
}, _e(m.value), {
|
|
892
|
+
onInput: d,
|
|
893
|
+
onChange: D
|
|
894
894
|
}), {
|
|
895
895
|
suffix: B(() => [
|
|
896
896
|
pe(F.$slots, "suffix", {}, void 0, !0)
|
|
897
897
|
]),
|
|
898
898
|
_: 3
|
|
899
899
|
}, 16, ["modelValue"])), [
|
|
900
|
-
[
|
|
900
|
+
[p]
|
|
901
901
|
])
|
|
902
902
|
]);
|
|
903
903
|
};
|
|
904
904
|
}
|
|
905
905
|
}), Jn = /* @__PURE__ */ te(qn, [["__scopeId", "data-v-fd1ded59"]]);
|
|
906
|
-
let
|
|
907
|
-
const
|
|
906
|
+
let Nt = 1;
|
|
907
|
+
const Re = [], Ye = [], Bt = () => ({
|
|
908
908
|
startAsyncTask: () => {
|
|
909
|
-
const u =
|
|
910
|
-
|
|
909
|
+
const u = Nt++;
|
|
910
|
+
Re.push(u);
|
|
911
911
|
},
|
|
912
912
|
taskComplete: async () => {
|
|
913
|
-
await ne(),
|
|
913
|
+
await ne(), Re.pop(), Re.length === 0 && (Ye.forEach((u) => u()), Ye.length = 0);
|
|
914
914
|
},
|
|
915
915
|
onTaskAllComplete: (u) => {
|
|
916
|
-
|
|
916
|
+
Re.length === 0 ? u() : Ye.push(u);
|
|
917
917
|
},
|
|
918
918
|
clearAllAsyncTask: () => {
|
|
919
|
-
|
|
919
|
+
Re.length = 0, Ye.length = 0, Nt = 1;
|
|
920
920
|
}
|
|
921
921
|
}), $n = { class: "base-number-range__container" }, eu = {
|
|
922
922
|
key: 0,
|
|
@@ -937,65 +937,65 @@ const Ne = [], Ye = [], Bt = () => ({
|
|
|
937
937
|
},
|
|
938
938
|
emits: ["update:modelValue", "change"],
|
|
939
939
|
setup(e, { emit: t }) {
|
|
940
|
-
Te((
|
|
941
|
-
"6fae3be1":
|
|
940
|
+
Te((h) => ({
|
|
941
|
+
"6fae3be1": h.inputWidth
|
|
942
942
|
}));
|
|
943
|
-
const o = e, n = t, { value: u } = be(o, n), a = () => u.value?.map?.((
|
|
944
|
-
const k = parseFloat(String(
|
|
943
|
+
const o = e, n = t, { value: u } = be(o, n), a = () => u.value?.map?.((h) => {
|
|
944
|
+
const k = parseFloat(String(h));
|
|
945
945
|
return isNaN(k) ? void 0 : k;
|
|
946
|
-
}) ?? [], s =
|
|
947
|
-
if (Reflect.has(o.on,
|
|
948
|
-
const k = Reflect.get(o.on,
|
|
949
|
-
|
|
946
|
+
}) ?? [], s = G(() => N.omit(o.on, ["focus", "input", "change"])), r = (h) => {
|
|
947
|
+
if (Reflect.has(o.on, h)) {
|
|
948
|
+
const k = Reflect.get(o.on, h);
|
|
949
|
+
N.isFunction(k) && k(u.value);
|
|
950
950
|
}
|
|
951
|
-
}, { startAsyncTask: l, taskComplete:
|
|
952
|
-
let
|
|
953
|
-
const
|
|
954
|
-
|
|
951
|
+
}, { startAsyncTask: l, taskComplete: D } = Bt();
|
|
952
|
+
let d;
|
|
953
|
+
const m = () => {
|
|
954
|
+
d && (clearTimeout(d), D()), d = void 0;
|
|
955
955
|
}, F = () => {
|
|
956
|
-
|
|
956
|
+
m(), r("focus");
|
|
957
957
|
}, c = () => {
|
|
958
|
-
let
|
|
959
|
-
return o.precision && (
|
|
958
|
+
let h = "^\\d+$";
|
|
959
|
+
return o.precision && (h = `^\\d+(\\.)?(\\d{1,${o.precision}})?$`), new RegExp(h);
|
|
960
960
|
};
|
|
961
961
|
let f = [...u.value];
|
|
962
|
-
const
|
|
963
|
-
f = [...
|
|
964
|
-
}, C = (
|
|
965
|
-
if (typeof
|
|
966
|
-
f[k] =
|
|
962
|
+
const p = (h) => {
|
|
963
|
+
f = [...h], n("update:modelValue", [...h]);
|
|
964
|
+
}, C = (h, k) => {
|
|
965
|
+
if (typeof h != "number" && !h) {
|
|
966
|
+
f[k] = h;
|
|
967
967
|
return;
|
|
968
968
|
}
|
|
969
969
|
const { min: I, max: P } = o, y = [...u.value];
|
|
970
|
-
if (
|
|
971
|
-
|
|
970
|
+
if (h && !c().test(h)) {
|
|
971
|
+
p(f);
|
|
972
972
|
return;
|
|
973
973
|
}
|
|
974
|
-
const
|
|
975
|
-
V ||
|
|
976
|
-
},
|
|
977
|
-
l(),
|
|
978
|
-
|
|
979
|
-
}, 200),
|
|
974
|
+
const w = Number(h), v = typeof I < "u" && w < I, V = typeof P < "u" && w > P;
|
|
975
|
+
V || v ? (y.splice(k, 1, V ? P : I), p(y)) : f[k] = h;
|
|
976
|
+
}, A = () => {
|
|
977
|
+
l(), d = setTimeout(() => {
|
|
978
|
+
r("change"), n("change", a()), D();
|
|
979
|
+
}, 200), p(a());
|
|
980
980
|
};
|
|
981
981
|
return He(() => {
|
|
982
|
-
|
|
983
|
-
}), (
|
|
982
|
+
m();
|
|
983
|
+
}), (h, k) => {
|
|
984
984
|
const I = S("el-input"), P = Fe("paste-trim");
|
|
985
|
-
return g(),
|
|
986
|
-
(g(),
|
|
987
|
-
|
|
988
|
-
modelValue:
|
|
989
|
-
"onUpdate:modelValue": (
|
|
990
|
-
disabled:
|
|
985
|
+
return g(), b("div", $n, [
|
|
986
|
+
(g(), b(K, null, se([0, 1], (y) => (g(), b(K, { key: y }, [
|
|
987
|
+
de(E(I, oe({ ref_for: !0 }, y === 0 ? h.minProps : h.maxProps, {
|
|
988
|
+
modelValue: i(u)[y],
|
|
989
|
+
"onUpdate:modelValue": (w) => i(u)[y] = w,
|
|
990
|
+
disabled: h.disabled
|
|
991
991
|
}, _e(s.value), {
|
|
992
992
|
onFocus: F,
|
|
993
|
-
onChange:
|
|
994
|
-
onInput: (
|
|
993
|
+
onChange: A,
|
|
994
|
+
onInput: (w) => C(w, y)
|
|
995
995
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "onInput"]), [
|
|
996
996
|
[P]
|
|
997
997
|
]),
|
|
998
|
-
y === 0 ? (g(),
|
|
998
|
+
y === 0 ? (g(), b("div", eu, "至")) : z("", !0)
|
|
999
999
|
], 64))), 64))
|
|
1000
1000
|
]);
|
|
1001
1001
|
};
|
|
@@ -1018,16 +1018,16 @@ const Ne = [], Ye = [], Bt = () => ({
|
|
|
1018
1018
|
},
|
|
1019
1019
|
emits: ["update:modelValue"],
|
|
1020
1020
|
setup(e, { emit: t }) {
|
|
1021
|
-
const o = e, n = t, { parseOptions: u, loadingOptions: a } = ze(o), { value: s } = be(o, n),
|
|
1022
|
-
return (
|
|
1023
|
-
const
|
|
1024
|
-
return
|
|
1025
|
-
modelValue:
|
|
1026
|
-
"onUpdate:modelValue":
|
|
1021
|
+
const o = e, n = t, { parseOptions: u, loadingOptions: a } = ze(o), { value: s } = be(o, n), r = G(() => Be(xt(o, ["on", "options", "modelValue"]))), l = (D) => Be(xt(D, ["label", "leaf", "children"]));
|
|
1022
|
+
return (D, d) => {
|
|
1023
|
+
const m = S("el-radio"), F = S("el-radio-group"), c = Fe("loading");
|
|
1024
|
+
return de((g(), R(F, oe(r.value, {
|
|
1025
|
+
modelValue: i(s),
|
|
1026
|
+
"onUpdate:modelValue": d[0] || (d[0] = (f) => Ae(s) ? s.value = f : null)
|
|
1027
1027
|
}), {
|
|
1028
1028
|
default: B(() => [
|
|
1029
|
-
pe(
|
|
1030
|
-
(g(!0),
|
|
1029
|
+
pe(D.$slots, "default", {}, () => [
|
|
1030
|
+
(g(!0), b(K, null, se(i(u), (f) => (g(), R(m, oe({
|
|
1031
1031
|
key: f.value
|
|
1032
1032
|
}, { ref_for: !0 }, l(f)), {
|
|
1033
1033
|
default: B(() => [
|
|
@@ -1039,7 +1039,7 @@ const Ne = [], Ye = [], Bt = () => ({
|
|
|
1039
1039
|
]),
|
|
1040
1040
|
_: 3
|
|
1041
1041
|
}, 16, ["modelValue"])), [
|
|
1042
|
-
[c,
|
|
1042
|
+
[c, i(a)]
|
|
1043
1043
|
]);
|
|
1044
1044
|
};
|
|
1045
1045
|
}
|
|
@@ -1079,33 +1079,33 @@ const Ne = [], Ye = [], Bt = () => ({
|
|
|
1079
1079
|
},
|
|
1080
1080
|
emits: ["update:modelValue", "suffixClick", "change"],
|
|
1081
1081
|
setup(e, { emit: t }) {
|
|
1082
|
-
const o = e, n = t, { value: u } = be(o, n), a =
|
|
1082
|
+
const o = e, n = t, { value: u } = be(o, n), a = G(() => Be(N.omit(o, ["on", "modelValue"]))), s = (l) => {
|
|
1083
1083
|
n("update:modelValue", l), n("change", l);
|
|
1084
|
-
},
|
|
1084
|
+
}, r = () => {
|
|
1085
1085
|
n("update:modelValue", ""), n("change", "");
|
|
1086
1086
|
};
|
|
1087
|
-
return (l,
|
|
1088
|
-
const
|
|
1089
|
-
return
|
|
1090
|
-
modelValue:
|
|
1091
|
-
"onUpdate:modelValue":
|
|
1087
|
+
return (l, D) => {
|
|
1088
|
+
const d = S("el-icon"), m = S("el-input"), F = Fe("paste-trim");
|
|
1089
|
+
return de((g(), R(m, oe(a.value, {
|
|
1090
|
+
modelValue: i(u),
|
|
1091
|
+
"onUpdate:modelValue": D[0] || (D[0] = (c) => Ae(u) ? u.value = c : null),
|
|
1092
1092
|
clearable: !1,
|
|
1093
1093
|
class: "base-search-input"
|
|
1094
1094
|
}, _e(o.on), { onChange: s }), {
|
|
1095
1095
|
suffix: B(() => [
|
|
1096
|
-
|
|
1097
|
-
|
|
1096
|
+
x("div", uu, [
|
|
1097
|
+
i(u) ? (g(), R(d, {
|
|
1098
1098
|
key: 0,
|
|
1099
|
-
onClick:
|
|
1099
|
+
onClick: r
|
|
1100
1100
|
}, {
|
|
1101
1101
|
default: B(() => [
|
|
1102
|
-
E(
|
|
1102
|
+
E(i(oo))
|
|
1103
1103
|
]),
|
|
1104
1104
|
_: 1
|
|
1105
|
-
})) :
|
|
1106
|
-
E(
|
|
1105
|
+
})) : z("", !0),
|
|
1106
|
+
E(d, null, {
|
|
1107
1107
|
default: B(() => [
|
|
1108
|
-
E(
|
|
1108
|
+
E(i(no))
|
|
1109
1109
|
]),
|
|
1110
1110
|
_: 1
|
|
1111
1111
|
})
|
|
@@ -1174,19 +1174,19 @@ const Ne = [], Ye = [], Bt = () => ({
|
|
|
1174
1174
|
},
|
|
1175
1175
|
emits: ["update:modelValue"],
|
|
1176
1176
|
setup(e, { emit: t }) {
|
|
1177
|
-
Te((
|
|
1177
|
+
Te((D) => ({
|
|
1178
1178
|
"1471bb1c": l.value
|
|
1179
1179
|
}));
|
|
1180
|
-
const o = e, n = t, { parseOptions: u, loadingOptions: a } = ze(o), { value: s } = be(o, n),
|
|
1181
|
-
return (
|
|
1182
|
-
const
|
|
1183
|
-
return g(),
|
|
1184
|
-
modelValue:
|
|
1185
|
-
"onUpdate:modelValue":
|
|
1186
|
-
loading:
|
|
1187
|
-
}, _e(
|
|
1180
|
+
const o = e, n = t, { parseOptions: u, loadingOptions: a } = ze(o), { value: s } = be(o, n), r = G(() => Be(N.omit(o, ["on", "options", "modelValue"]))), l = G(() => o.width || "100%");
|
|
1181
|
+
return (D, d) => {
|
|
1182
|
+
const m = S("el-option"), F = S("el-select");
|
|
1183
|
+
return g(), R(F, oe(r.value, {
|
|
1184
|
+
modelValue: i(s),
|
|
1185
|
+
"onUpdate:modelValue": d[0] || (d[0] = (c) => Ae(s) ? s.value = c : null),
|
|
1186
|
+
loading: i(a)
|
|
1187
|
+
}, _e(D.on)), {
|
|
1188
1188
|
default: B(() => [
|
|
1189
|
-
(g(!0),
|
|
1189
|
+
(g(!0), b(K, null, se(i(u), (c) => (g(), R(m, oe({
|
|
1190
1190
|
key: c.value
|
|
1191
1191
|
}, { ref_for: !0 }, c), null, 16))), 128))
|
|
1192
1192
|
]),
|
|
@@ -1201,13 +1201,13 @@ const Ne = [], Ye = [], Bt = () => ({
|
|
|
1201
1201
|
};
|
|
1202
1202
|
else {
|
|
1203
1203
|
const o = t.style;
|
|
1204
|
-
|
|
1204
|
+
N.isString(o) ? t.style = `width: ${e}; ${o}` : N.isObject(o) && (o.width || (o.width = e));
|
|
1205
1205
|
}
|
|
1206
1206
|
return t;
|
|
1207
|
-
}, cu = BigInt("9223372036854775807"),
|
|
1207
|
+
}, cu = BigInt("9223372036854775807"), du = (e) => {
|
|
1208
1208
|
const t = e.replace(/[^0-9]/g, "");
|
|
1209
1209
|
return t && BigInt(t) > cu ? t.slice(0, -1) : t;
|
|
1210
|
-
},
|
|
1210
|
+
}, Du = { class: "input_icons" }, pu = /* @__PURE__ */ X({
|
|
1211
1211
|
__name: "GroupSelectInput",
|
|
1212
1212
|
props: {
|
|
1213
1213
|
selectAttrs: {},
|
|
@@ -1253,59 +1253,59 @@ const Ne = [], Ye = [], Bt = () => ({
|
|
|
1253
1253
|
setup(e, { emit: t }) {
|
|
1254
1254
|
const o = e, n = t, { value: u } = be(o, n), { parseOptions: a, loadingOptions: s } = ze(o, () => {
|
|
1255
1255
|
o.defaultSelectFirst && !u.value?.length && a.value.length && n("update:modelValue", ["", a.value[0]?.value ?? ""]);
|
|
1256
|
-
}),
|
|
1257
|
-
const
|
|
1258
|
-
return Object.assign({},
|
|
1256
|
+
}), r = G(() => {
|
|
1257
|
+
const p = iu(o.selectWidth, o.selectAttrs);
|
|
1258
|
+
return Object.assign({}, p);
|
|
1259
1259
|
}), l = () => {
|
|
1260
1260
|
n("change", u.value);
|
|
1261
|
-
},
|
|
1262
|
-
() => a.value.find((
|
|
1263
|
-
),
|
|
1261
|
+
}, D = G(() => a.value.find((C) => C.value === u.value[1])?.placeholder ?? o.placeholder), d = G(
|
|
1262
|
+
() => a.value.find((p) => p.value === u.value[1])
|
|
1263
|
+
), m = (p) => {
|
|
1264
1264
|
const [, C] = u.value;
|
|
1265
|
-
let
|
|
1266
|
-
|
|
1265
|
+
let A = p;
|
|
1266
|
+
d.value?.type === "id" && (A = du(p)), n("update:modelValue", [A, C || ""]);
|
|
1267
1267
|
}, F = () => {
|
|
1268
|
-
const
|
|
1269
|
-
|
|
1270
|
-
}, c =
|
|
1268
|
+
const p = u.value[0];
|
|
1269
|
+
m(""), (o.changeOnSelect || p) && l();
|
|
1270
|
+
}, c = G(
|
|
1271
1271
|
() => Be(
|
|
1272
|
-
|
|
1272
|
+
N.omit(o, ["modelValue", "groupSelectInputAttrs", "placeholder", "options", "className", "class"])
|
|
1273
1273
|
)
|
|
1274
1274
|
), f = () => {
|
|
1275
|
-
|
|
1275
|
+
m(""), l();
|
|
1276
1276
|
};
|
|
1277
|
-
return (
|
|
1278
|
-
const
|
|
1279
|
-
return
|
|
1277
|
+
return (p, C) => {
|
|
1278
|
+
const A = S("el-icon"), h = S("el-option"), k = S("el-select"), I = S("el-input"), P = Fe("paste-trim");
|
|
1279
|
+
return de((g(), R(I, oe({
|
|
1280
1280
|
class: [
|
|
1281
1281
|
"group-select-input",
|
|
1282
|
-
|
|
1282
|
+
p.className || "",
|
|
1283
1283
|
{
|
|
1284
|
-
"is-reverse":
|
|
1284
|
+
"is-reverse": p.selectToFirst
|
|
1285
1285
|
}
|
|
1286
1286
|
]
|
|
1287
1287
|
}, c.value, {
|
|
1288
|
-
"model-value":
|
|
1289
|
-
placeholder:
|
|
1288
|
+
"model-value": i(u)[0],
|
|
1289
|
+
placeholder: D.value,
|
|
1290
1290
|
clearable: !1,
|
|
1291
|
-
maxlength:
|
|
1292
|
-
"onUpdate:modelValue":
|
|
1291
|
+
maxlength: d.value?.maxlength ?? c.value.maxlength,
|
|
1292
|
+
"onUpdate:modelValue": m,
|
|
1293
1293
|
onChange: l
|
|
1294
1294
|
}), {
|
|
1295
1295
|
suffix: B(() => [
|
|
1296
|
-
|
|
1297
|
-
|
|
1296
|
+
x("div", Du, [
|
|
1297
|
+
i(u)[0] ? (g(), R(A, {
|
|
1298
1298
|
key: 0,
|
|
1299
1299
|
onClick: f
|
|
1300
1300
|
}, {
|
|
1301
1301
|
default: B(() => [
|
|
1302
|
-
E(
|
|
1302
|
+
E(i(oo))
|
|
1303
1303
|
]),
|
|
1304
1304
|
_: 1
|
|
1305
|
-
})) :
|
|
1306
|
-
E(
|
|
1305
|
+
})) : z("", !0),
|
|
1306
|
+
E(A, null, {
|
|
1307
1307
|
default: B(() => [
|
|
1308
|
-
E(
|
|
1308
|
+
E(i(no))
|
|
1309
1309
|
]),
|
|
1310
1310
|
_: 1
|
|
1311
1311
|
})
|
|
@@ -1313,15 +1313,15 @@ const Ne = [], Ye = [], Bt = () => ({
|
|
|
1313
1313
|
]),
|
|
1314
1314
|
prepend: B(() => [
|
|
1315
1315
|
E(k, oe({
|
|
1316
|
-
modelValue:
|
|
1317
|
-
"onUpdate:modelValue": C[0] || (C[0] = (y) =>
|
|
1318
|
-
},
|
|
1319
|
-
disabled:
|
|
1320
|
-
loading:
|
|
1316
|
+
modelValue: i(u)[1],
|
|
1317
|
+
"onUpdate:modelValue": C[0] || (C[0] = (y) => i(u)[1] = y)
|
|
1318
|
+
}, r.value, {
|
|
1319
|
+
disabled: r.value.disabled ?? p.disabled,
|
|
1320
|
+
loading: i(s),
|
|
1321
1321
|
onChange: F
|
|
1322
1322
|
}), {
|
|
1323
1323
|
default: B(() => [
|
|
1324
|
-
(g(!0),
|
|
1324
|
+
(g(!0), b(K, null, se(i(a), (y) => (g(), R(h, oe({
|
|
1325
1325
|
key: y.value
|
|
1326
1326
|
}, { ref_for: !0 }, y), null, 16))), 128))
|
|
1327
1327
|
]),
|
|
@@ -1391,8 +1391,8 @@ const gu = (e) => ke.get(Se(e)), Fu = (e) => ke.has(Se(e)), Cu = (e) => ke.get(S
|
|
|
1391
1391
|
}
|
|
1392
1392
|
], he = (e, t) => {
|
|
1393
1393
|
const o = e.attrs || (e.attrs = {});
|
|
1394
|
-
return Ko(o, t, (n, u) => n && u && je(n) && je(u) ?
|
|
1395
|
-
},
|
|
1394
|
+
return Ko(o, t, (n, u) => n && u && je(n) && je(u) ? Ne(u, n) : n ?? u), e;
|
|
1395
|
+
}, dt = {
|
|
1396
1396
|
[ee.RADIO]: (e) => e,
|
|
1397
1397
|
[ee.SWITCH]: (e) => e,
|
|
1398
1398
|
[ee.INPUT]: (e) => {
|
|
@@ -1425,7 +1425,7 @@ const gu = (e) => ke.get(Se(e)), Fu = (e) => ke.has(Se(e)), Cu = (e) => ke.get(S
|
|
|
1425
1425
|
defaultValue: /* @__PURE__ */ new Date()
|
|
1426
1426
|
});
|
|
1427
1427
|
},
|
|
1428
|
-
[ee.DATE_RANGE]: (e) =>
|
|
1428
|
+
[ee.DATE_RANGE]: (e) => Ne(
|
|
1429
1429
|
{
|
|
1430
1430
|
defaultValue: []
|
|
1431
1431
|
},
|
|
@@ -1445,7 +1445,7 @@ const gu = (e) => ke.get(Se(e)), Fu = (e) => ke.has(Se(e)), Cu = (e) => ke.get(S
|
|
|
1445
1445
|
shortcuts: vu
|
|
1446
1446
|
})
|
|
1447
1447
|
),
|
|
1448
|
-
[ee.GROUP_SELECT_INPUT]: (e) =>
|
|
1448
|
+
[ee.GROUP_SELECT_INPUT]: (e) => Ne(
|
|
1449
1449
|
{
|
|
1450
1450
|
defaultValue: []
|
|
1451
1451
|
},
|
|
@@ -1474,7 +1474,7 @@ const gu = (e) => ke.get(Se(e)), Fu = (e) => ke.has(Se(e)), Cu = (e) => ke.get(S
|
|
|
1474
1474
|
collapseTags: !0,
|
|
1475
1475
|
collapseTagsTooltip: !0,
|
|
1476
1476
|
filterable: !0
|
|
1477
|
-
}),
|
|
1477
|
+
}), Ne(
|
|
1478
1478
|
{
|
|
1479
1479
|
format: (s) => (
|
|
1480
1480
|
/* 如果是单选,则默认拿到最后一个值 */
|
|
@@ -1490,7 +1490,7 @@ const gu = (e) => ke.get(Se(e)), Fu = (e) => ke.has(Se(e)), Cu = (e) => ke.get(S
|
|
|
1490
1490
|
const { label: t } = e, o = {
|
|
1491
1491
|
clearable: !0
|
|
1492
1492
|
};
|
|
1493
|
-
return
|
|
1493
|
+
return Ne(
|
|
1494
1494
|
{
|
|
1495
1495
|
defaultValue: []
|
|
1496
1496
|
},
|
|
@@ -1510,7 +1510,7 @@ const gu = (e) => ke.get(Se(e)), Fu = (e) => ke.has(Se(e)), Cu = (e) => ke.get(S
|
|
|
1510
1510
|
);
|
|
1511
1511
|
},
|
|
1512
1512
|
[ee.DATE_RANGE_AND_SELECT_GROUP]: (e) => {
|
|
1513
|
-
const t =
|
|
1513
|
+
const t = dt[ee.DATE_RANGE](e);
|
|
1514
1514
|
return he(t, {
|
|
1515
1515
|
selectOptions: {
|
|
1516
1516
|
placeholder: "请选择"
|
|
@@ -1527,8 +1527,8 @@ const gu = (e) => ke.get(Se(e)), Fu = (e) => ke.has(Se(e)), Cu = (e) => ke.get(S
|
|
|
1527
1527
|
}
|
|
1528
1528
|
}, Eu = (e) => typeof e == "string", yu = (e) => {
|
|
1529
1529
|
const { tag: t } = e;
|
|
1530
|
-
if (eo(t) && Reflect.has(
|
|
1531
|
-
return Reflect.get(
|
|
1530
|
+
if (eo(t) && Reflect.has(dt, t))
|
|
1531
|
+
return Reflect.get(dt, t)(e);
|
|
1532
1532
|
if (Eu(t) && mo(t)) {
|
|
1533
1533
|
const o = gu(t);
|
|
1534
1534
|
if (o?.defaultPraseStrategy && to(o.defaultPraseStrategy))
|
|
@@ -1604,7 +1604,7 @@ class fo {
|
|
|
1604
1604
|
initProps(t) {
|
|
1605
1605
|
t.classifyName || (t.classifyName = qe), t.prop || (this.show = !0), this.prop = t.prop || this.prop, t.attrs || (t.attrs = {});
|
|
1606
1606
|
const { componentProps: o = {} } = t;
|
|
1607
|
-
|
|
1607
|
+
N.merge(t.attrs, o), this.update(t);
|
|
1608
1608
|
}
|
|
1609
1609
|
update(t) {
|
|
1610
1610
|
if (je(t.tag)) {
|
|
@@ -1613,14 +1613,14 @@ class fo {
|
|
|
1613
1613
|
component: t.tag
|
|
1614
1614
|
}), this._customTagName = o, t.tag = o;
|
|
1615
1615
|
}
|
|
1616
|
-
|
|
1616
|
+
N.merge(this, yu(t) || t);
|
|
1617
1617
|
}
|
|
1618
1618
|
/**
|
|
1619
1619
|
* 校验当前是否可见。
|
|
1620
1620
|
* @param formData
|
|
1621
1621
|
*/
|
|
1622
1622
|
validateIsHidden(t) {
|
|
1623
|
-
return (
|
|
1623
|
+
return (N.isFunction(this.hidden) ? !this.hidden(t, this) : !this.hidden) && this.show;
|
|
1624
1624
|
}
|
|
1625
1625
|
parseColumn(t) {
|
|
1626
1626
|
this.visible = !t.has(this.prop);
|
|
@@ -1636,7 +1636,7 @@ class fo {
|
|
|
1636
1636
|
[n]: (...u) => {
|
|
1637
1637
|
if (Reflect.has(o, n)) {
|
|
1638
1638
|
const a = Reflect.get(o, n);
|
|
1639
|
-
|
|
1639
|
+
N.isFunction(a) && a(...u);
|
|
1640
1640
|
}
|
|
1641
1641
|
t(...u);
|
|
1642
1642
|
}
|
|
@@ -1659,7 +1659,7 @@ class fo {
|
|
|
1659
1659
|
}
|
|
1660
1660
|
}
|
|
1661
1661
|
function go(e) {
|
|
1662
|
-
const t =
|
|
1662
|
+
const t = N.isFunction(e), o = t ? e() : e, n = T(new fo(o));
|
|
1663
1663
|
if (t) {
|
|
1664
1664
|
const u = tt(() => {
|
|
1665
1665
|
const a = t ? e() : e;
|
|
@@ -1669,7 +1669,7 @@ function go(e) {
|
|
|
1669
1669
|
n.value.removeStopper(u);
|
|
1670
1670
|
});
|
|
1671
1671
|
}
|
|
1672
|
-
return
|
|
1672
|
+
return i(n);
|
|
1673
1673
|
}
|
|
1674
1674
|
const _u = (e) => {
|
|
1675
1675
|
const { formItemAttrs: t, prop: o, label: n } = e;
|
|
@@ -1711,8 +1711,8 @@ const _u = (e) => {
|
|
|
1711
1711
|
}, Iu = (e) => Array.isArray(e), ku = (e, t) => {
|
|
1712
1712
|
const o = ot(t, Le), n = new Map(o.columns.map((u) => [u.prop, u]));
|
|
1713
1713
|
return e.forEach(({ prop: u, checked: a }, s) => {
|
|
1714
|
-
const
|
|
1715
|
-
|
|
1714
|
+
const r = n.get(u);
|
|
1715
|
+
r && (r.checked = !!a, a && (r.sort = s + 1));
|
|
1716
1716
|
}), {
|
|
1717
1717
|
useGroup: o.groupName,
|
|
1718
1718
|
groups: [o]
|
|
@@ -1727,18 +1727,18 @@ const _u = (e) => {
|
|
|
1727
1727
|
}, Co = (e, t) => {
|
|
1728
1728
|
if (Iu(e))
|
|
1729
1729
|
return ku(e, t);
|
|
1730
|
-
const { groups: o = [], useGroup: n = qe } = e, u = [], a = ot(t, qe).columns, s = (
|
|
1731
|
-
const { groupName: l, columns:
|
|
1730
|
+
const { groups: o = [], useGroup: n = qe } = e, u = [], a = ot(t, qe).columns, s = (r) => {
|
|
1731
|
+
const { groupName: l, columns: D } = r, d = new Map(D.map((m) => [m.prop, m]));
|
|
1732
1732
|
u.push({
|
|
1733
1733
|
groupName: l,
|
|
1734
|
-
columns: a.map((
|
|
1735
|
-
const { readonly: F } =
|
|
1734
|
+
columns: a.map((m) => {
|
|
1735
|
+
const { readonly: F } = m, c = d.get(m.prop);
|
|
1736
1736
|
return c ? {
|
|
1737
1737
|
...c,
|
|
1738
1738
|
value: _t(c),
|
|
1739
1739
|
checked: !Oe(c.sort),
|
|
1740
1740
|
readonly: F
|
|
1741
|
-
} :
|
|
1741
|
+
} : m;
|
|
1742
1742
|
})
|
|
1743
1743
|
});
|
|
1744
1744
|
};
|
|
@@ -1749,7 +1749,7 @@ const _u = (e) => {
|
|
|
1749
1749
|
}, Su = { class: "advanced-filter-form__container" }, Lt = "advanced_filter_", Tu = /* @__PURE__ */ X({
|
|
1750
1750
|
__name: "AdvancedFilterForm",
|
|
1751
1751
|
setup(e) {
|
|
1752
|
-
const t = xe(), o = T(), n = T(), u =
|
|
1752
|
+
const t = xe(), o = T(), n = T(), u = G(() => {
|
|
1753
1753
|
const c = wu(t.columns);
|
|
1754
1754
|
return {
|
|
1755
1755
|
groupNames: Reflect.ownKeys(c),
|
|
@@ -1757,26 +1757,26 @@ const _u = (e) => {
|
|
|
1757
1757
|
};
|
|
1758
1758
|
}), a = T(u.value?.groupNames?.[0] ?? ""), s = (c) => u.value.formItems[c].every(
|
|
1759
1759
|
(f) => !!t.activeGroupColumnsMap.get(f.prop)?.checked
|
|
1760
|
-
),
|
|
1761
|
-
const f = u.value.formItems[c],
|
|
1760
|
+
), r = (c) => {
|
|
1761
|
+
const f = u.value.formItems[c], p = f.filter(
|
|
1762
1762
|
(C) => !!t.activeGroupColumnsMap.get(C.prop)?.checked
|
|
1763
1763
|
).length;
|
|
1764
|
-
return
|
|
1764
|
+
return p > 0 && p < f.length;
|
|
1765
1765
|
}, l = (c, f) => {
|
|
1766
|
-
u.value.formItems[c].forEach((
|
|
1767
|
-
t.updateActiveGroupColumnChecked(
|
|
1766
|
+
u.value.formItems[c].forEach((p) => {
|
|
1767
|
+
t.updateActiveGroupColumnChecked(p.prop, f);
|
|
1768
1768
|
});
|
|
1769
|
-
},
|
|
1769
|
+
}, D = (c) => !!t.activeGroupColumnsMap.get(c)?.checked, d = (c, f) => `${f ? "#" : ""}${Lt}${c}`, m = (c) => {
|
|
1770
1770
|
c.preventDefault();
|
|
1771
1771
|
}, F = (c) => {
|
|
1772
1772
|
a.value = c ? c.replace(`#${Lt}`, "") : u.value?.groupNames?.[0] ?? "";
|
|
1773
1773
|
};
|
|
1774
1774
|
return t.on(ie.UPDATE_ACTIVE_GROUP, () => {
|
|
1775
|
-
n.value?.scrollTo(
|
|
1775
|
+
n.value?.scrollTo(d(u.value.groupNames[0], !0));
|
|
1776
1776
|
}), (c, f) => {
|
|
1777
|
-
const
|
|
1778
|
-
return g(),
|
|
1779
|
-
E(
|
|
1777
|
+
const p = S("el-anchor-link"), C = S("el-checkbox"), A = S("el-col"), h = S("el-row"), k = S("el-form"), I = Fe("ellipsis");
|
|
1778
|
+
return g(), b("div", Su, [
|
|
1779
|
+
E(i(an), {
|
|
1780
1780
|
ref_key: "anchorRef",
|
|
1781
1781
|
ref: n,
|
|
1782
1782
|
class: "advanced-filter-form__groups",
|
|
@@ -1786,14 +1786,14 @@ const _u = (e) => {
|
|
|
1786
1786
|
offset: 10,
|
|
1787
1787
|
bound: 400,
|
|
1788
1788
|
marker: !1,
|
|
1789
|
-
onClick:
|
|
1789
|
+
onClick: m,
|
|
1790
1790
|
onChange: F
|
|
1791
1791
|
}, {
|
|
1792
1792
|
default: B(() => [
|
|
1793
|
-
(g(!0),
|
|
1793
|
+
(g(!0), b(K, null, se(u.value.groupNames, (P) => (g(), R(p, {
|
|
1794
1794
|
key: P,
|
|
1795
1795
|
class: re(["group-item", { "is-active": P === a.value }]),
|
|
1796
|
-
href:
|
|
1796
|
+
href: d(P, !0)
|
|
1797
1797
|
}, {
|
|
1798
1798
|
default: B(() => [
|
|
1799
1799
|
W(q(P), 1)
|
|
@@ -1803,29 +1803,29 @@ const _u = (e) => {
|
|
|
1803
1803
|
]),
|
|
1804
1804
|
_: 1
|
|
1805
1805
|
}, 8, ["container"]),
|
|
1806
|
-
|
|
1806
|
+
x("div", {
|
|
1807
1807
|
ref_key: "formContentRef",
|
|
1808
1808
|
ref: o,
|
|
1809
1809
|
class: "advanced-filter-form__content"
|
|
1810
1810
|
}, [
|
|
1811
1811
|
E(k, {
|
|
1812
|
-
model:
|
|
1812
|
+
model: i(t).formData,
|
|
1813
1813
|
onSubmit: f[0] || (f[0] = ye(() => {
|
|
1814
1814
|
}, ["prevent"]))
|
|
1815
1815
|
}, {
|
|
1816
1816
|
default: B(() => [
|
|
1817
|
-
E(
|
|
1817
|
+
E(h, { span: 24 }, {
|
|
1818
1818
|
default: B(() => [
|
|
1819
|
-
(g(!0),
|
|
1820
|
-
E(
|
|
1821
|
-
id:
|
|
1819
|
+
(g(!0), b(K, null, se(u.value.groupNames, (P) => (g(), b(K, { key: P }, [
|
|
1820
|
+
E(A, {
|
|
1821
|
+
id: d(P),
|
|
1822
1822
|
class: "advanced-filter-form__item advanced-filter-form__group-title",
|
|
1823
1823
|
span: 24
|
|
1824
1824
|
}, {
|
|
1825
1825
|
default: B(() => [
|
|
1826
1826
|
E(C, {
|
|
1827
1827
|
"model-value": s(P),
|
|
1828
|
-
indeterminate:
|
|
1828
|
+
indeterminate: r(P),
|
|
1829
1829
|
onChange: (y) => l(P, y)
|
|
1830
1830
|
}, {
|
|
1831
1831
|
default: B(() => [
|
|
@@ -1836,7 +1836,7 @@ const _u = (e) => {
|
|
|
1836
1836
|
]),
|
|
1837
1837
|
_: 2
|
|
1838
1838
|
}, 1032, ["id"]),
|
|
1839
|
-
(g(!0),
|
|
1839
|
+
(g(!0), b(K, null, se(u.value.formItems[P], (y) => (g(), R(A, {
|
|
1840
1840
|
key: y.prop,
|
|
1841
1841
|
class: "advanced-filter-form__item",
|
|
1842
1842
|
span: 12
|
|
@@ -1844,11 +1844,11 @@ const _u = (e) => {
|
|
|
1844
1844
|
default: B(() => [
|
|
1845
1845
|
E(C, {
|
|
1846
1846
|
disabled: y.readonly,
|
|
1847
|
-
"model-value":
|
|
1848
|
-
onChange: (
|
|
1847
|
+
"model-value": D(y.prop),
|
|
1848
|
+
onChange: (w) => i(t).updateActiveGroupColumnChecked(y.prop, w)
|
|
1849
1849
|
}, {
|
|
1850
1850
|
default: B(() => [
|
|
1851
|
-
|
|
1851
|
+
de((g(), b("div", null, [
|
|
1852
1852
|
W(q(y.label), 1)
|
|
1853
1853
|
])), [
|
|
1854
1854
|
[I]
|
|
@@ -1877,47 +1877,47 @@ const _u = (e) => {
|
|
|
1877
1877
|
}), Gu = /* @__PURE__ */ te(Tu, [["__scopeId", "data-v-574f4e4e"]]), Je = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAKg0lEQVR4Xu3dT4hdZxnH8W6yaBdBSroIVXBRKZVSUjcBu3HRUrpwowTEbqQIYlAQCrPpxkVcOospzp1z599OS7CEzGIQXXSTwOhGSoK0KSJIDJJQYkK7yUafH3Os8TfvJHdm3ve9857z/cCPljC57/s8T3Jz7rn3nPvEEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzMPa2tpzXde9PZ1Or6ysrHwU/38n8u/I7fi165EPIm/Gzz3tvxe71Bv1SL2Kvl2L3Io8iNyN3IhcVY/Va/+9OKZimK/G0Lb6vwyz5H5keXV19QV/rLFSL9STvjfer/2ypd77Y+GYmEwmL8eANhODmzX3IheWlpZO+mOPhWpXD/peeH9mimagWfhjY45iID+P4XzuwzpMdDgWj/e6rzF0qrk/FN3Tk0Pkc83E18AcxFB/lxjQkTOmAfdPMHt6cNRoNr4WKtILSB9KziwvL7/kaw6NavS6c0Yz8jVRQTT/rA8jd3T2ZnFx8UlfeyhUW3+Gak/tmXPW10Zh0fTtxCBK5IKvPRSqLVFviWz72iio9KGV5d4QTwH3p3IPfbbqoOFQq6Jo+I4PoHCWfQ+tU02JOktmx/eAAqLR5xLNL5p49vtsY2PjGd9Lq1SLavI6K+Sc7wWZRZMvJhpfPPEH6rzvpVWqxeurlIu+F2SWaHqV6GyP76VVlc5cJeN7QUbR4FPe8Iq55vtplWpJ1Fcrp3w/yGR9ff35RMNr5Zbvp1WqJVFflWiGvh9kMplMXvGGV8wD30+rVEuivirRDH0/yCSOnc94wyvmru+nVaolUV+VaIa+H2QSzz7PesMr5obvp1WqJVFflWiGvh9kEg0+4Q2vmKu+n1aplkR9tXLC94OMuoNdLZgzb/teWqVaEvXVyJbvBZlV/hzWFxnSddf99fp7aiwdPo9VgW4kEM2+6c0vnME986mmRJ0lc5MbZFQSzV5IDKBYpgO8GYFq8joLZ8H3gEL6C30+TAwhe2KdTV9/KFSb11simtWQLzw7lqLpb/kgCkQ3HxjsHTpUm2pM1J01mpWvjQqi+Zd9GDkzhhs3lLphw0O57GuiosRAsmRMd+QodWcYxdfCHOR+Fhzj6cjcp8/H8K9vUzTgDC/cdSOI0d6BQ7X3PfC+zBzNYIxPME3QmZJu9xTwQd8n2WGo/9P/a3LQ6/7V8wXOVjWgv+b6/PTxV87p8l2uk96HetP3yPv2RdRj9XpI1+yPSrf7AcfTcUz8YuRb8YL06wzz4KKHp3Sxk67niL8QZ/pPVvPBQwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAGKysrLw2nU6/13XdT/S1YPouC33vhb4KwX8WaepV9O270bcfRd6J/CzyffXWfxYNiGG+EcNbiiHe9y98sXzcf7/hN/wxxk496XvzcaJvD+e+eq2e+2PgmFlbW3slBvZeYoiPy4MY8C/jD8RX/THHRj1QL9STRJ8el/c0A39MHAMxnHcTAzto/hlZ8MceC9Xe98D7ctC864+NOdFXqkX+nhjSoRPPoFd8naFTzd6Ho0Qz0Wx8HVQU/5w/7YPJmL/5ekOlWhP1Z4lm5OuhkhjAJR9I5gz+cEs1JurOmUu+Jiroz7D4MLInDhO+7WsPhWrzektEs/K1UVD8s/1cNP5TH0Sh/MHXHwrVlqi3RD7VzHx9FNK/x+FDKJZ4BvyB76F1qsnrLBnNzPeAAnRmxJtfIX/yfbRONSXqLBrOalVQ67WHZ0gfTVEtXl+N8Fqkgul0et0bXyPx7Pcr30urVIvXVyOane8FGUWTn/Km10oM94++n1apFq+vYp7y/SCTjY2NryQaXiXxrPtX30+rVIvXVyuaoe8HmcQx7Mve8Ir5l++nVaolUV+VaIa+H2QShwbf9IZXzAPfT6tUS6K+KtEMfT/IJA4NvuYNr5ibvp9WqZZEfVWiGfp+kMnm5uaXvOEV82ffT6tUS6K+KtEMfT/IKP6J/oc3vUbime/XvpdWqRavr0Y0O98LMpvXG4VDuqRUtXh9NcIbhRVEo8964yvkE99H61RTos7SOev7QAHR6PcTzS+Zd3wPrVNNiTpL5n3fAwqp/FmivywtLZ30PbRONam2RL1FMqTPsjUhmr7qQyiUH/vaQ6HaEvWWyKqvjcJWV1e/HI2/kxhGtsSL2d/7ukOjGr3uzLmjWfm6qCCafy4xkGwZ4qGV6w+19tSeMed8TVRU6Mq4u/HMesbXGirVqpoTfThShnglZpP6a9S3fUCHyZgvDc14KfM216AfQ/FM+NPukOf34/d+EH9AvuOPOTbqgXrh/Zkxn2gG/pg4RnSjMr1jO53xysP+D8MP/XHGTj2Z9S+Keq2ec5O4xvTvl1yIrER+2w/8oi451UC5icDjqUf9x3t07+Pf9Ge9LsWvT+O/v+D9DQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABH1nXdicjpyWTyom5yphuhbWxsPOM/h0eLHp5aX19/Pnr4im52Hf99Vr31n0MDdAvMGOKbMcCth2+RmUg3HdCXc+am3qhHib49nC31mtuONmBxcfHJGNhC5GZikI/KjobsjzdW/ZPLTqJPj4p6vqAZ+OPhGIihvhX5MDG4g2Q7DsFe88ceC9WuHiT6MnM0A83CHxtzFIO57IM6YhZ9jaFTzYk+HCWXfQ3MQWIwuXLJ1xoq1ZqoP0t8LVTU35Z/z1ByZQxfqKMave6c0Yx8TVTQv5DcM5DMubu8vPySrz0Uqk01JurOGk6AVKYzJRlekM+UWGfT1x8K1eb1lohmxdmtirrdU7l7BlEqMeBXfQ+tU01eZ+Es+B5QgN4F7w7+PsdRs+X7aJ1qStRZMjf5BEMF8cx3PtH84hnS9xmqFq+vRjQ73wsym874zau5M6SzMaXP/u0Xzc73goy63Q8e7ml8jcRwr/h+WqVavL6K4QOOpURzTycaXiVxWPKR76dVqsXrq5jTvh9koo+sJxpeK3d8P61SLYn6qkQz9P0gE13P4Q2vGd9Pq7yumtEMfT/IZF5nX/rc9v20SrUk6quSIZ0NPHb690D2NL1G4oXtdd9Pq1SL11crvBdSmDe8VoZ0inJep8oV3wsy63btaXzpTAf0gTvV4vVVSud7QWbT3eukvfGlc39I11yrFtWUqLNoNDvfCwroDn699FGz7HtonWpK1FkyO74HFFL5EOHe6urqC76H1qkm1Zaot0iGdIjahO6INxc4QC742kOh2hL1lsi2r43C+jtw+CCyRh/JWFpaOulrD4Vqq/GxkzHfKWauuvx34vi/TCaT133NoVGNXnfmjO4OMcdKV+iOHEP6ePvjFPz4+2juDHOs9XfmyHLzAb2JNuQbNexHNWd8A/HuGO4I05R+wJuJYc0andG5MOabC/S3btUL90Of3dIMxvgE04zp7s0IZr7eOn7+s/jv8hBP5R5Wfwp4ue/Nnp7tE93EenA3txgsfWpUx9YxtCv9mZr/XgNxO37tug4nIuf58Nz+1Bv1qD/0uha5FXnQ7R7O3ohcVY/5hC4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYG7+A6qAtBODi1MzAAAAAElFTkSuQmCC", xu = { class: "advanced-filter-selected-list__container" }, Pu = { class: "selected-item__label" }, Mu = {
|
|
1878
1878
|
key: 0,
|
|
1879
1879
|
class: "selected-item__icon"
|
|
1880
|
-
},
|
|
1880
|
+
}, Ru = /* @__PURE__ */ X({
|
|
1881
1881
|
__name: "AdvancedFilterSelectedList",
|
|
1882
1882
|
setup(e) {
|
|
1883
|
-
const t = xe(), o =
|
|
1883
|
+
const t = xe(), o = G({
|
|
1884
1884
|
get() {
|
|
1885
1885
|
return fe(t.activeGroupSelectedColumns ?? []);
|
|
1886
1886
|
},
|
|
1887
1887
|
set(u) {
|
|
1888
1888
|
t.updateActiveGroupSelectedColumns(fe(u));
|
|
1889
1889
|
}
|
|
1890
|
-
}), n =
|
|
1890
|
+
}), n = G(
|
|
1891
1891
|
() => (u) => t.formItems.find((a) => a.prop === u)?.label ?? ""
|
|
1892
1892
|
);
|
|
1893
1893
|
return (u, a) => {
|
|
1894
|
-
const s = S("el-icon"),
|
|
1895
|
-
return g(),
|
|
1896
|
-
E(
|
|
1894
|
+
const s = S("el-icon"), r = Fe("ellipsis");
|
|
1895
|
+
return g(), b("div", xu, [
|
|
1896
|
+
E(i(Ke), {
|
|
1897
1897
|
modelValue: o.value,
|
|
1898
1898
|
"onUpdate:modelValue": a[0] || (a[0] = (l) => o.value = l),
|
|
1899
1899
|
draggable: ".selected-item-drag"
|
|
1900
1900
|
}, {
|
|
1901
1901
|
default: B(() => [
|
|
1902
|
-
(g(!0),
|
|
1902
|
+
(g(!0), b(K, null, se(o.value, (l) => (g(), b("div", {
|
|
1903
1903
|
key: l.prop,
|
|
1904
1904
|
class: "selected-item selected-item-drag"
|
|
1905
1905
|
}, [
|
|
1906
|
-
a[1] || (a[1] =
|
|
1906
|
+
a[1] || (a[1] = x("img", {
|
|
1907
1907
|
src: Je,
|
|
1908
1908
|
alt: "... "
|
|
1909
1909
|
}, null, -1)),
|
|
1910
|
-
|
|
1910
|
+
de((g(), b("span", Pu, [
|
|
1911
1911
|
W(q(n.value(l.prop)), 1)
|
|
1912
1912
|
])), [
|
|
1913
|
-
[
|
|
1913
|
+
[r]
|
|
1914
1914
|
]),
|
|
1915
|
-
l.readonly ?
|
|
1915
|
+
l.readonly ? z("", !0) : (g(), b("div", Mu, [
|
|
1916
1916
|
E(s, {
|
|
1917
|
-
onClick: (
|
|
1917
|
+
onClick: (D) => i(t).updateActiveGroupColumnChecked(l.prop, !1)
|
|
1918
1918
|
}, {
|
|
1919
1919
|
default: B(() => [
|
|
1920
|
-
E(
|
|
1920
|
+
E(i(rt))
|
|
1921
1921
|
]),
|
|
1922
1922
|
_: 2
|
|
1923
1923
|
}, 1032, ["onClick"])
|
|
@@ -1929,27 +1929,27 @@ const _u = (e) => {
|
|
|
1929
1929
|
]);
|
|
1930
1930
|
};
|
|
1931
1931
|
}
|
|
1932
|
-
}),
|
|
1932
|
+
}), Nu = /* @__PURE__ */ te(Ru, [["__scopeId", "data-v-56e6a2a4"]]), Vu = { class: "advanced-filter-tab__container" }, Ou = { class: "advanced-filter-tab__content advanced-filter-tab__form" }, Lu = { class: "advanced-filter-tab__content advanced-filter-tab__selected" }, Hu = { class: "title" }, Uu = /* @__PURE__ */ X({
|
|
1933
1933
|
__name: "AdvancedFilterTab",
|
|
1934
1934
|
setup(e) {
|
|
1935
|
-
const t = xe(), o =
|
|
1935
|
+
const t = xe(), o = G(
|
|
1936
1936
|
() => t.activeGroupColumns?.filter((n) => n.checked).length || 0
|
|
1937
1937
|
);
|
|
1938
|
-
return (n, u) => (g(),
|
|
1939
|
-
|
|
1940
|
-
u[1] || (u[1] =
|
|
1938
|
+
return (n, u) => (g(), b("div", Vu, [
|
|
1939
|
+
x("div", Ou, [
|
|
1940
|
+
u[1] || (u[1] = x("div", { class: "title" }, "搜索列", -1)),
|
|
1941
1941
|
E(Gu)
|
|
1942
1942
|
]),
|
|
1943
|
-
|
|
1944
|
-
|
|
1943
|
+
x("div", Lu, [
|
|
1944
|
+
x("div", Hu, [
|
|
1945
1945
|
W(" 已选 " + q(o.value) + " 个 ", 1),
|
|
1946
|
-
|
|
1946
|
+
x("div", {
|
|
1947
1947
|
class: "reset-btn",
|
|
1948
1948
|
onClick: u[0] || (u[0] = //@ts-ignore
|
|
1949
|
-
(...a) =>
|
|
1949
|
+
(...a) => i(t).resetActiveGroupColumnsStatus && i(t).resetActiveGroupColumnsStatus(...a))
|
|
1950
1950
|
}, "重置")
|
|
1951
1951
|
]),
|
|
1952
|
-
E(
|
|
1952
|
+
E(Nu)
|
|
1953
1953
|
])
|
|
1954
1954
|
]));
|
|
1955
1955
|
}
|
|
@@ -1969,7 +1969,7 @@ function Zu(e, t) {
|
|
|
1969
1969
|
...t
|
|
1970
1970
|
});
|
|
1971
1971
|
}
|
|
1972
|
-
function
|
|
1972
|
+
function Dt(e, t) {
|
|
1973
1973
|
const o = e.message || e.msg || e || "操作失败";
|
|
1974
1974
|
yt.error({
|
|
1975
1975
|
message: o,
|
|
@@ -2000,30 +2000,30 @@ const Yu = { class: "advanced-filter-tab-item__footer" }, Xu = /* @__PURE__ */ X
|
|
|
2000
2000
|
},
|
|
2001
2001
|
emits: ["update:modelValue"],
|
|
2002
2002
|
setup(e) {
|
|
2003
|
-
const t = Ge(e, "modelValue"), o = T(), n = xe(), u =
|
|
2003
|
+
const t = Ge(e, "modelValue"), o = T(), n = xe(), u = G(() => t.value === Le), a = T(t.value), s = async () => {
|
|
2004
2004
|
await ho(`确定删除${t.value}吗?`) && n.removeGroup(t.value);
|
|
2005
|
-
},
|
|
2005
|
+
}, r = () => {
|
|
2006
2006
|
o.value?.hide(), a.value = t.value;
|
|
2007
2007
|
}, l = () => {
|
|
2008
2008
|
if (!a.value)
|
|
2009
|
-
return
|
|
2010
|
-
if (n.groups.some((
|
|
2011
|
-
return
|
|
2012
|
-
n.updateGroupName(t.value, a.value),
|
|
2009
|
+
return Dt("名称不能为空");
|
|
2010
|
+
if (n.groups.some((D) => D.groupName !== t.value && D.groupName === a.value))
|
|
2011
|
+
return Dt("名称不能重复");
|
|
2012
|
+
n.updateGroupName(t.value, a.value), r();
|
|
2013
2013
|
};
|
|
2014
|
-
return (
|
|
2015
|
-
const
|
|
2016
|
-
return g(),
|
|
2014
|
+
return (D, d) => {
|
|
2015
|
+
const m = S("el-icon"), F = S("el-input"), c = S("el-button"), f = S("el-popover");
|
|
2016
|
+
return g(), b("div", {
|
|
2017
2017
|
class: re([
|
|
2018
2018
|
"advanced-filter-tab-item__container",
|
|
2019
2019
|
{
|
|
2020
|
-
"is-active": t.value ===
|
|
2020
|
+
"is-active": t.value === i(n).activeGroupName
|
|
2021
2021
|
}
|
|
2022
2022
|
]),
|
|
2023
|
-
onClick:
|
|
2023
|
+
onClick: d[1] || (d[1] = ye((p) => i(n).updateActiveGroup(t.value, !0), ["stop"]))
|
|
2024
2024
|
}, [
|
|
2025
2025
|
W(q(t.value) + " ", 1),
|
|
2026
|
-
u.value ?
|
|
2026
|
+
u.value ? z("", !0) : (g(), R(f, {
|
|
2027
2027
|
key: 0,
|
|
2028
2028
|
ref_key: "popoverRef",
|
|
2029
2029
|
ref: o,
|
|
@@ -2032,9 +2032,9 @@ const Yu = { class: "advanced-filter-tab-item__footer" }, Xu = /* @__PURE__ */ X
|
|
|
2032
2032
|
trigger: "click"
|
|
2033
2033
|
}, {
|
|
2034
2034
|
reference: B(() => [
|
|
2035
|
-
E(
|
|
2035
|
+
E(m, null, {
|
|
2036
2036
|
default: B(() => [
|
|
2037
|
-
E(
|
|
2037
|
+
E(i(uo))
|
|
2038
2038
|
]),
|
|
2039
2039
|
_: 1
|
|
2040
2040
|
})
|
|
@@ -2042,14 +2042,14 @@ const Yu = { class: "advanced-filter-tab-item__footer" }, Xu = /* @__PURE__ */ X
|
|
|
2042
2042
|
default: B(() => [
|
|
2043
2043
|
E(F, {
|
|
2044
2044
|
modelValue: a.value,
|
|
2045
|
-
"onUpdate:modelValue":
|
|
2045
|
+
"onUpdate:modelValue": d[0] || (d[0] = (p) => a.value = p),
|
|
2046
2046
|
placeholder: "请输入分组名称",
|
|
2047
2047
|
maxlength: "8",
|
|
2048
2048
|
"show-word-limit": ""
|
|
2049
2049
|
}, null, 8, ["modelValue"]),
|
|
2050
|
-
|
|
2051
|
-
E(c, { onClick:
|
|
2052
|
-
default: B(() => [...
|
|
2050
|
+
x("div", Yu, [
|
|
2051
|
+
E(c, { onClick: r }, {
|
|
2052
|
+
default: B(() => [...d[2] || (d[2] = [
|
|
2053
2053
|
W("取消", -1)
|
|
2054
2054
|
])]),
|
|
2055
2055
|
_: 1
|
|
@@ -2058,7 +2058,7 @@ const Yu = { class: "advanced-filter-tab-item__footer" }, Xu = /* @__PURE__ */ X
|
|
|
2058
2058
|
type: "primary",
|
|
2059
2059
|
onClick: l
|
|
2060
2060
|
}, {
|
|
2061
|
-
default: B(() => [...
|
|
2061
|
+
default: B(() => [...d[3] || (d[3] = [
|
|
2062
2062
|
W("确认", -1)
|
|
2063
2063
|
])]),
|
|
2064
2064
|
_: 1
|
|
@@ -2067,12 +2067,12 @@ const Yu = { class: "advanced-filter-tab-item__footer" }, Xu = /* @__PURE__ */ X
|
|
|
2067
2067
|
]),
|
|
2068
2068
|
_: 1
|
|
2069
2069
|
}, 512)),
|
|
2070
|
-
u.value ?
|
|
2070
|
+
u.value ? z("", !0) : (g(), R(m, {
|
|
2071
2071
|
key: 1,
|
|
2072
2072
|
onClick: ye(s, ["stop"])
|
|
2073
2073
|
}, {
|
|
2074
2074
|
default: B(() => [
|
|
2075
|
-
E(
|
|
2075
|
+
E(i(Et))
|
|
2076
2076
|
]),
|
|
2077
2077
|
_: 1
|
|
2078
2078
|
}))
|
|
@@ -2085,10 +2085,10 @@ const Yu = { class: "advanced-filter-tab-item__footer" }, Xu = /* @__PURE__ */ X
|
|
|
2085
2085
|
const t = xe();
|
|
2086
2086
|
return (o, n) => {
|
|
2087
2087
|
const u = S("el-button");
|
|
2088
|
-
return g(),
|
|
2089
|
-
|
|
2090
|
-
n[2] || (n[2] =
|
|
2091
|
-
(g(!0),
|
|
2088
|
+
return g(), b("div", ju, [
|
|
2089
|
+
x("div", Ku, [
|
|
2090
|
+
n[2] || (n[2] = x("div", { class: "title" }, "常用筛选", -1)),
|
|
2091
|
+
(g(!0), b(K, null, se(i(t).groups, (a) => (g(), b("div", {
|
|
2092
2092
|
key: a.groupName,
|
|
2093
2093
|
class: "advanced-content__tabs"
|
|
2094
2094
|
}, [
|
|
@@ -2097,20 +2097,20 @@ const Yu = { class: "advanced-filter-tab-item__footer" }, Xu = /* @__PURE__ */ X
|
|
|
2097
2097
|
"onUpdate:modelValue": (s) => a.groupName = s
|
|
2098
2098
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
2099
2099
|
]))), 128)),
|
|
2100
|
-
|
|
2100
|
+
i(t).canAddAdvancedFilterGroup ? (g(), R(u, {
|
|
2101
2101
|
key: 0,
|
|
2102
|
-
icon:
|
|
2102
|
+
icon: i(ao),
|
|
2103
2103
|
link: "",
|
|
2104
2104
|
type: "primary",
|
|
2105
|
-
onClick: n[0] || (n[0] = (a) =>
|
|
2105
|
+
onClick: n[0] || (n[0] = (a) => i(t).addNewGroup(!0))
|
|
2106
2106
|
}, {
|
|
2107
2107
|
default: B(() => [...n[1] || (n[1] = [
|
|
2108
2108
|
W("添加自定义筛选", -1)
|
|
2109
2109
|
])]),
|
|
2110
2110
|
_: 1
|
|
2111
|
-
}, 8, ["icon"])) :
|
|
2111
|
+
}, 8, ["icon"])) : z("", !0)
|
|
2112
2112
|
]),
|
|
2113
|
-
|
|
2113
|
+
i(t).groups.length ? (g(), R(Qu, { key: 0 })) : z("", !0)
|
|
2114
2114
|
]);
|
|
2115
2115
|
};
|
|
2116
2116
|
}
|
|
@@ -2215,7 +2215,7 @@ class Ao {
|
|
|
2215
2215
|
* @param hiddenProps
|
|
2216
2216
|
*/
|
|
2217
2217
|
getShowColumns(t, o) {
|
|
2218
|
-
return this.formItems.forEach((n) => n.parseColumn(o)),
|
|
2218
|
+
return this.formItems.forEach((n) => n.parseColumn(o)), N.sortBy(
|
|
2219
2219
|
this.formItems.filter((n) => n.validateIsHidden(t)),
|
|
2220
2220
|
"sort"
|
|
2221
2221
|
);
|
|
@@ -2278,13 +2278,13 @@ class Ao {
|
|
|
2278
2278
|
groups: t.map(
|
|
2279
2279
|
({ groupName: n, columns: u }) => ({
|
|
2280
2280
|
groupName: n,
|
|
2281
|
-
columns: u.map(({ prop: a, sort: s, value:
|
|
2281
|
+
columns: u.map(({ prop: a, sort: s, value: r, checked: l, dynamicExpression: D }) => ({
|
|
2282
2282
|
prop: a,
|
|
2283
2283
|
/* 有sort存在则代表是勾选的数据 */
|
|
2284
2284
|
sort: s,
|
|
2285
2285
|
/* 如果有动态数据,则不保存原 value/dynamicExpression */
|
|
2286
|
-
value: l ?
|
|
2287
|
-
dynamicExpression: l ?
|
|
2286
|
+
value: l ? D ? void 0 : r : void 0,
|
|
2287
|
+
dynamicExpression: l ? D : void 0
|
|
2288
2288
|
}))
|
|
2289
2289
|
})
|
|
2290
2290
|
),
|
|
@@ -2299,7 +2299,7 @@ class Ao {
|
|
|
2299
2299
|
return this.advancedFilterGroup.useGroup = this.activeGroupName, this.groups.forEach((o) => {
|
|
2300
2300
|
const n = o.columns, u = t.get(o.groupName)?.columns ?? [];
|
|
2301
2301
|
if (u.length) {
|
|
2302
|
-
const a = new Map(u.map((s,
|
|
2302
|
+
const a = new Map(u.map((s, r) => [s.prop, r + 1]));
|
|
2303
2303
|
n.forEach((s) => {
|
|
2304
2304
|
s.sort = a.get(s.prop) ?? void 0;
|
|
2305
2305
|
});
|
|
@@ -2384,7 +2384,7 @@ class ea extends Ao {
|
|
|
2384
2384
|
class ta {
|
|
2385
2385
|
config = {};
|
|
2386
2386
|
get getFormAttrs() {
|
|
2387
|
-
return
|
|
2387
|
+
return N.omit(this.config, ["useRowLayout", "rowAttrs", "modelValue", "className", "hideExpandBtn"]);
|
|
2388
2388
|
}
|
|
2389
2389
|
get getRowAttrs() {
|
|
2390
2390
|
return { gutter: 0, ...this.config.rowAttrs ?? {} };
|
|
@@ -2394,7 +2394,7 @@ class ta {
|
|
|
2394
2394
|
* @param config
|
|
2395
2395
|
*/
|
|
2396
2396
|
initConfig(t) {
|
|
2397
|
-
return
|
|
2397
|
+
return N.merge(this.config, t), this.config;
|
|
2398
2398
|
}
|
|
2399
2399
|
update(t) {
|
|
2400
2400
|
return Object.assign(this.config, t), this.config;
|
|
@@ -2433,7 +2433,7 @@ class oa {
|
|
|
2433
2433
|
* @param overwrite 是否覆盖所有值
|
|
2434
2434
|
*/
|
|
2435
2435
|
buildFormData(t, o) {
|
|
2436
|
-
o ? this.formData =
|
|
2436
|
+
o ? this.formData = N.cloneDeep(t ?? {}) : Reflect.ownKeys(t).forEach((n) => {
|
|
2437
2437
|
this.updateFormData(n, Reflect.get(t, n));
|
|
2438
2438
|
});
|
|
2439
2439
|
}
|
|
@@ -2442,14 +2442,14 @@ class oa {
|
|
|
2442
2442
|
* @param columns
|
|
2443
2443
|
*/
|
|
2444
2444
|
getFormatData(t) {
|
|
2445
|
-
const o =
|
|
2445
|
+
const o = N.cloneDeep(this.formData ?? {});
|
|
2446
2446
|
return t.reduce((n, u) => {
|
|
2447
|
-
const { format: a, prop: s } = u,
|
|
2447
|
+
const { format: a, prop: s } = u, r = Reflect.get(o, s);
|
|
2448
2448
|
if (a && typeof a == "function") {
|
|
2449
|
-
const l = a(
|
|
2450
|
-
l && typeof
|
|
2449
|
+
const l = a(r, o, u);
|
|
2450
|
+
l && typeof N.isPlainObject(l) && Object.assign(n, l);
|
|
2451
2451
|
} else
|
|
2452
|
-
Reflect.set(n, s,
|
|
2452
|
+
Reflect.set(n, s, r);
|
|
2453
2453
|
return n;
|
|
2454
2454
|
}, {});
|
|
2455
2455
|
}
|
|
@@ -2457,7 +2457,7 @@ class oa {
|
|
|
2457
2457
|
class na {
|
|
2458
2458
|
_instance;
|
|
2459
2459
|
get instance() {
|
|
2460
|
-
return
|
|
2460
|
+
return i(this._instance);
|
|
2461
2461
|
}
|
|
2462
2462
|
componentInstanceRefs;
|
|
2463
2463
|
/**
|
|
@@ -2550,11 +2550,11 @@ class vo {
|
|
|
2550
2550
|
*/
|
|
2551
2551
|
parseColumns(t) {
|
|
2552
2552
|
const { initialFormData: o } = this.config;
|
|
2553
|
-
return
|
|
2554
|
-
const { defaultValue: u, ...a } = n, s = a.prop,
|
|
2553
|
+
return N.isEmpty(o) ? t : t.map((n) => {
|
|
2554
|
+
const { defaultValue: u, ...a } = n, s = a.prop, r = Reflect.get(o, s);
|
|
2555
2555
|
return {
|
|
2556
2556
|
...a,
|
|
2557
|
-
defaultValue: Reflect.has(o, s) ?
|
|
2557
|
+
defaultValue: Reflect.has(o, s) ? r : u
|
|
2558
2558
|
};
|
|
2559
2559
|
});
|
|
2560
2560
|
}
|
|
@@ -2562,7 +2562,7 @@ class vo {
|
|
|
2562
2562
|
this.baseColumnsGetter = t;
|
|
2563
2563
|
}
|
|
2564
2564
|
init(t, o = {}) {
|
|
2565
|
-
this.configManagement.initConfig(
|
|
2565
|
+
this.configManagement.initConfig(N.merge({ startLoading: !0 }, o)), t.length && this.formDataStore.initFormData(this.columnManagement.initColumns(this.parseColumns(t)));
|
|
2566
2566
|
}
|
|
2567
2567
|
/**
|
|
2568
2568
|
* 初始化分组的数据
|
|
@@ -2617,26 +2617,26 @@ class vo {
|
|
|
2617
2617
|
resetFormDataTo(t, o = "auto", n) {
|
|
2618
2618
|
const u = this.columns.length;
|
|
2619
2619
|
for (let a = 0; a < u; ++a) {
|
|
2620
|
-
const { tag: s, prop:
|
|
2621
|
-
if (s &&
|
|
2622
|
-
const l = Reflect.get(t,
|
|
2623
|
-
if (Reflect.has(t,
|
|
2624
|
-
this.updateFormData(
|
|
2620
|
+
const { tag: s, prop: r } = this.columns[a];
|
|
2621
|
+
if (s && r) {
|
|
2622
|
+
const l = Reflect.get(t, r), D = Reflect.get(this.formData, r);
|
|
2623
|
+
if (Reflect.has(t, r)) {
|
|
2624
|
+
this.updateFormData(r, l);
|
|
2625
2625
|
continue;
|
|
2626
2626
|
}
|
|
2627
2627
|
if (o === "empty") {
|
|
2628
|
-
this.updateFormData(
|
|
2628
|
+
this.updateFormData(r, void 0);
|
|
2629
2629
|
continue;
|
|
2630
2630
|
}
|
|
2631
|
-
const
|
|
2631
|
+
const d = n || (() => {
|
|
2632
2632
|
});
|
|
2633
2633
|
if (o === "custom") {
|
|
2634
|
-
this.updateFormData(
|
|
2634
|
+
this.updateFormData(r, d(r, D));
|
|
2635
2635
|
continue;
|
|
2636
2636
|
}
|
|
2637
2637
|
if (o === "auto") {
|
|
2638
|
-
const
|
|
2639
|
-
|
|
2638
|
+
const m = Reflect.get(ua, s);
|
|
2639
|
+
m && N.isFunction(m) ? this.updateFormData(r, m(D)) : this.updateFormData(r, d(r, D));
|
|
2640
2640
|
}
|
|
2641
2641
|
}
|
|
2642
2642
|
}
|
|
@@ -2762,8 +2762,8 @@ class aa extends vo {
|
|
|
2762
2762
|
for (let u = 0; u < n; ++u) {
|
|
2763
2763
|
const a = this.activeGroupColumns[u], s = o.get(a.prop);
|
|
2764
2764
|
if (s) {
|
|
2765
|
-
const
|
|
2766
|
-
a.value = fe(t ?
|
|
2765
|
+
const r = this.formData[a.prop];
|
|
2766
|
+
a.value = fe(t ? r ?? s.defaultValue : r);
|
|
2767
2767
|
}
|
|
2768
2768
|
}
|
|
2769
2769
|
}
|
|
@@ -2802,12 +2802,12 @@ function pt(e, t) {
|
|
|
2802
2802
|
let n;
|
|
2803
2803
|
const u = (s) => {
|
|
2804
2804
|
o.value = s;
|
|
2805
|
-
}, a = (s) => new Promise((
|
|
2805
|
+
}, a = (s) => new Promise((r) => {
|
|
2806
2806
|
u(!0);
|
|
2807
2807
|
const l = s();
|
|
2808
2808
|
Do(l) ? l.finally(() => {
|
|
2809
|
-
u(!1),
|
|
2810
|
-
}) : (u(!1),
|
|
2809
|
+
u(!1), r();
|
|
2810
|
+
}) : (u(!1), r());
|
|
2811
2811
|
});
|
|
2812
2812
|
return t && ht(() => {
|
|
2813
2813
|
o.value ? n = ln.service({
|
|
@@ -2826,16 +2826,16 @@ const sa = {
|
|
|
2826
2826
|
setup(e) {
|
|
2827
2827
|
const t = T(!1), { setAdvancedFormBuilder: o, advancedFormBuilder: n } = bn(), u = () => {
|
|
2828
2828
|
t.value = !1, n.value?.destroy(), n.value = void 0;
|
|
2829
|
-
}, { onTaskAllComplete: a } = Bt(), [s,
|
|
2829
|
+
}, { onTaskAllComplete: a } = Bt(), [s, r] = pt(), l = () => {
|
|
2830
2830
|
s.value = !0, a(() => {
|
|
2831
|
-
|
|
2831
|
+
r(async () => {
|
|
2832
2832
|
await ne(), n.value?.updateActiveGroupColumnsValue(!1), await n.value?.saveAdvancedFilterData(), n.value && (e.formBuilder.updateGroupsByAdvancedFilter(
|
|
2833
2833
|
Co(n.value.columnManagement.getFormatSaveGroups(), e.formBuilder.columns)
|
|
2834
2834
|
), await ne()), n.value?.emit(ie.SAVE_CONFIG), e.formBuilder.emit(ie.SAVE_CONFIG), zu("操作成功");
|
|
2835
2835
|
});
|
|
2836
2836
|
});
|
|
2837
|
-
}, [
|
|
2838
|
-
|
|
2837
|
+
}, [D, d] = pt(), m = (F) => {
|
|
2838
|
+
d(async () => {
|
|
2839
2839
|
o(
|
|
2840
2840
|
new aa([], {
|
|
2841
2841
|
pageId: e.formBuilder.config.pageId
|
|
@@ -2846,14 +2846,14 @@ const sa = {
|
|
|
2846
2846
|
});
|
|
2847
2847
|
};
|
|
2848
2848
|
return e.formBuilder.on(ie.OPEN_CONFIG_DIALOG, (F) => {
|
|
2849
|
-
|
|
2850
|
-
|
|
2849
|
+
D.value = !0, t.value = !0, setTimeout(() => {
|
|
2850
|
+
m(F);
|
|
2851
2851
|
});
|
|
2852
2852
|
}), (F, c) => {
|
|
2853
|
-
const f = S("el-icon"),
|
|
2854
|
-
return g(),
|
|
2853
|
+
const f = S("el-icon"), p = S("el-button"), C = S("el-dialog");
|
|
2854
|
+
return g(), R(C, {
|
|
2855
2855
|
modelValue: t.value,
|
|
2856
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
2856
|
+
"onUpdate:modelValue": c[0] || (c[0] = (A) => t.value = A),
|
|
2857
2857
|
class: "advanced-filter__dialog",
|
|
2858
2858
|
width: "1300px",
|
|
2859
2859
|
title: "高级筛选",
|
|
@@ -2861,8 +2861,8 @@ const sa = {
|
|
|
2861
2861
|
"close-on-press-escape": !1
|
|
2862
2862
|
}, {
|
|
2863
2863
|
footer: B(() => [
|
|
2864
|
-
E(
|
|
2865
|
-
loading:
|
|
2864
|
+
E(p, {
|
|
2865
|
+
loading: i(s),
|
|
2866
2866
|
onClick: u
|
|
2867
2867
|
}, {
|
|
2868
2868
|
default: B(() => [...c[2] || (c[2] = [
|
|
@@ -2870,8 +2870,8 @@ const sa = {
|
|
|
2870
2870
|
])]),
|
|
2871
2871
|
_: 1
|
|
2872
2872
|
}, 8, ["loading"]),
|
|
2873
|
-
E(
|
|
2874
|
-
loading:
|
|
2873
|
+
E(p, {
|
|
2874
|
+
loading: i(s),
|
|
2875
2875
|
type: "primary",
|
|
2876
2876
|
onClick: l
|
|
2877
2877
|
}, {
|
|
@@ -2882,75 +2882,75 @@ const sa = {
|
|
|
2882
2882
|
}, 8, ["loading"])
|
|
2883
2883
|
]),
|
|
2884
2884
|
default: B(() => [
|
|
2885
|
-
|
|
2886
|
-
|
|
2885
|
+
i(D) ? (g(), b("div", sa, [
|
|
2886
|
+
x("div", la, [
|
|
2887
2887
|
E(f, { class: "is-loading" }, {
|
|
2888
2888
|
default: B(() => [
|
|
2889
|
-
E(
|
|
2889
|
+
E(i($o))
|
|
2890
2890
|
]),
|
|
2891
2891
|
_: 1
|
|
2892
2892
|
}),
|
|
2893
|
-
c[1] || (c[1] =
|
|
2893
|
+
c[1] || (c[1] = x("div", { class: "text" }, "加载中", -1))
|
|
2894
2894
|
])
|
|
2895
|
-
])) :
|
|
2896
|
-
|
|
2895
|
+
])) : z("", !0),
|
|
2896
|
+
i(n) && t.value && !i(D) ? (g(), R(Ju, {
|
|
2897
2897
|
key: 1,
|
|
2898
|
-
"advanced-form-builder":
|
|
2899
|
-
}, null, 8, ["advanced-form-builder"])) :
|
|
2898
|
+
"advanced-form-builder": i(n)
|
|
2899
|
+
}, null, 8, ["advanced-form-builder"])) : z("", !0)
|
|
2900
2900
|
]),
|
|
2901
2901
|
_: 1
|
|
2902
2902
|
}, 8, ["modelValue"]);
|
|
2903
2903
|
};
|
|
2904
2904
|
}
|
|
2905
2905
|
}), ia = (e) => {
|
|
2906
|
-
const t = T(), o = T(!1), n = T({}), u = (
|
|
2907
|
-
const { prop:
|
|
2908
|
-
|
|
2906
|
+
const t = T(), o = T(!1), n = T({}), u = (p, C) => {
|
|
2907
|
+
const { prop: A } = C;
|
|
2908
|
+
A && Reflect.set(n.value, A, p);
|
|
2909
2909
|
}, a = T(!1), s = () => {
|
|
2910
2910
|
a.value = !a.value;
|
|
2911
|
-
},
|
|
2911
|
+
}, r = T(!1), l = T([]), D = 5, d = async () => {
|
|
2912
2912
|
if (po(t.value?.$el))
|
|
2913
2913
|
return;
|
|
2914
2914
|
e.hiddenProps.clear();
|
|
2915
|
-
const
|
|
2915
|
+
const p = l.value.reduce((h, k) => {
|
|
2916
2916
|
const I = k.$el, P = I?.getAttribute("data-prop");
|
|
2917
|
-
return P &&
|
|
2917
|
+
return P && h.set(P, I), h;
|
|
2918
2918
|
}, /* @__PURE__ */ new Map());
|
|
2919
2919
|
if (!a.value) {
|
|
2920
2920
|
await ne();
|
|
2921
|
-
let
|
|
2921
|
+
let h = 0;
|
|
2922
2922
|
e.getShowColumns.forEach((k) => {
|
|
2923
2923
|
const { prop: I } = k;
|
|
2924
|
-
if (
|
|
2925
|
-
const P =
|
|
2924
|
+
if (N.isString(I)) {
|
|
2925
|
+
const P = p.get(I);
|
|
2926
2926
|
if (P) {
|
|
2927
2927
|
const { top: y } = P.getBoundingClientRect() ?? {};
|
|
2928
|
-
|
|
2928
|
+
h ? Math.abs(y - h) > D ? e.hiddenProps.add(I) : e.hiddenProps.delete(I) : (h = y, e.hiddenProps.delete(I));
|
|
2929
2929
|
} else
|
|
2930
2930
|
e.hiddenProps.add(I);
|
|
2931
2931
|
}
|
|
2932
2932
|
});
|
|
2933
2933
|
}
|
|
2934
2934
|
await ne();
|
|
2935
|
-
const C = e.getShowColumns[0],
|
|
2936
|
-
if (C &&
|
|
2937
|
-
const
|
|
2938
|
-
if (
|
|
2939
|
-
const { top: I } =
|
|
2940
|
-
|
|
2935
|
+
const C = e.getShowColumns[0], A = e.getShowColumns.at(-1);
|
|
2936
|
+
if (C && A) {
|
|
2937
|
+
const h = p.get(C.prop), k = p.get(A.prop);
|
|
2938
|
+
if (h && k) {
|
|
2939
|
+
const { top: I } = h.getBoundingClientRect() ?? {}, { top: P } = k.getBoundingClientRect() ?? {}, y = Math.abs(I - P) > D;
|
|
2940
|
+
r.value = !y;
|
|
2941
2941
|
}
|
|
2942
|
-
|
|
2942
|
+
h && !k && (r.value = !1);
|
|
2943
2943
|
}
|
|
2944
2944
|
};
|
|
2945
|
-
let
|
|
2945
|
+
let m = !0;
|
|
2946
2946
|
const F = et(
|
|
2947
|
-
() => e.columns.map((
|
|
2948
|
-
visible:
|
|
2947
|
+
() => e.columns.map((p) => ({
|
|
2948
|
+
visible: p.validateIsHidden(e.formData),
|
|
2949
2949
|
/* 读取下 sort,当sort变化的时候需要触发监听 */
|
|
2950
|
-
sort:
|
|
2950
|
+
sort: p.sort
|
|
2951
2951
|
})).concat([e.config.hideExpandBtn, a.value]),
|
|
2952
2952
|
() => {
|
|
2953
|
-
!e.config.hideExpandBtn && e.columns &&
|
|
2953
|
+
!e.config.hideExpandBtn && e.columns && d(), t.value && n.value && e.formInstanceManagement.init(t, n);
|
|
2954
2954
|
},
|
|
2955
2955
|
{ flush: "post", deep: !0 }
|
|
2956
2956
|
);
|
|
@@ -2960,19 +2960,19 @@ const sa = {
|
|
|
2960
2960
|
o.value = !0;
|
|
2961
2961
|
try {
|
|
2962
2962
|
await e.initGroups(), e.updateActiveGroup(e.activeGroupName);
|
|
2963
|
-
} catch (
|
|
2964
|
-
throw o.value = !1,
|
|
2963
|
+
} catch (p) {
|
|
2964
|
+
throw o.value = !1, p;
|
|
2965
2965
|
}
|
|
2966
2966
|
} else
|
|
2967
2967
|
e.columnManagement.showAllFormItems();
|
|
2968
2968
|
o.value = !1, await ne(), e.config.hideExpandBtn ? F() : (c = new ResizeObserver(() => {
|
|
2969
|
-
|
|
2969
|
+
m && requestAnimationFrame(d);
|
|
2970
2970
|
}), t.value && c.observe(t.value.$el));
|
|
2971
2971
|
};
|
|
2972
2972
|
return Qo(() => {
|
|
2973
|
-
|
|
2973
|
+
m = !0;
|
|
2974
2974
|
}), zo(() => {
|
|
2975
|
-
|
|
2975
|
+
m = !1;
|
|
2976
2976
|
}), Ue(() => {
|
|
2977
2977
|
f().finally(() => {
|
|
2978
2978
|
ne().then(() => {
|
|
@@ -2986,11 +2986,11 @@ const sa = {
|
|
|
2986
2986
|
updateExpand: s,
|
|
2987
2987
|
isExpand: a,
|
|
2988
2988
|
baseFormRef: t,
|
|
2989
|
-
autoHiddenExpand:
|
|
2989
|
+
autoHiddenExpand: r,
|
|
2990
2990
|
colRefs: l,
|
|
2991
2991
|
loadingConfigColumns: o
|
|
2992
2992
|
};
|
|
2993
|
-
}, ca = { class: "base-form__body" },
|
|
2993
|
+
}, ca = { class: "base-form__body" }, da = /* @__PURE__ */ X({
|
|
2994
2994
|
name: "ZForm",
|
|
2995
2995
|
__name: "index",
|
|
2996
2996
|
props: {
|
|
@@ -2998,65 +2998,65 @@ const sa = {
|
|
|
2998
2998
|
},
|
|
2999
2999
|
emits: ["change"],
|
|
3000
3000
|
setup(e, { emit: t }) {
|
|
3001
|
-
const o = t, { baseFormRef: n, isExpand: u, autoHiddenExpand: a, colRefs: s, loadingConfigColumns:
|
|
3002
|
-
() => (C) => C.parseColumnEvent((...
|
|
3003
|
-
e.formBuilder.emit(ie.CHANGE), o("change", ...
|
|
3001
|
+
const o = t, { baseFormRef: n, isExpand: u, autoHiddenExpand: a, colRefs: s, loadingConfigColumns: r, collectionRef: l, updateExpand: D } = ia(e.formBuilder), { configManagement: d, config: m } = e.formBuilder, F = (C, A) => A ? eo(A) ? `${Object.keys(C).reduce((k, I) => (k.push(`${I}:${Reflect.get(C, I)}`), k), []).join(";")} ${A}` : { ...C, ...A } : C, c = G(
|
|
3002
|
+
() => (C) => C.parseColumnEvent((...A) => {
|
|
3003
|
+
e.formBuilder.emit(ie.CHANGE), o("change", ...A);
|
|
3004
3004
|
})
|
|
3005
|
-
), f = (C,
|
|
3006
|
-
e.formBuilder.updateFormData(C.prop,
|
|
3007
|
-
},
|
|
3005
|
+
), f = (C, A) => {
|
|
3006
|
+
e.formBuilder.updateFormData(C.prop, A);
|
|
3007
|
+
}, p = () => {
|
|
3008
3008
|
u.value || (u.value = !0);
|
|
3009
3009
|
};
|
|
3010
3010
|
return e.formBuilder.on(ie.SAVE_CONFIG, async () => {
|
|
3011
|
-
e.formBuilder.resetFormDataByActiveGroup(), e.formBuilder.emit(ie.CHANGE), await ne(),
|
|
3012
|
-
}), e.formBuilder.on(ie.UPDATE_ACTIVE_GROUP,
|
|
3013
|
-
const
|
|
3014
|
-
return g(),
|
|
3015
|
-
|
|
3011
|
+
e.formBuilder.resetFormDataByActiveGroup(), e.formBuilder.emit(ie.CHANGE), await ne(), p();
|
|
3012
|
+
}), e.formBuilder.on(ie.UPDATE_ACTIVE_GROUP, p), (C, A) => {
|
|
3013
|
+
const h = S("el-form-item"), k = S("el-col"), I = S("el-row"), P = S("el-form"), y = S("el-icon"), w = Fe("loading");
|
|
3014
|
+
return g(), b(K, null, [
|
|
3015
|
+
x("div", {
|
|
3016
3016
|
class: re([
|
|
3017
3017
|
"base-form__container z-form",
|
|
3018
|
-
|
|
3019
|
-
|
|
3018
|
+
i(m).className || "",
|
|
3019
|
+
i(m).useRowLayout ? "base-form__layout-container" : "base-form__no-layout-container",
|
|
3020
3020
|
C.formBuilder.getShowColumns.length ? "base-form__has-columns" : ""
|
|
3021
3021
|
])
|
|
3022
3022
|
}, [
|
|
3023
|
-
|
|
3024
|
-
r
|
|
3023
|
+
de((g(), b("div", ca, [
|
|
3024
|
+
i(r) ? z("", !0) : (g(), R(P, oe({
|
|
3025
3025
|
key: 0,
|
|
3026
3026
|
ref_key: "baseFormRef",
|
|
3027
3027
|
ref: n,
|
|
3028
3028
|
class: "base-form__form"
|
|
3029
|
-
},
|
|
3029
|
+
}, i(d).getFormAttrs, {
|
|
3030
3030
|
model: C.formBuilder.formData,
|
|
3031
|
-
onSubmit:
|
|
3031
|
+
onSubmit: A[0] || (A[0] = ye(() => {
|
|
3032
3032
|
}, ["prevent"]))
|
|
3033
3033
|
}), {
|
|
3034
3034
|
default: B(() => [
|
|
3035
|
-
E(I, oe({ class: "base-form__row" },
|
|
3036
|
-
style: F({ marginLeft: "0", marginRight: "0" },
|
|
3035
|
+
E(I, oe({ class: "base-form__row" }, i(d).getRowAttrs, {
|
|
3036
|
+
style: F({ marginLeft: "0", marginRight: "0" }, i(m).rowAttrs?.style)
|
|
3037
3037
|
}), {
|
|
3038
3038
|
default: B(() => [
|
|
3039
|
-
(g(!0),
|
|
3040
|
-
key:
|
|
3039
|
+
(g(!0), b(K, null, se(C.formBuilder.getShowColumns, (v) => (g(), R(k, oe({ ref_for: !0 }, v.elColAttrs ?? {}, {
|
|
3040
|
+
key: v.prop,
|
|
3041
3041
|
ref_for: !0,
|
|
3042
3042
|
ref_key: "colRefs",
|
|
3043
3043
|
ref: s,
|
|
3044
|
-
span:
|
|
3045
|
-
style: F(
|
|
3046
|
-
"data-prop":
|
|
3047
|
-
"data-visible":
|
|
3044
|
+
span: v.span,
|
|
3045
|
+
style: F(i(m).useRowLayout ? {} : { paddingLeft: "0", paddingRight: "0" }, v.style),
|
|
3046
|
+
"data-prop": v.prop,
|
|
3047
|
+
"data-visible": v.visible
|
|
3048
3048
|
}), {
|
|
3049
3049
|
default: B(() => [
|
|
3050
|
-
E(
|
|
3051
|
-
class:
|
|
3050
|
+
E(h, oe({ ref_for: !0 }, i(_u)(v), {
|
|
3051
|
+
class: v.className
|
|
3052
3052
|
}), {
|
|
3053
3053
|
default: B(() => [
|
|
3054
|
-
(g(),
|
|
3054
|
+
(g(), R(jt(v.getFormComponent), oe({ ref_for: !0 }, v.attrs, {
|
|
3055
3055
|
ref_for: !0,
|
|
3056
|
-
ref: (V) =>
|
|
3057
|
-
"model-value": C.formBuilder.formData[
|
|
3058
|
-
}, _e(c.value(
|
|
3059
|
-
"onUpdate:modelValue": (V) => f(
|
|
3056
|
+
ref: (V) => i(l)(V, v),
|
|
3057
|
+
"model-value": C.formBuilder.formData[v.prop]
|
|
3058
|
+
}, _e(c.value(v)), {
|
|
3059
|
+
"onUpdate:modelValue": (V) => f(v, V)
|
|
3060
3060
|
}), null, 16, ["model-value", "onUpdate:modelValue"]))
|
|
3061
3061
|
]),
|
|
3062
3062
|
_: 2
|
|
@@ -3071,23 +3071,23 @@ const sa = {
|
|
|
3071
3071
|
_: 1
|
|
3072
3072
|
}, 16, ["model"]))
|
|
3073
3073
|
])), [
|
|
3074
|
-
[
|
|
3074
|
+
[w, i(r)]
|
|
3075
3075
|
]),
|
|
3076
|
-
|
|
3077
|
-
|
|
3076
|
+
i(m).hideExpandBtn ? z("", !0) : (g(), b(K, { key: 0 }, [
|
|
3077
|
+
i(a) ? z("", !0) : (g(), b("div", {
|
|
3078
3078
|
key: 0,
|
|
3079
|
-
class: re(["expand-btn", { "expand-btn__expand":
|
|
3079
|
+
class: re(["expand-btn", { "expand-btn__expand": i(u) }]),
|
|
3080
3080
|
style: gt({ display: C.formBuilder.getShowColumns.length ? "" : "none" }),
|
|
3081
|
-
onClick:
|
|
3082
|
-
(...
|
|
3081
|
+
onClick: A[1] || (A[1] = //@ts-ignore
|
|
3082
|
+
(...v) => i(D) && i(D)(...v))
|
|
3083
3083
|
}, [
|
|
3084
3084
|
E(y, null, {
|
|
3085
3085
|
default: B(() => [
|
|
3086
|
-
E(
|
|
3086
|
+
E(i(en))
|
|
3087
3087
|
]),
|
|
3088
3088
|
_: 1
|
|
3089
3089
|
}),
|
|
3090
|
-
W(" " + q(
|
|
3090
|
+
W(" " + q(i(u) ? "收起" : "展开"), 1)
|
|
3091
3091
|
], 6))
|
|
3092
3092
|
], 64))
|
|
3093
3093
|
], 2),
|
|
@@ -3095,7 +3095,7 @@ const sa = {
|
|
|
3095
3095
|
], 64);
|
|
3096
3096
|
};
|
|
3097
3097
|
}
|
|
3098
|
-
}),
|
|
3098
|
+
}), Da = /* @__PURE__ */ te(da, [["__scopeId", "data-v-ea0a1557"]]), pa = ge(Da, "ZForm"), ma = { class: "z-base-step__step" }, fa = ["onClick"], ga = { class: "z-base-step__step-item__content" }, Fa = {
|
|
3099
3099
|
key: 0,
|
|
3100
3100
|
class: "z-base-step__step-line"
|
|
3101
3101
|
}, Ca = /* @__PURE__ */ X({
|
|
@@ -3114,13 +3114,13 @@ const sa = {
|
|
|
3114
3114
|
const o = Ge(e, "modelValue"), n = t;
|
|
3115
3115
|
return Ue(() => {
|
|
3116
3116
|
!o.value && e.steps.length && (o.value = e.steps[0].value);
|
|
3117
|
-
}), (u, a) => (g(),
|
|
3118
|
-
(g(!0),
|
|
3117
|
+
}), (u, a) => (g(), b("div", ma, [
|
|
3118
|
+
(g(!0), b(K, null, se(u.steps, (s, r) => (g(), b("div", {
|
|
3119
3119
|
key: s.value,
|
|
3120
3120
|
class: re(["z-base-step__step-item", { "is-active": s.value === o.value }]),
|
|
3121
3121
|
onClick: (l) => n("change", s.value)
|
|
3122
3122
|
}, [
|
|
3123
|
-
|
|
3123
|
+
x("div", ga, [
|
|
3124
3124
|
E(so, {
|
|
3125
3125
|
class: "circle__container",
|
|
3126
3126
|
size: "32px",
|
|
@@ -3128,7 +3128,7 @@ const sa = {
|
|
|
3128
3128
|
}, null, 8, ["content"]),
|
|
3129
3129
|
W(" " + q(s.label), 1)
|
|
3130
3130
|
]),
|
|
3131
|
-
|
|
3131
|
+
r !== u.steps.length - 1 ? (g(), b("div", Fa)) : z("", !0)
|
|
3132
3132
|
], 10, fa))), 128))
|
|
3133
3133
|
]));
|
|
3134
3134
|
}
|
|
@@ -3138,9 +3138,9 @@ const sa = {
|
|
|
3138
3138
|
setup(e) {
|
|
3139
3139
|
return (t, o) => {
|
|
3140
3140
|
const n = S("el-icon");
|
|
3141
|
-
return g(),
|
|
3141
|
+
return g(), R(n, { class: "z-plus-bold__container" }, {
|
|
3142
3142
|
default: B(() => [
|
|
3143
|
-
E(
|
|
3143
|
+
E(i(Et))
|
|
3144
3144
|
]),
|
|
3145
3145
|
_: 1
|
|
3146
3146
|
});
|
|
@@ -3167,7 +3167,7 @@ const sa = {
|
|
|
3167
3167
|
},
|
|
3168
3168
|
emits: ["update:modelValue"],
|
|
3169
3169
|
setup(e) {
|
|
3170
|
-
const t = Ge(e, "modelValue"), o =
|
|
3170
|
+
const t = Ge(e, "modelValue"), o = G(() => t.value ? Array.isArray(t.value) ? t.value : [t.value] : []), n = T(), u = T(!1);
|
|
3171
3171
|
let a;
|
|
3172
3172
|
return ht(() => {
|
|
3173
3173
|
!a && n.value && (a = new ResizeObserver(() => {
|
|
@@ -3177,107 +3177,107 @@ const sa = {
|
|
|
3177
3177
|
}));
|
|
3178
3178
|
}), At(() => {
|
|
3179
3179
|
a?.disconnect();
|
|
3180
|
-
}), (s,
|
|
3181
|
-
const l = S("el-tag"),
|
|
3182
|
-
return g(),
|
|
3180
|
+
}), (s, r) => {
|
|
3181
|
+
const l = S("el-tag"), D = S("el-tooltip");
|
|
3182
|
+
return g(), b("div", Ba, [E(D, {
|
|
3183
3183
|
disabled: !o.value.length || !u.value,
|
|
3184
3184
|
effect: "light",
|
|
3185
3185
|
placement: "top",
|
|
3186
3186
|
"popper-class": "z-show-to-tags__tooltip"
|
|
3187
3187
|
}, {
|
|
3188
|
-
content: B(() => [
|
|
3189
|
-
key:
|
|
3188
|
+
content: B(() => [x("div", wa, [(g(!0), b(K, null, se(o.value, (d) => (g(), R(l, {
|
|
3189
|
+
key: d,
|
|
3190
3190
|
type: "primary"
|
|
3191
3191
|
}, {
|
|
3192
|
-
default: B(() => [W(q(
|
|
3192
|
+
default: B(() => [W(q(d), 1)]),
|
|
3193
3193
|
_: 2
|
|
3194
3194
|
}, 1024))), 128))])]),
|
|
3195
|
-
default: B(() => [
|
|
3195
|
+
default: B(() => [x("div", _a, [x("div", {
|
|
3196
3196
|
ref_key: "contentRef",
|
|
3197
3197
|
ref: n,
|
|
3198
3198
|
class: "z-show-to-tags__content"
|
|
3199
|
-
}, q(o.value?.join("、")), 513), u.value && o.value.length ? (g(),
|
|
3199
|
+
}, q(o.value?.join("、")), 513), u.value && o.value.length ? (g(), b("div", ba, "+" + q(o.value.length), 1)) : z("", !0)])]),
|
|
3200
3200
|
_: 1
|
|
3201
3201
|
}, 8, ["disabled"])]);
|
|
3202
3202
|
};
|
|
3203
3203
|
}
|
|
3204
3204
|
}), ka = /* @__PURE__ */ te(Ia, [["__scopeId", "data-v-2c568d65"]]), Sa = ge(ka, "ZShowToTags"), Ta = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAACQElEQVR4Xu2YzXGDMBCFXUJKoISU4AYAHYH4wCUZID7QQdKB3UHcgdOBS6EESki0DGDpgYyQUOJk+GZ0gdXqod3VD5vNyso/h7Hyge32W3x+N5C4MM4vQZLXQZx/saj00OZX6QVycWLzkyJFWySIXw/UV9VYnDPsMxsKcZgUHyjw2ooj9kHGPrBvSfaO9rNhUeZxZxU6D3nY+eBnP8lS+hDshyiFuhQZxNlRR5yIQmhNY6DtLEgIiuSDVdzxFm11UAilVs39aAnMyVakh3a6iEIpbSTffCy014LybkmRRC+U5yT5Ip/iGGxnECkKh+QkeX5Em7k0QoXCoRSCybgI5tP4fD2THJiGBRjLbSpK41kN4+IsdbYM+S1Y2hSs2ay6mM1bwGpQa60ALNpLecOi6a3RFixcrfDz/baUhboLe0e7qfRj8hop0WYAJje+d4W8rk6fGyg/T4LQCt+7gsbqxtWqiz8kVAp9je9dIYypF/phMbk/uRsVE25rOid3W8yWp5RO8tcKnLVTGIKnNHyvBM+NWjuFIRj2IMo+0UYJhj94yg9jNvjMBJzN2Re8wawKeRNExdsSKUFHR3EMOp+izSSDWW0PziSydWoltA15JU2G6bkCt9PuZ4Ot0DGRWou8imYFGL2BmgulHxgDkbaXO6K528BFzERoe6M9jPixvos1dDmJTUcoiaMNAwvzx0TqCh3kuNSyk3W4CT9+YSRG1eiHF/ZBcGvsPnCpNXgxul2n/Ud1fwJFSNwiIV5ZuXO+AeSMxwCzcroLAAAAAElFTkSuQmCC", Ga = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAABdUlEQVR4Xu2V0W3DIBCGM0JG6CheIPY9RcbyQx7B6oM3SEboBu0GHaEjdASP0BFajhhKzlgl5VJV7X0SinX4hy8G481GEM7U3XCqlXl3zV7T/lsRzwu9rmj/AhH9gh8V5cqKqIcrK6IerqyIeriyIurhyhaJAozbRpmXWg2voMwYRQJr2ZidMmD7p0YNzzimr7OJNt3wGOpKP0SRwFo2BrP+Hhwz1DlE48HdE42eREwqS4HDuMUxqGyxaN3qY44kQrO030NlXa5I1O4lf9105m3XG4D+vqItmZ1F8Y/R+7HhXsUxU3N9RzS3TYts2DafArntT4uGSXCZ7LEE0Opq0eZ9mxJFFvdji5Z+/g1zXS+K17d4meDyZYK9lXZndIGoqyn9lCObylIWkq0+YJ1F1NUvZHkO/LrTJ19nE8WzDz97tj7hUkWRwFo2Bj+/VBJhE80hN2uX+47WfqVoChFNUZIV0RQlWRFNUZIVUW5ElJurRYX/wgexw+vYgAE1fgAAAABJRU5ErkJggg==", Ht = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAB00lEQVR4Xu1Y0ZGCMBC1hCvBEizhSrgSLIEOpAR/GAw6gx1cCZZgCZRgCXf7xoRZH+ESDxL94M28EZPd5LGEzZLVasGCedC27Rrk9rdAXdfbpmkuxpib8McRbcIt22dHVVUbEdRpcSPs5GbW7J8FVuRDBAO8SXQ3PE5SIDqIkkdIK7+F5RltbJM1slZQLwBrUV6gD7aDKOn7Zlu2SwIbTR2ljm0YIu6qfWSMT7aZHeb+WHWEgusOwujmCraZHfQog9F0gK26uZb7Z4fNl0+vt//6BXE8HvG48JhLYh8Ze839Ywz5FU9nBBG5U4NmJeZmPV7YSA4GyMmorHA4HPbsmJun02nPugYw9x3FOUW/1VOBudy8UVlhERpAVqEqpRW45v6/kEUoSj7ez51/bG5MLtQWKVzOaUaVdsmF6q1xjDFbZlKhqEFJ0BVttg59WAq+elUjqVDexfSOIv+/xvp8SCpUBsR3Uy9GWLo+Q3XrS4UCZviJ3GIL1G2R4yQXWpKoASWaJfsxkgsFRIj2YZFntvchi1Cgvp+W9G86UlLzxClJNqFTsQidG1OFIvWUmdinuVihD4n6RQwfUNj9u/M452J0aegOty6eQZISc0aLXLDgzfALQFYngxmEg2kAAAAASUVORK5CYII=", xa = (e) => {
|
|
3205
|
-
const t = T(""), o = T(!0), n = T(
|
|
3206
|
-
() => (_) =>
|
|
3207
|
-
),
|
|
3205
|
+
const t = T(""), o = T(!0), n = T(i(e.groupName) || ""), u = T([]), a = T([]), s = T([]), r = T({}), l = G(() => Object.keys(r.value) ?? []), D = G(
|
|
3206
|
+
() => (_) => r.value[_]
|
|
3207
|
+
), d = (_ = r.value) => {
|
|
3208
3208
|
const H = [];
|
|
3209
3209
|
return l.value.forEach((U) => {
|
|
3210
3210
|
H.push(..._[U]);
|
|
3211
3211
|
}), H;
|
|
3212
|
-
},
|
|
3213
|
-
const H =
|
|
3212
|
+
}, m = G(() => (_) => {
|
|
3213
|
+
const H = r.value[_], U = H.filter((j) => j.checked).length;
|
|
3214
3214
|
return !!U && U < H.length;
|
|
3215
3215
|
}), F = (_, H = {}) => {
|
|
3216
|
-
const U =
|
|
3216
|
+
const U = d(e.initialGroupData).find((j) => j.prop === _.prop);
|
|
3217
3217
|
return U && Object.assign(_, U, H), _;
|
|
3218
3218
|
}, c = (_) => {
|
|
3219
3219
|
a.value = [];
|
|
3220
|
-
const H = [], U = [], j = new Map(_.map((ae) => [ae.prop, ae])), ue = (ae,
|
|
3221
|
-
|
|
3220
|
+
const H = [], U = [], j = new Map(_.map((ae) => [ae.prop, ae])), ue = (ae, De, Q) => {
|
|
3221
|
+
De && (Q?.fixed ? H.push(F(ae, { fixed: Q.fixed })) : U.push(ae)), ae.checked = !!De;
|
|
3222
3222
|
};
|
|
3223
|
-
|
|
3224
|
-
const
|
|
3225
|
-
ae.readonly ? a.value.push(F(ae, { fixed: ae.fixed })) : ue(ae,
|
|
3223
|
+
d(r.value).forEach((ae) => {
|
|
3224
|
+
const De = j.get(ae.prop);
|
|
3225
|
+
ae.readonly ? a.value.push(F(ae, { fixed: ae.fixed })) : ue(ae, De ? De.checked : ae.checked, De);
|
|
3226
3226
|
}), u.value = H, s.value = e.hasLockColumns ? U : H.concat(U);
|
|
3227
3227
|
}, f = (_, H) => {
|
|
3228
|
-
|
|
3228
|
+
r.value[H].forEach((j) => {
|
|
3229
3229
|
j.readonly ? j.checked = !0 : j.checked = _;
|
|
3230
|
-
}), c(
|
|
3231
|
-
},
|
|
3232
|
-
() =>
|
|
3230
|
+
}), c(d());
|
|
3231
|
+
}, p = G(
|
|
3232
|
+
() => d().filter((_) => _.checked || _.readonly).length
|
|
3233
3233
|
), C = (_) => {
|
|
3234
|
-
const H =
|
|
3234
|
+
const H = r.value[_];
|
|
3235
3235
|
return H.filter((j) => j.checked).length === H.length;
|
|
3236
|
-
},
|
|
3236
|
+
}, A = (_, H) => {
|
|
3237
3237
|
if (H && u.value.length >= 5 && !_.fixed)
|
|
3238
3238
|
return;
|
|
3239
3239
|
_.fixed = H;
|
|
3240
3240
|
const U = H ? s.value : u.value, j = H ? u.value : s.value, ue = U.findIndex((ae) => ae.prop === _.prop);
|
|
3241
3241
|
ue !== -1 && U.splice(ue, 1), j.push(_);
|
|
3242
|
-
},
|
|
3242
|
+
}, h = (_, H) => {
|
|
3243
3243
|
const U = H.fixed ? u.value : s.value, j = U.findIndex((ue) => ue.prop === H.prop);
|
|
3244
3244
|
j === -1 ? U.push(H) : (F(H, { checked: _ }), U.splice(j, 1));
|
|
3245
3245
|
}, k = (_) => {
|
|
3246
|
-
|
|
3246
|
+
h(!1, _);
|
|
3247
3247
|
}, I = (_) => {
|
|
3248
|
-
|
|
3248
|
+
d().forEach((U) => {
|
|
3249
3249
|
F(U, { checked: U.defaultChecked ?? !1 });
|
|
3250
3250
|
});
|
|
3251
|
-
const H =
|
|
3251
|
+
const H = d();
|
|
3252
3252
|
if (c(_ === "reset" ? H : e.savedColumnsData ?? H), _ === "init" && e.savedColumnsData) {
|
|
3253
3253
|
const U = new Map(e.savedColumnsData.map((j, ue) => [j.prop, ue]));
|
|
3254
|
-
s.value =
|
|
3254
|
+
s.value = N.sortBy(s.value, (j) => U.get(j.prop)), u.value = N.sortBy(u.value, (j) => U.get(j.prop));
|
|
3255
3255
|
}
|
|
3256
3256
|
};
|
|
3257
3257
|
(() => {
|
|
3258
|
-
|
|
3258
|
+
r.value = N.cloneDeep(e.initialGroupData), I("init"), t.value = e.defaultActiveTab || l.value[0];
|
|
3259
3259
|
})();
|
|
3260
|
-
let y = !1,
|
|
3261
|
-
const
|
|
3260
|
+
let y = !1, w;
|
|
3261
|
+
const v = T(), V = T(), M = T(), L = (_, H = !1) => {
|
|
3262
3262
|
if (t.value = _, H) {
|
|
3263
|
-
y = !0, clearTimeout(
|
|
3263
|
+
y = !0, clearTimeout(w);
|
|
3264
3264
|
const U = l.value.indexOf(_);
|
|
3265
|
-
|
|
3265
|
+
v.value?.[U]?.scrollIntoView({
|
|
3266
3266
|
behavior: "smooth",
|
|
3267
3267
|
block: "start"
|
|
3268
|
-
}),
|
|
3269
|
-
y = !1, clearTimeout(
|
|
3268
|
+
}), w = setTimeout(() => {
|
|
3269
|
+
y = !1, clearTimeout(w);
|
|
3270
3270
|
}, 500);
|
|
3271
3271
|
}
|
|
3272
3272
|
};
|
|
3273
3273
|
let Y;
|
|
3274
3274
|
const $ = tt(() => {
|
|
3275
|
-
|
|
3275
|
+
v.value?.length && V.value && (Y = new IntersectionObserver(
|
|
3276
3276
|
([_]) => {
|
|
3277
3277
|
const U = _.target.getAttribute("data-group-name");
|
|
3278
3278
|
if (!y) {
|
|
3279
3279
|
if (_.isIntersecting)
|
|
3280
|
-
U &&
|
|
3280
|
+
U && L(U);
|
|
3281
3281
|
else if (t.value === U) {
|
|
3282
3282
|
const j = l.value.indexOf(U);
|
|
3283
3283
|
j > 0 && (t.value = l.value[j - 1]);
|
|
@@ -3285,7 +3285,7 @@ const sa = {
|
|
|
3285
3285
|
}
|
|
3286
3286
|
},
|
|
3287
3287
|
{ root: V.value, threshold: 1 }
|
|
3288
|
-
),
|
|
3288
|
+
), v.value.forEach((_) => {
|
|
3289
3289
|
Y.observe(_);
|
|
3290
3290
|
}));
|
|
3291
3291
|
});
|
|
@@ -3294,34 +3294,34 @@ const sa = {
|
|
|
3294
3294
|
}), {
|
|
3295
3295
|
isSave: o,
|
|
3296
3296
|
currentGroupName: n,
|
|
3297
|
-
duplicateData:
|
|
3297
|
+
duplicateData: r,
|
|
3298
3298
|
groupNameList: l,
|
|
3299
3299
|
activeTab: t,
|
|
3300
|
-
isIndeterminate:
|
|
3301
|
-
getCurrentColumnsList:
|
|
3300
|
+
isIndeterminate: m,
|
|
3301
|
+
getCurrentColumnsList: D,
|
|
3302
3302
|
checkedUnfixedColumns: s,
|
|
3303
3303
|
checkedFixedColumns: u,
|
|
3304
3304
|
readonlyColumns: a,
|
|
3305
|
-
getAllCheckedColumnsLength:
|
|
3305
|
+
getAllCheckedColumnsLength: p,
|
|
3306
3306
|
scrollbarRef: M,
|
|
3307
|
-
groupNameRefs:
|
|
3307
|
+
groupNameRefs: v,
|
|
3308
3308
|
observerRootElementRef: V,
|
|
3309
3309
|
isCheckAll: C,
|
|
3310
|
-
getAllColumns:
|
|
3310
|
+
getAllColumns: d,
|
|
3311
3311
|
checkAll: f,
|
|
3312
|
-
updateActiveTab:
|
|
3313
|
-
updateFixed:
|
|
3312
|
+
updateActiveTab: L,
|
|
3313
|
+
updateFixed: A,
|
|
3314
3314
|
deleteChecked: k,
|
|
3315
|
-
checkItem:
|
|
3315
|
+
checkItem: h,
|
|
3316
3316
|
initAndReset: I
|
|
3317
3317
|
};
|
|
3318
3318
|
}, Pa = {
|
|
3319
3319
|
class: "config-columns__container"
|
|
3320
3320
|
}, Ma = {
|
|
3321
3321
|
class: "config-columns__search-container"
|
|
3322
|
-
}, Na = {
|
|
3323
|
-
class: "content"
|
|
3324
3322
|
}, Ra = {
|
|
3323
|
+
class: "content"
|
|
3324
|
+
}, Na = {
|
|
3325
3325
|
class: "tabs"
|
|
3326
3326
|
}, Va = ["onClick"], Oa = ["data-group-name"], La = {
|
|
3327
3327
|
class: "check-sub"
|
|
@@ -3374,29 +3374,29 @@ const sa = {
|
|
|
3374
3374
|
groupNameList: u,
|
|
3375
3375
|
isSave: a,
|
|
3376
3376
|
currentGroupName: s,
|
|
3377
|
-
activeTab:
|
|
3377
|
+
activeTab: r,
|
|
3378
3378
|
isIndeterminate: l,
|
|
3379
|
-
getCurrentColumnsList:
|
|
3380
|
-
checkedUnfixedColumns:
|
|
3381
|
-
checkedFixedColumns:
|
|
3379
|
+
getCurrentColumnsList: D,
|
|
3380
|
+
checkedUnfixedColumns: d,
|
|
3381
|
+
checkedFixedColumns: m,
|
|
3382
3382
|
readonlyColumns: F,
|
|
3383
3383
|
getAllCheckedColumnsLength: c,
|
|
3384
3384
|
scrollbarRef: f,
|
|
3385
|
-
groupNameRefs:
|
|
3385
|
+
groupNameRefs: p,
|
|
3386
3386
|
observerRootElementRef: C,
|
|
3387
|
-
isCheckAll:
|
|
3388
|
-
checkAll:
|
|
3387
|
+
isCheckAll: A,
|
|
3388
|
+
checkAll: h,
|
|
3389
3389
|
updateActiveTab: k,
|
|
3390
3390
|
updateFixed: I,
|
|
3391
3391
|
deleteChecked: P,
|
|
3392
3392
|
checkItem: y,
|
|
3393
|
-
initAndReset:
|
|
3394
|
-
} = xa(o),
|
|
3395
|
-
|
|
3393
|
+
initAndReset: w
|
|
3394
|
+
} = xa(o), v = T(!1), V = () => {
|
|
3395
|
+
v.value = !1;
|
|
3396
3396
|
}, M = () => {
|
|
3397
3397
|
n("cancel");
|
|
3398
|
-
},
|
|
3399
|
-
!s.value && a.value ? (
|
|
3398
|
+
}, L = () => {
|
|
3399
|
+
!s.value && a.value ? (v.value = !0, Dt("请输入自定义列名称")) : n("confirm", fe(F.value.concat(m.value, d.value)), s.value, a.value);
|
|
3400
3400
|
}, Y = ($) => {
|
|
3401
3401
|
const {
|
|
3402
3402
|
item: _,
|
|
@@ -3422,19 +3422,19 @@ const sa = {
|
|
|
3422
3422
|
})])]);
|
|
3423
3423
|
};
|
|
3424
3424
|
return ($, _) => {
|
|
3425
|
-
const H = S("el-scrollbar"), U = S("el-checkbox"), j = S("el-icon"), ue = S("el-input"), ae = S("el-button"),
|
|
3426
|
-
return g(),
|
|
3425
|
+
const H = S("el-scrollbar"), U = S("el-checkbox"), j = S("el-icon"), ue = S("el-input"), ae = S("el-button"), De = Fe("ellipsis");
|
|
3426
|
+
return g(), b(K, null, [x("div", Pa, [x("div", Ma, [_[5] || (_[5] = x("div", {
|
|
3427
3427
|
class: "title"
|
|
3428
|
-
}, "搜索列", -1)),
|
|
3428
|
+
}, "搜索列", -1)), x("div", Ra, [x("div", Na, [E(H, {
|
|
3429
3429
|
class: "position__scrollbar"
|
|
3430
3430
|
}, {
|
|
3431
|
-
default: B(() => [(g(!0),
|
|
3431
|
+
default: B(() => [(g(!0), b(K, null, se(i(u), (Q) => de((g(), b("div", {
|
|
3432
3432
|
key: Q,
|
|
3433
|
-
class: re(["tab-item", Q === r
|
|
3434
|
-
onClick: (me) =>
|
|
3435
|
-
}, [W(q(Q), 1)], 10, Va)), [[
|
|
3433
|
+
class: re(["tab-item", Q === i(r) ? "is-active" : ""]),
|
|
3434
|
+
onClick: (me) => i(k)(Q, !0)
|
|
3435
|
+
}, [W(q(Q), 1)], 10, Va)), [[De]])), 128))]),
|
|
3436
3436
|
_: 1
|
|
3437
|
-
})]),
|
|
3437
|
+
})]), x("div", {
|
|
3438
3438
|
ref_key: "observerRootElementRef",
|
|
3439
3439
|
ref: C,
|
|
3440
3440
|
class: "active-tab-content"
|
|
@@ -3443,103 +3443,103 @@ const sa = {
|
|
|
3443
3443
|
ref: f,
|
|
3444
3444
|
class: "position__scrollbar"
|
|
3445
3445
|
}, {
|
|
3446
|
-
default: B(() => [(g(!0),
|
|
3446
|
+
default: B(() => [(g(!0), b(K, null, se(i(u), (Q) => (g(), b(K, {
|
|
3447
3447
|
key: Q
|
|
3448
|
-
}, [
|
|
3448
|
+
}, [x("div", {
|
|
3449
3449
|
ref_for: !0,
|
|
3450
3450
|
ref_key: "groupNameRefs",
|
|
3451
|
-
ref:
|
|
3451
|
+
ref: p,
|
|
3452
3452
|
class: "check-tab",
|
|
3453
3453
|
"data-group-name": Q
|
|
3454
3454
|
}, [E(U, {
|
|
3455
|
-
"model-value":
|
|
3456
|
-
indeterminate:
|
|
3457
|
-
onChange: (me) =>
|
|
3455
|
+
"model-value": i(A)(Q),
|
|
3456
|
+
indeterminate: i(l)(Q),
|
|
3457
|
+
onChange: (me) => i(h)(me, Q)
|
|
3458
3458
|
}, {
|
|
3459
|
-
default: B(() => [
|
|
3459
|
+
default: B(() => [de((g(), b("div", null, [W(q(Q), 1)])), [[De]])]),
|
|
3460
3460
|
_: 2
|
|
3461
|
-
}, 1032, ["model-value", "indeterminate", "onChange"])], 8, Oa),
|
|
3461
|
+
}, 1032, ["model-value", "indeterminate", "onChange"])], 8, Oa), x("div", La, [(g(!0), b(K, null, se(i(D)(Q), (me) => (g(), b("div", {
|
|
3462
3462
|
key: me.prop,
|
|
3463
3463
|
class: "check-sub__item"
|
|
3464
3464
|
}, [E(U, {
|
|
3465
3465
|
modelValue: me.checked,
|
|
3466
3466
|
"onUpdate:modelValue": (Pe) => me.checked = Pe,
|
|
3467
3467
|
disabled: me.readonly,
|
|
3468
|
-
onChange: (Pe) =>
|
|
3468
|
+
onChange: (Pe) => i(y)(Pe, me)
|
|
3469
3469
|
}, {
|
|
3470
|
-
default: B(() => [
|
|
3470
|
+
default: B(() => [de((g(), b("div", null, [W(q(me.label), 1)])), [[De]])]),
|
|
3471
3471
|
_: 2
|
|
3472
3472
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])]))), 128))])], 64))), 128))]),
|
|
3473
3473
|
_: 1
|
|
3474
|
-
}, 512)], 512)])]),
|
|
3474
|
+
}, 512)], 512)])]), x("div", Ha, [x("div", Ua, [x("div", Qa, "已选 " + q(i(c)) + " 个", 1), x("div", {
|
|
3475
3475
|
class: "reset",
|
|
3476
|
-
onClick: _[0] || (_[0] = (Q) =>
|
|
3477
|
-
}, "重置")]),
|
|
3476
|
+
onClick: _[0] || (_[0] = (Q) => i(w)("reset"))
|
|
3477
|
+
}, "重置")]), x("div", za, [E(H, {
|
|
3478
3478
|
class: "position__scrollbar-no-right"
|
|
3479
3479
|
}, {
|
|
3480
|
-
default: B(() => [$.hasLockColumns ? (g(),
|
|
3480
|
+
default: B(() => [$.hasLockColumns ? (g(), b("div", Za, [(g(!0), b(K, null, se(i(F), (Q) => (g(), R(Y, {
|
|
3481
3481
|
key: Q.prop,
|
|
3482
3482
|
item: Q
|
|
3483
|
-
}, null, 8, ["item"]))), 128)), E(
|
|
3484
|
-
modelValue:
|
|
3485
|
-
"onUpdate:modelValue": _[1] || (_[1] = (Q) => Ae(
|
|
3483
|
+
}, null, 8, ["item"]))), 128)), E(i(Ke), {
|
|
3484
|
+
modelValue: i(m),
|
|
3485
|
+
"onUpdate:modelValue": _[1] || (_[1] = (Q) => Ae(m) ? m.value = Q : null),
|
|
3486
3486
|
draggable: ".select-item-drag"
|
|
3487
3487
|
}, {
|
|
3488
|
-
default: B(() => [(g(!0),
|
|
3488
|
+
default: B(() => [(g(!0), b(K, null, se(i(m), (Q) => (g(), R(Y, {
|
|
3489
3489
|
key: Q.prop,
|
|
3490
3490
|
draggable: "1",
|
|
3491
3491
|
item: Q
|
|
3492
3492
|
}, null, 8, ["item"]))), 128))]),
|
|
3493
3493
|
_: 1
|
|
3494
|
-
}, 8, ["modelValue"]), _[6] || (_[6] =
|
|
3494
|
+
}, 8, ["modelValue"]), _[6] || (_[6] = x("div", {
|
|
3495
3495
|
class: "select-fixed__tips"
|
|
3496
|
-
}, "最多可横向锁定5列", -1))])) :
|
|
3497
|
-
modelValue:
|
|
3498
|
-
"onUpdate:modelValue": _[2] || (_[2] = (Q) => Ae(
|
|
3496
|
+
}, "最多可横向锁定5列", -1))])) : z("", !0), x("div", Ya, [E(i(Ke), {
|
|
3497
|
+
modelValue: i(d),
|
|
3498
|
+
"onUpdate:modelValue": _[2] || (_[2] = (Q) => Ae(d) ? d.value = Q : null),
|
|
3499
3499
|
draggable: ".select-item-drag"
|
|
3500
3500
|
}, {
|
|
3501
|
-
default: B(() => [(g(!0),
|
|
3501
|
+
default: B(() => [(g(!0), b(K, null, se(i(d), (Q) => (g(), b("div", {
|
|
3502
3502
|
key: Q.prop,
|
|
3503
3503
|
class: re(["select-item", ($.hasLockColumns, "select-item-drag")]),
|
|
3504
3504
|
"data-prop": Q.prop
|
|
3505
|
-
}, [
|
|
3506
|
-
src:
|
|
3505
|
+
}, [x("img", {
|
|
3506
|
+
src: i(Je),
|
|
3507
3507
|
alt: "..."
|
|
3508
|
-
}, null, 8, Wa),
|
|
3508
|
+
}, null, 8, Wa), de((g(), b("span", ja, [W(q(Q.label), 1)])), [[De]]), x("div", Ka, [$.hasLockColumns ? (g(), b("img", {
|
|
3509
3509
|
key: 0,
|
|
3510
3510
|
class: re({
|
|
3511
|
-
"not-lock":
|
|
3511
|
+
"not-lock": i(m).length >= 5
|
|
3512
3512
|
}),
|
|
3513
|
-
src:
|
|
3513
|
+
src: i(Ht),
|
|
3514
3514
|
alt: "锁",
|
|
3515
|
-
onClick: (me) =>
|
|
3516
|
-
}, null, 10, qa)) :
|
|
3515
|
+
onClick: (me) => i(I)(Q, "left")
|
|
3516
|
+
}, null, 10, qa)) : z("", !0), Q.readonly ? z("", !0) : (g(), R(j, {
|
|
3517
3517
|
key: 1,
|
|
3518
|
-
onClick: (me) =>
|
|
3518
|
+
onClick: (me) => i(P)(Q)
|
|
3519
3519
|
}, {
|
|
3520
|
-
default: B(() => [E(
|
|
3520
|
+
default: B(() => [E(i(rt))]),
|
|
3521
3521
|
_: 2
|
|
3522
3522
|
}, 1032, ["onClick"]))])], 10, Xa))), 128))]),
|
|
3523
3523
|
_: 1
|
|
3524
3524
|
}, 8, ["modelValue"])])]),
|
|
3525
3525
|
_: 1
|
|
3526
|
-
})])])]),
|
|
3527
|
-
modelValue:
|
|
3526
|
+
})])])]), x("div", Ja, [x("div", $a, [E(U, {
|
|
3527
|
+
modelValue: i(a),
|
|
3528
3528
|
"onUpdate:modelValue": _[3] || (_[3] = (Q) => Ae(a) ? a.value = Q : null)
|
|
3529
3529
|
}, {
|
|
3530
3530
|
default: B(() => [..._[7] || (_[7] = [W("保存为常用自定义列", -1)])]),
|
|
3531
3531
|
_: 1
|
|
3532
3532
|
}, 8, ["modelValue"]), E(ue, {
|
|
3533
|
-
modelValue:
|
|
3533
|
+
modelValue: i(s),
|
|
3534
3534
|
"onUpdate:modelValue": _[4] || (_[4] = (Q) => Ae(s) ? s.value = Q : null),
|
|
3535
|
-
class: re(
|
|
3535
|
+
class: re(v.value ? "is-error" : ""),
|
|
3536
3536
|
placeholder: "请输入",
|
|
3537
3537
|
maxlength: "10",
|
|
3538
3538
|
onInput: V
|
|
3539
3539
|
}, {
|
|
3540
|
-
suffix: B(() => [W(q(
|
|
3540
|
+
suffix: B(() => [W(q(i(s)?.length || 0) + "/10", 1)]),
|
|
3541
3541
|
_: 1
|
|
3542
|
-
}, 8, ["modelValue", "class"]),
|
|
3542
|
+
}, 8, ["modelValue", "class"]), de((g(), b("div", es, [W("设置会将应用于" + q(o.pageName) + "列表", 1)])), [[De]])]), x("div", ts, [E(ae, {
|
|
3543
3543
|
loading: $.loading,
|
|
3544
3544
|
onClick: M
|
|
3545
3545
|
}, {
|
|
@@ -3548,7 +3548,7 @@ const sa = {
|
|
|
3548
3548
|
}, 8, ["loading"]), E(ae, {
|
|
3549
3549
|
loading: $.loading,
|
|
3550
3550
|
type: "primary",
|
|
3551
|
-
onClick:
|
|
3551
|
+
onClick: L
|
|
3552
3552
|
}, {
|
|
3553
3553
|
default: B(() => [..._[9] || (_[9] = [W("确定", -1)])]),
|
|
3554
3554
|
_: 1
|
|
@@ -3562,31 +3562,31 @@ const sa = {
|
|
|
3562
3562
|
},
|
|
3563
3563
|
emits: ["saveColumns"],
|
|
3564
3564
|
setup(e, { expose: t, emit: o }) {
|
|
3565
|
-
const n = o, [u, a] = pt(!0), s = T({}),
|
|
3566
|
-
let
|
|
3567
|
-
const
|
|
3568
|
-
s.value = fe(f.groupData),
|
|
3565
|
+
const n = o, [u, a] = pt(!0), s = T({}), r = T(void 0), l = T(!1), D = T("");
|
|
3566
|
+
let d;
|
|
3567
|
+
const m = async (f, p) => {
|
|
3568
|
+
s.value = fe(f.groupData), D.value = f.groupName, u.value = !0, await ne();
|
|
3569
3569
|
try {
|
|
3570
|
-
|
|
3570
|
+
r.value = p;
|
|
3571
3571
|
} finally {
|
|
3572
3572
|
a(() => {
|
|
3573
3573
|
l.value = !0;
|
|
3574
3574
|
});
|
|
3575
3575
|
}
|
|
3576
3576
|
return new Promise((C) => {
|
|
3577
|
-
|
|
3577
|
+
d = C;
|
|
3578
3578
|
});
|
|
3579
3579
|
}, F = () => {
|
|
3580
3580
|
l.value = !1;
|
|
3581
|
-
}, c = (f,
|
|
3581
|
+
}, c = (f, p, C) => {
|
|
3582
3582
|
if (f.length === 0) {
|
|
3583
3583
|
Zu("至少保留一列");
|
|
3584
3584
|
return;
|
|
3585
3585
|
}
|
|
3586
|
-
u.value = !1,
|
|
3586
|
+
u.value = !1, d({
|
|
3587
3587
|
data: {
|
|
3588
3588
|
updateData: f,
|
|
3589
|
-
groupName:
|
|
3589
|
+
groupName: p,
|
|
3590
3590
|
isSave: C
|
|
3591
3591
|
},
|
|
3592
3592
|
close: () => {
|
|
@@ -3597,38 +3597,38 @@ const sa = {
|
|
|
3597
3597
|
});
|
|
3598
3598
|
};
|
|
3599
3599
|
return t({
|
|
3600
|
-
openDialog:
|
|
3601
|
-
}), (f,
|
|
3600
|
+
openDialog: m
|
|
3601
|
+
}), (f, p) => {
|
|
3602
3602
|
const C = S("el-dialog");
|
|
3603
|
-
return g(),
|
|
3603
|
+
return g(), R(C, {
|
|
3604
3604
|
modelValue: l.value,
|
|
3605
|
-
"onUpdate:modelValue":
|
|
3605
|
+
"onUpdate:modelValue": p[0] || (p[0] = (A) => l.value = A),
|
|
3606
3606
|
class: "config-columns-dialog",
|
|
3607
3607
|
title: "自定义列",
|
|
3608
3608
|
"close-on-click-modal": !1,
|
|
3609
3609
|
"destroy-on-close": ""
|
|
3610
3610
|
}, {
|
|
3611
3611
|
default: B(() => [
|
|
3612
|
-
l.value ? (g(),
|
|
3612
|
+
l.value ? (g(), R(ns, {
|
|
3613
3613
|
key: 0,
|
|
3614
3614
|
"initial-group-data": s.value,
|
|
3615
|
-
"saved-columns-data":
|
|
3616
|
-
"group-name":
|
|
3615
|
+
"saved-columns-data": r.value,
|
|
3616
|
+
"group-name": D.value,
|
|
3617
3617
|
"page-name": f.columnConfig?.pageName,
|
|
3618
|
-
loading:
|
|
3618
|
+
loading: i(u),
|
|
3619
3619
|
onConfirm: c,
|
|
3620
3620
|
onCancel: F
|
|
3621
|
-
}, null, 8, ["initial-group-data", "saved-columns-data", "group-name", "page-name", "loading"])) :
|
|
3621
|
+
}, null, 8, ["initial-group-data", "saved-columns-data", "group-name", "page-name", "loading"])) : z("", !0)
|
|
3622
3622
|
]),
|
|
3623
3623
|
_: 1
|
|
3624
3624
|
}, 8, ["modelValue"]);
|
|
3625
3625
|
};
|
|
3626
3626
|
}
|
|
3627
3627
|
}), as = () => {
|
|
3628
|
-
const e = Zo("listenElementRef"), t = () => e?.value || document.body, o = [], n = (a, s,
|
|
3629
|
-
o.push({ event: a, fn: s, options:
|
|
3628
|
+
const e = Zo("listenElementRef"), t = () => e?.value || document.body, o = [], n = (a, s, r) => {
|
|
3629
|
+
o.push({ event: a, fn: s, options: r }), t().addEventListener(a, s, r);
|
|
3630
3630
|
}, u = () => {
|
|
3631
|
-
o.forEach(({ event: a, fn: s, options:
|
|
3631
|
+
o.forEach(({ event: a, fn: s, options: r }) => t().removeEventListener(a, s, r)), o.length = 0;
|
|
3632
3632
|
};
|
|
3633
3633
|
return He(u), Ft() && Ct(u), {
|
|
3634
3634
|
stops: u,
|
|
@@ -3645,76 +3645,76 @@ const sa = {
|
|
|
3645
3645
|
},
|
|
3646
3646
|
emits: ["find", "hidden"],
|
|
3647
3647
|
setup(e, { emit: t }) {
|
|
3648
|
-
const o = t, n = T(0), u = T(""), a = T(!1), s = T(), { on:
|
|
3649
|
-
n.value =
|
|
3650
|
-
},
|
|
3648
|
+
const o = t, n = T(0), u = T(""), a = T(!1), s = T(), { on: r } = as(), l = (p) => {
|
|
3649
|
+
n.value = p, o("find", u.value, p);
|
|
3650
|
+
}, D = Jo(() => {
|
|
3651
3651
|
l(0);
|
|
3652
|
-
}, 500),
|
|
3653
|
-
const
|
|
3654
|
-
l(
|
|
3655
|
-
},
|
|
3656
|
-
const
|
|
3657
|
-
l(
|
|
3652
|
+
}, 500), d = () => {
|
|
3653
|
+
const p = n.value > 0 ? n.value - 1 : e.count - 1;
|
|
3654
|
+
l(p);
|
|
3655
|
+
}, m = () => {
|
|
3656
|
+
const p = n.value + 1 < e.count ? n.value + 1 : 0;
|
|
3657
|
+
l(p);
|
|
3658
3658
|
}, F = async () => {
|
|
3659
3659
|
a.value = !0, await ne(), s.value?.focus();
|
|
3660
3660
|
}, c = () => {
|
|
3661
3661
|
a.value = !1, u.value = "", n.value = 0, o("hidden");
|
|
3662
|
-
}, f =
|
|
3662
|
+
}, f = G(() => e.count ? n.value + 1 : 0);
|
|
3663
3663
|
return Ue(() => {
|
|
3664
|
-
|
|
3665
|
-
const C =
|
|
3666
|
-
switch (
|
|
3664
|
+
r("keydown", (p) => {
|
|
3665
|
+
const C = p.target, A = s.value?.$el?.contains?.(C), { key: h, metaKey: k, ctrlKey: I } = p;
|
|
3666
|
+
switch (h) {
|
|
3667
3667
|
case "f":
|
|
3668
|
-
(k || I) && (
|
|
3668
|
+
(k || I) && (p.preventDefault(), F());
|
|
3669
3669
|
break;
|
|
3670
3670
|
case "Escape":
|
|
3671
3671
|
c();
|
|
3672
3672
|
break;
|
|
3673
3673
|
case "ArrowUp":
|
|
3674
|
-
|
|
3674
|
+
A && p.preventDefault(), d();
|
|
3675
3675
|
break;
|
|
3676
3676
|
case "ArrowDown":
|
|
3677
|
-
|
|
3677
|
+
A && p.preventDefault(), m();
|
|
3678
3678
|
break;
|
|
3679
3679
|
}
|
|
3680
3680
|
});
|
|
3681
|
-
}), (
|
|
3682
|
-
const
|
|
3683
|
-
return g(),
|
|
3684
|
-
a.value ? (g(),
|
|
3685
|
-
E(
|
|
3681
|
+
}), (p, C) => {
|
|
3682
|
+
const A = S("el-icon");
|
|
3683
|
+
return g(), R(Yo, { to: "body" }, [
|
|
3684
|
+
a.value ? (g(), b("div", ss, [
|
|
3685
|
+
E(i(rn), {
|
|
3686
3686
|
ref_key: "inputRef",
|
|
3687
3687
|
ref: s,
|
|
3688
3688
|
modelValue: u.value,
|
|
3689
|
-
"onUpdate:modelValue": C[0] || (C[0] = (
|
|
3689
|
+
"onUpdate:modelValue": C[0] || (C[0] = (h) => u.value = h),
|
|
3690
3690
|
placeholder: "请输入搜索关键字",
|
|
3691
|
-
onInput:
|
|
3692
|
-
onKeydown: Xo(
|
|
3691
|
+
onInput: i(D),
|
|
3692
|
+
onKeydown: Xo(m, ["enter"])
|
|
3693
3693
|
}, {
|
|
3694
3694
|
append: B(() => [
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
E(
|
|
3698
|
-
class: re(
|
|
3699
|
-
onClick:
|
|
3695
|
+
x("div", ls, q(f.value) + "/" + q(p.count), 1),
|
|
3696
|
+
x("div", rs, [
|
|
3697
|
+
E(A, {
|
|
3698
|
+
class: re(p.count ? "is-active" : "is-disable"),
|
|
3699
|
+
onClick: d
|
|
3700
3700
|
}, {
|
|
3701
3701
|
default: B(() => [
|
|
3702
|
-
E(
|
|
3702
|
+
E(i(tn))
|
|
3703
3703
|
]),
|
|
3704
3704
|
_: 1
|
|
3705
3705
|
}, 8, ["class"]),
|
|
3706
|
-
E(
|
|
3707
|
-
class: re(
|
|
3708
|
-
onClick:
|
|
3706
|
+
E(A, {
|
|
3707
|
+
class: re(p.count ? "is-active" : "is-disable"),
|
|
3708
|
+
onClick: m
|
|
3709
3709
|
}, {
|
|
3710
3710
|
default: B(() => [
|
|
3711
|
-
E(
|
|
3711
|
+
E(i(on))
|
|
3712
3712
|
]),
|
|
3713
3713
|
_: 1
|
|
3714
3714
|
}, 8, ["class"]),
|
|
3715
|
-
E(
|
|
3715
|
+
E(A, { onClick: c }, {
|
|
3716
3716
|
default: B(() => [
|
|
3717
|
-
E(
|
|
3717
|
+
E(i(Et))
|
|
3718
3718
|
]),
|
|
3719
3719
|
_: 1
|
|
3720
3720
|
})
|
|
@@ -3722,11 +3722,11 @@ const sa = {
|
|
|
3722
3722
|
]),
|
|
3723
3723
|
_: 1
|
|
3724
3724
|
}, 8, ["modelValue", "onInput"])
|
|
3725
|
-
])) :
|
|
3725
|
+
])) : z("", !0)
|
|
3726
3726
|
]);
|
|
3727
3727
|
};
|
|
3728
3728
|
}
|
|
3729
|
-
}), cs = /* @__PURE__ */ te(is, [["__scopeId", "data-v-d3a01d9a"]]),
|
|
3729
|
+
}), cs = /* @__PURE__ */ te(is, [["__scopeId", "data-v-d3a01d9a"]]), ds = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAADGklEQVR4Xu1Y0ZEaMQy9ElICJVACDWCcj0zYzc2En8zA5j7oIHRw6SDXQUqgBErYEigh8TN2Yr/Vyobc3keGN6OBYyVZlp5k7z083HHHbbB2/86u9zNN2ObNYZvd3jS7s5NfBenfN18/s/2bwK63MyEgTc7IPvuZHCGbHIwqy0+7PfuZHKtmd4wBuO/9st1uJFm1f6mxarsf7OfVEDLXm6Y7Ofm+bJ4sl10LwG3iZ6Lryw8f8BX9Lttuw3ZXARnh8kniNmPZNqKWIvZxu2DbKmDnxu946JRFaxLOviI921bBrLtv7EhwrpY9IuVzZss+2+7Atio4C3Dof8dwd2UGv8A9p3fQshlhN6iOtzni09ktvC/3e9ps5toRhiylgdr1P5Jdgf044PAz64i4ZGyYzRJwVGJOXjbppoP7jsqwngSmQFVjGTYqLIbnYxz0G3WBV/hYUHKOrJPhMt/yRVgnReBytrER6UvB8mbVrA7nZnfSyC0FieagBrn8rmTpMgpxoFQGKnTh6AK8KfAMJYzP8b2Ge1KQ3peSIA/bfpkPghUokJYqBDljHc/f9Kx3I411xCAFXyKkYPk8Lm0kwj1/SXSzCTJSlVmqU4QzfE6d8KmhPUuBZ6lu9izfBCbMIX1ehHB8Di4epZJG5N3cndJnOEh4neo3ASiysWmHOx2Mk7abs459fMrno0ARZJHXKwYb5mIxSICHtJMzeIyAcUqFkmc8l7oeMEQB2Kldz+Q2hXOXs1oQ1Zdhvip33EGWxmZoRLgVZeNFkpIfwPDMLXU/Z2msXCnAMx7uPkDXcDUvdFxJicsDCDwtnxIBqEh8qUtPKQ1hveuyGWEKM/Q1MVxLbl4Rwpl/xi79uHFBB3r0NVc4ADp/bPDpfMAXVw/0YdsihJu3KLc0ypjc/CZR09F+AYXD9kM3Z31Z8lPrKvC4SqRP/9Y6m9/r+bITpYZCKpARcBHiuzlkr/ZfNem4ixz0fPfnvHszBc/dbY3tXg24iCQZOcfNsOTZHN/QZOCS1oh6LE4FYYSpgrJrTTcp/JtAmI+aQGdSHt7xP+M34WzNZBUBRu8AAAAASUVORK5CYII=", Ds = ["src", "alt"], ps = ["src", "alt"], ms = /* @__PURE__ */ X({
|
|
3730
3730
|
name: "ZOperationIconButton",
|
|
3731
3731
|
__name: "ZOperationIconButton",
|
|
3732
3732
|
props: {
|
|
@@ -3739,30 +3739,30 @@ const sa = {
|
|
|
3739
3739
|
const o = t;
|
|
3740
3740
|
return (n, u) => {
|
|
3741
3741
|
const a = S("el-tooltip");
|
|
3742
|
-
return n.tips ? (g(),
|
|
3742
|
+
return n.tips ? (g(), R(a, {
|
|
3743
3743
|
key: 0,
|
|
3744
3744
|
content: n.tips,
|
|
3745
3745
|
placement: "top",
|
|
3746
3746
|
offset: 16
|
|
3747
3747
|
}, {
|
|
3748
3748
|
default: B(() => [
|
|
3749
|
-
|
|
3749
|
+
x("div", {
|
|
3750
3750
|
class: "z-operation-icon-button",
|
|
3751
3751
|
onClick: u[0] || (u[0] = (s) => o("click"))
|
|
3752
3752
|
}, [
|
|
3753
|
-
|
|
3753
|
+
x("img", {
|
|
3754
3754
|
src: n.src,
|
|
3755
3755
|
alt: n.alt || n.tips
|
|
3756
|
-
}, null, 8,
|
|
3756
|
+
}, null, 8, Ds)
|
|
3757
3757
|
])
|
|
3758
3758
|
]),
|
|
3759
3759
|
_: 1
|
|
3760
|
-
}, 8, ["content"])) : (g(),
|
|
3760
|
+
}, 8, ["content"])) : (g(), b("div", {
|
|
3761
3761
|
key: 1,
|
|
3762
3762
|
class: "z-operation-icon-button",
|
|
3763
3763
|
onClick: u[1] || (u[1] = (s) => o("click"))
|
|
3764
3764
|
}, [
|
|
3765
|
-
|
|
3765
|
+
x("img", {
|
|
3766
3766
|
src: n.src,
|
|
3767
3767
|
alt: n.alt
|
|
3768
3768
|
}, null, 8, ps)
|
|
@@ -3838,7 +3838,7 @@ const sa = {
|
|
|
3838
3838
|
const o = t, n = (a) => ["config-columns__btn-item", a === e.groupId ? "config-columns__btn-item--active" : ""], u = (a) => {
|
|
3839
3839
|
const {
|
|
3840
3840
|
id: s,
|
|
3841
|
-
name:
|
|
3841
|
+
name: r
|
|
3842
3842
|
} = a;
|
|
3843
3843
|
return E(S("el-dropdown-item"), {
|
|
3844
3844
|
class: n(s),
|
|
@@ -3846,9 +3846,9 @@ const sa = {
|
|
|
3846
3846
|
s !== e.groupId && o("change", s);
|
|
3847
3847
|
}, ["stop"])
|
|
3848
3848
|
}, {
|
|
3849
|
-
default: () => [
|
|
3849
|
+
default: () => [de(E("div", {
|
|
3850
3850
|
class: "config-columns__btn-item-name"
|
|
3851
|
-
}, [
|
|
3851
|
+
}, [r]), [[Fe("ellipsis")]]), s !== $e ? E("div", {
|
|
3852
3852
|
class: "config-columns__btn-operation"
|
|
3853
3853
|
}, [E(S("el-icon"), {
|
|
3854
3854
|
class: "edit-icon",
|
|
@@ -3866,51 +3866,51 @@ const sa = {
|
|
|
3866
3866
|
});
|
|
3867
3867
|
};
|
|
3868
3868
|
return (a, s) => {
|
|
3869
|
-
const
|
|
3870
|
-
return g(),
|
|
3869
|
+
const r = S("el-dropdown-item"), l = S("el-button"), D = S("el-dropdown-menu"), d = S("el-dropdown");
|
|
3870
|
+
return g(), R(d, {
|
|
3871
3871
|
"popper-class": "config-columns__btn-popper",
|
|
3872
3872
|
trigger: "hover",
|
|
3873
3873
|
placement: "bottom-end"
|
|
3874
3874
|
}, {
|
|
3875
|
-
dropdown: B(() => [E(
|
|
3876
|
-
default: B(() => [E(
|
|
3875
|
+
dropdown: B(() => [E(D, null, {
|
|
3876
|
+
default: B(() => [E(r, {
|
|
3877
3877
|
disabled: ""
|
|
3878
3878
|
}, {
|
|
3879
3879
|
default: B(() => [...s[1] || (s[1] = [W("系统推荐", -1)])]),
|
|
3880
3880
|
_: 1
|
|
3881
3881
|
}), E(u, {
|
|
3882
|
-
id:
|
|
3882
|
+
id: i($e),
|
|
3883
3883
|
name: a.columnConfig?.systemGroupName || "系统默认"
|
|
3884
|
-
}, null, 8, ["id", "name"]), s[3] || (s[3] =
|
|
3884
|
+
}, null, 8, ["id", "name"]), s[3] || (s[3] = x("div", {
|
|
3885
3885
|
class: "config-columns__btn-item__line"
|
|
3886
|
-
}, null, -1)), E(
|
|
3886
|
+
}, null, -1)), E(r, {
|
|
3887
3887
|
disabled: ""
|
|
3888
3888
|
}, {
|
|
3889
3889
|
default: B(() => [W("常用自定义列(" + q(a.columnGroups?.length || 0) + "/10)", 1)]),
|
|
3890
3890
|
_: 1
|
|
3891
|
-
}), (g(!0),
|
|
3892
|
-
id:
|
|
3893
|
-
key:
|
|
3894
|
-
name:
|
|
3895
|
-
}, null, 8, ["id", "name"]))), 128)), a.columnGroups?.length < 10 ? (g(),
|
|
3891
|
+
}), (g(!0), b(K, null, se(a.columnGroups, (m) => (g(), R(u, {
|
|
3892
|
+
id: m.id,
|
|
3893
|
+
key: m.id,
|
|
3894
|
+
name: m.groupName
|
|
3895
|
+
}, null, 8, ["id", "name"]))), 128)), a.columnGroups?.length < 10 ? (g(), R(r, {
|
|
3896
3896
|
key: 0,
|
|
3897
3897
|
class: "config-columns__btn-add"
|
|
3898
3898
|
}, {
|
|
3899
3899
|
default: B(() => [E(l, {
|
|
3900
3900
|
link: "",
|
|
3901
|
-
icon:
|
|
3901
|
+
icon: i(ao),
|
|
3902
3902
|
type: "primary",
|
|
3903
|
-
onClick: s[0] || (s[0] = (
|
|
3903
|
+
onClick: s[0] || (s[0] = (m) => o("edit", ""))
|
|
3904
3904
|
}, {
|
|
3905
3905
|
default: B(() => [...s[2] || (s[2] = [W("添加自定义列", -1)])]),
|
|
3906
3906
|
_: 1
|
|
3907
3907
|
}, 8, ["icon"])]),
|
|
3908
3908
|
_: 1
|
|
3909
|
-
})) :
|
|
3909
|
+
})) : z("", !0)]),
|
|
3910
3910
|
_: 1
|
|
3911
3911
|
})]),
|
|
3912
3912
|
default: B(() => [E(mt, {
|
|
3913
|
-
src:
|
|
3913
|
+
src: i(ds),
|
|
3914
3914
|
alt: "自定义列"
|
|
3915
3915
|
}, null, 8, ["src"])]),
|
|
3916
3916
|
_: 1
|
|
@@ -3923,7 +3923,7 @@ const sa = {
|
|
|
3923
3923
|
emits: ["click"],
|
|
3924
3924
|
setup(e, { emit: t }) {
|
|
3925
3925
|
const o = t;
|
|
3926
|
-
return (n, u) => (g(),
|
|
3926
|
+
return (n, u) => (g(), b("div", {
|
|
3927
3927
|
class: "table-link__button z-table-link-button",
|
|
3928
3928
|
onClick: u[0] || (u[0] = (a) => o("click", a))
|
|
3929
3929
|
}, [
|
|
@@ -3940,34 +3940,34 @@ function vs(e) {
|
|
|
3940
3940
|
data: o,
|
|
3941
3941
|
row: n
|
|
3942
3942
|
} = e;
|
|
3943
|
-
if ((!n ||
|
|
3943
|
+
if ((!n || N.isEmpty(n)) && !t.renderToEmpty)
|
|
3944
3944
|
return at;
|
|
3945
3945
|
const {
|
|
3946
3946
|
_render: u,
|
|
3947
3947
|
renderToOptions: a,
|
|
3948
3948
|
onClick: s,
|
|
3949
|
-
emptyClick:
|
|
3949
|
+
emptyClick: r,
|
|
3950
3950
|
emptyValue: l,
|
|
3951
|
-
prop:
|
|
3951
|
+
prop: D
|
|
3952
3952
|
} = t;
|
|
3953
3953
|
if (u) {
|
|
3954
3954
|
const {
|
|
3955
3955
|
$tableData: c,
|
|
3956
3956
|
$index: f,
|
|
3957
|
-
$defaultSort:
|
|
3957
|
+
$defaultSort: p,
|
|
3958
3958
|
$rowKey: C
|
|
3959
3959
|
} = o;
|
|
3960
|
-
let
|
|
3961
|
-
|
|
3962
|
-
const
|
|
3963
|
-
return typeof
|
|
3960
|
+
let A = f;
|
|
3961
|
+
p && (C ? A = c.findIndex((k) => Reflect.get(k, C) === Reflect.get(n, C)) : console.warn("如果设置了default-sort,必须要设置row-key,否则可能会导致自定义渲染内容错乱!"));
|
|
3962
|
+
const h = u(vt, o ?? {}, Reflect.get(c, A) ?? {});
|
|
3963
|
+
return typeof h != "number" && (!h || h === yo) ? at : h;
|
|
3964
3964
|
}
|
|
3965
|
-
const
|
|
3966
|
-
if (!
|
|
3967
|
-
return
|
|
3968
|
-
const
|
|
3965
|
+
const d = l ?? at;
|
|
3966
|
+
if (!D)
|
|
3967
|
+
return d;
|
|
3968
|
+
const m = Reflect.get(o, D);
|
|
3969
3969
|
if (a) {
|
|
3970
|
-
const c = a.find((
|
|
3970
|
+
const c = a.find((p) => p.value === m), f = c?.label ?? d;
|
|
3971
3971
|
return c?._color ? E("span", {
|
|
3972
3972
|
style: {
|
|
3973
3973
|
color: c._color
|
|
@@ -3979,16 +3979,16 @@ function vs(e) {
|
|
|
3979
3979
|
}
|
|
3980
3980
|
}, [f]) : f;
|
|
3981
3981
|
}
|
|
3982
|
-
const F = Ln(
|
|
3982
|
+
const F = Ln(m) || m == l;
|
|
3983
3983
|
if (s) {
|
|
3984
3984
|
const c = E(Bo, {
|
|
3985
3985
|
onClick: () => s?.(e.data)
|
|
3986
|
-
}, As(
|
|
3987
|
-
default: () => [
|
|
3986
|
+
}, As(m) ? m : {
|
|
3987
|
+
default: () => [m]
|
|
3988
3988
|
});
|
|
3989
|
-
return
|
|
3989
|
+
return r ? c : F ? d : c;
|
|
3990
3990
|
}
|
|
3991
|
-
return F ?
|
|
3991
|
+
return F ? d : m;
|
|
3992
3992
|
}
|
|
3993
3993
|
function Es(e) {
|
|
3994
3994
|
const {
|
|
@@ -4006,36 +4006,36 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
4006
4006
|
if (e.columnConfig?.pageId) {
|
|
4007
4007
|
const l = await Ve.loadViewConfig({ pageId: e.columnConfig.pageId, type: 2 });
|
|
4008
4008
|
if (l?.length) {
|
|
4009
|
-
const [{ config:
|
|
4010
|
-
t.value =
|
|
4009
|
+
const [{ config: D }] = l;
|
|
4010
|
+
t.value = D ? JSON.parse(D) : [];
|
|
4011
4011
|
}
|
|
4012
4012
|
}
|
|
4013
4013
|
}, n = (l) => {
|
|
4014
|
-
const
|
|
4015
|
-
for (let F = 0; F <
|
|
4016
|
-
const { groupName: c = gs, prop: f, label:
|
|
4017
|
-
if (!f || !
|
|
4014
|
+
const D = {}, d = e.columns.length;
|
|
4015
|
+
for (let F = 0; F < d; ++F) {
|
|
4016
|
+
const { groupName: c = gs, prop: f, label: p, defaultChecked: C, readonly: A, fixed: h } = e.columns[F];
|
|
4017
|
+
if (!f || !p)
|
|
4018
4018
|
continue;
|
|
4019
|
-
let k = Reflect.get(
|
|
4020
|
-
k || Reflect.set(
|
|
4021
|
-
const I = { prop: f, label:
|
|
4022
|
-
|
|
4019
|
+
let k = Reflect.get(D, c);
|
|
4020
|
+
k || Reflect.set(D, c, k = []);
|
|
4021
|
+
const I = { prop: f, label: p, defaultChecked: C, fixed: st(h) };
|
|
4022
|
+
A && (I.defaultChecked = !0, I.readonly = !0), k.push(I);
|
|
4023
4023
|
}
|
|
4024
4024
|
return {
|
|
4025
4025
|
groupName: l && t.value.find((F) => F.id === l)?.groupName || "",
|
|
4026
|
-
groupData:
|
|
4026
|
+
groupData: D
|
|
4027
4027
|
};
|
|
4028
4028
|
}, u = (l) => {
|
|
4029
|
-
const
|
|
4030
|
-
return e.columns.forEach((
|
|
4031
|
-
|
|
4032
|
-
prop:
|
|
4033
|
-
checked: !!(
|
|
4034
|
-
fixed: st(
|
|
4029
|
+
const D = new Map(l.map((d) => [d.prop, d]));
|
|
4030
|
+
return e.columns.forEach((d) => {
|
|
4031
|
+
d.prop && (D.has(d.prop) ? D.delete(d.prop) : l.push({
|
|
4032
|
+
prop: d.prop,
|
|
4033
|
+
checked: !!(d.readonly || d.defaultChecked),
|
|
4034
|
+
fixed: st(d.fixed)
|
|
4035
4035
|
}));
|
|
4036
|
-
}),
|
|
4037
|
-
const
|
|
4038
|
-
|
|
4036
|
+
}), D.size && D.forEach((d) => {
|
|
4037
|
+
const m = l.findIndex((F) => F.prop === d.prop);
|
|
4038
|
+
m !== -1 && l.splice(m, 1);
|
|
4039
4039
|
}), l;
|
|
4040
4040
|
};
|
|
4041
4041
|
return {
|
|
@@ -4043,44 +4043,44 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
4043
4043
|
getGroupedColumnInfo: n,
|
|
4044
4044
|
getCheckedColumnsById: (l) => {
|
|
4045
4045
|
if (l) {
|
|
4046
|
-
const
|
|
4047
|
-
if (
|
|
4048
|
-
return u(
|
|
4046
|
+
const D = t.value.find((d) => d.id === l)?.columns;
|
|
4047
|
+
if (D)
|
|
4048
|
+
return u(D);
|
|
4049
4049
|
}
|
|
4050
|
-
return e.columns.filter((
|
|
4051
|
-
(
|
|
4052
|
-
prop:
|
|
4053
|
-
checked: !!(
|
|
4054
|
-
fixed: st(
|
|
4050
|
+
return e.columns.filter((D) => D.prop).map(
|
|
4051
|
+
(D) => ({
|
|
4052
|
+
prop: D.prop,
|
|
4053
|
+
checked: !!(D.readonly || D.defaultChecked),
|
|
4054
|
+
fixed: st(D.fixed)
|
|
4055
4055
|
})
|
|
4056
4056
|
);
|
|
4057
4057
|
},
|
|
4058
|
-
saveConfigColumns: async (l,
|
|
4059
|
-
const
|
|
4058
|
+
saveConfigColumns: async (l, D, d) => {
|
|
4059
|
+
const m = new Map(l.map((f, p) => [f.prop, { ...f, index: p }])), F = e.columns.filter((f) => f.prop && f.label), c = N.sortBy(F, (f) => m.get(f.prop)?.index ?? -1).map(
|
|
4060
4060
|
(f) => ({
|
|
4061
4061
|
prop: f.prop,
|
|
4062
|
-
checked:
|
|
4063
|
-
fixed:
|
|
4062
|
+
checked: m.has(f.prop),
|
|
4063
|
+
fixed: m.get(f.prop)?.fixed
|
|
4064
4064
|
})
|
|
4065
4065
|
);
|
|
4066
|
-
if (
|
|
4067
|
-
const { id: f, groupName:
|
|
4068
|
-
C ? (C.columns = c, C.groupName =
|
|
4066
|
+
if (d) {
|
|
4067
|
+
const { id: f, groupName: p } = D, C = t.value.find((A) => A.id === f);
|
|
4068
|
+
C ? (C.columns = c, C.groupName = p) : t.value.push({ ...D, columns: c });
|
|
4069
4069
|
try {
|
|
4070
4070
|
await Ve.saveViewConfig({
|
|
4071
4071
|
pageId: e.columnConfig?.pageId,
|
|
4072
4072
|
type: 2,
|
|
4073
4073
|
config: JSON.stringify(t.value)
|
|
4074
4074
|
});
|
|
4075
|
-
} catch (
|
|
4076
|
-
console.log(
|
|
4075
|
+
} catch (A) {
|
|
4076
|
+
console.log(A);
|
|
4077
4077
|
}
|
|
4078
4078
|
}
|
|
4079
4079
|
return u(c);
|
|
4080
4080
|
},
|
|
4081
4081
|
deleteGroupByGroupId: async (l) => {
|
|
4082
|
-
const
|
|
4083
|
-
|
|
4082
|
+
const D = t.value.findIndex((d) => d.id === l);
|
|
4083
|
+
D > -1 && t.value.splice(D, 1), await Ve.saveViewConfig({
|
|
4084
4084
|
pageId: e.columnConfig?.pageId,
|
|
4085
4085
|
type: 2,
|
|
4086
4086
|
config: JSON.stringify(t.value)
|
|
@@ -4096,65 +4096,65 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
4096
4096
|
getGroupedColumnInfo: u,
|
|
4097
4097
|
saveConfigColumns: a,
|
|
4098
4098
|
columnGroups: s
|
|
4099
|
-
} = ys(e),
|
|
4100
|
-
const k = new Map(
|
|
4099
|
+
} = ys(e), r = T(!0), l = T(e.columnConfig?.groupId ?? $e), D = T([]), d = T(), m = (h) => {
|
|
4100
|
+
const k = new Map(h.map((y, w) => [y.prop, { ...y, index: w }])), I = [];
|
|
4101
4101
|
e.columns.forEach((y) => y.readonly && I.push(y));
|
|
4102
|
-
const P =
|
|
4102
|
+
const P = N.sortBy(
|
|
4103
4103
|
e.columns.filter((y) => !y.readonly && (k.get(y.prop)?.checked || !y.prop)),
|
|
4104
4104
|
(y) => k.get(y.prop)?.index ?? -1
|
|
4105
4105
|
);
|
|
4106
|
-
I.reverse().forEach((y) => P.unshift(y)),
|
|
4106
|
+
I.reverse().forEach((y) => P.unshift(y)), D.value = P.map(
|
|
4107
4107
|
(y) => ({
|
|
4108
4108
|
...y,
|
|
4109
4109
|
fixed: y.prop ? k.get(y.prop)?.fixed : y.fixed
|
|
4110
4110
|
})
|
|
4111
4111
|
);
|
|
4112
|
-
}, F = (
|
|
4113
|
-
l.value =
|
|
4114
|
-
}, c = (
|
|
4115
|
-
|
|
4112
|
+
}, F = (h, k) => {
|
|
4113
|
+
l.value = h, m(k ?? o(h));
|
|
4114
|
+
}, c = (h) => {
|
|
4115
|
+
d.value?.openDialog(u(h), o(h)).then(async (k) => {
|
|
4116
4116
|
const {
|
|
4117
4117
|
data: { updateData: I, groupName: P, isSave: y },
|
|
4118
|
-
close:
|
|
4119
|
-
} = k,
|
|
4120
|
-
|
|
4118
|
+
close: w
|
|
4119
|
+
} = k, v = h || `${(/* @__PURE__ */ new Date()).valueOf()}`, V = await a(I, { groupName: P, id: v }, y);
|
|
4120
|
+
w(), y ? v === l.value ? m(o(h)) : F(v) : F(fs, V);
|
|
4121
4121
|
});
|
|
4122
4122
|
}, f = () => {
|
|
4123
|
-
|
|
4123
|
+
D.value = e.columns.filter(({ type: h, defaultChecked: k, readonly: I, prop: P }) => I || h && Reflect.has(We, h) || !P ? !0 : !!k);
|
|
4124
4124
|
};
|
|
4125
4125
|
(async () => {
|
|
4126
4126
|
if (e.columnConfig?.pageId)
|
|
4127
4127
|
try {
|
|
4128
4128
|
await t();
|
|
4129
|
-
} catch (
|
|
4130
|
-
console.log(
|
|
4129
|
+
} catch (h) {
|
|
4130
|
+
console.log(h);
|
|
4131
4131
|
}
|
|
4132
|
-
f(),
|
|
4132
|
+
f(), r.value = !1;
|
|
4133
4133
|
})();
|
|
4134
|
-
const C = (
|
|
4135
|
-
c(
|
|
4136
|
-
},
|
|
4137
|
-
await n(
|
|
4134
|
+
const C = (h) => {
|
|
4135
|
+
c(h);
|
|
4136
|
+
}, A = async (h) => {
|
|
4137
|
+
await n(h), h === l.value && F($e);
|
|
4138
4138
|
};
|
|
4139
4139
|
return et(
|
|
4140
4140
|
() => e.columns,
|
|
4141
4141
|
() => {
|
|
4142
|
-
e.columnConfig?.pageId ?
|
|
4142
|
+
e.columnConfig?.pageId ? m(o(l.value)) : f();
|
|
4143
4143
|
},
|
|
4144
4144
|
{
|
|
4145
4145
|
deep: !0,
|
|
4146
4146
|
flush: "post"
|
|
4147
4147
|
}
|
|
4148
4148
|
), {
|
|
4149
|
-
configColumns:
|
|
4150
|
-
configColumnsDialogRef:
|
|
4151
|
-
loadingConfigColumns:
|
|
4149
|
+
configColumns: D,
|
|
4150
|
+
configColumnsDialogRef: d,
|
|
4151
|
+
loadingConfigColumns: r,
|
|
4152
4152
|
groupId: l,
|
|
4153
4153
|
columnGroups: s,
|
|
4154
4154
|
openConfigColumnDialog: c,
|
|
4155
4155
|
changeGroupId: F,
|
|
4156
4156
|
editGroupByGroupId: C,
|
|
4157
|
-
deleteGroupByGroupId:
|
|
4157
|
+
deleteGroupByGroupId: A
|
|
4158
4158
|
};
|
|
4159
4159
|
}, _s = (e) => {
|
|
4160
4160
|
const {
|
|
@@ -4164,18 +4164,18 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
4164
4164
|
loadingConfigColumns: u,
|
|
4165
4165
|
columnGroups: a,
|
|
4166
4166
|
changeGroupId: s,
|
|
4167
|
-
openConfigColumnDialog:
|
|
4167
|
+
openConfigColumnDialog: r,
|
|
4168
4168
|
editGroupByGroupId: l,
|
|
4169
|
-
deleteGroupByGroupId:
|
|
4170
|
-
} = Bs(e),
|
|
4169
|
+
deleteGroupByGroupId: D
|
|
4170
|
+
} = Bs(e), d = T(), m = T(), F = T({
|
|
4171
4171
|
current: 1,
|
|
4172
4172
|
size: e.paginationProps?.pageSize || Qt.pageSize,
|
|
4173
4173
|
total: 0
|
|
4174
|
-
}), c =
|
|
4175
|
-
const M =
|
|
4174
|
+
}), c = G(() => ({ ...Qt, ...e.paginationProps })), f = T(""), p = () => {
|
|
4175
|
+
const M = d.value?.getBoundingClientRect();
|
|
4176
4176
|
f.value = `${M?.width}px`;
|
|
4177
|
-
}, C = new ResizeObserver(() => requestAnimationFrame(
|
|
4178
|
-
const M =
|
|
4177
|
+
}, C = new ResizeObserver(() => requestAnimationFrame(p)), A = T([]), h = G(() => {
|
|
4178
|
+
const M = N.omit(e, [
|
|
4179
4179
|
"tableData",
|
|
4180
4180
|
"columns",
|
|
4181
4181
|
"loadMethod",
|
|
@@ -4184,53 +4184,53 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
4184
4184
|
"hasPagination",
|
|
4185
4185
|
"paginationProps"
|
|
4186
4186
|
]);
|
|
4187
|
-
return
|
|
4188
|
-
}), k =
|
|
4189
|
-
() => (M) =>
|
|
4190
|
-
), I =
|
|
4187
|
+
return N.mergeWith({ height: "100%" }, M, (L, Y) => L && Y && N.isObject(L) && N.isObject(Y) ? N.merge(Y, L) : Y ?? L);
|
|
4188
|
+
}), k = G(
|
|
4189
|
+
() => (M) => N.omit(M, ["_render", "renderHeader", "hidden", "className", "isOperation"])
|
|
4190
|
+
), I = G(() => (Array.isArray(e.operationBtnList) ? e.operationBtnList : [e.operationBtnList])?.map((L) => N.isString(L) ? { type: L } : L)), P = G(
|
|
4191
4191
|
() => o.value.filter(
|
|
4192
4192
|
(M) => (
|
|
4193
4193
|
// 处理列的显示隐藏
|
|
4194
|
-
!(
|
|
4194
|
+
!(N.isFunction(M.hidden) ? M.hidden(M) : M.hidden)
|
|
4195
4195
|
)
|
|
4196
4196
|
).map((M) => {
|
|
4197
|
-
const
|
|
4198
|
-
return
|
|
4197
|
+
const L = M.type;
|
|
4198
|
+
return L && Reflect.has(We, L) ? { ...Reflect.get(We, L), ...M } : M;
|
|
4199
4199
|
})
|
|
4200
|
-
), y = T(!1),
|
|
4200
|
+
), y = T(!1), w = async (M = F.value) => {
|
|
4201
4201
|
y.value = !0;
|
|
4202
4202
|
try {
|
|
4203
|
-
const
|
|
4204
|
-
if (
|
|
4205
|
-
const { data: Y, total: $, records: _, count: H } = await
|
|
4203
|
+
const L = e.loadMethod;
|
|
4204
|
+
if (L && typeof L == "function") {
|
|
4205
|
+
const { data: Y, total: $, records: _, count: H } = await L(N.omit(M, "total")) ?? {}, U = _ || Y || [], ue = Number(H || $ || 0);
|
|
4206
4206
|
if (!U.length && M.current > 1 && ue) {
|
|
4207
4207
|
const ae = Math.ceil(ue / M.size);
|
|
4208
4208
|
if (M.current > ae)
|
|
4209
|
-
return M.current = ae,
|
|
4209
|
+
return M.current = ae, w(M);
|
|
4210
4210
|
}
|
|
4211
|
-
|
|
4211
|
+
A.value = U, F.value.total = isNaN(ue) ? 0 : ue;
|
|
4212
4212
|
} else
|
|
4213
4213
|
tt(() => {
|
|
4214
|
-
|
|
4214
|
+
A.value = e.tableData ?? [];
|
|
4215
4215
|
});
|
|
4216
4216
|
} finally {
|
|
4217
4217
|
y.value = !1;
|
|
4218
4218
|
}
|
|
4219
|
-
},
|
|
4220
|
-
|
|
4219
|
+
}, v = T(1), V = () => {
|
|
4220
|
+
v.value++;
|
|
4221
4221
|
};
|
|
4222
4222
|
return Ue(() => {
|
|
4223
|
-
|
|
4223
|
+
d.value && C.observe(d.value);
|
|
4224
4224
|
}), He(() => {
|
|
4225
4225
|
C?.disconnect();
|
|
4226
4226
|
}), {
|
|
4227
|
-
baseTableContainerRef:
|
|
4228
|
-
baseTableRef:
|
|
4227
|
+
baseTableContainerRef: d,
|
|
4228
|
+
baseTableRef: m,
|
|
4229
4229
|
pagination: F,
|
|
4230
4230
|
getPaginationProps: c,
|
|
4231
4231
|
paginationWidth: f,
|
|
4232
|
-
tableData:
|
|
4233
|
-
getTableAttrs:
|
|
4232
|
+
tableData: A,
|
|
4233
|
+
getTableAttrs: h,
|
|
4234
4234
|
getColumnAttrs: k,
|
|
4235
4235
|
specialColumnMap: We,
|
|
4236
4236
|
getTableRenderColumns: P,
|
|
@@ -4239,14 +4239,14 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
4239
4239
|
loadingConfigColumns: u,
|
|
4240
4240
|
loadDataLoading: y,
|
|
4241
4241
|
groupId: t,
|
|
4242
|
-
resetKey:
|
|
4242
|
+
resetKey: v,
|
|
4243
4243
|
columnGroups: a,
|
|
4244
4244
|
changeGroupId: s,
|
|
4245
|
-
loadData:
|
|
4246
|
-
openConfigColumnDialog:
|
|
4245
|
+
loadData: w,
|
|
4246
|
+
openConfigColumnDialog: r,
|
|
4247
4247
|
resetColumnsWidth: V,
|
|
4248
4248
|
editGroupByGroupId: l,
|
|
4249
|
-
deleteGroupByGroupId:
|
|
4249
|
+
deleteGroupByGroupId: D
|
|
4250
4250
|
};
|
|
4251
4251
|
}, _o = [
|
|
4252
4252
|
"select",
|
|
@@ -4279,54 +4279,54 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
4279
4279
|
};
|
|
4280
4280
|
}, ws = (e) => {
|
|
4281
4281
|
const t = T(0), o = () => {
|
|
4282
|
-
const
|
|
4283
|
-
if (
|
|
4284
|
-
const
|
|
4285
|
-
if (
|
|
4286
|
-
const c = Array.from(
|
|
4287
|
-
const { display:
|
|
4288
|
-
return
|
|
4282
|
+
const D = [], d = e.value?.$el?.querySelector(".el-table__inner-wrapper");
|
|
4283
|
+
if (d) {
|
|
4284
|
+
const m = d.querySelectorAll(".el-table__header-wrapper");
|
|
4285
|
+
if (m.length) {
|
|
4286
|
+
const c = Array.from(m).filter((f) => {
|
|
4287
|
+
const { display: p } = getComputedStyle(f);
|
|
4288
|
+
return p !== "none";
|
|
4289
4289
|
}).pop()?.querySelectorAll(".el-table__cell");
|
|
4290
4290
|
if (c?.length) {
|
|
4291
|
-
const f = Array.from(c), [
|
|
4292
|
-
let k = Math.abs(
|
|
4293
|
-
if (
|
|
4294
|
-
const
|
|
4295
|
-
k = M +
|
|
4291
|
+
const f = Array.from(c), [p] = f, C = f.find((v) => !v.classList.contains("el-table-fixed-column--left")), A = C?.getBoundingClientRect().left ?? 0, h = d.getBoundingClientRect().left;
|
|
4292
|
+
let k = Math.abs(A - h);
|
|
4293
|
+
if (p !== C) {
|
|
4294
|
+
const v = f.findLastIndex((Y) => Y.classList.contains("el-table-fixed-column--left")), V = f[v], { left: M, width: L } = V.getBoundingClientRect();
|
|
4295
|
+
k = M + L - A;
|
|
4296
4296
|
}
|
|
4297
|
-
const { width: I } = e.value.$el.getBoundingClientRect(), P =
|
|
4298
|
-
f.forEach((
|
|
4299
|
-
const { top: V, left: M } =
|
|
4300
|
-
|
|
4297
|
+
const { width: I } = e.value.$el.getBoundingClientRect(), P = d.querySelector(".el-scrollbar__thumb"), y = P ? P.getBoundingClientRect().width : 0, w = y ? y / 2 : 0;
|
|
4298
|
+
f.forEach((v) => {
|
|
4299
|
+
const { top: V, left: M } = v.getBoundingClientRect();
|
|
4300
|
+
D.push({ element: v, rect: { top: V, left: M + k - I / 2 - w } });
|
|
4301
4301
|
});
|
|
4302
4302
|
}
|
|
4303
4303
|
}
|
|
4304
4304
|
}
|
|
4305
|
-
return
|
|
4306
|
-
}, n = (
|
|
4307
|
-
u.forEach((
|
|
4308
|
-
}, s = ({ element:
|
|
4309
|
-
|
|
4310
|
-
|
|
4305
|
+
return D;
|
|
4306
|
+
}, n = (D, d) => D.toLowerCase().includes(d.toLowerCase()), u = [], a = () => {
|
|
4307
|
+
u.forEach((D) => D()), t.value = 0, u.length = 0;
|
|
4308
|
+
}, s = ({ element: D }) => {
|
|
4309
|
+
D.classList.add("el-table__cell__search-result"), u.push(() => {
|
|
4310
|
+
D.classList.remove("el-table__cell__search-result");
|
|
4311
4311
|
});
|
|
4312
|
-
},
|
|
4313
|
-
const { top:
|
|
4314
|
-
e.value.scrollTo(
|
|
4312
|
+
}, r = ({ rect: D }) => {
|
|
4313
|
+
const { top: d, left: m } = D;
|
|
4314
|
+
e.value.scrollTo(m, d);
|
|
4315
4315
|
};
|
|
4316
4316
|
return {
|
|
4317
4317
|
count: t,
|
|
4318
|
-
find: (
|
|
4319
|
-
if (a(),
|
|
4320
|
-
const
|
|
4321
|
-
if (
|
|
4322
|
-
const F =
|
|
4318
|
+
find: (D, d) => {
|
|
4319
|
+
if (a(), D) {
|
|
4320
|
+
const m = o();
|
|
4321
|
+
if (m?.length) {
|
|
4322
|
+
const F = m.filter(({ element: c }) => {
|
|
4323
4323
|
const f = c.textContent;
|
|
4324
|
-
return f ? n(f,
|
|
4324
|
+
return f ? n(f, D) : !1;
|
|
4325
4325
|
});
|
|
4326
4326
|
if (F.length) {
|
|
4327
4327
|
F.forEach(s);
|
|
4328
|
-
const c = F[
|
|
4329
|
-
c &&
|
|
4328
|
+
const c = F[d];
|
|
4329
|
+
c && r(c), t.value = F.length;
|
|
4330
4330
|
}
|
|
4331
4331
|
}
|
|
4332
4332
|
}
|
|
@@ -4335,17 +4335,17 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
4335
4335
|
};
|
|
4336
4336
|
}, Is = "__base-table-sticky-container", bo = "data-sticky", ks = (e) => e.setAttribute(bo, "true"), Ss = (e) => e.removeAttribute(bo), Ts = (e) => {
|
|
4337
4337
|
const t = () => null;
|
|
4338
|
-
return e ?
|
|
4338
|
+
return e ? N.isString(e) ? () => document.querySelector(e) : N.isFunction(e) ? e : e instanceof HTMLElement ? () => e : (console.warn("未知的选择器类型"), t) : t;
|
|
4339
4339
|
}, Gs = (e) => Ts(e)(), xs = (e, t) => {
|
|
4340
4340
|
const o = [], n = (s) => {
|
|
4341
4341
|
o.includes(s) || o.push(s);
|
|
4342
4342
|
}, u = new IntersectionObserver(([s]) => {
|
|
4343
|
-
let
|
|
4343
|
+
let r = "top";
|
|
4344
4344
|
if (!s.isIntersecting) {
|
|
4345
|
-
const l = s.boundingClientRect,
|
|
4346
|
-
l.bottom <=
|
|
4345
|
+
const l = s.boundingClientRect, D = s.rootBounds, d = D ? D.top : 0, m = D ? D.bottom : window.innerHeight;
|
|
4346
|
+
l.bottom <= d ? r = "top" : l.top >= m && (r = "bottom");
|
|
4347
4347
|
}
|
|
4348
|
-
o.forEach((l) => l(s.isIntersecting,
|
|
4348
|
+
o.forEach((l) => l(s.isIntersecting, r));
|
|
4349
4349
|
}, t);
|
|
4350
4350
|
return u.observe(e), {
|
|
4351
4351
|
onWatchVisible: n,
|
|
@@ -4375,94 +4375,94 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
4375
4375
|
backgroundColor: "transparent",
|
|
4376
4376
|
pointerEvents: "none"
|
|
4377
4377
|
}), e.parentElement?.insertBefore(o, e), o;
|
|
4378
|
-
},
|
|
4378
|
+
}, Rs = (e) => {
|
|
4379
4379
|
const t = [];
|
|
4380
4380
|
if (!e) return t;
|
|
4381
4381
|
const o = e.querySelector(".el-table__header-wrapper");
|
|
4382
4382
|
return o && t.push(o), t;
|
|
4383
|
-
},
|
|
4384
|
-
const t = () => Gs(e.stickyTriggerSelector ?? `.${Is}`), o = [], n = (
|
|
4385
|
-
let F, c =
|
|
4383
|
+
}, Ns = (e) => {
|
|
4384
|
+
const t = () => Gs(e.stickyTriggerSelector ?? `.${Is}`), o = [], n = (m) => {
|
|
4385
|
+
let F, c = m.style.display;
|
|
4386
4386
|
return {
|
|
4387
4387
|
insert: () => {
|
|
4388
|
-
F ? F.style.display = c : (F =
|
|
4388
|
+
F ? F.style.display = c : (F = m.cloneNode(!0), m.parentElement?.insertBefore(F, m));
|
|
4389
4389
|
},
|
|
4390
4390
|
remove: () => {
|
|
4391
|
-
F &&
|
|
4391
|
+
F && m.parentElement?.contains(F) && m.parentElement?.removeChild(F), F = void 0;
|
|
4392
4392
|
},
|
|
4393
4393
|
hidden: () => {
|
|
4394
4394
|
F && (c = F.style.display, F.style.display = "none");
|
|
4395
4395
|
},
|
|
4396
4396
|
getCloneElement: () => F
|
|
4397
4397
|
};
|
|
4398
|
-
}, u = (
|
|
4399
|
-
const c =
|
|
4398
|
+
}, u = (m) => m.style.display === "none", a = (m, F) => {
|
|
4399
|
+
const c = N.cloneDeep(getComputedStyle(m)), { insert: f, hidden: p, remove: C, getCloneElement: A } = n(m);
|
|
4400
4400
|
o.push(C);
|
|
4401
|
-
let
|
|
4401
|
+
let h;
|
|
4402
4402
|
return {
|
|
4403
4403
|
update: (k) => {
|
|
4404
|
-
if (po(
|
|
4404
|
+
if (po(m))
|
|
4405
4405
|
return;
|
|
4406
4406
|
f();
|
|
4407
|
-
const I =
|
|
4408
|
-
ks(
|
|
4409
|
-
|
|
4407
|
+
const I = A(), { top: P } = F.getBoundingClientRect(), { left: y, width: w } = m.getBoundingClientRect();
|
|
4408
|
+
ks(m), Object.assign(
|
|
4409
|
+
m.style,
|
|
4410
4410
|
{
|
|
4411
4411
|
position: "fixed",
|
|
4412
4412
|
top: `${P}px`,
|
|
4413
4413
|
left: `${y}px`,
|
|
4414
|
-
width: `${
|
|
4414
|
+
width: `${w}px`,
|
|
4415
4415
|
zIndex: 100
|
|
4416
4416
|
},
|
|
4417
4417
|
k ?? {}
|
|
4418
4418
|
);
|
|
4419
|
-
const { onUpdate:
|
|
4420
|
-
|
|
4419
|
+
const { onUpdate: v, onStop: V } = Ps(I);
|
|
4420
|
+
v(() => {
|
|
4421
4421
|
if (!u(I)) {
|
|
4422
|
-
const { width: M, left:
|
|
4423
|
-
|
|
4422
|
+
const { width: M, left: L } = I.getBoundingClientRect();
|
|
4423
|
+
m.style.width = `${M}px`, m.style.left = `${L}px`;
|
|
4424
4424
|
}
|
|
4425
|
-
}),
|
|
4425
|
+
}), h = V;
|
|
4426
4426
|
},
|
|
4427
4427
|
reset: () => {
|
|
4428
|
-
Ss(
|
|
4428
|
+
Ss(m), Object.assign(m.style, {
|
|
4429
4429
|
position: c.position ?? "",
|
|
4430
4430
|
top: c.top ?? "",
|
|
4431
4431
|
left: c.left ?? "",
|
|
4432
4432
|
width: c.width ?? "",
|
|
4433
4433
|
zIndex: c.zIndex ?? ""
|
|
4434
|
-
}),
|
|
4434
|
+
}), p(), h?.();
|
|
4435
4435
|
}
|
|
4436
4436
|
};
|
|
4437
|
-
}, s = (
|
|
4438
|
-
const { update:
|
|
4439
|
-
F((
|
|
4440
|
-
!
|
|
4437
|
+
}, s = (m, F, c, f) => {
|
|
4438
|
+
const { update: p, reset: C } = a(m, c);
|
|
4439
|
+
F((A, h) => {
|
|
4440
|
+
!A && c && h === "top" ? p(f) : C();
|
|
4441
4441
|
});
|
|
4442
|
-
},
|
|
4442
|
+
}, r = (m) => {
|
|
4443
4443
|
const F = t();
|
|
4444
4444
|
if (!F)
|
|
4445
4445
|
return;
|
|
4446
|
-
const { onWatchVisible: c, onStopWatchVisible: f } = xs(
|
|
4447
|
-
if (!
|
|
4446
|
+
const { onWatchVisible: c, onStopWatchVisible: f } = xs(m, { root: F }), { baseTableOperationElement: p, baseTableRef: C } = e;
|
|
4447
|
+
if (!p.value)
|
|
4448
4448
|
return;
|
|
4449
|
-
s(
|
|
4450
|
-
const
|
|
4451
|
-
|
|
4449
|
+
s(p.value, c, F);
|
|
4450
|
+
const A = Rs(C.value?.$el), { top: h } = F.getBoundingClientRect(), { height: k } = p.value.getBoundingClientRect();
|
|
4451
|
+
A.forEach(
|
|
4452
4452
|
(I) => s(I, c, F, {
|
|
4453
|
-
top: `${
|
|
4453
|
+
top: `${h + k}px`
|
|
4454
4454
|
})
|
|
4455
4455
|
), o.push(f);
|
|
4456
4456
|
}, l = () => {
|
|
4457
|
-
const { baseTableOperationElement:
|
|
4458
|
-
|
|
4459
|
-
},
|
|
4460
|
-
o.forEach((
|
|
4457
|
+
const { baseTableOperationElement: m } = e;
|
|
4458
|
+
m.value && r(Ms(m.value, "base-table-watch-sticky__operation"));
|
|
4459
|
+
}, D = () => {
|
|
4460
|
+
o.forEach((m) => m()), o.length = 0;
|
|
4461
4461
|
};
|
|
4462
|
-
return At(
|
|
4462
|
+
return At(D), {
|
|
4463
4463
|
start: l,
|
|
4464
4464
|
reset: async () => {
|
|
4465
|
-
|
|
4465
|
+
D(), await ne(), l();
|
|
4466
4466
|
}
|
|
4467
4467
|
};
|
|
4468
4468
|
}, Vs = () => {
|
|
@@ -4474,10 +4474,10 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
4474
4474
|
console.warn("ResizeObserver is not supported");
|
|
4475
4475
|
return;
|
|
4476
4476
|
}
|
|
4477
|
-
const a = () => to(n) ?
|
|
4477
|
+
const a = () => to(n) ? i(n()) : i(n), s = () => {
|
|
4478
4478
|
e = new ResizeObserver(([l]) => u(l)), e.observe(a());
|
|
4479
|
-
}, { stop:
|
|
4480
|
-
a() && (s(),
|
|
4479
|
+
}, { stop: r } = ht(() => {
|
|
4480
|
+
a() && (s(), r?.());
|
|
4481
4481
|
});
|
|
4482
4482
|
}, o = () => {
|
|
4483
4483
|
e?.disconnect();
|
|
@@ -4520,6 +4520,7 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
4520
4520
|
whenFixedPaginationNoPadding: { type: Boolean, default: !1 },
|
|
4521
4521
|
fullHeight: { type: Boolean, default: !0 },
|
|
4522
4522
|
autoScrollY: { type: Boolean, default: !1 },
|
|
4523
|
+
showSelectCount: { type: Boolean, default: !0 },
|
|
4523
4524
|
data: {},
|
|
4524
4525
|
size: {},
|
|
4525
4526
|
width: {},
|
|
@@ -4583,33 +4584,33 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
4583
4584
|
"changeGroup"
|
|
4584
4585
|
], ["update:selectList"]),
|
|
4585
4586
|
setup(e, { expose: t, emit: o }) {
|
|
4586
|
-
Te((
|
|
4587
|
-
|
|
4588
|
-
|
|
4587
|
+
Te((O) => ({
|
|
4588
|
+
c3d0867a: It.value,
|
|
4589
|
+
d7bb0fa6: i(F)
|
|
4589
4590
|
}));
|
|
4590
|
-
const n = e, u = Ge(e, "selectList"), a = o, s = Kt(), { baseTableEventMap:
|
|
4591
|
-
|
|
4591
|
+
const n = e, u = Ge(e, "selectList"), a = o, s = Kt(), { baseTableEventMap: r } = bs(a, (O, ...Z) => {
|
|
4592
|
+
O === "selection-change" && (u.value = Z[0]);
|
|
4592
4593
|
}), {
|
|
4593
4594
|
baseTableRef: l,
|
|
4594
|
-
baseTableContainerRef:
|
|
4595
|
-
pagination:
|
|
4596
|
-
getPaginationProps:
|
|
4595
|
+
baseTableContainerRef: D,
|
|
4596
|
+
pagination: d,
|
|
4597
|
+
getPaginationProps: m,
|
|
4597
4598
|
paginationWidth: F,
|
|
4598
4599
|
tableData: c,
|
|
4599
4600
|
getTableAttrs: f,
|
|
4600
|
-
getColumnAttrs:
|
|
4601
|
+
getColumnAttrs: p,
|
|
4601
4602
|
specialColumnMap: C,
|
|
4602
|
-
getTableRenderColumns:
|
|
4603
|
-
configColumnsDialogRef:
|
|
4603
|
+
getTableRenderColumns: A,
|
|
4604
|
+
configColumnsDialogRef: h,
|
|
4604
4605
|
getParseOperationBtnList: k,
|
|
4605
4606
|
loadingConfigColumns: I,
|
|
4606
4607
|
loadDataLoading: P,
|
|
4607
4608
|
groupId: y,
|
|
4608
|
-
resetKey:
|
|
4609
|
-
columnGroups:
|
|
4609
|
+
resetKey: w,
|
|
4610
|
+
columnGroups: v,
|
|
4610
4611
|
changeGroupId: V,
|
|
4611
4612
|
editGroupByGroupId: M,
|
|
4612
|
-
deleteGroupByGroupId:
|
|
4613
|
+
deleteGroupByGroupId: L,
|
|
4613
4614
|
loadData: Y,
|
|
4614
4615
|
openConfigColumnDialog: $,
|
|
4615
4616
|
resetColumnsWidth: _
|
|
@@ -4617,41 +4618,41 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
4617
4618
|
let ue = !1;
|
|
4618
4619
|
const ae = () => {
|
|
4619
4620
|
ue || (Y(), a("paginationChange"));
|
|
4620
|
-
},
|
|
4621
|
-
ue = !0,
|
|
4621
|
+
}, De = async (O = !0) => {
|
|
4622
|
+
ue = !0, O && Object.assign(d.value, {
|
|
4622
4623
|
current: 1
|
|
4623
4624
|
}), await ne(), await Y(), a("refreshed"), await ne(), ue = !1;
|
|
4624
|
-
}, Q = T(), { start: me, reset: Pe } =
|
|
4625
|
+
}, Q = T(), { start: me, reset: Pe } = Ns({
|
|
4625
4626
|
baseTableOperationElement: Q,
|
|
4626
4627
|
baseTableRef: l,
|
|
4627
4628
|
stickyTriggerSelector: n.stickyTriggerSelector
|
|
4628
|
-
}), ko = async (
|
|
4629
|
-
|
|
4629
|
+
}), ko = async (O, Z) => {
|
|
4630
|
+
O === y.value && !Z || (V(O, Z), await Pe(), a("changeGroup", O));
|
|
4630
4631
|
}, nt = T(!1), bt = async () => {
|
|
4631
4632
|
try {
|
|
4632
4633
|
n.autoLoad && await Y();
|
|
4633
4634
|
} finally {
|
|
4634
4635
|
nt.value = !0;
|
|
4635
4636
|
}
|
|
4636
|
-
}, So = () =>
|
|
4637
|
+
}, So = () => d.value, wt = G(() => N.omit(d.value, "total")), To = tt(() => {
|
|
4637
4638
|
!I.value && nt.value && (a("loaded"), n.stickyHeader && ne(me), To());
|
|
4638
|
-
}), Go =
|
|
4639
|
-
const
|
|
4640
|
-
return
|
|
4639
|
+
}), Go = G(() => (O) => {
|
|
4640
|
+
const Z = n.enableDragProps;
|
|
4641
|
+
return Z && (Array.isArray(Z) ? Z : [Z]).includes(O.prop || "") ? Ut : "";
|
|
4641
4642
|
}), xo = () => {
|
|
4642
4643
|
l.value?.clearSelection?.();
|
|
4643
|
-
}, Po =
|
|
4644
|
-
const { oldIndex:
|
|
4645
|
-
Pt(
|
|
4646
|
-
},
|
|
4647
|
-
if (!Oe(
|
|
4648
|
-
const
|
|
4649
|
-
if (!
|
|
4650
|
-
const Ee =
|
|
4651
|
-
Ee.bottom >= we.height ?
|
|
4644
|
+
}, Po = G(() => !n.enableDragProps), Mo = (O) => {
|
|
4645
|
+
const { oldIndex: Z, newIndex: Ce } = O;
|
|
4646
|
+
Pt(Z) || Pt(Ce) || Z === Ce || a("drag", { oldIndex: Z, newIndex: Ce }, c.value);
|
|
4647
|
+
}, Ro = (O) => {
|
|
4648
|
+
if (!Oe(O.newIndex) && !Oe(O.oldIndex)) {
|
|
4649
|
+
const Z = document.querySelectorAll(".el-table__row"), Ce = document.querySelector(".mainWrapper");
|
|
4650
|
+
if (!Z[O.newIndex] || !Ce) return;
|
|
4651
|
+
const Ee = Z[O.newIndex].getBoundingClientRect(), we = Ce.getBoundingClientRect();
|
|
4652
|
+
Ee.bottom >= we.height ? Z[O.newIndex]?.scrollIntoView({
|
|
4652
4653
|
behavior: "smooth",
|
|
4653
4654
|
block: "center"
|
|
4654
|
-
}) : Ee.top <= 220 &&
|
|
4655
|
+
}) : Ee.top <= 220 && Z[O.newIndex]?.scrollIntoView({
|
|
4655
4656
|
behavior: "smooth",
|
|
4656
4657
|
block: "center"
|
|
4657
4658
|
});
|
|
@@ -4660,61 +4661,63 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
4660
4661
|
Ue(async () => {
|
|
4661
4662
|
await ne(), n.formBuilder ? n.formBuilder.onColumnsLoaded(bt) : await bt();
|
|
4662
4663
|
});
|
|
4663
|
-
const
|
|
4664
|
-
const
|
|
4665
|
-
return
|
|
4664
|
+
const No = () => {
|
|
4665
|
+
const O = Object.values(C).map((Z) => Z.prop);
|
|
4666
|
+
return A.value.reduce((Z, Ce) => {
|
|
4666
4667
|
const { prop: Ee, exportProp: we } = Ce;
|
|
4667
|
-
return Ee && !
|
|
4668
|
-
|
|
4669
|
-
}) : !
|
|
4668
|
+
return Ee && !O.includes(Ee) && (we ? (Array.isArray(we) ? we : [we]).forEach((Ze) => {
|
|
4669
|
+
Z.includes(Ze) || Z.push(Ze);
|
|
4670
|
+
}) : !Z.includes(Ee) && Z.push(Ee)), Z;
|
|
4670
4671
|
}, []);
|
|
4671
4672
|
}, It = T(""), { onResize: Vo } = Vs();
|
|
4672
4673
|
return Vo(
|
|
4673
4674
|
() => l?.value?.$el,
|
|
4674
4675
|
() => {
|
|
4675
|
-
const { left:
|
|
4676
|
-
It.value = `${
|
|
4676
|
+
const { left: O } = l.value.$el.getBoundingClientRect();
|
|
4677
|
+
It.value = `${O + 3}px`;
|
|
4677
4678
|
}
|
|
4678
4679
|
), t({
|
|
4679
4680
|
loadData: Y,
|
|
4680
|
-
refresh:
|
|
4681
|
+
refresh: De,
|
|
4681
4682
|
openConfigColumnDialog: $,
|
|
4682
4683
|
getPagination: So,
|
|
4683
4684
|
clearSort: () => {
|
|
4684
4685
|
l.value?.clearSort();
|
|
4685
4686
|
},
|
|
4686
|
-
getExportColumnsProps:
|
|
4687
|
+
getExportColumnsProps: No,
|
|
4687
4688
|
elTable: l,
|
|
4688
4689
|
getTableData: () => c.value
|
|
4689
|
-
}), (
|
|
4690
|
+
}), (O, Z) => {
|
|
4690
4691
|
const Ce = S("el-icon"), Ee = S("el-table-column"), we = S("el-table"), kt = S("el-pagination"), Ze = Fe("loading");
|
|
4691
|
-
return g(),
|
|
4692
|
-
|
|
4692
|
+
return g(), b(K, null, [
|
|
4693
|
+
x("div", {
|
|
4693
4694
|
ref_key: "baseTableContainerRef",
|
|
4694
|
-
ref:
|
|
4695
|
+
ref: D,
|
|
4695
4696
|
class: re([
|
|
4696
4697
|
"base-table__container z-table",
|
|
4697
4698
|
{
|
|
4698
|
-
"is-full-height":
|
|
4699
|
+
"is-full-height": O.fullHeight
|
|
4699
4700
|
}
|
|
4700
4701
|
])
|
|
4701
4702
|
}, [
|
|
4702
|
-
|
|
4703
|
+
O.hasDefaultOperation || u.value.length || s.header || s.operation ? (g(), b("div", {
|
|
4703
4704
|
key: 0,
|
|
4704
4705
|
ref_key: "baseTableOperationElement",
|
|
4705
4706
|
ref: Q,
|
|
4706
4707
|
class: "base-table__header"
|
|
4707
4708
|
}, [
|
|
4708
|
-
u.value.length ? (g(),
|
|
4709
|
+
u.value.length ? (g(), b("div", {
|
|
4709
4710
|
key: 0,
|
|
4710
4711
|
class: re([
|
|
4711
4712
|
"select-count",
|
|
4712
4713
|
{
|
|
4713
|
-
"select-count--auto-width": !s.selectSlot
|
|
4714
|
+
"select-count--auto-width": !s.selectSlot,
|
|
4715
|
+
"select-count__hidden": !O.showSelectCount
|
|
4714
4716
|
}
|
|
4715
4717
|
])
|
|
4716
4718
|
}, [
|
|
4717
|
-
|
|
4719
|
+
O.showSelectCount ? (g(), b("div", {
|
|
4720
|
+
key: 0,
|
|
4718
4721
|
class: re([
|
|
4719
4722
|
"select-count__count",
|
|
4720
4723
|
{
|
|
@@ -4725,71 +4728,71 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
4725
4728
|
W(" 已选 " + q(u.value.length) + " 项 ", 1),
|
|
4726
4729
|
E(Ce, { onClick: xo }, {
|
|
4727
4730
|
default: B(() => [
|
|
4728
|
-
E(
|
|
4731
|
+
E(i(un))
|
|
4729
4732
|
]),
|
|
4730
4733
|
_: 1
|
|
4731
4734
|
})
|
|
4732
|
-
], 2),
|
|
4733
|
-
pe(
|
|
4734
|
-
], 2)) :
|
|
4735
|
-
!s.selectSlot || !u.value.length ? (g(),
|
|
4736
|
-
pe(
|
|
4737
|
-
])) :
|
|
4738
|
-
|
|
4739
|
-
pe(
|
|
4740
|
-
(g(!0),
|
|
4735
|
+
], 2)) : z("", !0),
|
|
4736
|
+
pe(O.$slots, "selectSlot", {}, void 0, !0)
|
|
4737
|
+
], 2)) : z("", !0),
|
|
4738
|
+
!s.selectSlot || !u.value.length ? (g(), b("div", Os, [
|
|
4739
|
+
pe(O.$slots, "header", { pagination: wt.value }, void 0, !0)
|
|
4740
|
+
])) : z("", !0),
|
|
4741
|
+
O.hasDefaultOperation && (!s.selectSlot || !u.value.length) ? (g(), b("div", Ls, [
|
|
4742
|
+
pe(O.$slots, "operation", { pagination: wt.value }, void 0, !0),
|
|
4743
|
+
(g(!0), b(K, null, se(i(k), (le) => (g(), b(K, {
|
|
4741
4744
|
key: le.type
|
|
4742
4745
|
}, [
|
|
4743
|
-
le.type === "refresh" ? (g(),
|
|
4746
|
+
le.type === "refresh" ? (g(), R(mt, {
|
|
4744
4747
|
key: 0,
|
|
4745
4748
|
tips: "刷新",
|
|
4746
|
-
src:
|
|
4747
|
-
onClick:
|
|
4748
|
-
}, null, 8, ["src"])) :
|
|
4749
|
-
le.type === "resetColumnsWidth" ? (g(),
|
|
4749
|
+
src: i(Ta),
|
|
4750
|
+
onClick: Z[0] || (Z[0] = (Me) => De(!1))
|
|
4751
|
+
}, null, 8, ["src"])) : z("", !0),
|
|
4752
|
+
le.type === "resetColumnsWidth" ? (g(), R(mt, {
|
|
4750
4753
|
key: 1,
|
|
4751
|
-
src:
|
|
4754
|
+
src: i(Ga),
|
|
4752
4755
|
tips: "重置列宽",
|
|
4753
|
-
onClick:
|
|
4754
|
-
}, null, 8, ["src", "onClick"])) :
|
|
4755
|
-
le.type === "configColumns" &&
|
|
4756
|
+
onClick: i(_)
|
|
4757
|
+
}, null, 8, ["src", "onClick"])) : z("", !0),
|
|
4758
|
+
le.type === "configColumns" && O.columnConfig?.pageId ? (g(), R(Cs, {
|
|
4756
4759
|
key: 2,
|
|
4757
|
-
"group-id":
|
|
4758
|
-
"column-groups":
|
|
4760
|
+
"group-id": i(y),
|
|
4761
|
+
"column-groups": i(v),
|
|
4759
4762
|
"column-config": n.columnConfig,
|
|
4760
4763
|
onChange: ko,
|
|
4761
|
-
onEdit:
|
|
4762
|
-
onDelete:
|
|
4763
|
-
}, null, 8, ["group-id", "column-groups", "column-config", "onEdit", "onDelete"])) :
|
|
4764
|
+
onEdit: i(M),
|
|
4765
|
+
onDelete: i(L)
|
|
4766
|
+
}, null, 8, ["group-id", "column-groups", "column-config", "onEdit", "onDelete"])) : z("", !0)
|
|
4764
4767
|
], 64))), 128))
|
|
4765
|
-
])) :
|
|
4766
|
-
], 512)) :
|
|
4767
|
-
|
|
4768
|
-
key:
|
|
4768
|
+
])) : z("", !0)
|
|
4769
|
+
], 512)) : z("", !0),
|
|
4770
|
+
de((g(), b("div", {
|
|
4771
|
+
key: i(w),
|
|
4769
4772
|
class: re([
|
|
4770
4773
|
"base-table__body",
|
|
4771
4774
|
{
|
|
4772
|
-
"base-table__body__fix-pagination": !
|
|
4773
|
-
"base-table__body__update-scroll":
|
|
4774
|
-
"base-table__body__auto-scroll-y":
|
|
4775
|
+
"base-table__body__fix-pagination": !O.whenFixedPaginationNoPadding && O.fixedPagination,
|
|
4776
|
+
"base-table__body__update-scroll": O.hasPagination && O.fixedPagination,
|
|
4777
|
+
"base-table__body__auto-scroll-y": O.autoScrollY
|
|
4775
4778
|
}
|
|
4776
4779
|
])
|
|
4777
4780
|
}, [
|
|
4778
|
-
!
|
|
4781
|
+
!i(I) && nt.value ? (g(), R(i(Ke), {
|
|
4779
4782
|
key: 0,
|
|
4780
|
-
modelValue:
|
|
4783
|
+
modelValue: i(c),
|
|
4781
4784
|
"onUpdate:modelValue": [
|
|
4782
|
-
|
|
4783
|
-
|
|
4785
|
+
Z[1] || (Z[1] = (le) => Ae(c) ? c.value = le : null),
|
|
4786
|
+
Z[2] || (Z[2] = (le) => a("update:tableData", le))
|
|
4784
4787
|
],
|
|
4785
4788
|
disabled: Po.value,
|
|
4786
4789
|
class: "base-table__draggable",
|
|
4787
4790
|
target: ".base-table__table tbody",
|
|
4788
|
-
"item-key":
|
|
4789
|
-
handle: `.${
|
|
4790
|
-
animation:
|
|
4791
|
+
"item-key": O.draggableAttrs?.idKey ?? O.rowKey ?? "id",
|
|
4792
|
+
handle: `.${i(Ut)}`,
|
|
4793
|
+
animation: O.draggableAttrs?.animation ?? 150,
|
|
4791
4794
|
onEnd: Mo,
|
|
4792
|
-
onChange:
|
|
4795
|
+
onChange: Ro
|
|
4793
4796
|
}, {
|
|
4794
4797
|
default: B(() => [
|
|
4795
4798
|
E(we, oe({
|
|
@@ -4798,29 +4801,29 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
4798
4801
|
class: [
|
|
4799
4802
|
"base-table__table",
|
|
4800
4803
|
{
|
|
4801
|
-
"el-table__outside-border":
|
|
4802
|
-
"is-empty__table": !
|
|
4804
|
+
"el-table__outside-border": O.border,
|
|
4805
|
+
"is-empty__table": !i(c).length
|
|
4803
4806
|
}
|
|
4804
4807
|
]
|
|
4805
|
-
},
|
|
4806
|
-
"header-cell-style":
|
|
4807
|
-
data:
|
|
4808
|
+
}, i(f), {
|
|
4809
|
+
"header-cell-style": i(Fs),
|
|
4810
|
+
data: i(c),
|
|
4808
4811
|
"show-overflow-tooltip": ""
|
|
4809
|
-
}, _e(r
|
|
4812
|
+
}, _e(i(r))), {
|
|
4810
4813
|
empty: B(() => [
|
|
4811
|
-
pe(
|
|
4814
|
+
pe(O.$slots, "empty", {}, () => [
|
|
4812
4815
|
E(lo)
|
|
4813
4816
|
], !0)
|
|
4814
4817
|
]),
|
|
4815
4818
|
default: B(() => [
|
|
4816
|
-
(g(!0),
|
|
4819
|
+
(g(!0), b(K, null, se(i(A), (le) => (g(), R(Ee, oe({ ref_for: !0 }, i(p)(le), {
|
|
4817
4820
|
key: le.prop,
|
|
4818
4821
|
"class-name": `${Go.value(le)} ${le.className ?? ""}`
|
|
4819
4822
|
}), {
|
|
4820
4823
|
header: B(({ column: Me, $index: ut }) => [
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
E(
|
|
4824
|
+
x("div", Hs, [
|
|
4825
|
+
x("div", Us, [
|
|
4826
|
+
E(i(Es), {
|
|
4824
4827
|
column: le,
|
|
4825
4828
|
"header-column": Me,
|
|
4826
4829
|
index: ut
|
|
@@ -4829,12 +4832,12 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
4829
4832
|
])
|
|
4830
4833
|
]),
|
|
4831
4834
|
default: B(({ row: Me, $index: ut }) => [
|
|
4832
|
-
!le.type || !
|
|
4835
|
+
!le.type || !i(C)[le.type] ? (g(), R(i(vs), {
|
|
4833
4836
|
key: 0,
|
|
4834
4837
|
column: le,
|
|
4835
4838
|
row: Me,
|
|
4836
|
-
data: { ...Me, $index: ut, $tableData:
|
|
4837
|
-
}, null, 8, ["column", "row", "data"])) :
|
|
4839
|
+
data: { ...Me, $index: ut, $tableData: i(c), $defaultSort: O.defaultSort, $rowKey: O.rowKey }
|
|
4840
|
+
}, null, 8, ["column", "row", "data"])) : z("", !0)
|
|
4838
4841
|
]),
|
|
4839
4842
|
_: 2
|
|
4840
4843
|
}, 1040, ["class-name"]))), 128))
|
|
@@ -4843,45 +4846,45 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
4843
4846
|
}, 16, ["class", "header-cell-style", "data"])
|
|
4844
4847
|
]),
|
|
4845
4848
|
_: 3
|
|
4846
|
-
}, 8, ["modelValue", "disabled", "item-key", "handle", "animation"])) :
|
|
4849
|
+
}, 8, ["modelValue", "disabled", "item-key", "handle", "animation"])) : z("", !0)
|
|
4847
4850
|
], 2)), [
|
|
4848
|
-
[Ze,
|
|
4851
|
+
[Ze, i(I) || i(P)]
|
|
4849
4852
|
]),
|
|
4850
|
-
|
|
4851
|
-
|
|
4853
|
+
O.hasPagination ? (g(), b("div", Qs, [
|
|
4854
|
+
x("div", {
|
|
4852
4855
|
class: re({
|
|
4853
|
-
"base-table__pagination-fixed":
|
|
4856
|
+
"base-table__pagination-fixed": O.fixedPagination,
|
|
4854
4857
|
"base-table__base-pagination": !0,
|
|
4855
|
-
"base-table__pagination-right":
|
|
4858
|
+
"base-table__pagination-right": O.paginationPosition === "right"
|
|
4856
4859
|
})
|
|
4857
4860
|
}, [
|
|
4858
|
-
E(kt, oe(
|
|
4859
|
-
"current-page":
|
|
4860
|
-
"onUpdate:currentPage":
|
|
4861
|
-
"page-size":
|
|
4862
|
-
"onUpdate:pageSize":
|
|
4863
|
-
total:
|
|
4861
|
+
E(kt, oe(i(m), {
|
|
4862
|
+
"current-page": i(d).current,
|
|
4863
|
+
"onUpdate:currentPage": Z[3] || (Z[3] = (le) => i(d).current = le),
|
|
4864
|
+
"page-size": i(d).size,
|
|
4865
|
+
"onUpdate:pageSize": Z[4] || (Z[4] = (le) => i(d).size = le),
|
|
4866
|
+
total: i(d).total,
|
|
4864
4867
|
onChange: ae
|
|
4865
4868
|
}), null, 16, ["current-page", "page-size", "total"])
|
|
4866
4869
|
], 2)
|
|
4867
|
-
])) :
|
|
4870
|
+
])) : z("", !0)
|
|
4868
4871
|
], 2),
|
|
4869
4872
|
E(us, {
|
|
4870
4873
|
ref_key: "configColumnsDialogRef",
|
|
4871
|
-
ref:
|
|
4874
|
+
ref: h,
|
|
4872
4875
|
"column-config": n.columnConfig,
|
|
4873
|
-
onSaveColumns:
|
|
4876
|
+
onSaveColumns: Z[5] || (Z[5] = (le) => a("saveColumns"))
|
|
4874
4877
|
}, null, 8, ["column-config"]),
|
|
4875
|
-
|
|
4878
|
+
O.enableColumnSearch ? (g(), R(cs, {
|
|
4876
4879
|
key: 0,
|
|
4877
|
-
count:
|
|
4878
|
-
onFind:
|
|
4879
|
-
onHidden:
|
|
4880
|
-
}, null, 8, ["count", "onFind", "onHidden"])) :
|
|
4880
|
+
count: i(H),
|
|
4881
|
+
onFind: i(U),
|
|
4882
|
+
onHidden: i(j)
|
|
4883
|
+
}, null, 8, ["count", "onFind", "onHidden"])) : z("", !0)
|
|
4881
4884
|
], 64);
|
|
4882
4885
|
};
|
|
4883
4886
|
}
|
|
4884
|
-
}), Zs = /* @__PURE__ */ te(zs, [["__scopeId", "data-v-
|
|
4887
|
+
}), Zs = /* @__PURE__ */ te(zs, [["__scopeId", "data-v-8d337774"]]), Ys = ge(Zs, "ZTable"), Xs = ge(Bo, "ZTableLinkButton"), Ws = { class: "z-tips-form-item__container" }, js = /* @__PURE__ */ X({
|
|
4885
4888
|
name: "ZTipsFormItem",
|
|
4886
4889
|
__name: "index",
|
|
4887
4890
|
props: {
|
|
@@ -4898,48 +4901,48 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
4898
4901
|
o("click");
|
|
4899
4902
|
};
|
|
4900
4903
|
return (u, a) => {
|
|
4901
|
-
const s = S("el-icon"),
|
|
4902
|
-
return g(),
|
|
4904
|
+
const s = S("el-icon"), r = S("el-tooltip"), l = S("el-form-item");
|
|
4905
|
+
return g(), R(l, {
|
|
4903
4906
|
class: "z-tips-form-item__form-item",
|
|
4904
4907
|
prop: u.prop
|
|
4905
4908
|
}, {
|
|
4906
4909
|
label: B(() => [
|
|
4907
|
-
|
|
4910
|
+
x("div", Ws, [
|
|
4908
4911
|
W(q(u.label) + " ", 1),
|
|
4909
|
-
u.content ? (g(),
|
|
4912
|
+
u.content ? (g(), R(r, {
|
|
4910
4913
|
key: 0,
|
|
4911
4914
|
content: u.content,
|
|
4912
4915
|
placement: "top",
|
|
4913
4916
|
"raw-content": u.rawContent
|
|
4914
4917
|
}, {
|
|
4915
4918
|
default: B(() => [
|
|
4916
|
-
|
|
4919
|
+
x("div", {
|
|
4917
4920
|
class: "tips__icon",
|
|
4918
4921
|
onClick: ye(n, ["stop", "prevent"])
|
|
4919
4922
|
}, [
|
|
4920
4923
|
E(s, null, {
|
|
4921
4924
|
default: B(() => [
|
|
4922
|
-
E(
|
|
4925
|
+
E(i(Mt))
|
|
4923
4926
|
]),
|
|
4924
4927
|
_: 1
|
|
4925
4928
|
})
|
|
4926
4929
|
])
|
|
4927
4930
|
]),
|
|
4928
4931
|
_: 1
|
|
4929
|
-
}, 8, ["content", "raw-content"])) :
|
|
4930
|
-
u.tipsText ? (g(),
|
|
4932
|
+
}, 8, ["content", "raw-content"])) : z("", !0),
|
|
4933
|
+
u.tipsText ? (g(), b("div", {
|
|
4931
4934
|
key: 1,
|
|
4932
4935
|
class: "tips__icon",
|
|
4933
4936
|
onClick: ye(n, ["stop", "prevent"])
|
|
4934
4937
|
}, [
|
|
4935
4938
|
E(s, null, {
|
|
4936
4939
|
default: B(() => [
|
|
4937
|
-
E(
|
|
4940
|
+
E(i(Mt))
|
|
4938
4941
|
]),
|
|
4939
4942
|
_: 1
|
|
4940
4943
|
}),
|
|
4941
4944
|
W(" " + q(u.tipsText), 1)
|
|
4942
|
-
])) :
|
|
4945
|
+
])) : z("", !0)
|
|
4943
4946
|
])
|
|
4944
4947
|
]),
|
|
4945
4948
|
default: B(() => [
|
|
@@ -4975,8 +4978,8 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
4975
4978
|
});
|
|
4976
4979
|
}, s = (l) => {
|
|
4977
4980
|
l.style.maxHeight = "", l.style.opacity = "";
|
|
4978
|
-
},
|
|
4979
|
-
return (l,
|
|
4981
|
+
}, r = G(() => !Oe(e.visible));
|
|
4982
|
+
return (l, D) => (g(), R(qt, {
|
|
4980
4983
|
name: "z-transition-fade-height",
|
|
4981
4984
|
onBeforeEnter: t,
|
|
4982
4985
|
onEnter: o,
|
|
@@ -4986,9 +4989,9 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
4986
4989
|
onAfterLeave: s
|
|
4987
4990
|
}, {
|
|
4988
4991
|
default: B(() => [
|
|
4989
|
-
!
|
|
4992
|
+
!r.value || l.visible ? (g(), b("div", Js, [
|
|
4990
4993
|
pe(l.$slots, "default", {}, void 0, !0)
|
|
4991
|
-
])) :
|
|
4994
|
+
])) : z("", !0)
|
|
4992
4995
|
]),
|
|
4993
4996
|
_: 3
|
|
4994
4997
|
}));
|
|
@@ -5003,7 +5006,7 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
5003
5006
|
distance: { default: "top" }
|
|
5004
5007
|
},
|
|
5005
5008
|
setup(e) {
|
|
5006
|
-
const t =
|
|
5009
|
+
const t = G(() => {
|
|
5007
5010
|
let o = "0", n = "0";
|
|
5008
5011
|
switch (e.direction) {
|
|
5009
5012
|
case "top":
|
|
@@ -5024,15 +5027,15 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
5024
5027
|
"--z-fade-slide-translate-y": n
|
|
5025
5028
|
};
|
|
5026
5029
|
});
|
|
5027
|
-
return (o, n) => (g(),
|
|
5030
|
+
return (o, n) => (g(), R(qt, { name: "z-fade-slide" }, {
|
|
5028
5031
|
default: B(() => [
|
|
5029
|
-
o.visible ? (g(),
|
|
5032
|
+
o.visible ? (g(), b("div", {
|
|
5030
5033
|
key: 0,
|
|
5031
5034
|
class: "z-fade-slide__container",
|
|
5032
5035
|
style: gt(t.value)
|
|
5033
5036
|
}, [
|
|
5034
5037
|
pe(o.$slots, "default", {}, void 0, !0)
|
|
5035
|
-
], 4)) :
|
|
5038
|
+
], 4)) : z("", !0)
|
|
5036
5039
|
]),
|
|
5037
5040
|
_: 3
|
|
5038
5041
|
}));
|
|
@@ -5063,12 +5066,12 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
5063
5066
|
if (document.execCommand)
|
|
5064
5067
|
document.execCommand("insertText", !1, u);
|
|
5065
5068
|
else {
|
|
5066
|
-
const { selectionStart: a, selectionEnd: s, value:
|
|
5069
|
+
const { selectionStart: a, selectionEnd: s, value: r } = e, l = r.length;
|
|
5067
5070
|
if (l) {
|
|
5068
|
-
e.value =
|
|
5069
|
-
const
|
|
5071
|
+
e.value = r.substring(0, a ?? 0) + u + r.substring(s ?? l);
|
|
5072
|
+
const D = (a ?? 0) + u.length;
|
|
5070
5073
|
ne().then(() => {
|
|
5071
|
-
e.setSelectionRange(
|
|
5074
|
+
e.setSelectionRange(D, D);
|
|
5072
5075
|
});
|
|
5073
5076
|
} else
|
|
5074
5077
|
e.value = u;
|
|
@@ -5090,10 +5093,10 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
5090
5093
|
const t = e.querySelector(".el-input__wrapper > input") || e, o = () => {
|
|
5091
5094
|
const u = t.value, a = Zt(u);
|
|
5092
5095
|
if (u !== a) {
|
|
5093
|
-
const s = t.selectionStart,
|
|
5096
|
+
const s = t.selectionStart, r = t.selectionEnd;
|
|
5094
5097
|
t.value = a;
|
|
5095
5098
|
const l = u.length - a.length;
|
|
5096
|
-
s &&
|
|
5099
|
+
s && r && t.setSelectionRange(s - l, r - l), wo(t);
|
|
5097
5100
|
}
|
|
5098
5101
|
};
|
|
5099
5102
|
t.addEventListener("input", o), e._handleInput = o;
|
|
@@ -5124,20 +5127,20 @@ const st = (e) => typeof e == "boolean" ? e ? "left" : void 0 : e, ys = (e) => {
|
|
|
5124
5127
|
}
|
|
5125
5128
|
}, cl = {
|
|
5126
5129
|
injectDirective: !0
|
|
5127
|
-
},
|
|
5130
|
+
}, dl = (e) => ({
|
|
5128
5131
|
...cl,
|
|
5129
5132
|
...e ?? {}
|
|
5130
|
-
}),
|
|
5131
|
-
version:
|
|
5133
|
+
}), Dl = "0.5.18", pl = {
|
|
5134
|
+
version: Dl
|
|
5132
5135
|
};
|
|
5133
|
-
function
|
|
5136
|
+
function Rl(e, t, o) {
|
|
5134
5137
|
if (je(e))
|
|
5135
5138
|
for (const [n, u] of Object.entries(e))
|
|
5136
5139
|
ct(n, u);
|
|
5137
5140
|
else
|
|
5138
5141
|
ct(e, { component: o, defaultPraseStrategy: t });
|
|
5139
5142
|
}
|
|
5140
|
-
function
|
|
5143
|
+
function Nl(e) {
|
|
5141
5144
|
return go(e);
|
|
5142
5145
|
}
|
|
5143
5146
|
const ml = (e, t) => {
|
|
@@ -5145,7 +5148,7 @@ const ml = (e, t) => {
|
|
|
5145
5148
|
return e?.length && n.value.setBaseColumnsGetter(() => fe(e)), t?.baseTableRef && n.value.onChange(() => {
|
|
5146
5149
|
t.baseTableRef?.value?.refresh();
|
|
5147
5150
|
}), {
|
|
5148
|
-
formBuilder:
|
|
5151
|
+
formBuilder: i(n)
|
|
5149
5152
|
};
|
|
5150
5153
|
}, Vl = (e, t) => {
|
|
5151
5154
|
const { formBuilder: o } = ml([], t);
|
|
@@ -5194,73 +5197,74 @@ const Wt = (e) => {
|
|
|
5194
5197
|
return `on${t.toUpperCase() + o.join("")}`;
|
|
5195
5198
|
}, Ql = () => {
|
|
5196
5199
|
Jt()?.appContext || console.warn("useOpenDialog must be called in setup");
|
|
5197
|
-
const t = T([]), { mount: o } = gl(), n =
|
|
5198
|
-
if (
|
|
5199
|
-
const
|
|
5200
|
-
if (
|
|
5201
|
-
if (
|
|
5202
|
-
t.value[
|
|
5200
|
+
const t = T([]), { mount: o } = gl(), n = dn(), u = (r, l) => {
|
|
5201
|
+
if (r) {
|
|
5202
|
+
const D = t.value.findIndex((d) => d.id === r);
|
|
5203
|
+
if (D > -1)
|
|
5204
|
+
if (l)
|
|
5205
|
+
t.value[D].cleanup(), t.value.splice(D, 1);
|
|
5203
5206
|
else {
|
|
5204
|
-
for (let d =
|
|
5207
|
+
for (let d = D; d < t.value.length; d++)
|
|
5205
5208
|
t.value[d].cleanup();
|
|
5206
|
-
t.value.splice(
|
|
5209
|
+
t.value.splice(D);
|
|
5207
5210
|
}
|
|
5208
5211
|
} else
|
|
5209
|
-
t.value.forEach((
|
|
5210
|
-
|
|
5212
|
+
t.value.forEach((D) => {
|
|
5213
|
+
D.cleanup();
|
|
5211
5214
|
}), t.value = [];
|
|
5212
|
-
}
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
const
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
()
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
)]: (C) => {
|
|
5247
|
-
c(C), u();
|
|
5248
|
-
}
|
|
5249
|
-
}),
|
|
5250
|
-
p
|
|
5251
|
-
);
|
|
5252
|
-
t.value.push({
|
|
5253
|
-
id: D,
|
|
5254
|
-
cleanup: () => {
|
|
5255
|
-
m(p), f?.();
|
|
5215
|
+
}, a = async (r, l, D, d) => {
|
|
5216
|
+
const m = Hn(r) ? jo({
|
|
5217
|
+
loader: r,
|
|
5218
|
+
delay: 0
|
|
5219
|
+
// 立即加载
|
|
5220
|
+
}) : r;
|
|
5221
|
+
await ne();
|
|
5222
|
+
const F = D ?? Fl(), c = document.createElement("div");
|
|
5223
|
+
return new Promise((f, p) => {
|
|
5224
|
+
const C = d?.notCloseBeforeRouteChange ? null : et(
|
|
5225
|
+
() => n.fullPath,
|
|
5226
|
+
() => {
|
|
5227
|
+
u(), p();
|
|
5228
|
+
}
|
|
5229
|
+
), { unmount: A } = o(
|
|
5230
|
+
vt(m, {
|
|
5231
|
+
...l,
|
|
5232
|
+
modelValue: !0,
|
|
5233
|
+
"onUpdate:modelValue": (h) => {
|
|
5234
|
+
h || ne(() => {
|
|
5235
|
+
t.value.find((k) => k.id === F) && (u(F), p());
|
|
5236
|
+
});
|
|
5237
|
+
},
|
|
5238
|
+
[Wt(
|
|
5239
|
+
"dialog:confirm"
|
|
5240
|
+
/* CONFIRM */
|
|
5241
|
+
)]: (h) => {
|
|
5242
|
+
f(h), u();
|
|
5243
|
+
},
|
|
5244
|
+
[Wt(
|
|
5245
|
+
"dialog:cancel"
|
|
5246
|
+
/* CANCEL */
|
|
5247
|
+
)]: (h) => {
|
|
5248
|
+
p(h), u();
|
|
5256
5249
|
}
|
|
5257
|
-
})
|
|
5250
|
+
}),
|
|
5251
|
+
c
|
|
5252
|
+
);
|
|
5253
|
+
t.value.push({
|
|
5254
|
+
id: F,
|
|
5255
|
+
cleanup: () => {
|
|
5256
|
+
A(c), C?.();
|
|
5257
|
+
}
|
|
5258
5258
|
});
|
|
5259
|
-
}
|
|
5260
|
-
|
|
5259
|
+
});
|
|
5260
|
+
};
|
|
5261
|
+
return {
|
|
5262
|
+
openDialog: a,
|
|
5263
|
+
closeDialog: u,
|
|
5264
|
+
openDialogIgnoreRouteChange: (r, l, D, d) => a(r, l, D, { ...d, notCloseBeforeRouteChange: !0 })
|
|
5261
5265
|
};
|
|
5262
5266
|
}, Cl = (e, t) => {
|
|
5263
|
-
const o =
|
|
5267
|
+
const o = dl(t);
|
|
5264
5268
|
(o?.components ?? Object.keys(zt)).forEach((u) => {
|
|
5265
5269
|
const a = Reflect.get(zt, u);
|
|
5266
5270
|
a.install ? e.use(a, t) : console.error(`组件${u}不存在`);
|
|
@@ -5317,21 +5321,21 @@ export {
|
|
|
5317
5321
|
go as createBaseFormItem,
|
|
5318
5322
|
Eo as createBaseTableColumn,
|
|
5319
5323
|
Pl as createBaseTableColumns,
|
|
5320
|
-
|
|
5324
|
+
Nl as createCustomFormItem,
|
|
5321
5325
|
Ml as createSortColumn,
|
|
5322
5326
|
zl as default,
|
|
5323
|
-
|
|
5327
|
+
Rl as defineCustomFormComponent,
|
|
5324
5328
|
Ol as formatArrayKeyToObjectValue,
|
|
5325
5329
|
Hl as formatGroupSelectInputToObject,
|
|
5326
5330
|
Io as formatPasteText,
|
|
5327
5331
|
Il as formatSecond,
|
|
5328
5332
|
kl as formatSeconds,
|
|
5329
5333
|
Ll as formatSelectAndInputGroupValue,
|
|
5330
|
-
|
|
5334
|
+
Nn as getAppointDateRange,
|
|
5331
5335
|
io as getCurrentDateRange,
|
|
5332
5336
|
Sl as getDaysRange,
|
|
5333
5337
|
ce as getRecentDateRange,
|
|
5334
|
-
|
|
5338
|
+
du as handleLongMaxValue,
|
|
5335
5339
|
il as initZUiDirectives,
|
|
5336
5340
|
Tl as isAfterNow,
|
|
5337
5341
|
Hn as isAsyncComponent,
|
|
@@ -5353,5 +5357,5 @@ export {
|
|
|
5353
5357
|
Ql as useOpenDialog,
|
|
5354
5358
|
ze as useOptions,
|
|
5355
5359
|
Vs as useResizeObserver,
|
|
5356
|
-
|
|
5360
|
+
Ns as useTableSticky
|
|
5357
5361
|
};
|