antd-vue-dbthor 1.0.77 → 1.0.78
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/docs/apis/user.d.ts +1 -0
- package/dist/lib/index.es.js +72 -72
- package/dist/lib/index.es.js.gz +0 -0
- package/dist/lib/index.umd.js +9 -9
- package/dist/lib/index.umd.js.gz +0 -0
- package/dist/src/components/table/index.type.d.ts +7 -3
- package/dist/src/components/table/useDataSource.d.ts +3 -1
- package/package.json +1 -1
package/dist/docs/apis/user.d.ts
CHANGED
|
@@ -5,5 +5,6 @@ export declare const updateUserApi: ({ id, ...data }: any, config?: any) => Prom
|
|
|
5
5
|
export declare const deleteUserApi: ({ id }: any, config?: any) => Promise< AxiosResponse<any, any>>;
|
|
6
6
|
export declare const getUserDetailsApi: (params?: any, config?: any) => Promise< AxiosResponse<any, any>>;
|
|
7
7
|
export declare const downloadUserTemplateApi: (params?: any, config?: any) => Promise< AxiosResponse<any, any>>;
|
|
8
|
+
export declare const downloadUserTemplateByBlobApi: (params?: any) => Promise< AxiosResponse<any, any>>;
|
|
8
9
|
export declare const exportUsersApi: (params?: any, config?: any) => Promise< AxiosResponse<any, any>>;
|
|
9
10
|
export declare const importUserApi: (data?: any, config?: any) => Promise< AxiosResponse<any, any>>;
|
package/dist/lib/index.es.js
CHANGED
|
@@ -311,11 +311,11 @@ const ro = ["emptyText", "expandIcon", "title", "footer", "summary", "expandedRo
|
|
|
311
311
|
const m = getComputedStyle(n.value), B = (($ = n.value) == null ? void 0 : $.clientHeight) - parseFloat(m == null ? void 0 : m.paddingTop) - parseFloat(m == null ? void 0 : m.paddingBottom), T = ((q = (V = l.value) == null ? void 0 : V.map) == null ? void 0 : q.call(V, (Y) => {
|
|
312
312
|
var Q;
|
|
313
313
|
return g((Q = n.value) == null ? void 0 : Q.querySelector(`${Y}`));
|
|
314
|
-
})) || [0], D = (_ = T == null ? void 0 : T.reduce) == null ? void 0 : _.call(T, (Y, Q) => Y - Q, B),
|
|
314
|
+
})) || [0], D = (_ = T == null ? void 0 : T.reduce) == null ? void 0 : _.call(T, (Y, Q) => Y - Q, B), M = (k = (L = i.value) == null ? void 0 : L.map) == null ? void 0 : k.call(L, (Y) => {
|
|
315
315
|
var Q;
|
|
316
316
|
return g((Q = n.value) == null ? void 0 : Q.querySelector(`${Y}`));
|
|
317
|
-
}), j = (G =
|
|
318
|
-
s.value !==
|
|
317
|
+
}), j = (G = M == null ? void 0 : M.reduce) == null ? void 0 : G.call(M, (Y, Q) => Y + Q, 0), O = (W = Math == null ? void 0 : Math.max) == null ? void 0 : W.call(Math, D, u.value);
|
|
318
|
+
s.value !== O && O !== f.value && (f.value = j, s.value = j > O ? O : null);
|
|
319
319
|
}, (F = x == null ? void 0 : x.value) == null ? void 0 : F.wait, (P = x == null ? void 0 : x.value) == null ? void 0 : P.options), v = J(new ResizeObserver(p)), g = (C) => {
|
|
320
320
|
if (!C) return 0;
|
|
321
321
|
const m = getComputedStyle(C);
|
|
@@ -395,20 +395,20 @@ hl.exports = function() {
|
|
|
395
395
|
var p, v;
|
|
396
396
|
p = f, v = l && l.formats;
|
|
397
397
|
for (var g = (f = p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(B, T, D) {
|
|
398
|
-
var
|
|
399
|
-
return T || v[D] || e[D] || v[
|
|
400
|
-
return
|
|
398
|
+
var M = D && D.toUpperCase();
|
|
399
|
+
return T || v[D] || e[D] || v[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(j, O, $) {
|
|
400
|
+
return O || $.slice(1);
|
|
401
401
|
});
|
|
402
402
|
})).match(t), w = g.length, S = 0; S < w; S += 1) {
|
|
403
403
|
var F = g[S], P = y[F], C = P && P[0], m = P && P[1];
|
|
404
404
|
g[S] = m ? { regex: C, parser: m } : F.replace(/^\[|\]$/g, "");
|
|
405
405
|
}
|
|
406
406
|
return function(B) {
|
|
407
|
-
for (var T = {}, D = 0,
|
|
407
|
+
for (var T = {}, D = 0, M = 0; D < w; D += 1) {
|
|
408
408
|
var j = g[D];
|
|
409
|
-
if (typeof j == "string")
|
|
409
|
+
if (typeof j == "string") M += j.length;
|
|
410
410
|
else {
|
|
411
|
-
var
|
|
411
|
+
var O = j.regex, $ = j.parser, V = B.slice(M), q = O.exec(V)[0];
|
|
412
412
|
$.call(T, q), B = B.replace(q, "");
|
|
413
413
|
}
|
|
414
414
|
}
|
|
@@ -429,8 +429,8 @@ hl.exports = function() {
|
|
|
429
429
|
this.$u = P;
|
|
430
430
|
var m = C[1];
|
|
431
431
|
if (typeof m == "string") {
|
|
432
|
-
var B = C[2] === !0, T = C[3] === !0, D = B || T,
|
|
433
|
-
T && (
|
|
432
|
+
var B = C[2] === !0, T = C[3] === !0, D = B || T, M = C[2];
|
|
433
|
+
T && (M = C[2]), l = this.$locale(), !B && M && (l = v.Ls[M]), this.$d = function(V, q, _, L) {
|
|
434
434
|
try {
|
|
435
435
|
if (["x", "X"].indexOf(q) > -1) return new Date((q === "X" ? 1e3 : 1) * V);
|
|
436
436
|
var k = x(q)(V), G = k.year, W = k.month, Y = k.day, Q = k.hours, oe = k.minutes, Fe = k.seconds, se = k.milliseconds, be = k.zone, Be = k.week, xe = /* @__PURE__ */ new Date(), ce = Y || (G || W ? 1 : xe.getDate()), fe = G || xe.getFullYear(), We = 0;
|
|
@@ -440,15 +440,15 @@ hl.exports = function() {
|
|
|
440
440
|
} catch {
|
|
441
441
|
return /* @__PURE__ */ new Date("");
|
|
442
442
|
}
|
|
443
|
-
}(F, m, P, v), this.init(),
|
|
444
|
-
} else if (m instanceof Array) for (var j = m.length,
|
|
445
|
-
C[1] = m[
|
|
443
|
+
}(F, m, P, v), this.init(), M && M !== !0 && (this.$L = this.locale(M).$L), D && F != this.format(m) && (this.$d = /* @__PURE__ */ new Date("")), l = {};
|
|
444
|
+
} else if (m instanceof Array) for (var j = m.length, O = 1; O <= j; O += 1) {
|
|
445
|
+
C[1] = m[O - 1];
|
|
446
446
|
var $ = v.apply(this, C);
|
|
447
447
|
if ($.isValid()) {
|
|
448
448
|
this.$d = $.$d, this.$L = $.$L, this.init();
|
|
449
449
|
break;
|
|
450
450
|
}
|
|
451
|
-
|
|
451
|
+
O === j && (this.$d = /* @__PURE__ */ new Date(""));
|
|
452
452
|
}
|
|
453
453
|
else w.call(this, S);
|
|
454
454
|
};
|
|
@@ -684,8 +684,8 @@ function yo(e, t, r, o) {
|
|
|
684
684
|
let T;
|
|
685
685
|
if (S) g(v), T = "<!--teleport start anchor--><!--teleport anchor-->";
|
|
686
686
|
else {
|
|
687
|
-
const { getBuffer: D, push:
|
|
688
|
-
|
|
687
|
+
const { getBuffer: D, push: M } = xl();
|
|
688
|
+
M("<!--teleport start anchor-->"), g(M), M("<!--teleport anchor-->"), T = D();
|
|
689
689
|
}
|
|
690
690
|
m.splice(B, 0, T), v("<!--teleport end-->");
|
|
691
691
|
})(s, (v) => {
|
|
@@ -805,7 +805,7 @@ const Pr = ["index", "control"], vr = [...Pr], Ho = [...Pr], ua = (e, t, r) => {
|
|
|
805
805
|
}, Es = (e) => {
|
|
806
806
|
const t = e, r = c(t, "apis"), o = c(t, "columns"), n = c(t, "columnsAlign"), a = c(t, "pagination"), l = c(t, "columnsTimeFormat"), i = c(t, "columnsEmptyText"), u = c(t, "controlColumnBtns"), d = c(t, "indexColumn"), s = c(t, "indexColumnWidth"), h = c(t, "indexColumnProps"), y = c(t, "controlColumn"), x = c(t, "controlColumnWidth"), f = c(t, "controlColumnWidthProps"), p = c(t, "openCUModalForm"), v = c(t, "columnsTitleNoWrap"), g = c(t, "columnsEllipsis"), w = c(t, "columnsSorter"), S = c(t, "cuFormModel");
|
|
807
807
|
c(t, "emits");
|
|
808
|
-
const F = c(t, "cuModalLoading"), P = c(t, "onBeforeRowEditBackFill"), C = c(t, "fieldsNames"), m = c(t, "onGetRowDetail"), B = c(t, "cuFormBackFillByGetDetail"), T = c(t, "updateSource"), D = c(t, "onBeforeRowDelete"),
|
|
808
|
+
const F = c(t, "cuModalLoading"), P = c(t, "onBeforeRowEditBackFill"), C = c(t, "fieldsNames"), m = c(t, "onGetRowDetail"), B = c(t, "cuFormBackFillByGetDetail"), T = c(t, "updateSource"), D = c(t, "onBeforeRowDelete"), M = c(t, "onRowDeleteSuccess"), j = c(t, "onRowDeleteError"), O = c(t, "detailModalLoading"), $ = c(t, "openDetailModal"), V = c(t, "detailsDataSource"), q = c(t, "onBeforeRequestDetails"), _ = c(t, "detailBackFillByGetDetail"), L = c(t, "tableTextConfig"), k = c(t, "columnSettingBtn"), G = c(t, "onCellEditConfirm"), W = F, Y = O, Q = J([]), oe = J([]), Fe = J({}), se = I(() => {
|
|
809
809
|
var H, te;
|
|
810
810
|
return (te = (H = oe == null ? void 0 : oe.value) == null ? void 0 : H.filter) == null ? void 0 : te.call(H, ({ show: re }) => re);
|
|
811
811
|
}), be = Zo(), Be = async (H) => {
|
|
@@ -820,7 +820,7 @@ const Pr = ["index", "control"], vr = [...Pr], Ho = [...Pr], ua = (e, t, r) => {
|
|
|
820
820
|
var te, re, ne, Z, pe, Ne, Oe, Re, Ve, Ge;
|
|
821
821
|
try {
|
|
822
822
|
const Ae = await ((te = D.value) == null ? void 0 : te.call(D, H)) || { id: H == null ? void 0 : H.id }, rr = await ((ne = (re = r.value) == null ? void 0 : re.delete) == null ? void 0 : ne.call(re, Ae, H));
|
|
823
|
-
if ((Z = T.value) == null || Z.call(T), ((pe =
|
|
823
|
+
if ((Z = T.value) == null || Z.call(T), ((pe = M.value) == null ? void 0 : pe.call(M, rr)) === !1) return;
|
|
824
824
|
pt.success((Oe = (Ne = L.value) == null ? void 0 : Ne.message) == null ? void 0 : Oe.deleteSuccess);
|
|
825
825
|
} catch (Ae) {
|
|
826
826
|
if (((Re = j.value) == null ? void 0 : Re.call(j, Ae)) === !1) return;
|
|
@@ -882,8 +882,8 @@ const Pr = ["index", "control"], vr = [...Pr], Ho = [...Pr], ua = (e, t, r) => {
|
|
|
882
882
|
} };
|
|
883
883
|
}, Ts = (e, t, r, { columnsEmptyText: o, columnsTimeFormat: n, controlColumnBtns: a, slots: l, deleteRow: i, editRow: u, openRowDetails: d, fieldsNames: s, columnsAlign: h, editData: y, onCellEditConfirm: x }) => {
|
|
884
884
|
var _;
|
|
885
|
-
const { text: f, record: p, index: v, column: g } = e, { type: w, dataIndex: S, customRender: F, editable: P, align: C, editControl: m, editControlProps: B, emptyText: T, timeFormat: D, numberFormat:
|
|
886
|
-
let $, V = Nu([p[`${s == null ? void 0 : s.editCellTempKey}`], (
|
|
885
|
+
const { text: f, record: p, index: v, column: g } = e, { type: w, dataIndex: S, customRender: F, editable: P, align: C, editControl: m, editControlProps: B, emptyText: T, timeFormat: D, numberFormat: M, numberComputed: j, formItemProps: O } = t;
|
|
886
|
+
let $, V = Nu([p[`${s == null ? void 0 : s.editCellTempKey}`], (O == null ? void 0 : O.name) || S], 2);
|
|
887
887
|
switch (w) {
|
|
888
888
|
case "date-range":
|
|
889
889
|
$ = Qe((_ = S == null ? void 0 : S.map) == null ? void 0 : _.call(S, (L) => {
|
|
@@ -908,7 +908,7 @@ const Pr = ["index", "control"], vr = [...Pr], Ho = [...Pr], ua = (e, t, r) => {
|
|
|
908
908
|
if (w === "date") return f ? (Y = (W = Me(f)) == null ? void 0 : W.format) == null ? void 0 : Y.call(W, D || n) : f || T || o;
|
|
909
909
|
if (w === "number") {
|
|
910
910
|
const se = Number(f);
|
|
911
|
-
return ye(
|
|
911
|
+
return ye(M) ? M == null ? void 0 : M(mo(se), f) : ((Fe = (oe = (Q = mo) == null ? void 0 : Q(ye(j) ? j == null ? void 0 : j(new po(se), po) : se)) == null ? void 0 : oe.format) == null ? void 0 : Fe.call(oe, M || "0[.]00")) || T || o;
|
|
912
912
|
}
|
|
913
913
|
if (w === "control") {
|
|
914
914
|
const se = (xe) => {
|
|
@@ -931,13 +931,13 @@ const Pr = ["index", "control"], vr = [...Pr], Ho = [...Pr], ua = (e, t, r) => {
|
|
|
931
931
|
}
|
|
932
932
|
return f || T || o;
|
|
933
933
|
};
|
|
934
|
-
return P && !(Pr != null && Pr.includes(w)) ? b(() => b("p", { class: ["control-cell", `control-${C ?? h}-cell`] }, [Vu(Qe(y.value), V) ? b(mt, null, [b(Co, U({ type: m || (
|
|
934
|
+
return P && !(Pr != null && Pr.includes(w)) ? b(() => b("p", { class: ["control-cell", `control-${C ?? h}-cell`] }, [Vu(Qe(y.value), V) ? b(mt, null, [b(Co, U({ type: m || (O == null ? void 0 : O.control), model: y.value, name: V }, B || (O == null ? void 0 : O.controlProps)), null), b($e, { onClick: () => (async (L) => {
|
|
935
935
|
var W, Y;
|
|
936
936
|
let k = le(y.value, V);
|
|
937
937
|
const G = () => {
|
|
938
938
|
y.value = en(y.value, V);
|
|
939
939
|
};
|
|
940
|
-
if (await (x == null ? void 0 : x({ name:
|
|
940
|
+
if (await (x == null ? void 0 : x({ name: O == null ? void 0 : O.name, dataIndex: S, handlePath: V, record: L, value: k, closeCellEdit: G }, y)) !== !1) {
|
|
941
941
|
switch (w) {
|
|
942
942
|
case "date-range":
|
|
943
943
|
(W = k == null ? void 0 : k.forEach) == null || W.call(k, (Q, oe) => {
|
|
@@ -946,10 +946,10 @@ const Pr = ["index", "control"], vr = [...Pr], Ho = [...Pr], ua = (e, t, r) => {
|
|
|
946
946
|
});
|
|
947
947
|
break;
|
|
948
948
|
case "date":
|
|
949
|
-
wr(L, (
|
|
949
|
+
wr(L, (O == null ? void 0 : O.name) || S, fo(k) ? (Y = k == null ? void 0 : k.format) == null ? void 0 : Y.call(k, D || n) : T || o);
|
|
950
950
|
break;
|
|
951
951
|
default:
|
|
952
|
-
wr(L, (
|
|
952
|
+
wr(L, (O == null ? void 0 : O.name) || S, k);
|
|
953
953
|
}
|
|
954
954
|
G();
|
|
955
955
|
}
|
|
@@ -997,47 +997,47 @@ const Ms = (e) => {
|
|
|
997
997
|
}));
|
|
998
998
|
}) : !1, Rs = (e) => {
|
|
999
999
|
const t = e, r = c(t, "apis"), o = c(t, "createBtn"), n = c(t, "columns"), a = c(t, "tableTextConfig"), l = c(t, "cuFormProps"), i = c(t, "cuFormModalProps"), u = c(t, "cuFormRowProps"), d = c(t, "cuFormColProps"), s = c(t, "tableRef"), h = c(t, "onBeforeCuFormSubmit"), y = c(t, "onCuFormSubmitSuccess"), x = c(t, "onCuFormSubmitError"), f = c(t, "onCuFormCancel"), p = c(t, "updateSource"), v = c(t, "defaultValues"), g = c(t, "emits"), w = v.value ? Za(v.value) : {}, S = J(!1), F = J(!1), P = J(!1), C = J(!1), m = At({ values: Qe(w) });
|
|
1000
|
-
ze(() => m.values, (
|
|
1001
|
-
g.value("cuFormModelChange",
|
|
1000
|
+
ze(() => m.values, (O, $) => {
|
|
1001
|
+
g.value("cuFormModelChange", O, $);
|
|
1002
1002
|
}, { deep: !0 }), ze(C, () => {
|
|
1003
1003
|
g.value("cuFormEditStatusChange", C.value);
|
|
1004
1004
|
});
|
|
1005
|
-
const B = J(), T = async (
|
|
1006
|
-
P.value = !0, C.value =
|
|
1005
|
+
const B = J(), T = async (O = !1, $) => {
|
|
1006
|
+
P.value = !0, C.value = O;
|
|
1007
1007
|
}, D = async () => {
|
|
1008
|
-
var
|
|
1008
|
+
var O, $, V, q, _;
|
|
1009
1009
|
try {
|
|
1010
|
-
const L = await (($ = (
|
|
1010
|
+
const L = await (($ = (O = B.value).validate) == null ? void 0 : $.call(O));
|
|
1011
1011
|
F.value = !0;
|
|
1012
1012
|
let k = null;
|
|
1013
1013
|
const G = ye(h.value) ? await ((V = h.value) == null ? void 0 : V.call(h, L, JSON.parse(JSON.stringify(m.values)))) : null;
|
|
1014
1014
|
if (G === !1) return;
|
|
1015
1015
|
k = G || L, await ((_ = (q = r.value) == null ? void 0 : q[C.value ? "update" : "create"]) == null ? void 0 : _.call(q, k).then((W) => {
|
|
1016
1016
|
var Y, Q, oe, Fe, se, be;
|
|
1017
|
-
|
|
1017
|
+
((Y = y.value) == null ? void 0 : Y.call(y, W, C.value, { cancelCUModalForm: M })) !== !1 && (M(), (Q = p.value) == null || Q.call(p), pt.success(`${C.value ? (Fe = (oe = a.value) == null ? void 0 : oe.message) == null ? void 0 : Fe.updateSuccess : (be = (se = a.value) == null ? void 0 : se.message) == null ? void 0 : be.createSuccess}`));
|
|
1018
1018
|
}).catch((W) => {
|
|
1019
1019
|
var Y, Q, oe, Fe, se;
|
|
1020
|
-
((Y = x.value) == null ? void 0 : Y.call(x, W, C.value)) !== !1 && pt.error(`${C.value ? (oe = (Q = a.value) == null ? void 0 : Q.message) == null ? void 0 : oe.updateError : (se = (Fe = a.value) == null ? void 0 : Fe.message) == null ? void 0 : se.createError}`);
|
|
1020
|
+
((Y = x.value) == null ? void 0 : Y.call(x, W, C.value, { cancelCUModalForm: M })) !== !1 && pt.error(`${C.value ? (oe = (Q = a.value) == null ? void 0 : Q.message) == null ? void 0 : oe.updateError : (se = (Fe = a.value) == null ? void 0 : Fe.message) == null ? void 0 : se.createError}`);
|
|
1021
1021
|
}).finally(() => {
|
|
1022
1022
|
F.value = !1;
|
|
1023
1023
|
}));
|
|
1024
1024
|
} catch (L) {
|
|
1025
1025
|
throw L;
|
|
1026
1026
|
}
|
|
1027
|
-
},
|
|
1028
|
-
var
|
|
1029
|
-
((
|
|
1027
|
+
}, M = () => {
|
|
1028
|
+
var O, $;
|
|
1029
|
+
((O = f.value) == null ? void 0 : O.call(f)) !== !1 && (($ = f.value) == null || $.call(f), m.values = Qe(w), P.value = !1);
|
|
1030
1030
|
}, j = I(() => B.value);
|
|
1031
|
-
return { CreateBtn: (
|
|
1031
|
+
return { CreateBtn: (O) => {
|
|
1032
1032
|
var q;
|
|
1033
1033
|
if (!o.value || !((q = r.value) != null && q.create)) return null;
|
|
1034
|
-
const { children: $, ...V } = ot(o.value || {},
|
|
1034
|
+
const { children: $, ...V } = ot(o.value || {}, O || {});
|
|
1035
1035
|
return b($e, U({ class: "flex items-center", onClick: () => T(!1) }, V), function(_) {
|
|
1036
1036
|
return typeof _ == "function" || Object.prototype.toString.call(_) === "[object Object]" && !yt(_);
|
|
1037
1037
|
}($) ? $ : { default: () => [$] });
|
|
1038
1038
|
}, CUModalForm: () => {
|
|
1039
|
-
var
|
|
1040
|
-
return b(ol, U({ open: P.value, "onUpdate:open": (_) => P.value = _, title: C.value ? ($ = (
|
|
1039
|
+
var O, $, V, q;
|
|
1040
|
+
return b(ol, U({ open: P.value, "onUpdate:open": (_) => P.value = _, title: C.value ? ($ = (O = a.value) == null ? void 0 : O.modalTitle) == null ? void 0 : $.update : (q = (V = a.value) == null ? void 0 : V.modalTitle) == null ? void 0 : q.create, onCancel: M, onOk: D, confirmLoading: F.value, getContainer: () => s.value, maskClosable: !1, destroyOnClose: !0 }, i.value), { default: () => [b(nl, { active: !0, loading: S == null ? void 0 : S.value }, { default: () => [b(Cr, U({ ref: B, model: m.values }, l.value), { default: () => [b(al, U({ gutter: [24, 10] }, u.value), { default: () => {
|
|
1041
1041
|
var _, L, k, G;
|
|
1042
1042
|
return [(G = (k = (L = (_ = n.value) == null ? void 0 : _.sort) == null ? void 0 : L.call(_, (W, Y) => {
|
|
1043
1043
|
var Q, oe;
|
|
@@ -1057,9 +1057,9 @@ const Ms = (e) => {
|
|
|
1057
1057
|
const p = async () => {
|
|
1058
1058
|
var g;
|
|
1059
1059
|
(g = r.value) != null && g.list && (async (w) => {
|
|
1060
|
-
var S, F, P, C, m, B, T, D,
|
|
1061
|
-
ft(i.value) && await ((S = i.value) == null ? void 0 : S.call(i, w)) === !1 || ((F = f == null ? void 0 : f.abort) == null || F.call(f), y.value = !0, f = new AbortController(), (
|
|
1062
|
-
const
|
|
1060
|
+
var S, F, P, C, m, B, T, D, M;
|
|
1061
|
+
ft(i.value) && await ((S = i.value) == null ? void 0 : S.call(i, w)) === !1 || ((F = f == null ? void 0 : f.abort) == null || F.call(f), y.value = !0, f = new AbortController(), (M = (D = (T = (B = (m = (C = (P = r.value) == null ? void 0 : P.list) == null ? void 0 : C.call(P, w, { signal: f == null ? void 0 : f.signal })) == null ? void 0 : m.then(async (j) => {
|
|
1062
|
+
const O = await new Promise(async ($, V) => {
|
|
1063
1063
|
var q;
|
|
1064
1064
|
try {
|
|
1065
1065
|
return ft(a.value) ? $(await ((q = a.value) == null ? void 0 : q.call(a, j))) : $(j);
|
|
@@ -1067,11 +1067,11 @@ const Ms = (e) => {
|
|
|
1067
1067
|
return V(_);
|
|
1068
1068
|
}
|
|
1069
1069
|
});
|
|
1070
|
-
h.value = le(
|
|
1070
|
+
h.value = le(O, o.value.list) || [], x.value = le(O, o.value.total) || 0;
|
|
1071
1071
|
})) == null ? void 0 : B.catch) == null ? void 0 : T.call(B, (j) => {
|
|
1072
|
-
var
|
|
1073
|
-
h.value = [], x.value = 0, (
|
|
1074
|
-
})) == null ? void 0 : D.finally) == null ||
|
|
1072
|
+
var O;
|
|
1073
|
+
h.value = [], x.value = 0, (O = l.value) == null || O.call(l, j);
|
|
1074
|
+
})) == null ? void 0 : D.finally) == null || M.call(D, () => {
|
|
1075
1075
|
y.value = !1, f = null;
|
|
1076
1076
|
}));
|
|
1077
1077
|
})(n.value);
|
|
@@ -1768,8 +1768,8 @@ const fn = function(e) {
|
|
|
1768
1768
|
return typeof P == "object" && P && (Ea in P || Ta in P);
|
|
1769
1769
|
}(F)) {
|
|
1770
1770
|
let P = function(m, B) {
|
|
1771
|
-
process.env.NODE_ENV === "production" || typeof F == "object" && (F != null && F[Ea]) || [rc, oc, ...s].forEach((
|
|
1772
|
-
const T = m.replace(/[A-Z]/g, (
|
|
1771
|
+
process.env.NODE_ENV === "production" || typeof F == "object" && (F != null && F[Ea]) || [rc, oc, ...s].forEach((M) => M(m, B, { path: i, hashId: a, parentSelectors: n }));
|
|
1772
|
+
const T = m.replace(/[A-Z]/g, (M) => `-${M.toLowerCase()}`);
|
|
1773
1773
|
let D = B;
|
|
1774
1774
|
Gs[m] || typeof D != "number" || D === 0 || (D = `${D}px`), m === "animationName" && (B != null && B._keyframe) && (x(B), D = B.getName(a)), h += `${T}:${D};`;
|
|
1775
1775
|
};
|
|
@@ -1779,9 +1779,9 @@ const fn = function(e) {
|
|
|
1779
1779
|
}) : P(w, C);
|
|
1780
1780
|
} else {
|
|
1781
1781
|
let P = !1, C = w.trim(), m = !1;
|
|
1782
|
-
(r || o) && a ? C.startsWith("@") ? P = !0 : C = function(D,
|
|
1783
|
-
if (!
|
|
1784
|
-
const
|
|
1782
|
+
(r || o) && a ? C.startsWith("@") ? P = !0 : C = function(D, M, j) {
|
|
1783
|
+
if (!M) return D;
|
|
1784
|
+
const O = `.${M}`, $ = j === "low" ? `:where(${O})` : O;
|
|
1785
1785
|
return D.split(",").map((q) => {
|
|
1786
1786
|
var _;
|
|
1787
1787
|
const L = q.trim().split(/\s+/);
|
|
@@ -1811,13 +1811,13 @@ function Ma(e, t) {
|
|
|
1811
1811
|
if (nc(y)) {
|
|
1812
1812
|
const [m, B] = function(T) {
|
|
1813
1813
|
const D = qt[T];
|
|
1814
|
-
let
|
|
1815
|
-
if (D && Ar()) if (Gl)
|
|
1814
|
+
let M = null;
|
|
1815
|
+
if (D && Ar()) if (Gl) M = "_FILE_STYLE__";
|
|
1816
1816
|
else {
|
|
1817
1817
|
const j = document.querySelector(`style[${Nt}="${qt[T]}"]`);
|
|
1818
|
-
j ?
|
|
1818
|
+
j ? M = j.innerHTML : delete qt[T];
|
|
1819
1819
|
}
|
|
1820
|
-
return [
|
|
1820
|
+
return [M, D];
|
|
1821
1821
|
}(y);
|
|
1822
1822
|
if (m) return [m, o.value, B, {}, s, h];
|
|
1823
1823
|
}
|
|
@@ -2348,7 +2348,7 @@ const Pc = (e) => {
|
|
|
2348
2348
|
let { colon: y, prefixCls: x, bordered: f } = s, { component: p, type: v, showLabel: g, showContent: w, labelStyle: S, contentStyle: F } = h;
|
|
2349
2349
|
return d.map((P, C) => {
|
|
2350
2350
|
var m, B;
|
|
2351
|
-
const T = P.props || {}, { prefixCls: D = x, span:
|
|
2351
|
+
const T = P.props || {}, { prefixCls: D = x, span: M = 1, labelStyle: j = T["label-style"], contentStyle: O = T["content-style"], label: $ = (B = (m = P.children) === null || m === void 0 ? void 0 : m.label) === null || B === void 0 ? void 0 : B.call(m) } = T, V = function(k) {
|
|
2352
2352
|
let G = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "default", W = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2353
2353
|
if (yt(k)) return k.type === mt ? G === "default" ? Xt(k.children) : [] : k.children && k.children[G] ? Xt(k.children[G](W)) : [];
|
|
2354
2354
|
{
|
|
@@ -2364,7 +2364,7 @@ const Pc = (e) => {
|
|
|
2364
2364
|
W[Y.trim()] = !0;
|
|
2365
2365
|
}) : W = R(R({}, W), G), W;
|
|
2366
2366
|
}(P), _ = Fc(P), { key: L } = P;
|
|
2367
|
-
return typeof p == "string" ? b(Jo, { key: `${v}-${String(L) || C}`, class: q, style: _, labelStyle: R(R({}, S), j), contentStyle: R(R({}, F),
|
|
2367
|
+
return typeof p == "string" ? b(Jo, { key: `${v}-${String(L) || C}`, class: q, style: _, labelStyle: R(R({}, S), j), contentStyle: R(R({}, F), O), span: M, colon: y, component: p, itemPrefixCls: D, bordered: f, label: g ? $ : null, content: w ? V : null }, null) : [b(Jo, { key: `label-${String(L) || C}`, class: q, style: R(R(R({}, S), _), j), span: 1, colon: y, component: p[0], itemPrefixCls: D, bordered: f, label: $ }, null), b(Jo, { key: `content-${String(L) || C}`, class: q, style: R(R(R({}, F), _), O), span: 2 * M - 1, component: p[1], itemPrefixCls: D, bordered: f, content: V }, null)];
|
|
2368
2368
|
});
|
|
2369
2369
|
}, { prefixCls: r, vertical: o, row: n, index: a, bordered: l } = e, { labelStyle: i, contentStyle: u } = kt(fi, { labelStyle: J({}), contentStyle: J({}) });
|
|
2370
2370
|
return o ? b(mt, null, [b("tr", { key: `label-${a}`, class: `${r}-row` }, [t(n, e, { component: "th", type: "label", showLabel: !0, labelStyle: i.value, contentStyle: u.value })]), b("tr", { key: `content-${a}`, class: `${r}-row` }, [t(n, e, { component: "td", type: "content", showContent: !0, labelStyle: i.value, contentStyle: u.value })])]) : b("tr", { key: a, class: `${r}-row` }, [t(n, e, { component: l ? ["th", "td"] : "td", type: "item", showLabel: !0, showContent: !0, labelStyle: i.value, contentStyle: u.value })]);
|
|
@@ -2858,12 +2858,12 @@ const fi = Symbol("descriptionsContext"), Sr = bt({ compatConfig: { MODE: 3 }, n
|
|
|
2858
2858
|
var y, x, f;
|
|
2859
2859
|
const { size: p, bordered: v = !1, layout: g = "horizontal", colon: w = !0, title: S = (y = r.title) === null || y === void 0 ? void 0 : y.call(r), extra: F = (x = r.extra) === null || x === void 0 ? void 0 : x.call(r) } = e, P = function(C, m) {
|
|
2860
2860
|
const B = Xt(C), T = [];
|
|
2861
|
-
let D = [],
|
|
2862
|
-
return B.forEach((j,
|
|
2861
|
+
let D = [], M = m;
|
|
2862
|
+
return B.forEach((j, O) => {
|
|
2863
2863
|
var $;
|
|
2864
2864
|
const V = ($ = j.props) === null || $ === void 0 ? void 0 : $.span, q = V || 1;
|
|
2865
|
-
if (
|
|
2866
|
-
q <
|
|
2865
|
+
if (O === B.length - 1) return D.push(Va(j, M, V)), void T.push(D);
|
|
2866
|
+
q < M ? (M -= q, D.push(j)) : (D.push(Va(j, M, q)), T.push(D), M = m, D = []);
|
|
2867
2867
|
}), T;
|
|
2868
2868
|
}((f = r.default) === null || f === void 0 ? void 0 : f.call(r), h.value);
|
|
2869
2869
|
return u(b("div", on(on({}, o), {}, { class: [n.value, { [`${n.value}-${p}`]: p !== "default", [`${n.value}-bordered`]: !!v, [`${n.value}-rtl`]: a.value === "rtl" }, o.class, d.value] }), [(S || F) && b("div", { class: `${n.value}-header` }, [S && b("div", { class: `${n.value}-title` }, [S]), F && b("div", { class: `${n.value}-extra` }, [F])]), b("div", { class: `${n.value}-view` }, [b("table", null, [b("tbody", null, [P.map((C, m) => b(Pc, { key: m, index: m, colon: w, prefixCls: n.value, vertical: g === "vertical", bordered: v, row: C }, null))])])])]));
|
|
@@ -2876,8 +2876,8 @@ const qc = (e) => {
|
|
|
2876
2876
|
const t = e, r = c(t, "columns"), o = c(t, "detailDescItemEmptyText"), n = c(t, "detailDescItemProps"), a = c(t, "detailDescItemTimeFormat"), l = c(t, "detailModalProps"), i = c(t, "tableTextConfig"), u = c(t, "detailDescProps"), d = J(!1), s = J(!1), h = At({ values: {} }), y = I(() => {
|
|
2877
2877
|
var x, f, p, v;
|
|
2878
2878
|
return (v = (p = (f = (x = r.value) == null ? void 0 : x.map) == null ? void 0 : f.call(x, (g, w) => {
|
|
2879
|
-
const { type: S, title: F, dataIndex: P, emptyText: C, numberFormat: m, timeFormat: B, numberComputed: T, descItemProps: D, customRender:
|
|
2880
|
-
return { ...n.value, label: F || j, key: JSON.stringify(P), chidlren: Hc({ type: S, dataSource: h == null ? void 0 : h.values, dataIndex: P, column: g, index: w, customRender:
|
|
2879
|
+
const { type: S, title: F, dataIndex: P, emptyText: C, numberFormat: m, timeFormat: B, numberComputed: T, descItemProps: D, customRender: M } = g, { label: j, hidden: O, ...$ } = D || {};
|
|
2880
|
+
return { ...n.value, label: F || j, key: JSON.stringify(P), chidlren: Hc({ type: S, dataSource: h == null ? void 0 : h.values, dataIndex: P, column: g, index: w, customRender: M, detailDescItemEmptyText: o.value, detailDescItemTimeFormat: a.value, timeFormat: B, numberFormat: m, numberComputed: T, emptyText: C }), hidden: O, ...$ };
|
|
2881
2881
|
})) == null ? void 0 : p.filter) == null ? void 0 : v.call(p, ({ hidden: g }) => !g);
|
|
2882
2882
|
});
|
|
2883
2883
|
return { openDetailModal: () => {
|
|
@@ -2914,11 +2914,11 @@ const qc = (e) => {
|
|
|
2914
2914
|
var V, q, _, L, k, G;
|
|
2915
2915
|
const D = ft(u.value) ? await ((V = u.value) == null ? void 0 : V.call(u, T)) : f(T);
|
|
2916
2916
|
if (D === !1) return;
|
|
2917
|
-
const { thumbUrl:
|
|
2918
|
-
(_ = (q = window == null ? void 0 : window.URL) == null ? void 0 : q.revokeObjectURL) == null || _.call(q,
|
|
2917
|
+
const { thumbUrl: M, filename: j, config: O } = D, $ = await new il({ url: M, timeout: null, filename: j || l.value || `${Me().valueOf()}`, autoStart: !0, ...O || {} });
|
|
2918
|
+
(_ = (q = window == null ? void 0 : window.URL) == null ? void 0 : q.revokeObjectURL) == null || _.call(q, M), ft(d.value) && await ((L = d.value) == null ? void 0 : L.call(d, $)) === !1 || pt.success((G = (k = h.value) == null ? void 0 : k.message) == null ? void 0 : G.downloadTemplateSuccess);
|
|
2919
2919
|
})) == null ? void 0 : P.catch) == null ? void 0 : C.call(P, async (T) => {
|
|
2920
|
-
var D,
|
|
2921
|
-
ft(s.value) && await ((D = s.value) == null ? void 0 : D.call(s, T)) === !1 || pt.error((j = (
|
|
2920
|
+
var D, M, j;
|
|
2921
|
+
ft(s.value) && await ((D = s.value) == null ? void 0 : D.call(s, T)) === !1 || pt.error((j = (M = h.value) == null ? void 0 : M.message) == null ? void 0 : j.downloadTemplateError);
|
|
2922
2922
|
})) == null ? void 0 : m.finally) == null ? void 0 : B.call(m, () => {
|
|
2923
2923
|
y.value = !1;
|
|
2924
2924
|
}));
|
|
@@ -2939,12 +2939,12 @@ const qc = (e) => {
|
|
|
2939
2939
|
function Ga(e) {
|
|
2940
2940
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !yt(e);
|
|
2941
2941
|
}
|
|
2942
|
-
const Lc = (e, t) => fo(e) || fo(t) ? e == null ? void 0 : e.isSame(t) : e === t, zc = { key: 0, class: Tr(["db-table-query-form"]) }, Wc = { key: 1, class: Tr(["db-table-cies-btns-wrap"]) }, Vc = { key: 2, class: Tr(["db-table-pagination-wrap"]) }, Gt = bt({ name: "DbTable", __name: "table", props: Kn({ full: { type: Boolean, default: () => E.table.full }, scroll: { default: () => E.table.scroll }, autoSizeConfig: { default: () => E.table.autoSizeConfig }, minScollHeight: { default: () => E.table.minScollHeight }, autoRequest: { default: () => E.table.autoRequest }, autoRequestDependencies: { type: Function, default: () => E.table.autoRequestDependencies }, apis: {}, fieldsNames: { default: () => E.table.fieldsNames }, tableTextConfig: { default: () => E.table.tableTextConfig }, params: {}, columns: {}, columnsTitleNoWrap: { type: Boolean, default: () => E.table.columnsTitleNoWrap }, columnsAlign: { default: () => E.table.columnsAlign }, columnsSorter: { default: () => E.table.columnsSorter }, columnsEllipsis: { type: Boolean, default: () => E.table.columnsEllipsis }, columnsTimeFormat: { default: () => E.table.columnsTimeFormat }, columnsEmptyText: { default: () => E.table.columnsEmptyText }, indexColumn: { type: Boolean, default: () => E.table.indexColumn }, indexColumnWidth: { default: () => E.table.indexColumnWidth }, indexColumnProps: { default: () => E.table.indexColumnProps }, controlColumn: { type: Boolean, default: () => E.table.controlColumn }, controlColumnWidth: { default: () => E.table.controlColumnWidth }, controlColumnWidthProps: { default: () => E.table.controlColumnWidthProps }, controlColumnBtns: { default: () => E.table.controlColumnBtns }, columnSettingBtn: { type: [Boolean, Object], default: () => E.table.columnSettingBtn }, ownPagin: { type: Boolean, default: () => E.table.ownPagin }, ownPaginProps: { default: () => E.table.ownPaginProps }, queryForm: { type: Boolean, default: () => E.table.queryForm }, queryFormDefaultValues: {}, queryFormProps: { default: () => E.table.queryFormProps }, queryFormItems: {}, queryFormRowProps: { default: () => E.table.queryFormRowProps }, queryFormColProps: { default: () => E.table.queryFormColProps }, queryFormFlexProps: { default: () => E.table.queryFormFlexProps }, queryFormSubmitBtn: { type: [Boolean, Function], default: () => E.table.queryFormSubmitBtn }, queryFormSubmitBtnProps: { default: () => E.table.queryFormSubmitBtnProps }, queryFormResetBtn: { type: [Boolean, Function], default: () => E.table.queryFormResetBtn }, queryFormResetBtnProps: { default: () => E.table.queryFormResetBtnProps }, queryFormControlFormItemProps: { default: () => E.table.queryFormControlFormItemProps }, queryFormSubmitWithReset: { type: Boolean, default: () => E.table.queryFormSubmitWithReset }, queryFormTimeFormat: { default: () => E.table.queryFormTimeFormat }, cuFormProps: { default: () => E.table.cuFormProps }, cuFormRules: {}, cuFormDefaultValues: {}, cuFormModalProps: { default: () => E.table.cuFormModalProps }, cuFormRowProps: { default: () => E.table.cuFormRowProps }, cuFormColProps: { default: () => E.table.cuFormColProps }, cuFormBackFillByGetDetail: { type: Boolean, default: () => E.table.cuFormBackFillByGetDetail }, detailModalProps: { default: () => E.table.detailModalProps }, detailDescProps: { default: () => E.table.detailDescProps }, detailDescItemProps: { default: () => E.table.detailDescItemProps }, detailDescItemEmptyText: { default: () => E.table.detailDescItemEmptyText }, detailDescItemTimeFormat: { default: () => E.table.detailDescItemTimeFormat }, detailBackFillByGetDetail: { type: Boolean, default: () => E.table.detailBackFillByGetDetail }, ciesBtns: { type: Boolean, default: () => E.table.ciesBtns }, ciesBtnsInQueryForm: { type: Boolean, default: () => E.table.ciesBtnsInQueryForm }, createBtn: { type: [Boolean, Object], default: () => E.table.createBtn }, importBtn: { type: [Boolean, Object], default: () => E.table.importBtn }, importUploadProps: { default: () => E.table.importUploadProps }, importFileParamsFormatter: { type: [null, Function], default: () => E.table.importFileParamsFormatter }, exportDropdown: { type: [Boolean, Object], default: () => E.table.exportDropdown }, exportAllBtn: { type: [Boolean, Object], default: () => E.table.exportAllBtn }, exportBtnMode: { default: () => E.table.exportBtnMode }, exportCurrentPageBtn: { type: [Boolean, Object], default: () => E.table.exportCurrentPageBtn }, exportFileByParams: { type: Boolean, default: () => E.table.exportFileByParams }, exportFileParamsFormatter: { type: [null, Function], default: () => E.table.exportFileParamsFormatter }, exportFileName: {}, downloadTemplateBtn: { type: [Boolean, Object], default: () => E.table.downloadTemplateBtn }, templateFileName: {}, downloadTempalteParamsFormatter: { type: [null, Function], default: () => E.table.downloadTempalteParamsFormatter }, requestParamsFormatter: { type: [null, Function], default: () => E.table.requestParamsFormatter }, onBeforeRequestSource: {}, onSourceSuccess: { type: [null, Function], default: () => E.table.onSourceSuccess }, onSourceError: { type: [null, Function], default: () => E.table.onSourceError }, onBeforeRequestDetails: { type: [null, Function], default: () => E.table.onBeforeRequestDetails }, onGetRowDetail: { type: [null, Function], default: () => E.table.onGetRowDetail }, onBeforeRowEditBackFill: { type: [null, Function], default: () => E.table.onBeforeRowEditBackFill }, onBeforeCuFormSubmit: { type: [null, Function], default: () => E.table.onBeforeCuFormSubmit }, onCuFormSubmitSuccess: {
|
|
2942
|
+
const Lc = (e, t) => fo(e) || fo(t) ? e == null ? void 0 : e.isSame(t) : e === t, zc = { key: 0, class: Tr(["db-table-query-form"]) }, Wc = { key: 1, class: Tr(["db-table-cies-btns-wrap"]) }, Vc = { key: 2, class: Tr(["db-table-pagination-wrap"]) }, Gt = bt({ name: "DbTable", __name: "table", props: Kn({ full: { type: Boolean, default: () => E.table.full }, scroll: { default: () => E.table.scroll }, autoSizeConfig: { default: () => E.table.autoSizeConfig }, minScollHeight: { default: () => E.table.minScollHeight }, autoRequest: { default: () => E.table.autoRequest }, autoRequestDependencies: { type: Function, default: () => E.table.autoRequestDependencies }, apis: {}, fieldsNames: { default: () => E.table.fieldsNames }, tableTextConfig: { default: () => E.table.tableTextConfig }, params: {}, columns: {}, columnsTitleNoWrap: { type: Boolean, default: () => E.table.columnsTitleNoWrap }, columnsAlign: { default: () => E.table.columnsAlign }, columnsSorter: { default: () => E.table.columnsSorter }, columnsEllipsis: { type: Boolean, default: () => E.table.columnsEllipsis }, columnsTimeFormat: { default: () => E.table.columnsTimeFormat }, columnsEmptyText: { default: () => E.table.columnsEmptyText }, indexColumn: { type: Boolean, default: () => E.table.indexColumn }, indexColumnWidth: { default: () => E.table.indexColumnWidth }, indexColumnProps: { default: () => E.table.indexColumnProps }, controlColumn: { type: Boolean, default: () => E.table.controlColumn }, controlColumnWidth: { default: () => E.table.controlColumnWidth }, controlColumnWidthProps: { default: () => E.table.controlColumnWidthProps }, controlColumnBtns: { default: () => E.table.controlColumnBtns }, columnSettingBtn: { type: [Boolean, Object], default: () => E.table.columnSettingBtn }, ownPagin: { type: Boolean, default: () => E.table.ownPagin }, ownPaginProps: { default: () => E.table.ownPaginProps }, queryForm: { type: Boolean, default: () => E.table.queryForm }, queryFormDefaultValues: {}, queryFormProps: { default: () => E.table.queryFormProps }, queryFormItems: {}, queryFormRowProps: { default: () => E.table.queryFormRowProps }, queryFormColProps: { default: () => E.table.queryFormColProps }, queryFormFlexProps: { default: () => E.table.queryFormFlexProps }, queryFormSubmitBtn: { type: [Boolean, Function], default: () => E.table.queryFormSubmitBtn }, queryFormSubmitBtnProps: { default: () => E.table.queryFormSubmitBtnProps }, queryFormResetBtn: { type: [Boolean, Function], default: () => E.table.queryFormResetBtn }, queryFormResetBtnProps: { default: () => E.table.queryFormResetBtnProps }, queryFormControlFormItemProps: { default: () => E.table.queryFormControlFormItemProps }, queryFormSubmitWithReset: { type: Boolean, default: () => E.table.queryFormSubmitWithReset }, queryFormTimeFormat: { default: () => E.table.queryFormTimeFormat }, cuFormProps: { default: () => E.table.cuFormProps }, cuFormRules: {}, cuFormDefaultValues: {}, cuFormModalProps: { default: () => E.table.cuFormModalProps }, cuFormRowProps: { default: () => E.table.cuFormRowProps }, cuFormColProps: { default: () => E.table.cuFormColProps }, cuFormBackFillByGetDetail: { type: Boolean, default: () => E.table.cuFormBackFillByGetDetail }, detailModalProps: { default: () => E.table.detailModalProps }, detailDescProps: { default: () => E.table.detailDescProps }, detailDescItemProps: { default: () => E.table.detailDescItemProps }, detailDescItemEmptyText: { default: () => E.table.detailDescItemEmptyText }, detailDescItemTimeFormat: { default: () => E.table.detailDescItemTimeFormat }, detailBackFillByGetDetail: { type: Boolean, default: () => E.table.detailBackFillByGetDetail }, ciesBtns: { type: Boolean, default: () => E.table.ciesBtns }, ciesBtnsInQueryForm: { type: Boolean, default: () => E.table.ciesBtnsInQueryForm }, createBtn: { type: [Boolean, Object], default: () => E.table.createBtn }, importBtn: { type: [Boolean, Object], default: () => E.table.importBtn }, importUploadProps: { default: () => E.table.importUploadProps }, importFileParamsFormatter: { type: [null, Function], default: () => E.table.importFileParamsFormatter }, exportDropdown: { type: [Boolean, Object], default: () => E.table.exportDropdown }, exportAllBtn: { type: [Boolean, Object], default: () => E.table.exportAllBtn }, exportBtnMode: { default: () => E.table.exportBtnMode }, exportCurrentPageBtn: { type: [Boolean, Object], default: () => E.table.exportCurrentPageBtn }, exportFileByParams: { type: Boolean, default: () => E.table.exportFileByParams }, exportFileParamsFormatter: { type: [null, Function], default: () => E.table.exportFileParamsFormatter }, exportFileName: {}, downloadTemplateBtn: { type: [Boolean, Object], default: () => E.table.downloadTemplateBtn }, templateFileName: {}, downloadTempalteParamsFormatter: { type: [null, Function], default: () => E.table.downloadTempalteParamsFormatter }, requestParamsFormatter: { type: [null, Function], default: () => E.table.requestParamsFormatter }, onBeforeRequestSource: {}, onSourceSuccess: { type: [null, Function], default: () => E.table.onSourceSuccess }, onSourceError: { type: [null, Function], default: () => E.table.onSourceError }, onBeforeRequestDetails: { type: [null, Function], default: () => E.table.onBeforeRequestDetails }, onGetRowDetail: { type: [null, Function], default: () => E.table.onGetRowDetail }, onBeforeRowEditBackFill: { type: [null, Function], default: () => E.table.onBeforeRowEditBackFill }, onBeforeCuFormSubmit: { type: [null, Function], default: () => E.table.onBeforeCuFormSubmit }, onCuFormSubmitSuccess: { default: () => E.table.onCuFormSubmitSuccess }, onCuFormSubmitError: { default: () => E.table.onCuFormSubmitError }, onCuFormCancel: {}, onBeforeRowDelete: { type: [null, Function], default: () => E.table.onBeforeRowDelete }, onRowDeleteSuccess: { default: () => E.table.onRowDeleteSuccess }, onRowDeleteError: { type: [null, Function], default: () => E.table.onRowDeleteError }, onExportRequestSuccess: { type: [null, Function], default: () => E.table.onExportRequestSuccess }, onExportSuccess: { type: [null, Function], default: () => E.table.onExportSuccess }, onExportError: { type: [null, Function], default: () => E.table.onExportError }, onImportSuccess: { type: [null, Function], default: () => E.table.onImportSuccess }, onImportError: { type: [null, Function], default: () => E.table.onImportError }, onTemplateRequestSuccess: { type: [null, Function], default: () => E.table.onTemplateRequestSuccess }, onTemplateDownloadSuccess: { type: [null, Function], default: () => E.table.onTemplateDownloadSuccess }, onTemplateDownloadError: { type: [null, Function], default: () => E.table.onTemplateDownloadError }, onCellEditConfirm: {}, dropdownPrefixCls: {}, dataSource: {}, pagination: { type: [Boolean, Object] }, size: {}, bordered: { type: Boolean }, locale: {}, onChange: {}, onResizeColumn: {}, rowSelection: {}, getPopupContainer: {}, sortDirections: {}, showSorterTooltip: { type: [Boolean, Object], default: () => E.table.showSorterTooltip }, prefixCls: {}, rowKey: { default: "id" }, tableLayout: { default: () => E.table.tableLayout }, rowClassName: {}, title: {}, footer: {}, id: {}, showHeader: { type: Boolean, default: null }, components: {}, customRow: {}, customHeaderRow: {}, direction: {}, expandFixed: { type: [String, Boolean] }, expandColumnWidth: {}, expandedRowKeys: {}, defaultExpandedRowKeys: {}, expandedRowRender: {}, expandRowByClick: { type: Boolean }, expandIcon: {}, onExpand: {}, onExpandedRowsChange: {}, defaultExpandAllRows: { type: Boolean }, indentSize: {}, expandIconColumnIndex: {}, showExpandColumn: { type: Boolean }, expandedRowClassName: {}, childrenColumnName: {}, rowExpandable: {}, sticky: { type: [Boolean, Object] }, transformCellText: {} }, { value: { default: [] }, valueModifiers: {} }), emits: Kn(["cuFormModelChange", "cuFormEditStatusChange", "queryFormModelChange"], ["update:value"]), setup(e, { expose: t, emit: r }) {
|
|
2943
2943
|
const o = function(K, A) {
|
|
2944
2944
|
const ae = /* @__PURE__ */ Object.create(null);
|
|
2945
2945
|
for (const he in K) A.includes(he) || Object.defineProperty(ae, he, { enumerable: !0, get: () => K[he] });
|
|
2946
2946
|
return ae;
|
|
2947
|
-
}(e, ["full", "scroll", "autoSizeConfig", "minScollHeight", "autoRequest", "autoRequestDependencies", "apis", "fieldsNames", "tableTextConfig", "params", "rowKey", "columns", "columnsTitleNoWrap", "columnsAlign", "columnsSorter", "columnsEllipsis", "columnsTimeFormat", "columnsEmptyText", "indexColumn", "indexColumnWidth", "indexColumnProps", "controlColumn", "controlColumnWidth", "controlColumnWidthProps", "controlColumnBtns", "showSorterTooltip", "columnSettingBtn", "requestParamsFormatter", "onBeforeRequestSource", "onBeforeRequestDetails", "onSourceSuccess", "onSourceError", "onBeforeRowEditBackFill", "onGetRowDetail", "onBeforeCuFormSubmit", "onCuFormSubmitSuccess", "onCuFormSubmitError", "onCuFormCancel", "onBeforeRowDelete", "onRowDeleteSuccess", "onRowDeleteError", "ownPagin", "ownPaginProps", "queryForm", "queryFormItems", "queryFormDefaultValues", "queryFormProps", "queryFormSubmitWithReset", "queryFormRowProps", "queryFormColProps", "queryFormFlexProps", "queryFormSubmitBtn", "queryFormResetBtn", "queryFormSubmitBtnProps", "queryFormResetBtnProps", "queryFormControlFormItemProps", "queryFormTimeFormat", "cuFormProps", "cuFormRules", "cuFormDefaultValues", "cuFormModalProps", "cuFormRowProps", "cuFormColProps", "cuFormBackFillByGetDetail", "detailBackFillByGetDetail", "detailDescItemEmptyText", "detailDescItemProps", "detailDescItemTimeFormat", "detailModalProps", "detailDescProps", "ciesBtns", "ciesBtnsInQueryForm", "createBtn", "importBtn", "exportBtnMode", "exportDropdown", "exportCurrentPageBtn", "exportAllBtn", "tableLayout", "exportFileByParams", "exportFileParamsFormatter", "exportFileName", "onExportRequestSuccess", "onExportSuccess", "onExportError", "importUploadProps", "importFileParamsFormatter", "onImportSuccess", "onImportError", "showHeader", "dataSource", "templateFileName", "downloadTemplateBtn", "downloadTempalteParamsFormatter", "onTemplateRequestSuccess", "onTemplateDownloadSuccess", "onTemplateDownloadError", "onCellEditConfirm"]), n = c(e, "minScollHeight"), a = c(e, "autoSizeConfig"), l = c(e, "scroll"), i = c(e, "onCellEditConfirm"), u = c(e, "onBeforeRequestDetails"), d = c(e, "columnSettingBtn"), s = c(e, "controlColumnWidthProps"), h = c(e, "controlColumnWidth"), y = c(e, "indexColumnWidth"), x = c(e, "indexColumnProps"), f = c(e, "detailBackFillByGetDetail"), p = c(e, "onRowDeleteError"), v = c(e, "onRowDeleteSuccess"), g = c(e, "onBeforeRowDelete"), w = c(e, "onGetRowDetail"), S = c(e, "cuFormBackFillByGetDetail"), F = c(e, "onBeforeRowEditBackFill"), P = c(e, "controlColumn"), C = c(e, "indexColumn"), m = c(e, "controlColumnBtns"), B = c(e, "columnsEmptyText"), T = c(e, "columnsTimeFormat"), D = c(e, "columnsSorter"),
|
|
2947
|
+
}(e, ["full", "scroll", "autoSizeConfig", "minScollHeight", "autoRequest", "autoRequestDependencies", "apis", "fieldsNames", "tableTextConfig", "params", "rowKey", "columns", "columnsTitleNoWrap", "columnsAlign", "columnsSorter", "columnsEllipsis", "columnsTimeFormat", "columnsEmptyText", "indexColumn", "indexColumnWidth", "indexColumnProps", "controlColumn", "controlColumnWidth", "controlColumnWidthProps", "controlColumnBtns", "showSorterTooltip", "columnSettingBtn", "requestParamsFormatter", "onBeforeRequestSource", "onBeforeRequestDetails", "onSourceSuccess", "onSourceError", "onBeforeRowEditBackFill", "onGetRowDetail", "onBeforeCuFormSubmit", "onCuFormSubmitSuccess", "onCuFormSubmitError", "onCuFormCancel", "onBeforeRowDelete", "onRowDeleteSuccess", "onRowDeleteError", "ownPagin", "ownPaginProps", "queryForm", "queryFormItems", "queryFormDefaultValues", "queryFormProps", "queryFormSubmitWithReset", "queryFormRowProps", "queryFormColProps", "queryFormFlexProps", "queryFormSubmitBtn", "queryFormResetBtn", "queryFormSubmitBtnProps", "queryFormResetBtnProps", "queryFormControlFormItemProps", "queryFormTimeFormat", "cuFormProps", "cuFormRules", "cuFormDefaultValues", "cuFormModalProps", "cuFormRowProps", "cuFormColProps", "cuFormBackFillByGetDetail", "detailBackFillByGetDetail", "detailDescItemEmptyText", "detailDescItemProps", "detailDescItemTimeFormat", "detailModalProps", "detailDescProps", "ciesBtns", "ciesBtnsInQueryForm", "createBtn", "importBtn", "exportBtnMode", "exportDropdown", "exportCurrentPageBtn", "exportAllBtn", "tableLayout", "exportFileByParams", "exportFileParamsFormatter", "exportFileName", "onExportRequestSuccess", "onExportSuccess", "onExportError", "importUploadProps", "importFileParamsFormatter", "onImportSuccess", "onImportError", "showHeader", "dataSource", "templateFileName", "downloadTemplateBtn", "downloadTempalteParamsFormatter", "onTemplateRequestSuccess", "onTemplateDownloadSuccess", "onTemplateDownloadError", "onCellEditConfirm"]), n = c(e, "minScollHeight"), a = c(e, "autoSizeConfig"), l = c(e, "scroll"), i = c(e, "onCellEditConfirm"), u = c(e, "onBeforeRequestDetails"), d = c(e, "columnSettingBtn"), s = c(e, "controlColumnWidthProps"), h = c(e, "controlColumnWidth"), y = c(e, "indexColumnWidth"), x = c(e, "indexColumnProps"), f = c(e, "detailBackFillByGetDetail"), p = c(e, "onRowDeleteError"), v = c(e, "onRowDeleteSuccess"), g = c(e, "onBeforeRowDelete"), w = c(e, "onGetRowDetail"), S = c(e, "cuFormBackFillByGetDetail"), F = c(e, "onBeforeRowEditBackFill"), P = c(e, "controlColumn"), C = c(e, "indexColumn"), m = c(e, "controlColumnBtns"), B = c(e, "columnsEmptyText"), T = c(e, "columnsTimeFormat"), D = c(e, "columnsSorter"), M = c(e, "columnsTitleNoWrap"), j = c(e, "columnsEllipsis"), O = c(e, "columnsAlign"), $ = c(e, "detailDescProps"), V = c(e, "detailModalProps"), q = c(e, "detailDescItemTimeFormat"), _ = c(e, "detailDescItemProps"), L = c(e, "detailDescItemEmptyText"), k = c(e, "cuFormDefaultValues"), G = c(e, "onCuFormSubmitError"), W = c(e, "onCuFormSubmitSuccess"), Y = c(e, "onBeforeCuFormSubmit"), Q = c(e, "cuFormColProps"), oe = c(e, "cuFormRowProps"), Fe = c(e, "cuFormModalProps"), se = c(e, "cuFormRules"), be = c(e, "onCuFormCancel"), Be = c(e, "cuFormProps"), xe = c(e, "columns"), ce = c(e, "createBtn"), fe = c(e, "onImportError"), We = c(e, "onImportSuccess"), lt = c(e, "importFileParamsFormatter"), H = c(e, "importUploadProps"), te = c(e, "importBtn"), re = c(e, "onBeforeRequestSource"), ne = c(e, "dataSource"), Z = c(e, "autoRequestDependencies"), pe = c(e, "autoRequest"), Ne = c(e, "onSourceError"), Oe = c(e, "onSourceSuccess"), Re = c(e, "onExportRequestSuccess"), Ve = c(e, "onExportError"), Ge = c(e, "onExportSuccess"), Ae = c(e, "exportFileParamsFormatter"), rr = c(e, "exportFileName"), or = c(e, "exportFileByParams"), Do = c(e, "exportAllBtn"), jn = c(e, "exportCurrentPageBtn"), Nn = c(e, "exportDropdown"), xt = c(e, "tableTextConfig"), qn = c(e, "onTemplateDownloadError"), Hn = c(e, "onTemplateDownloadSuccess"), _n = c(e, "onTemplateRequestSuccess"), ko = c(e, "downloadTempalteParamsFormatter"), Mo = c(e, "downloadTemplateBtn"), nr = c(e, "templateFileName"), Mt = c(e, "apis"), Oo = c(e, "queryFormTimeFormat"), Ot = c(e, "fieldsNames"), Ln = c(e, "requestParamsFormatter"), Ir = c(e, "ownPaginProps"), ar = c(e, "ownPagin"), $r = c(e, "params"), Ro = c(e, "queryFormDefaultValues"), mi = c(e, "ciesBtnsInQueryForm"), hi = c(e, "queryFormControlFormItemProps"), gi = c(e, "queryFormResetBtnProps"), vi = c(e, "queryFormSubmitBtnProps"), yi = c(e, "queryFormResetBtn"), bi = c(e, "queryFormSubmitBtn"), xi = c(e, "queryFormFlexProps"), Si = c(e, "queryFormColProps"), wi = c(e, "queryFormRowProps"), Ci = c(e, "queryFormSubmitWithReset"), Fi = c(e, "queryFormProps"), Pi = c(e, "queryFormItems"), zn = iu(e, "value"), Wn = J(), Vn = J(), jr = Zo(), Ao = r, Bi = I(() => {
|
|
2948
2948
|
var K, A, ae;
|
|
2949
2949
|
return (ae = (A = (K = Object == null ? void 0 : Object.keys) == null ? void 0 : K.call(Object, jr)) == null ? void 0 : A.filter) == null ? void 0 : ae.call(A, (he) => (ro == null ? void 0 : ro.indexOf(he)) !== -1);
|
|
2950
2950
|
}), Ei = (K, A) => {
|
|
@@ -3100,7 +3100,7 @@ const Lc = (e, t) => fo(e) || fo(t) ? e == null ? void 0 : e.isSame(t) : e === t
|
|
|
3100
3100
|
const { children: me, ...ee } = ot(Je.value || {}, Ue || {});
|
|
3101
3101
|
return b(Au, U({ showUploadList: !1, customRequest: Ye }, qe.value || {}), { default: () => [b($e, U({ disabled: Ee.value, loading: Ee.value, class: "flex items-center" }, ee), { default: () => [Ee != null && Ee.value ? `正在${me}...` : me] })] });
|
|
3102
3102
|
} };
|
|
3103
|
-
})({ apis: Mt, tableTextConfig: xt, importBtn: te, importUploadProps: H, importFileParamsFormatter: lt, onImportSuccess: We, onImportError: fe, updateSource: Hr }), { CreateBtn: sr, CUModalForm: Ri, openCUModalForm: Ai, cuFormModel: Un, cuModalLoading: Ii, cuModalFormIsEdit: $i } = Rs({ apis: Mt, createBtn: ce, columns: xe, cuFormProps: Be, onCuFormCancel: be, cuFormRules: se, cuFormModalProps: Fe, cuFormRowProps: oe, cuFormColProps: Q, tableRef: Wn, onBeforeCuFormSubmit: Y, onCuFormSubmitSuccess: W, onCuFormSubmitError: G, updateSource: Hr, tableTextConfig: xt, defaultValues: k, emits: Ao }), { openDetailModal: ji, detailModalLoading: Ni, detailsDataSource: qi, DetailModal: Hi } = qc({ columns: xe, detailDescItemEmptyText: L, detailDescItemProps: _, detailDescItemTimeFormat: q, tableTextConfig: xt, detailModalProps: V, detailDescProps: $ }), { resColumns: _i, ColumnSettingBtn: _r } = Es({ columns: xe, columnsAlign:
|
|
3103
|
+
})({ apis: Mt, tableTextConfig: xt, importBtn: te, importUploadProps: H, importFileParamsFormatter: lt, onImportSuccess: We, onImportError: fe, updateSource: Hr }), { CreateBtn: sr, CUModalForm: Ri, openCUModalForm: Ai, cuFormModel: Un, cuModalLoading: Ii, cuModalFormIsEdit: $i } = Rs({ apis: Mt, createBtn: ce, columns: xe, cuFormProps: Be, onCuFormCancel: be, cuFormRules: se, cuFormModalProps: Fe, cuFormRowProps: oe, cuFormColProps: Q, tableRef: Wn, onBeforeCuFormSubmit: Y, onCuFormSubmitSuccess: W, onCuFormSubmitError: G, updateSource: Hr, tableTextConfig: xt, defaultValues: k, emits: Ao }), { openDetailModal: ji, detailModalLoading: Ni, detailsDataSource: qi, DetailModal: Hi } = qc({ columns: xe, detailDescItemEmptyText: L, detailDescItemProps: _, detailDescItemTimeFormat: q, tableTextConfig: xt, detailModalProps: V, detailDescProps: $ }), { resColumns: _i, ColumnSettingBtn: _r } = Es({ columns: xe, columnsAlign: O, columnsEllipsis: j, columnsTitleNoWrap: M, columnsSorter: D, pagination: $o, columnsTimeFormat: T, columnsEmptyText: B, controlColumnBtns: m, apis: Mt, indexColumn: C, controlColumn: P, openCUModalForm: Ai, updateSource: Hr, cuFormModel: Un, onBeforeRowEditBackFill: F, cuModalLoading: Ii, cuFormBackFillByGetDetail: S, fieldsNames: Ot, onGetRowDetail: w, onBeforeRowDelete: g, onRowDeleteSuccess: v, onRowDeleteError: p, openDetailModal: ji, detailModalLoading: Ni, detailsDataSource: qi, detailBackFillByGetDetail: f, tableTextConfig: xt, indexColumnProps: x, indexColumnWidth: y, controlColumnWidth: h, controlColumnWidthProps: s, columnSettingBtn: d, onBeforeRequestDetails: u, onCellEditConfirm: i, emits: Ao }), { Pagination: Xn } = ((K) => {
|
|
3104
3104
|
const A = K, ae = c(A, "pagination"), he = c(A, "total"), Je = c(A, "ownPaginProps", {});
|
|
3105
3105
|
return { Pagination: () => b(Iu, U({ current: ae.value.page, "onUpdate:current": (Se) => ae.value.page = Se, pageSize: ae.value.pageSize, "onUpdate:pageSize": (Se) => ae.value.pageSize = Se, total: he.value, "onUpdate:total": (Se) => he.value = Se, "show-quick-jumper": !0 }, Je.value), null) };
|
|
3106
3106
|
})({ pagination: $o, total: Oi, ownPaginProps: Ir }), { x: Li, y: zi, scrollToFirstRowOnChange: Wi, onResize: Vi } = ml({ scroll: l, autoSizeConfig: a, minScollHeight: n, wrapContainer: Vn, subtractEleClasses: [".ant-table-title", ".ant-table-thead", ".ant-table-footer", ".ant-table-summary", ".ant-table-pagination"], tableRealRegionClasses: [".ant-table-tbody"], tableScrollWrapClass: ".ant-table-body", source: St }), Gi = I(() => ({ x: N(Li.value), y: N(zi.value), scrollToFirstRowOnChange: N(Wi.value) }));
|
package/dist/lib/index.es.js.gz
CHANGED
|
Binary file
|