@dazhicheng/ui 1.5.194 → 1.5.195
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/components/tt-form/src/form-render/dependencies.d.ts +6 -348
- package/dist/components/tt-form/src/types.d.ts +4 -2
- package/dist/components/tt-table/index.d.ts +15 -6
- package/dist/components/tt-table/src/Table.vue.d.ts +9 -3
- package/dist/components/tt-table/src/components/TableToobalTools.vue.d.ts +9 -3
- package/dist/components/tt-table/src/props.d.ts +5 -2
- package/dist/components/tt-table/src/toolProps.d.ts +6 -2
- package/dist/index.js +185 -179
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -4855,7 +4855,7 @@ const av = {
|
|
|
4855
4855
|
dialogResize: nv,
|
|
4856
4856
|
disabledTip: Ir
|
|
4857
4857
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4858
|
-
class
|
|
4858
|
+
class Se extends B4 {
|
|
4859
4859
|
static get style() {
|
|
4860
4860
|
return $f("style", {
|
|
4861
4861
|
type: [String, Object],
|
|
@@ -7525,9 +7525,9 @@ const ik = ["title"], rk = /* @__PURE__ */ ye({
|
|
|
7525
7525
|
var S;
|
|
7526
7526
|
if (q) {
|
|
7527
7527
|
const [U, ge] = q.split("|"), we = ne(s);
|
|
7528
|
-
Jn[U || ""] = r.selectProps.multiple ? we == null ? void 0 : we.map((
|
|
7528
|
+
Jn[U || ""] = r.selectProps.multiple ? we == null ? void 0 : we.map((ke) => {
|
|
7529
7529
|
var Ie;
|
|
7530
|
-
return (Ie =
|
|
7530
|
+
return (Ie = ke.item) == null ? void 0 : Ie[ge || U || ""];
|
|
7531
7531
|
}) : (S = we == null ? void 0 : we.item) == null ? void 0 : S[ge || U || ""];
|
|
7532
7532
|
}
|
|
7533
7533
|
return Jn;
|
|
@@ -32445,18 +32445,18 @@ const Ur = 4, tD = /* @__PURE__ */ ye({
|
|
|
32445
32445
|
if (!S) return d.value;
|
|
32446
32446
|
const U = (ge) => {
|
|
32447
32447
|
const we = [];
|
|
32448
|
-
return ge.forEach((
|
|
32448
|
+
return ge.forEach((ke) => {
|
|
32449
32449
|
var zn;
|
|
32450
|
-
const Ie = (zn =
|
|
32451
|
-
(String(
|
|
32450
|
+
const Ie = (zn = ke.children) != null && zn.length ? U(ke.children) : void 0;
|
|
32451
|
+
(String(ke.label).toLowerCase().includes(S) || Ie && Ie.length) && we.push({ ...ke, children: Ie != null && Ie.length ? Ie : void 0 });
|
|
32452
32452
|
}), we;
|
|
32453
32453
|
};
|
|
32454
32454
|
return U(d.value);
|
|
32455
32455
|
}), J = k(() => {
|
|
32456
32456
|
const S = [], U = (ge) => {
|
|
32457
32457
|
ge.forEach((we) => {
|
|
32458
|
-
var
|
|
32459
|
-
S.push(we.value), (
|
|
32458
|
+
var ke;
|
|
32459
|
+
S.push(we.value), (ke = we.children) != null && ke.length && U(we.children);
|
|
32460
32460
|
});
|
|
32461
32461
|
};
|
|
32462
32462
|
return U(O.value), S;
|
|
@@ -32465,13 +32465,13 @@ const Ur = 4, tD = /* @__PURE__ */ ye({
|
|
|
32465
32465
|
return K.value.forEach((U) => {
|
|
32466
32466
|
!(o.showOriginMode && U.value === "__origin__") && S.push({ key: `group-${String(U.value)}`, type: "group", group: U });
|
|
32467
32467
|
const we = Math.ceil(U.options.length / Ur);
|
|
32468
|
-
for (let
|
|
32469
|
-
const Ie =
|
|
32468
|
+
for (let ke = 0; ke < U.options.length; ke += Ur) {
|
|
32469
|
+
const Ie = ke / Ur;
|
|
32470
32470
|
S.push({
|
|
32471
|
-
key: `options-${String(U.value)}-${
|
|
32471
|
+
key: `options-${String(U.value)}-${ke / Ur}`,
|
|
32472
32472
|
type: "options",
|
|
32473
32473
|
group: U,
|
|
32474
|
-
options: U.options.slice(
|
|
32474
|
+
options: U.options.slice(ke, ke + Ur),
|
|
32475
32475
|
isLast: Ie === we - 1
|
|
32476
32476
|
});
|
|
32477
32477
|
}
|
|
@@ -32509,11 +32509,11 @@ const Ur = 4, tD = /* @__PURE__ */ ye({
|
|
|
32509
32509
|
}
|
|
32510
32510
|
function Ve(S) {
|
|
32511
32511
|
var ge, we;
|
|
32512
|
-
if (o.showPinyinMode || (ge = S.children) != null && ge.some((
|
|
32512
|
+
if (o.showPinyinMode || (ge = S.children) != null && ge.some((ke) => {
|
|
32513
32513
|
var Ie;
|
|
32514
|
-
return !((Ie =
|
|
32514
|
+
return !((Ie = ke.children) != null && Ie.length);
|
|
32515
32515
|
})) return S.value;
|
|
32516
|
-
const U = f.value.find((
|
|
32516
|
+
const U = f.value.find((ke) => ke.path.some((Ie) => Ie.value === S.value));
|
|
32517
32517
|
return (we = U == null ? void 0 : U.path.at(-2)) == null ? void 0 : we.value;
|
|
32518
32518
|
}
|
|
32519
32519
|
function un(S) {
|
|
@@ -32808,7 +32808,7 @@ function sD(e, n) {
|
|
|
32808
32808
|
return !1;
|
|
32809
32809
|
return !0;
|
|
32810
32810
|
}
|
|
32811
|
-
const
|
|
32811
|
+
const De = {
|
|
32812
32812
|
userId: void 0,
|
|
32813
32813
|
uploadOssApi: void 0,
|
|
32814
32814
|
uploadOssViewApi: void 0,
|
|
@@ -32861,21 +32861,21 @@ const Se = {
|
|
|
32861
32861
|
isSelectFirstOption: !1,
|
|
32862
32862
|
renderType: "table"
|
|
32863
32863
|
}
|
|
32864
|
-
}, uD = (e) => Me.merge(
|
|
32864
|
+
}, uD = (e) => Me.merge(De, e ?? {}), cD = {
|
|
32865
32865
|
/** 测试标识 */
|
|
32866
|
-
testId:
|
|
32866
|
+
testId: Se.string,
|
|
32867
32867
|
/** 是否显示 */
|
|
32868
32868
|
visible: { type: Boolean },
|
|
32869
32869
|
/** 标题 */
|
|
32870
|
-
title:
|
|
32870
|
+
title: Se.string.def(""),
|
|
32871
32871
|
/** 取消按钮文本 */
|
|
32872
32872
|
cancelText: { type: String, default: "取消" },
|
|
32873
32873
|
/** 确定按钮文本 */
|
|
32874
32874
|
okText: { type: String, default: "确定" },
|
|
32875
32875
|
/** 最小高度 */
|
|
32876
|
-
minHeight:
|
|
32876
|
+
minHeight: Se.number.def(192),
|
|
32877
32877
|
/** 高度 */
|
|
32878
|
-
height:
|
|
32878
|
+
height: Se.number,
|
|
32879
32879
|
/** 是否滚动到顶 */
|
|
32880
32880
|
scrollTop: { type: Boolean, default: !0 },
|
|
32881
32881
|
/** 取消前的函数 */
|
|
@@ -32927,7 +32927,7 @@ const Se = {
|
|
|
32927
32927
|
/** 是否显示modal */
|
|
32928
32928
|
modal: {
|
|
32929
32929
|
type: Boolean,
|
|
32930
|
-
default: () =>
|
|
32930
|
+
default: () => De.showMask
|
|
32931
32931
|
}
|
|
32932
32932
|
}), dD = { class: "flex" }, gD = { class: "flex-1" }, hD = /* @__PURE__ */ ye({
|
|
32933
32933
|
name: "TtModalFooter",
|
|
@@ -32997,7 +32997,7 @@ const Se = {
|
|
|
32997
32997
|
__name: "ModalHeader",
|
|
32998
32998
|
props: {
|
|
32999
32999
|
/** 标题 */
|
|
33000
|
-
title:
|
|
33000
|
+
title: Se.string
|
|
33001
33001
|
},
|
|
33002
33002
|
setup(e) {
|
|
33003
33003
|
const { prefixCls: n } = xn("modal-header");
|
|
@@ -33122,7 +33122,7 @@ class Sd {
|
|
|
33122
33122
|
cancelButtonProps: {},
|
|
33123
33123
|
isBottom: !1,
|
|
33124
33124
|
resizeChange: void 0,
|
|
33125
|
-
modal:
|
|
33125
|
+
modal: De.showMask
|
|
33126
33126
|
};
|
|
33127
33127
|
this.store = new wa(Vn(u, s), {
|
|
33128
33128
|
onUpdate: () => {
|
|
@@ -33838,7 +33838,7 @@ const Rv = Sn(Bd), D8 = Rv, kD = {
|
|
|
33838
33838
|
closeModal: m.closeModal,
|
|
33839
33839
|
getFileList: p
|
|
33840
33840
|
});
|
|
33841
|
-
const b = k(() => s.value.length > l.gridThreshold), D = k(() => l.limit ?? 0), E = k(() => l.uploadOssApi ??
|
|
33841
|
+
const b = k(() => s.value.length > l.gridThreshold), D = k(() => l.limit ?? 0), E = k(() => l.uploadOssApi ?? De.uploadOssApi), I = k(() => l.uploadOssViewApi ?? De.uploadOssViewApi);
|
|
33842
33842
|
async function w(Q, Y) {
|
|
33843
33843
|
const F = `${l.ossDir || Y.dir || "notice"}/${Date.now()}_${Q.name}`, te = new FormData();
|
|
33844
33844
|
te.append("key", F), te.append("policy", Y.policy), te.append("x-oss-signature-version", Y.version), te.append("x-oss-signature", Y.signature), te.append("x-oss-credential", Y.x_oss_credential), te.append("x-oss-date", Y.x_oss_date), te.append("x-oss-security-token", Y.security_token), Y.callback && te.append("callback", Y.callback), te.append("success_action_status", "200"), te.append("file", Q);
|
|
@@ -35689,11 +35689,11 @@ function ry(e) {
|
|
|
35689
35689
|
}, {})), B = e == null ? void 0 : e.validationSchema;
|
|
35690
35690
|
function j(q, S) {
|
|
35691
35691
|
var U, ge;
|
|
35692
|
-
const we = k(() => Ot(w.value, ne(q))),
|
|
35693
|
-
if (
|
|
35694
|
-
|
|
35692
|
+
const we = k(() => Ot(w.value, ne(q))), ke = h.value[ne(q)], Ie = (S == null ? void 0 : S.type) === "checkbox" || (S == null ? void 0 : S.type) === "radio";
|
|
35693
|
+
if (ke && Ie) {
|
|
35694
|
+
ke.multiple = !0;
|
|
35695
35695
|
const It = t++;
|
|
35696
|
-
return Array.isArray(
|
|
35696
|
+
return Array.isArray(ke.id) ? ke.id.push(It) : ke.id = [ke.id, It], ke.fieldsCount++, ke.__flags.pendingUnmount[It] = !1, ke;
|
|
35697
35697
|
}
|
|
35698
35698
|
const pn = k(() => Ot(s, ne(q))), zn = ne(q), Wn = W.findIndex((It) => It === zn);
|
|
35699
35699
|
Wn !== -1 && W.splice(Wn, 1);
|
|
@@ -35739,21 +35739,21 @@ function ry(e) {
|
|
|
35739
35739
|
}
|
|
35740
35740
|
const P = iA(Fn, 5), _ = iA(Fn, 5), O = qc(async (q) => await (q === "silent" ? P() : _()), (q, [S]) => {
|
|
35741
35741
|
const U = Bt(N.errorBag.value), we = [
|
|
35742
|
-
.../* @__PURE__ */ new Set([...Bt(q.results), ...c.value.map((
|
|
35743
|
-
].sort().reduce((
|
|
35742
|
+
.../* @__PURE__ */ new Set([...Bt(q.results), ...c.value.map((ke) => ke.path), ...U])
|
|
35743
|
+
].sort().reduce((ke, Ie) => {
|
|
35744
35744
|
var pn;
|
|
35745
|
-
const zn = Ie, Wn = K(zn) || R(zn), sn = ((pn = q.results[zn]) === null || pn === void 0 ? void 0 : pn.errors) || [], Zn = ne(Wn == null ? void 0 : Wn.path) || zn, ct = BS({ errors: sn, valid: !sn.length },
|
|
35746
|
-
return
|
|
35745
|
+
const zn = Ie, Wn = K(zn) || R(zn), sn = ((pn = q.results[zn]) === null || pn === void 0 ? void 0 : pn.errors) || [], Zn = ne(Wn == null ? void 0 : Wn.path) || zn, ct = BS({ errors: sn, valid: !sn.length }, ke.results[Zn]);
|
|
35746
|
+
return ke.results[Zn] = ct, ct.valid || (ke.errors[Zn] = ct.errors[0]), Wn && d.value[Zn] && delete d.value[Zn], Wn ? (Wn.valid = ct.valid, S === "silent" || S === "validated-only" && !Wn.validated || A(Wn, ct.errors), ke) : (A(Zn, sn), ke);
|
|
35747
35747
|
}, {
|
|
35748
35748
|
valid: q.valid,
|
|
35749
35749
|
results: {},
|
|
35750
35750
|
errors: {},
|
|
35751
35751
|
source: q.source
|
|
35752
35752
|
});
|
|
35753
|
-
return q.values && (we.values = q.values, we.source = q.source), Bt(we.results).forEach((
|
|
35753
|
+
return q.values && (we.values = q.values, we.source = q.source), Bt(we.results).forEach((ke) => {
|
|
35754
35754
|
var Ie;
|
|
35755
|
-
const pn = K(
|
|
35756
|
-
pn && S !== "silent" && (S === "validated-only" && !pn.validated || A(pn, (Ie = we.results[
|
|
35755
|
+
const pn = K(ke);
|
|
35756
|
+
pn && S !== "silent" && (S === "validated-only" && !pn.validated || A(pn, (Ie = we.results[ke]) === null || Ie === void 0 ? void 0 : Ie.errors));
|
|
35757
35757
|
}), we;
|
|
35758
35758
|
});
|
|
35759
35759
|
function J(q) {
|
|
@@ -35776,14 +35776,14 @@ function ry(e) {
|
|
|
35776
35776
|
}
|
|
35777
35777
|
function le(q) {
|
|
35778
35778
|
return function(U, ge) {
|
|
35779
|
-
return function(
|
|
35780
|
-
return
|
|
35779
|
+
return function(ke) {
|
|
35780
|
+
return ke instanceof Event && (ke.preventDefault(), ke.stopPropagation()), J((Ie) => Ie.touched = !0), o.value = !0, l.value++, On().then((Ie) => {
|
|
35781
35781
|
const pn = dn(s);
|
|
35782
35782
|
if (Ie.valid && typeof U == "function") {
|
|
35783
35783
|
const zn = dn(z.value);
|
|
35784
35784
|
let Wn = q ? zn : pn;
|
|
35785
35785
|
return Ie.values && (Wn = Ie.source === "schema" ? Ie.values : Object.assign({}, Wn, Ie.values)), U(Wn, {
|
|
35786
|
-
evt:
|
|
35786
|
+
evt: ke,
|
|
35787
35787
|
controlledValues: zn,
|
|
35788
35788
|
setErrors: v,
|
|
35789
35789
|
setFieldError: A,
|
|
@@ -35797,7 +35797,7 @@ function ry(e) {
|
|
|
35797
35797
|
}
|
|
35798
35798
|
!Ie.valid && typeof ge == "function" && ge({
|
|
35799
35799
|
values: pn,
|
|
35800
|
-
evt:
|
|
35800
|
+
evt: ke,
|
|
35801
35801
|
errors: Ie.errors,
|
|
35802
35802
|
results: Ie.results
|
|
35803
35803
|
});
|
|
@@ -35894,8 +35894,8 @@ function ry(e) {
|
|
|
35894
35894
|
},
|
|
35895
35895
|
set(ge) {
|
|
35896
35896
|
var we;
|
|
35897
|
-
const
|
|
35898
|
-
re(
|
|
35897
|
+
const ke = ne(q);
|
|
35898
|
+
re(ke, ge, (we = ne(S)) !== null && we !== void 0 ? we : !1);
|
|
35899
35899
|
}
|
|
35900
35900
|
});
|
|
35901
35901
|
}
|
|
@@ -35961,17 +35961,17 @@ function ry(e) {
|
|
|
35961
35961
|
value: void 0
|
|
35962
35962
|
})));
|
|
35963
35963
|
a.value = !1;
|
|
35964
|
-
const ge = {}, we = {},
|
|
35964
|
+
const ge = {}, we = {}, ke = {};
|
|
35965
35965
|
for (const Ie of U)
|
|
35966
35966
|
ge[Ie.key] = {
|
|
35967
35967
|
valid: Ie.valid,
|
|
35968
35968
|
errors: Ie.errors
|
|
35969
|
-
}, Ie.value && ui(
|
|
35969
|
+
}, Ie.value && ui(ke, Ie.key, Ie.value), Ie.errors.length && (we[Ie.key] = Ie.errors[0]);
|
|
35970
35970
|
return {
|
|
35971
35971
|
valid: U.every((Ie) => Ie.valid),
|
|
35972
35972
|
results: ge,
|
|
35973
35973
|
errors: we,
|
|
35974
|
-
values:
|
|
35974
|
+
values: ke,
|
|
35975
35975
|
source: "fields"
|
|
35976
35976
|
};
|
|
35977
35977
|
}
|
|
@@ -35979,8 +35979,8 @@ function ry(e) {
|
|
|
35979
35979
|
var U;
|
|
35980
35980
|
const ge = K(q);
|
|
35981
35981
|
if (ge && (S == null ? void 0 : S.mode) !== "silent" && (ge.validated = !0), B) {
|
|
35982
|
-
const { results:
|
|
35983
|
-
return
|
|
35982
|
+
const { results: ke } = await O((S == null ? void 0 : S.mode) || "validated-only");
|
|
35983
|
+
return ke[q] || { errors: [], valid: !0 };
|
|
35984
35984
|
}
|
|
35985
35985
|
return ge != null && ge.validate ? ge.validate(S) : (!ge && ((U = S == null ? void 0 : S.warn) !== null && U !== void 0 ? U : !0) && process.env.NODE_ENV !== "production" && Ap(`field with path ${q} was not found`), Promise.resolve({ errors: [], valid: !0 }));
|
|
35986
35986
|
}
|
|
@@ -36021,7 +36021,7 @@ function ry(e) {
|
|
|
36021
36021
|
}));
|
|
36022
36022
|
function si(q, S) {
|
|
36023
36023
|
const U = et(S) || S == null ? void 0 : S.label, ge = K(ne(q)) || j(q, { label: U }), we = () => et(S) ? S(Dl(ge, Sl)) : S || {};
|
|
36024
|
-
function
|
|
36024
|
+
function ke() {
|
|
36025
36025
|
var sn;
|
|
36026
36026
|
ge.touched = !0, ((sn = we().validateOnBlur) !== null && sn !== void 0 ? sn : mr().validateOnBlur) && wn(ne(ge.path));
|
|
36027
36027
|
}
|
|
@@ -36041,7 +36041,7 @@ function ry(e) {
|
|
|
36041
36041
|
const sn = {
|
|
36042
36042
|
onChange: pn,
|
|
36043
36043
|
onInput: Ie,
|
|
36044
|
-
onBlur:
|
|
36044
|
+
onBlur: ke
|
|
36045
36045
|
};
|
|
36046
36046
|
return et(S) ? Object.assign(Object.assign({}, sn), S(Dl(ge, Sl)).props || {}) : S != null && S.props ? Object.assign(Object.assign({}, sn), S.props(Dl(ge, Sl))) : sn;
|
|
36047
36047
|
});
|
|
@@ -36058,7 +36058,7 @@ function ry(e) {
|
|
|
36058
36058
|
function we() {
|
|
36059
36059
|
ge.value.onBlur();
|
|
36060
36060
|
}
|
|
36061
|
-
function
|
|
36061
|
+
function ke(pn) {
|
|
36062
36062
|
const zn = fs(pn);
|
|
36063
36063
|
re(ne(q), zn, !1), ge.value.onInput();
|
|
36064
36064
|
}
|
|
@@ -36068,19 +36068,19 @@ function ry(e) {
|
|
|
36068
36068
|
}
|
|
36069
36069
|
return k(() => Object.assign(Object.assign({}, ge.value), {
|
|
36070
36070
|
onBlur: we,
|
|
36071
|
-
onInput:
|
|
36071
|
+
onInput: ke,
|
|
36072
36072
|
onChange: Ie,
|
|
36073
36073
|
value: U.value
|
|
36074
36074
|
}));
|
|
36075
36075
|
}
|
|
36076
36076
|
function cn(q, S) {
|
|
36077
36077
|
const [U, ge] = si(q, S), we = K(ne(q));
|
|
36078
|
-
function
|
|
36078
|
+
function ke(Ie) {
|
|
36079
36079
|
U.value = Ie;
|
|
36080
36080
|
}
|
|
36081
36081
|
return k(() => {
|
|
36082
36082
|
const Ie = et(S) ? S(Dl(we, Sl)) : S || {};
|
|
36083
|
-
return Object.assign({ [Ie.model || "modelValue"]: U.value, [`onUpdate:${Ie.model || "modelValue"}`]:
|
|
36083
|
+
return Object.assign({ [Ie.model || "modelValue"]: U.value, [`onUpdate:${Ie.model || "modelValue"}`]: ke }, ge.value);
|
|
36084
36084
|
});
|
|
36085
36085
|
}
|
|
36086
36086
|
const Jn = Object.assign(Object.assign({}, N), { values: mp(s), handleReset: () => kn(), submitForm: Mn });
|
|
@@ -49020,7 +49020,7 @@ const o6 = { class: "flex-auto overflow-hidden" }, a6 = {
|
|
|
49020
49020
|
__name: "FormField",
|
|
49021
49021
|
props: {
|
|
49022
49022
|
component: {},
|
|
49023
|
-
componentProps: { type: Function },
|
|
49023
|
+
componentProps: { type: [Function, Object] },
|
|
49024
49024
|
defaultValue: {},
|
|
49025
49025
|
dependencies: {},
|
|
49026
49026
|
description: { type: [Function, String] },
|
|
@@ -52084,18 +52084,18 @@ const Q8 = {
|
|
|
52084
52084
|
}
|
|
52085
52085
|
}, O8 = Sn(zf), cx = {
|
|
52086
52086
|
/** 确定抽屉的loading */
|
|
52087
|
-
confirmLoading:
|
|
52087
|
+
confirmLoading: Se.bool.def(!1),
|
|
52088
52088
|
/** 是否显示取消按钮 */
|
|
52089
|
-
showCancelBtn:
|
|
52089
|
+
showCancelBtn: Se.bool.def(!0),
|
|
52090
52090
|
/** 取消按钮的props */
|
|
52091
52091
|
cancelButtonProps: {
|
|
52092
52092
|
type: Object,
|
|
52093
52093
|
default: {}
|
|
52094
52094
|
},
|
|
52095
52095
|
/** 取消按钮的文本 */
|
|
52096
|
-
cancelText:
|
|
52096
|
+
cancelText: Se.string.def("取消"),
|
|
52097
52097
|
/** 是否显示确定按钮 */
|
|
52098
|
-
showOkBtn:
|
|
52098
|
+
showOkBtn: Se.bool.def(!0),
|
|
52099
52099
|
/** 确定按钮的props */
|
|
52100
52100
|
okButtonProps: {
|
|
52101
52101
|
type: Object,
|
|
@@ -52104,33 +52104,33 @@ const Q8 = {
|
|
|
52104
52104
|
}
|
|
52105
52105
|
},
|
|
52106
52106
|
/** 确定按钮的文本 */
|
|
52107
|
-
okText:
|
|
52107
|
+
okText: Se.string.def("确认"),
|
|
52108
52108
|
/** 确定按钮的类型 */
|
|
52109
|
-
okType:
|
|
52109
|
+
okType: Se.string.def("primary"),
|
|
52110
52110
|
/** 是否显示footer */
|
|
52111
|
-
showFooter:
|
|
52111
|
+
showFooter: Se.bool,
|
|
52112
52112
|
/** footer高度 */
|
|
52113
52113
|
footerHeight: {
|
|
52114
52114
|
type: [String, Number],
|
|
52115
52115
|
default: 44
|
|
52116
52116
|
},
|
|
52117
|
-
height:
|
|
52118
|
-
size:
|
|
52117
|
+
height: Se.string.def("56px"),
|
|
52118
|
+
size: Se.string.def("30%")
|
|
52119
52119
|
}, $6 = {
|
|
52120
52120
|
/** class */
|
|
52121
|
-
class:
|
|
52121
|
+
class: Se.string.def(""),
|
|
52122
52122
|
/** 标题 */
|
|
52123
|
-
title:
|
|
52123
|
+
title: Se.string.def(""),
|
|
52124
52124
|
/** 测试标识 */
|
|
52125
|
-
testId:
|
|
52125
|
+
testId: Se.string,
|
|
52126
52126
|
/** loading文本 */
|
|
52127
|
-
loadingText:
|
|
52127
|
+
loadingText: Se.string,
|
|
52128
52128
|
/** 显示 */
|
|
52129
|
-
visible:
|
|
52129
|
+
visible: Se.bool.def(!1),
|
|
52130
52130
|
/** 显示loading */
|
|
52131
|
-
loading:
|
|
52131
|
+
loading: Se.bool.def(!1),
|
|
52132
52132
|
/** 是否点击遮罩关闭弹窗 */
|
|
52133
|
-
maskClosable:
|
|
52133
|
+
maskClosable: Se.bool.def(!0),
|
|
52134
52134
|
/** 是否关闭销毁组件 */
|
|
52135
52135
|
destroyOnClose: { type: Boolean },
|
|
52136
52136
|
/** 取消前事件 */
|
|
@@ -52138,13 +52138,13 @@ const Q8 = {
|
|
|
52138
52138
|
type: Function
|
|
52139
52139
|
},
|
|
52140
52140
|
/** 取消前是否显示确认弹窗 */
|
|
52141
|
-
showConfirm:
|
|
52141
|
+
showConfirm: Se.bool.def(!1),
|
|
52142
52142
|
/** 确认弹窗文本内容 */
|
|
52143
|
-
confirmContent:
|
|
52143
|
+
confirmContent: Se.string.def(De.confirmContent || ""),
|
|
52144
52144
|
/** 是否显示modal */
|
|
52145
52145
|
modal: {
|
|
52146
52146
|
type: Boolean,
|
|
52147
|
-
default: () =>
|
|
52147
|
+
default: () => De.showMask
|
|
52148
52148
|
},
|
|
52149
52149
|
...cx
|
|
52150
52150
|
}, J6 = /* @__PURE__ */ ye({
|
|
@@ -52199,7 +52199,7 @@ const Q8 = {
|
|
|
52199
52199
|
__name: "DrawerHeader",
|
|
52200
52200
|
props: {
|
|
52201
52201
|
/** 标题 */
|
|
52202
|
-
title:
|
|
52202
|
+
title: Se.string
|
|
52203
52203
|
},
|
|
52204
52204
|
setup(e) {
|
|
52205
52205
|
const { prefixCls: n } = xn("drawer-header");
|
|
@@ -52367,7 +52367,7 @@ class Ef {
|
|
|
52367
52367
|
destroyOnClose: !1,
|
|
52368
52368
|
closeFunc: void 0,
|
|
52369
52369
|
showConfirm: !1,
|
|
52370
|
-
modal:
|
|
52370
|
+
modal: De.showMask
|
|
52371
52371
|
};
|
|
52372
52372
|
this.store = new wa(Vn(u, s), {
|
|
52373
52373
|
onUpdate: () => {
|
|
@@ -52787,13 +52787,13 @@ const oQ = Sn(If), aQ = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBL
|
|
|
52787
52787
|
/** 是否分割线 */
|
|
52788
52788
|
// divider: propTypes.bool.def(true),
|
|
52789
52789
|
/** 是否清除冒泡 */
|
|
52790
|
-
stopButtonPropagation:
|
|
52790
|
+
stopButtonPropagation: Se.bool.def(!1),
|
|
52791
52791
|
/** 显示buttton的个数 默认是2 */
|
|
52792
|
-
showBtnNums:
|
|
52792
|
+
showBtnNums: Se.number.def(3),
|
|
52793
52793
|
/** 弹出框的宽度 */
|
|
52794
|
-
popoverWidth:
|
|
52794
|
+
popoverWidth: Se.number.def(27),
|
|
52795
52795
|
/** 是否自动换行 */
|
|
52796
|
-
wrap:
|
|
52796
|
+
wrap: Se.bool.def(!0)
|
|
52797
52797
|
},
|
|
52798
52798
|
setup(e) {
|
|
52799
52799
|
const n = e, i = Et(), { prefixCls: r } = xn("table-action"), t = H(!1), o = Cn(
|
|
@@ -52990,9 +52990,9 @@ const hQ = /* @__PURE__ */ ye({
|
|
|
52990
52990
|
default: () => []
|
|
52991
52991
|
},
|
|
52992
52992
|
/** 分割线 */
|
|
52993
|
-
divider:
|
|
52993
|
+
divider: Se.bool.def(!0),
|
|
52994
52994
|
/** 是否阻止默认行为 */
|
|
52995
|
-
stopButtonPropagation:
|
|
52995
|
+
stopButtonPropagation: Se.bool.def(!0)
|
|
52996
52996
|
},
|
|
52997
52997
|
setup(e, {
|
|
52998
52998
|
slots: n
|
|
@@ -54487,7 +54487,7 @@ function aO(e, n, i, r) {
|
|
|
54487
54487
|
var a, l;
|
|
54488
54488
|
(a = g(e).checkboxConfig) != null && a.range && g(e).showCheckbox ? r.onCheckboxRangeChange({
|
|
54489
54489
|
records: o.rows
|
|
54490
|
-
}) : (l =
|
|
54490
|
+
}) : (l = De.table) != null && l.isAreaCheckboxSelection && r.onCellAreaSelectionEndSetCheckbox(o), n("cell-area-selection-end", o);
|
|
54491
54491
|
}
|
|
54492
54492
|
};
|
|
54493
54493
|
}
|
|
@@ -54609,7 +54609,7 @@ function gO({
|
|
|
54609
54609
|
resizable: u,
|
|
54610
54610
|
...n
|
|
54611
54611
|
};
|
|
54612
|
-
const h = s || ((f =
|
|
54612
|
+
const h = s || ((f = De.table) == null ? void 0 : f.customizeColumn);
|
|
54613
54613
|
return h && no(h) && (d = h(d)), d = uO(d, r), d = cO(d, i, t), d = dO(d), d;
|
|
54614
54614
|
}
|
|
54615
54615
|
function hO(e, {
|
|
@@ -54780,10 +54780,10 @@ function fO(e, {
|
|
|
54780
54780
|
resultTotal: q4(J) ? 0 : Number(J)
|
|
54781
54781
|
};
|
|
54782
54782
|
}
|
|
54783
|
-
async function p(z = ((j) => (j =
|
|
54783
|
+
async function p(z = ((j) => (j = De.table) == null ? void 0 : j.beforeFetch)(), B) {
|
|
54784
54784
|
return z && ze(z) && (B = await z(B) || B), B;
|
|
54785
54785
|
}
|
|
54786
|
-
async function b(z = ((P) => (P =
|
|
54786
|
+
async function b(z = ((P) => (P = De.table) == null ? void 0 : P.afterFetch)(), B, j) {
|
|
54787
54787
|
const { isScrollFetch: _, currentPageField: O = "" } = g(e);
|
|
54788
54788
|
return z && ze(z) && (B = await z(B, g(d)) || B), _ && qe(j, O, 1) !== 1 && (B = [...g(c), ...B]), B;
|
|
54789
54789
|
}
|
|
@@ -54857,7 +54857,7 @@ function fO(e, {
|
|
|
54857
54857
|
const B = {
|
|
54858
54858
|
...g(r)
|
|
54859
54859
|
};
|
|
54860
|
-
(j =
|
|
54860
|
+
(j = De.table) != null && j.isReloadResetToFirstPage && (B.currentPage = 1), z ? await D({
|
|
54861
54861
|
tablePage: Object.hasOwn(z, "tablePage") ? z.tablePage : B,
|
|
54862
54862
|
searchInfo: Object.hasOwn(z, "searchInfo") ? z.searchInfo : z
|
|
54863
54863
|
}) : await D({
|
|
@@ -55037,7 +55037,7 @@ function mO(e, n, i) {
|
|
|
55037
55037
|
function AO(e, n) {
|
|
55038
55038
|
var l;
|
|
55039
55039
|
const i = H(
|
|
55040
|
-
Vn(g(e).pagerConfig || {}, ((l =
|
|
55040
|
+
Vn(g(e).pagerConfig || {}, ((l = De.table) == null ? void 0 : l.pagerConfig) || {})
|
|
55041
55041
|
), r = k(() => {
|
|
55042
55042
|
const { showPager: u, pagerConfig: s } = g(e);
|
|
55043
55043
|
if (!(!u && !s))
|
|
@@ -55357,15 +55357,15 @@ function wO(e, n, i, r, t, o) {
|
|
|
55357
55357
|
}
|
|
55358
55358
|
const bO = {
|
|
55359
55359
|
/** 是否显示分页 */
|
|
55360
|
-
showPager:
|
|
55360
|
+
showPager: Se.bool.def(!0),
|
|
55361
55361
|
/** 数据总数 */
|
|
55362
|
-
total:
|
|
55362
|
+
total: Se.number.def(0),
|
|
55363
55363
|
/** 当前页数 field */
|
|
55364
55364
|
currentPageField: {
|
|
55365
55365
|
type: String,
|
|
55366
55366
|
default: () => {
|
|
55367
55367
|
var e;
|
|
55368
|
-
return (e =
|
|
55368
|
+
return (e = De.table) == null ? void 0 : e.currentPageField;
|
|
55369
55369
|
}
|
|
55370
55370
|
},
|
|
55371
55371
|
/** 当前页的大小 field */
|
|
@@ -55373,7 +55373,7 @@ const bO = {
|
|
|
55373
55373
|
type: String,
|
|
55374
55374
|
default: () => {
|
|
55375
55375
|
var e;
|
|
55376
|
-
return (e =
|
|
55376
|
+
return (e = De.table) == null ? void 0 : e.pageSizeField;
|
|
55377
55377
|
}
|
|
55378
55378
|
},
|
|
55379
55379
|
/** 总数 field */
|
|
@@ -55381,7 +55381,7 @@ const bO = {
|
|
|
55381
55381
|
type: String,
|
|
55382
55382
|
default: () => {
|
|
55383
55383
|
var e;
|
|
55384
|
-
return (e =
|
|
55384
|
+
return (e = De.table) == null ? void 0 : e.totalField;
|
|
55385
55385
|
}
|
|
55386
55386
|
},
|
|
55387
55387
|
/** 数据的 field */
|
|
@@ -55389,39 +55389,39 @@ const bO = {
|
|
|
55389
55389
|
type: String,
|
|
55390
55390
|
default: () => {
|
|
55391
55391
|
var e;
|
|
55392
|
-
return (e =
|
|
55392
|
+
return (e = De.table) == null ? void 0 : e.dataField;
|
|
55393
55393
|
}
|
|
55394
55394
|
}
|
|
55395
55395
|
}, CO = {
|
|
55396
55396
|
/** 是否显示复选框 */
|
|
55397
|
-
showCheckbox:
|
|
55397
|
+
showCheckbox: Se.bool.def(!1),
|
|
55398
55398
|
/** 是否显示单选框 */
|
|
55399
|
-
showRadio:
|
|
55399
|
+
showRadio: Se.bool.def(!1),
|
|
55400
55400
|
/** 是否显示展开列 */
|
|
55401
|
-
showExpand:
|
|
55401
|
+
showExpand: Se.bool.def(!1),
|
|
55402
55402
|
/** 是否显示序号 */
|
|
55403
|
-
showIndex:
|
|
55403
|
+
showIndex: Se.bool.def(!1),
|
|
55404
55404
|
/** 是否需要列拖拽 */
|
|
55405
|
-
isCellResize:
|
|
55405
|
+
isCellResize: Se.bool.def(!1),
|
|
55406
55406
|
/**
|
|
55407
55407
|
* 是否拖动列
|
|
55408
55408
|
* @deprecated 请使用 column-config drag 配合column-drag-config配置 支持的版本看官方文档,后续不在维护列拖拽
|
|
55409
55409
|
* @default true
|
|
55410
55410
|
*/
|
|
55411
|
-
isColumnsDrag:
|
|
55411
|
+
isColumnsDrag: Se.bool.def(!1),
|
|
55412
55412
|
/** 是否列排序 */
|
|
55413
|
-
isCellSort:
|
|
55413
|
+
isCellSort: Se.bool.def(!1),
|
|
55414
55414
|
/**
|
|
55415
55415
|
* 是否checkbox区域选择 选中数据
|
|
55416
55416
|
* @deprecated
|
|
55417
55417
|
*/
|
|
55418
|
-
isAreaCheckData:
|
|
55418
|
+
isAreaCheckData: Se.bool.def(!1),
|
|
55419
55419
|
/** 是否显示操作列 */
|
|
55420
|
-
showAction:
|
|
55420
|
+
showAction: Se.bool.def(!1),
|
|
55421
55421
|
/** 操作列宽度 */
|
|
55422
|
-
actionWidth:
|
|
55422
|
+
actionWidth: Se.number.def(0),
|
|
55423
55423
|
/** 操作列列名 */
|
|
55424
|
-
actionTitle:
|
|
55424
|
+
actionTitle: Se.string.def(""),
|
|
55425
55425
|
/** 操作列Props */
|
|
55426
55426
|
actionProps: {
|
|
55427
55427
|
type: Object,
|
|
@@ -55452,7 +55452,7 @@ const bO = {
|
|
|
55452
55452
|
type: String,
|
|
55453
55453
|
default: () => {
|
|
55454
55454
|
var e;
|
|
55455
|
-
return (e =
|
|
55455
|
+
return (e = De.table) == null ? void 0 : e.tableRowId;
|
|
55456
55456
|
}
|
|
55457
55457
|
},
|
|
55458
55458
|
/** 自定义Column函数 */
|
|
@@ -55472,7 +55472,7 @@ const bO = {
|
|
|
55472
55472
|
default: () => ({})
|
|
55473
55473
|
},
|
|
55474
55474
|
/** 是否初始化加载数据 */
|
|
55475
|
-
immediate:
|
|
55475
|
+
immediate: Se.bool.def(!0),
|
|
55476
55476
|
/**
|
|
55477
55477
|
* 请求的状态吗
|
|
55478
55478
|
* @deprecated
|
|
@@ -55508,17 +55508,17 @@ const bO = {
|
|
|
55508
55508
|
}
|
|
55509
55509
|
}, zO = {
|
|
55510
55510
|
/** 是否显示toolbar */
|
|
55511
|
-
showToolbar:
|
|
55511
|
+
showToolbar: Se.bool.def(!1),
|
|
55512
55512
|
/** 具体某些列排序 field数组 */
|
|
55513
|
-
columnsFieldSort:
|
|
55513
|
+
columnsFieldSort: Se.array.def([]),
|
|
55514
55514
|
/** 具体某些列不排序 field数组 */
|
|
55515
|
-
columnsFieldNoSort:
|
|
55515
|
+
columnsFieldNoSort: Se.array.def([]),
|
|
55516
55516
|
/** 是否显示右边刷新按钮 */
|
|
55517
55517
|
showRefresh: {
|
|
55518
55518
|
type: Boolean,
|
|
55519
55519
|
default: () => {
|
|
55520
55520
|
var e;
|
|
55521
|
-
return (e =
|
|
55521
|
+
return (e = De.table) == null ? void 0 : e.showRefresh;
|
|
55522
55522
|
}
|
|
55523
55523
|
},
|
|
55524
55524
|
/** 是否显示右边设置 */
|
|
@@ -55526,7 +55526,7 @@ const bO = {
|
|
|
55526
55526
|
type: Boolean,
|
|
55527
55527
|
default: () => {
|
|
55528
55528
|
var e;
|
|
55529
|
-
return (e =
|
|
55529
|
+
return (e = De.table) == null ? void 0 : e.showSetting;
|
|
55530
55530
|
}
|
|
55531
55531
|
},
|
|
55532
55532
|
/** 是否显示自定义列 */
|
|
@@ -55534,7 +55534,7 @@ const bO = {
|
|
|
55534
55534
|
type: Boolean,
|
|
55535
55535
|
default: () => {
|
|
55536
55536
|
var e;
|
|
55537
|
-
return (e =
|
|
55537
|
+
return (e = De.table) == null ? void 0 : e.showSetColumn;
|
|
55538
55538
|
}
|
|
55539
55539
|
},
|
|
55540
55540
|
/** 是否显示自定义行距 */
|
|
@@ -55542,51 +55542,51 @@ const bO = {
|
|
|
55542
55542
|
type: Boolean,
|
|
55543
55543
|
default: () => {
|
|
55544
55544
|
var e;
|
|
55545
|
-
return (e =
|
|
55545
|
+
return (e = De.table) == null ? void 0 : e.showLineHeight;
|
|
55546
55546
|
}
|
|
55547
55547
|
},
|
|
55548
55548
|
/** 不可自定义列数组 field数组 */
|
|
55549
|
-
notSetColumnField:
|
|
55549
|
+
notSetColumnField: Se.array.def([]),
|
|
55550
55550
|
/** 需要对不显示的字段进行过滤 主要针对于自定义 field数组 */
|
|
55551
|
-
filterNoVisibleField:
|
|
55551
|
+
filterNoVisibleField: Se.array.def([]),
|
|
55552
55552
|
/** 是否显示表格上方 alert */
|
|
55553
|
-
showTableAlert:
|
|
55553
|
+
showTableAlert: Se.bool.def(!1)
|
|
55554
55554
|
}, ad = {
|
|
55555
55555
|
modelValue: {
|
|
55556
55556
|
type: Array,
|
|
55557
55557
|
default: () => []
|
|
55558
55558
|
},
|
|
55559
55559
|
/** 标题内容 */
|
|
55560
|
-
title:
|
|
55560
|
+
title: Se.string.def(""),
|
|
55561
55561
|
/** 是否显示标题 */
|
|
55562
|
-
showTitle:
|
|
55562
|
+
showTitle: Se.bool.def(!1),
|
|
55563
55563
|
/** 是否自适应高度 */
|
|
55564
|
-
autoHeight:
|
|
55564
|
+
autoHeight: Se.bool.def(!0),
|
|
55565
55565
|
/**
|
|
55566
55566
|
* 额外减去的高度
|
|
55567
55567
|
* @deprecated
|
|
55568
55568
|
*/
|
|
55569
|
-
offsetHeight:
|
|
55569
|
+
offsetHeight: Se.number.def(12),
|
|
55570
55570
|
/** 左侧插槽的宽度 */
|
|
55571
|
-
leftSlotWidth:
|
|
55571
|
+
leftSlotWidth: Se.number.def(0),
|
|
55572
55572
|
/** 右侧插槽的宽度 */
|
|
55573
|
-
rightSlotWidth:
|
|
55573
|
+
rightSlotWidth: Se.number.def(0),
|
|
55574
55574
|
/** loading text */
|
|
55575
55575
|
loadingText: {
|
|
55576
55576
|
type: String,
|
|
55577
55577
|
default: () => {
|
|
55578
55578
|
var e;
|
|
55579
|
-
return (e =
|
|
55579
|
+
return (e = De.table) == null ? void 0 : e.loadingText;
|
|
55580
55580
|
}
|
|
55581
55581
|
},
|
|
55582
55582
|
/** 暂无数据的样式 */
|
|
55583
|
-
emptyImageStyle:
|
|
55583
|
+
emptyImageStyle: Se.object.def({}),
|
|
55584
55584
|
/** 暂无数据 */
|
|
55585
55585
|
emptyText: {
|
|
55586
55586
|
type: String,
|
|
55587
55587
|
default: () => {
|
|
55588
55588
|
var e;
|
|
55589
|
-
return (e =
|
|
55589
|
+
return (e = De.table) == null ? void 0 : e.emptyText;
|
|
55590
55590
|
}
|
|
55591
55591
|
},
|
|
55592
55592
|
/**
|
|
@@ -55602,19 +55602,22 @@ const bO = {
|
|
|
55602
55602
|
type: String,
|
|
55603
55603
|
default: () => {
|
|
55604
55604
|
var e;
|
|
55605
|
-
return (e =
|
|
55605
|
+
return (e = De.table) == null ? void 0 : e.noSearchText;
|
|
55606
55606
|
}
|
|
55607
55607
|
},
|
|
55608
55608
|
/** 是否手动触发查询事件 */
|
|
55609
|
-
isHanderSubmit:
|
|
55610
|
-
/** 储存的key
|
|
55611
|
-
columnsKey:
|
|
55609
|
+
isHanderSubmit: Se.bool.def(!1),
|
|
55610
|
+
/** 储存的key值,支持函数动态获取 */
|
|
55611
|
+
columnsKey: {
|
|
55612
|
+
type: [String, Function],
|
|
55613
|
+
default: ""
|
|
55614
|
+
},
|
|
55612
55615
|
/** 是否开启服务端缓存 */
|
|
55613
55616
|
useHttpCache: {
|
|
55614
55617
|
type: Boolean,
|
|
55615
55618
|
default: () => {
|
|
55616
55619
|
var e;
|
|
55617
|
-
return (e =
|
|
55620
|
+
return (e = De.table) == null ? void 0 : e.useHttpCache;
|
|
55618
55621
|
}
|
|
55619
55622
|
},
|
|
55620
55623
|
/** 开启服务端缓存时默认展示的列 用户列为null时默认展示的列 */
|
|
@@ -55622,7 +55625,7 @@ const bO = {
|
|
|
55622
55625
|
type: Array,
|
|
55623
55626
|
default: () => {
|
|
55624
55627
|
var e;
|
|
55625
|
-
return (e =
|
|
55628
|
+
return (e = De.table) == null ? void 0 : e.defaultDisplayFields;
|
|
55626
55629
|
}
|
|
55627
55630
|
},
|
|
55628
55631
|
/**
|
|
@@ -55630,21 +55633,21 @@ const bO = {
|
|
|
55630
55633
|
* @deprecated 请使用 row-config drag 配合row-drag-config配置 支持的版本看官方文档,后续不在维护行拖拽
|
|
55631
55634
|
* @default false
|
|
55632
55635
|
*/
|
|
55633
|
-
treeNode:
|
|
55636
|
+
treeNode: Se.bool.def(!1),
|
|
55634
55637
|
/** 外部插槽 */
|
|
55635
55638
|
getSyncSlotComponent: {
|
|
55636
55639
|
type: Function
|
|
55637
55640
|
},
|
|
55638
55641
|
/** 是否清空树形展开状态 */
|
|
55639
|
-
clearTreeExpand:
|
|
55642
|
+
clearTreeExpand: Se.bool.def(!0),
|
|
55640
55643
|
/** 是否进行国际化 */
|
|
55641
|
-
isI18n:
|
|
55644
|
+
isI18n: Se.bool.def(!0),
|
|
55642
55645
|
/**
|
|
55643
55646
|
* 外部数据是否拷贝一份
|
|
55644
55647
|
* 设置为 false 时,会有性能问题
|
|
55645
55648
|
* @default true
|
|
55646
55649
|
*/
|
|
55647
|
-
isDataCloneDeep:
|
|
55650
|
+
isDataCloneDeep: Se.bool.def(!0),
|
|
55648
55651
|
/** 表格的api */
|
|
55649
55652
|
tableApi: {
|
|
55650
55653
|
type: Object
|
|
@@ -55654,9 +55657,9 @@ const bO = {
|
|
|
55654
55657
|
type: Object
|
|
55655
55658
|
},
|
|
55656
55659
|
/** 是否使用搜索form */
|
|
55657
|
-
useSearchForm:
|
|
55660
|
+
useSearchForm: Se.bool.def(!1),
|
|
55658
55661
|
/** 是否禁用Teleport将节点输送至body */
|
|
55659
|
-
disabledTeleport:
|
|
55662
|
+
disabledTeleport: Se.bool.def(!1),
|
|
55660
55663
|
/** 表格 testId,用于生成测试标识 */
|
|
55661
55664
|
testId: {
|
|
55662
55665
|
type: String,
|
|
@@ -55672,7 +55675,7 @@ const bO = {
|
|
|
55672
55675
|
type: Object,
|
|
55673
55676
|
default: () => {
|
|
55674
55677
|
var e;
|
|
55675
|
-
return (e =
|
|
55678
|
+
return (e = De.table) == null ? void 0 : e.keyboardConfig;
|
|
55676
55679
|
}
|
|
55677
55680
|
},
|
|
55678
55681
|
/** 右键菜单配置项 */
|
|
@@ -55685,7 +55688,7 @@ const bO = {
|
|
|
55685
55688
|
type: Object,
|
|
55686
55689
|
default: () => {
|
|
55687
55690
|
var e;
|
|
55688
|
-
return (e =
|
|
55691
|
+
return (e = De.table) == null ? void 0 : e.mouseConfig;
|
|
55689
55692
|
}
|
|
55690
55693
|
},
|
|
55691
55694
|
/** 复选框配置项 */
|
|
@@ -55693,7 +55696,7 @@ const bO = {
|
|
|
55693
55696
|
type: Object,
|
|
55694
55697
|
default: () => {
|
|
55695
55698
|
var e;
|
|
55696
|
-
return (e =
|
|
55699
|
+
return (e = De.table) == null ? void 0 : e.checkboxConfig;
|
|
55697
55700
|
}
|
|
55698
55701
|
},
|
|
55699
55702
|
/** 单选框配置项 */
|
|
@@ -55701,7 +55704,7 @@ const bO = {
|
|
|
55701
55704
|
type: Object,
|
|
55702
55705
|
default: () => {
|
|
55703
55706
|
var e;
|
|
55704
|
-
return (e =
|
|
55707
|
+
return (e = De.table) == null ? void 0 : e.radioConfig;
|
|
55705
55708
|
}
|
|
55706
55709
|
}
|
|
55707
55710
|
}, IO = Object.entries(ad).reduce((e, n) => {
|
|
@@ -55721,7 +55724,7 @@ const bO = {
|
|
|
55721
55724
|
default: IO
|
|
55722
55725
|
},
|
|
55723
55726
|
/** 是否使用搜索form */
|
|
55724
|
-
useSearchForm:
|
|
55727
|
+
useSearchForm: Se.bool.def(!0),
|
|
55725
55728
|
/** BasicFormProps 的配置 */
|
|
55726
55729
|
form: {
|
|
55727
55730
|
type: Object,
|
|
@@ -55747,7 +55750,7 @@ const bO = {
|
|
|
55747
55750
|
type: String,
|
|
55748
55751
|
default: () => {
|
|
55749
55752
|
var e;
|
|
55750
|
-
return (e =
|
|
55753
|
+
return (e = De.table) == null ? void 0 : e.tableRowId;
|
|
55751
55754
|
}
|
|
55752
55755
|
},
|
|
55753
55756
|
/** 表格 testId,用于生成测试标识 */
|
|
@@ -55793,7 +55796,7 @@ const bO = {
|
|
|
55793
55796
|
type: Object,
|
|
55794
55797
|
default: () => {
|
|
55795
55798
|
var e;
|
|
55796
|
-
return (e =
|
|
55799
|
+
return (e = De.table) == null ? void 0 : e.pagerConfig;
|
|
55797
55800
|
}
|
|
55798
55801
|
},
|
|
55799
55802
|
/** toolbar 配置 */
|
|
@@ -55811,7 +55814,7 @@ const bO = {
|
|
|
55811
55814
|
type: String,
|
|
55812
55815
|
default: () => {
|
|
55813
55816
|
var e;
|
|
55814
|
-
return (e =
|
|
55817
|
+
return (e = De.table) == null ? void 0 : e.size;
|
|
55815
55818
|
}
|
|
55816
55819
|
},
|
|
55817
55820
|
/**
|
|
@@ -55874,33 +55877,33 @@ function Qf() {
|
|
|
55874
55877
|
toolbarConfig: void 0,
|
|
55875
55878
|
zoomConfig: void 0,
|
|
55876
55879
|
formApi: void 0,
|
|
55877
|
-
useHttpCache: (e =
|
|
55878
|
-
defaultDisplayFields: (n =
|
|
55879
|
-
loadingText: (i =
|
|
55880
|
-
emptyText: (r =
|
|
55880
|
+
useHttpCache: (e = De.table) == null ? void 0 : e.useHttpCache,
|
|
55881
|
+
defaultDisplayFields: (n = De.table) == null ? void 0 : n.defaultDisplayFields,
|
|
55882
|
+
loadingText: (i = De.table) == null ? void 0 : i.loadingText,
|
|
55883
|
+
emptyText: (r = De.table) == null ? void 0 : r.emptyText,
|
|
55881
55884
|
emptyImageStatus: "no-data",
|
|
55882
|
-
noSearchText: (t =
|
|
55883
|
-
showSetColumn: (o =
|
|
55884
|
-
showSetting: (a =
|
|
55885
|
-
showRefresh: (l =
|
|
55886
|
-
tableRowId: (u =
|
|
55887
|
-
currentPageField: (s =
|
|
55888
|
-
pageSizeField: (c =
|
|
55889
|
-
totalField: (d =
|
|
55890
|
-
dataField: (h =
|
|
55891
|
-
pagerConfig: (f =
|
|
55892
|
-
size: (A =
|
|
55893
|
-
keyboardConfig: (v =
|
|
55885
|
+
noSearchText: (t = De.table) == null ? void 0 : t.noSearchText,
|
|
55886
|
+
showSetColumn: (o = De.table) == null ? void 0 : o.showSetColumn,
|
|
55887
|
+
showSetting: (a = De.table) == null ? void 0 : a.showSetting,
|
|
55888
|
+
showRefresh: (l = De.table) == null ? void 0 : l.showRefresh,
|
|
55889
|
+
tableRowId: (u = De.table) == null ? void 0 : u.tableRowId,
|
|
55890
|
+
currentPageField: (s = De.table) == null ? void 0 : s.currentPageField,
|
|
55891
|
+
pageSizeField: (c = De.table) == null ? void 0 : c.pageSizeField,
|
|
55892
|
+
totalField: (d = De.table) == null ? void 0 : d.totalField,
|
|
55893
|
+
dataField: (h = De.table) == null ? void 0 : h.dataField,
|
|
55894
|
+
pagerConfig: (f = De.table) == null ? void 0 : f.pagerConfig,
|
|
55895
|
+
size: (A = De.table) == null ? void 0 : A.size,
|
|
55896
|
+
keyboardConfig: (v = De.table) == null ? void 0 : v.keyboardConfig,
|
|
55894
55897
|
menuConfig: {},
|
|
55895
|
-
mouseConfig: (m =
|
|
55896
|
-
checkboxConfig: (p =
|
|
55897
|
-
radioConfig: (b =
|
|
55898
|
-
stripe: (D =
|
|
55899
|
-
border: (E =
|
|
55900
|
-
updateColumnsApi: (I =
|
|
55901
|
-
getColumnsApi: (w =
|
|
55902
|
-
setColumnsApi: (y =
|
|
55903
|
-
columnsKey: (C =
|
|
55898
|
+
mouseConfig: (m = De.table) == null ? void 0 : m.mouseConfig,
|
|
55899
|
+
checkboxConfig: (p = De.table) == null ? void 0 : p.checkboxConfig,
|
|
55900
|
+
radioConfig: (b = De.table) == null ? void 0 : b.radioConfig,
|
|
55901
|
+
stripe: (D = De.table) == null ? void 0 : D.stripe,
|
|
55902
|
+
border: (E = De.table) == null ? void 0 : E.border,
|
|
55903
|
+
updateColumnsApi: (I = De.table) == null ? void 0 : I.updateColumnsApi,
|
|
55904
|
+
getColumnsApi: (w = De.table) == null ? void 0 : w.getColumnsApi,
|
|
55905
|
+
setColumnsApi: (y = De.table) == null ? void 0 : y.setColumnsApi,
|
|
55906
|
+
columnsKey: (C = De.table) == null ? void 0 : C.columnsKey
|
|
55904
55907
|
};
|
|
55905
55908
|
}
|
|
55906
55909
|
class Of {
|
|
@@ -56444,7 +56447,7 @@ const SO = ["data-testid", "data-table-columns"], BO = ["onClick"], jO = {
|
|
|
56444
56447
|
function we(se, Pe) {
|
|
56445
56448
|
se && (I.value[Pe] = se);
|
|
56446
56449
|
}
|
|
56447
|
-
async function
|
|
56450
|
+
async function ke(se) {
|
|
56448
56451
|
if (!se.sortable) {
|
|
56449
56452
|
t("sort-change", {
|
|
56450
56453
|
order: Tn(se).order || "desc",
|
|
@@ -56699,7 +56702,7 @@ const SO = ["data-testid", "data-table-columns"], BO = ["onClick"], jO = {
|
|
|
56699
56702
|
name: We,
|
|
56700
56703
|
fn: X((fn) => [Ae("div", {
|
|
56701
56704
|
class: "flex items-center",
|
|
56702
|
-
onClick: fi((it) =>
|
|
56705
|
+
onClick: fi((it) => ke(fn.column), ["stop"])
|
|
56703
56706
|
}, [Ae("div", jO, [ue(se.$slots, It(fn), en(rn(fn)), () => [Z(g(Pt), {
|
|
56704
56707
|
"tool-tip": Je.value
|
|
56705
56708
|
}, {
|
|
@@ -58314,8 +58317,11 @@ const [R8, bF] = wF("FormActionTestIds"), CF = {
|
|
|
58314
58317
|
type: Boolean,
|
|
58315
58318
|
default: !0
|
|
58316
58319
|
},
|
|
58317
|
-
/** 储存的key */
|
|
58318
|
-
columnsKey:
|
|
58320
|
+
/** 储存的key,支持函数动态获取 */
|
|
58321
|
+
columnsKey: {
|
|
58322
|
+
type: [String, Function],
|
|
58323
|
+
default: ""
|
|
58324
|
+
}
|
|
58319
58325
|
}, xF = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><!-- Icon from Remix Icon by Remix Design - https://github.com/Remix-Design/RemixIcon/blob/master/License --><path fill="currentColor" d="M5.463 4.433A9.96 9.96 0 0 1 12 2c5.523 0 10 4.477 10 10c0 2.136-.67 4.116-1.81 5.74L17 12h3A8 8 0 0 0 6.46 6.228zm13.074 15.134A9.96 9.96 0 0 1 12 22C6.477 22 2 17.523 2 12c0-2.136.67-4.116 1.81-5.74L7 12H4a8 8 0 0 0 13.54 5.772z"/></svg>', zF = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><!-- Icon from Remix Icon by Remix Design - https://github.com/Remix-Design/RemixIcon/blob/master/License --><path fill="#888888" d="M2.212 14.06a9.95 9.95 0 0 1 .001-4.12c1.11.131 2.079-.236 2.396-1.001s-.109-1.71-.986-2.402a9.95 9.95 0 0 1 2.913-2.914c.692.878 1.637 1.303 2.402.986s1.133-1.286 1.002-2.396a9.95 9.95 0 0 1 4.12 0c-.131 1.11.236 2.08 1.001 2.396c.765.317 1.71-.108 2.402-.985a9.9 9.9 0 0 1 2.914 2.912c-.878.692-1.303 1.638-.986 2.403s1.286 1.132 2.396 1.001a9.95 9.95 0 0 1 0 4.12c-1.11-.13-2.08.237-2.396 1.002c-.317.764.108 1.71.985 2.402a9.95 9.95 0 0 1-2.912 2.914c-.693-.878-1.638-1.304-2.403-.987s-1.132 1.286-1.001 2.397a9.9 9.9 0 0 1-4.12-.001c.13-1.11-.237-2.079-1.002-2.396s-1.71.109-2.402.986a9.9 9.9 0 0 1-2.914-2.913c.878-.692 1.304-1.637.987-2.402s-1.286-1.133-2.397-1.002M4 12.21c1.1.305 2.007 1.002 2.456 2.086c.45 1.085.3 2.22-.262 3.212q.145.153.298.298c.993-.563 2.127-.712 3.212-.262c1.084.449 1.781 1.356 2.085 2.456q.21.006.42 0c.305-1.1 1.002-2.007 2.087-2.456c1.084-.45 2.219-.3 3.212.262q.152-.145.297-.298c-.562-.993-.711-2.127-.262-3.212c.45-1.084 1.357-1.781 2.456-2.085q.006-.21 0-.421c-1.1-.304-2.007-1.001-2.456-2.086c-.45-1.084-.3-2.22.262-3.212a8 8 0 0 0-.297-.297c-.993.562-2.128.711-3.212.262C13.21 6.007 12.514 5.1 12.21 4a8 8 0 0 0-.42 0c-.305 1.1-1.002 2.008-2.086 2.457c-1.085.45-2.22.3-3.212-.262q-.153.144-.298.297c.563.993.712 2.128.262 3.212S5.1 11.485 4 11.79q-.006.21 0 .42M12 15a3 3 0 1 1 0-6a3 3 0 0 1 0 6m0-2a1 1 0 1 0 0-2a1 1 0 0 0 0 2"/></svg>', EF = ["data-testid"], IF = ["onClick", "onAnimationend"], kF = /* @__PURE__ */ ye({
|
|
58320
58326
|
__name: "TableToobalTools",
|
|
58321
58327
|
props: CF,
|
|
@@ -58457,11 +58463,11 @@ function SF({
|
|
|
58457
58463
|
initCustomSetting: async () => {
|
|
58458
58464
|
var m, p, b, D, E, I;
|
|
58459
58465
|
const l = n.getTableColumns(), { columns: u, columnsKey: s, defaultDisplayFields: c } = g(e), d = t(s), h = (m = ne(u)) != null && m.length ? ne(u) : l;
|
|
58460
|
-
if (!((b = (p = ne(i)) == null ? void 0 : p.table) != null && b.useHttpCache) || !d || !
|
|
58466
|
+
if (!((b = (p = ne(i)) == null ? void 0 : p.table) != null && b.useHttpCache) || !d || !De.userId)
|
|
58461
58467
|
return;
|
|
58462
58468
|
const A = (I = (await ((E = (D = e.value) == null ? void 0 : D.getColumnsApi) == null ? void 0 : E.call(D, {
|
|
58463
58469
|
permissionOnlyCode: d,
|
|
58464
|
-
userId:
|
|
58470
|
+
userId: De.userId
|
|
58465
58471
|
}))).records) == null ? void 0 : I[0];
|
|
58466
58472
|
let v = [];
|
|
58467
58473
|
if (!(A != null && A.json))
|
|
@@ -58475,7 +58481,7 @@ function SF({
|
|
|
58475
58481
|
saveColumns: async (l) => {
|
|
58476
58482
|
var c, d;
|
|
58477
58483
|
const u = (c = ne(i)) == null ? void 0 : c.table, s = {
|
|
58478
|
-
userId:
|
|
58484
|
+
userId: De.userId,
|
|
58479
58485
|
permissionOnlyCode: t((d = g(e)) == null ? void 0 : d.columnsKey)
|
|
58480
58486
|
};
|
|
58481
58487
|
if (r.value && ze(u == null ? void 0 : u.updateColumnsApi))
|
|
@@ -58695,7 +58701,7 @@ const jF = ["data-testid"], QF = ["data-testid"], OF = /* @__PURE__ */ ye({
|
|
|
58695
58701
|
handleReset: j,
|
|
58696
58702
|
submitOnEnter: !0,
|
|
58697
58703
|
submitButtonOptions: {
|
|
58698
|
-
content: (Y =
|
|
58704
|
+
content: (Y = De.form) == null ? void 0 : Y.submitTitle
|
|
58699
58705
|
},
|
|
58700
58706
|
showCollapseButton: !0,
|
|
58701
58707
|
collapsed: !0,
|
|
@@ -60095,7 +60101,7 @@ async function c8(e, n, i) {
|
|
|
60095
60101
|
return t;
|
|
60096
60102
|
}
|
|
60097
60103
|
function d8(e) {
|
|
60098
|
-
const n = e ??
|
|
60104
|
+
const n = e ?? De.uploadOssApi;
|
|
60099
60105
|
if (!n)
|
|
60100
60106
|
throw new Error("未配置 uploadOssApi,请先通过 setup({ uploadOssApi }) 或在 options 中传入 uploadOssApi");
|
|
60101
60107
|
return n;
|