wyfe-ivue 2.19.5 → 2.19.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +293 -223
- package/dist/index.umd.cjs +2 -2
- package/dist/types/UseElDescriptions/hook.d.ts +12 -0
- package/dist/types/UseElDescriptions/index.vue.d.ts +28 -7
- package/dist/types/UseElDescriptions/props.d.ts +10 -1
- package/dist/types/UseElDescriptions/types.d.ts +15 -4
- package/dist/types/UseElForm/index.vue.d.ts +2 -4
- package/dist/types/UseElForm/types.d.ts +1 -0
- package/dist/wyfe-ivue.css +1 -1
- package/package.json +1 -1
- package/src/components/UseElDescriptions/props.ts +16 -1
- package/src/components/UseElDescriptions/types.ts +28 -4
- package/src/components/UseElForm/types.ts +1 -0
- package/src/types/dict.ts +1 -1
- package/src/types/index.ts +2 -0
package/dist/index.es.js
CHANGED
|
@@ -24766,7 +24766,22 @@ var bA = {
|
|
|
24766
24766
|
}
|
|
24767
24767
|
}
|
|
24768
24768
|
return t;
|
|
24769
|
-
}, VA = (e
|
|
24769
|
+
}, VA = (e, t = []) => {
|
|
24770
|
+
if (typeof e != "object" || !e) return e;
|
|
24771
|
+
let n = { ...e };
|
|
24772
|
+
return Object.keys(n).forEach((e) => {
|
|
24773
|
+
let r = n[e];
|
|
24774
|
+
!t.includes(e) && Array.isArray(r) && (n[e] = r.join(","));
|
|
24775
|
+
}), n;
|
|
24776
|
+
}, HA = (e, t = []) => {
|
|
24777
|
+
if (typeof e != "object" || !e) return e;
|
|
24778
|
+
let n = { ...e };
|
|
24779
|
+
return t.forEach((e) => {
|
|
24780
|
+
if (!Object.prototype.hasOwnProperty.call(n, e)) return;
|
|
24781
|
+
let t = n[e];
|
|
24782
|
+
typeof t == "string" ? t.includes(",") ? n[e] = t.split(",").filter(Boolean) : n[e] = t ? [t] : [] : n[e] = t == null ? [] : [t];
|
|
24783
|
+
}), n;
|
|
24784
|
+
}, UA = (e) => e.charAt(0).toUpperCase() + e.slice(1), WA = (e, t, n, r) => {
|
|
24770
24785
|
let i = e[t.prop], a = {
|
|
24771
24786
|
class: "",
|
|
24772
24787
|
style: "",
|
|
@@ -24814,15 +24829,15 @@ var bA = {
|
|
|
24814
24829
|
}
|
|
24815
24830
|
}
|
|
24816
24831
|
return a;
|
|
24817
|
-
},
|
|
24832
|
+
}, GA = (e) => {
|
|
24818
24833
|
if (!e.length) return 0;
|
|
24819
24834
|
let t = document.createElement("div");
|
|
24820
24835
|
t.style.cssText = "\n position: absolute;\n visibility: hidden;\n display: inline-block;\n white-space: nowrap;\n ", document.body.appendChild(t);
|
|
24821
24836
|
let n = e.map((e) => (t.textContent = String(e), t.scrollWidth));
|
|
24822
24837
|
return document.body.removeChild(t), Math.max(...n);
|
|
24823
|
-
},
|
|
24838
|
+
}, KA = (e, t, n, r) => {
|
|
24824
24839
|
e.length && n.value?.extConfig?.adaptive?.autoMinWidth && e.forEach((e) => {
|
|
24825
|
-
if (e.children)
|
|
24840
|
+
if (e.children) KA(e.children, t, n, r);
|
|
24826
24841
|
else {
|
|
24827
24842
|
let i = {}, a = zA(e.useDict, e.label);
|
|
24828
24843
|
if (a) {
|
|
@@ -24842,10 +24857,10 @@ var bA = {
|
|
|
24842
24857
|
let o = [];
|
|
24843
24858
|
t.length && t.forEach((t) => {
|
|
24844
24859
|
o.push(Object.keys(i).length ? i[t[e.prop]] : t[e.prop]);
|
|
24845
|
-
}), o.unshift(e.label), e.minWidth = e.minWidth ||
|
|
24860
|
+
}), o.unshift(e.label), e.minWidth = e.minWidth || GA([...new Set(o.filter(Boolean))]) + 40;
|
|
24846
24861
|
}
|
|
24847
24862
|
});
|
|
24848
|
-
},
|
|
24863
|
+
}, qA = ({ mergedProps: e, emits: t, proxy: n, globalConfig: r }) => {
|
|
24849
24864
|
let i = s(() => {
|
|
24850
24865
|
let { disabled: t, extraHeight: i } = e.value.extConfig.adaptive;
|
|
24851
24866
|
return t || n.$attrs.height ? !1 : (i = r.finalTableExtraHeight ?? i, e.value.extConfig?.pagination?.total === -1 ? i : i + 42);
|
|
@@ -24868,7 +24883,7 @@ var bA = {
|
|
|
24868
24883
|
let t = zA(e.useDict, e.label);
|
|
24869
24884
|
t && o.push(t);
|
|
24870
24885
|
}
|
|
24871
|
-
t("onDictKeys", o), a.length && (await D(),
|
|
24886
|
+
t("onDictKeys", o), a.length && (await D(), KA(i, a, e, r), await D(), n.$refs.etRef?.doLayout());
|
|
24872
24887
|
}, {
|
|
24873
24888
|
immediate: !0,
|
|
24874
24889
|
deep: !0
|
|
@@ -24887,7 +24902,7 @@ var bA = {
|
|
|
24887
24902
|
return t;
|
|
24888
24903
|
}
|
|
24889
24904
|
};
|
|
24890
|
-
},
|
|
24905
|
+
}, JA = ({ mergedProps: e, emits: t, proxy: n }) => {
|
|
24891
24906
|
let r = s({
|
|
24892
24907
|
get: () => JSON.stringify(n.$attrs.selectionData) ?? "{}",
|
|
24893
24908
|
set: (e) => {
|
|
@@ -24936,7 +24951,7 @@ var bA = {
|
|
|
24936
24951
|
handleRowClick: l,
|
|
24937
24952
|
_selectionContent: i
|
|
24938
24953
|
};
|
|
24939
|
-
},
|
|
24954
|
+
}, YA = ({ mergedProps: e, emits: t }) => ({
|
|
24940
24955
|
paginationFixedComputed: s(() => ({
|
|
24941
24956
|
left: "display: flex;justify-content: left;",
|
|
24942
24957
|
center: "display: flex;justify-content: center;",
|
|
@@ -24945,7 +24960,7 @@ var bA = {
|
|
|
24945
24960
|
handlePagination: (n = 1, r) => {
|
|
24946
24961
|
r === "currentChange" && t("update:currentPage", n), r === "sizeChange" && (t("update:currentPage", 1), t("update:pageSize", n)), e.value.extConfig.pagination?.func?.();
|
|
24947
24962
|
}
|
|
24948
|
-
}),
|
|
24963
|
+
}), XA = /* @__PURE__ */ g({
|
|
24949
24964
|
__name: "Selection",
|
|
24950
24965
|
props: {
|
|
24951
24966
|
modelValue: {},
|
|
@@ -25029,7 +25044,7 @@ var bA = {
|
|
|
25029
25044
|
]));
|
|
25030
25045
|
};
|
|
25031
25046
|
}
|
|
25032
|
-
}),
|
|
25047
|
+
}), ZA = /* @__PURE__ */ g({
|
|
25033
25048
|
__name: "Span",
|
|
25034
25049
|
props: {
|
|
25035
25050
|
row: {},
|
|
@@ -25038,7 +25053,7 @@ var bA = {
|
|
|
25038
25053
|
globalConfig: {}
|
|
25039
25054
|
},
|
|
25040
25055
|
setup(e) {
|
|
25041
|
-
let t = e, n = s(() =>
|
|
25056
|
+
let t = e, n = s(() => WA(t.row, t.item, t.mergedProps, t.globalConfig)), r = s(() => [n.value.class, AA(t.item.useDict) ? t.item.useDict.class : null].filter(Boolean).join(" ")), i = s(() => {
|
|
25042
25057
|
let e = null, { useDict: r, prop: i } = t.item;
|
|
25043
25058
|
if (AA(r) && DA(r.data) && r.styleField) {
|
|
25044
25059
|
let { dictMap: n } = t.mergedProps, { finalDictProps: a, finalDictDataToString: o } = t.globalConfig;
|
|
@@ -25055,7 +25070,7 @@ var bA = {
|
|
|
25055
25070
|
style: A(i.value)
|
|
25056
25071
|
}, H(n.value.data), 7));
|
|
25057
25072
|
}
|
|
25058
|
-
}),
|
|
25073
|
+
}), QA = { key: 1 }, $A = /* @__PURE__ */ g({
|
|
25059
25074
|
__name: "RecTableColumn",
|
|
25060
25075
|
props: {
|
|
25061
25076
|
columnObj: {
|
|
@@ -25115,7 +25130,7 @@ var bA = {
|
|
|
25115
25130
|
row: i,
|
|
25116
25131
|
item: r,
|
|
25117
25132
|
data: i[r.prop]
|
|
25118
|
-
}), void 0, !0) : (I(), l(
|
|
25133
|
+
}), void 0, !0) : (I(), l(ZA, {
|
|
25119
25134
|
key: 1,
|
|
25120
25135
|
row: i,
|
|
25121
25136
|
item: r,
|
|
@@ -25140,7 +25155,7 @@ var bA = {
|
|
|
25140
25155
|
item: r,
|
|
25141
25156
|
column: e,
|
|
25142
25157
|
$index: t
|
|
25143
|
-
}), void 0, !0) : (I(), d("span",
|
|
25158
|
+
}), void 0, !0) : (I(), d("span", QA, H(r.label), 1))], 2)]),
|
|
25144
25159
|
key: "0"
|
|
25145
25160
|
} : void 0]), 1032, [
|
|
25146
25161
|
"label",
|
|
@@ -25153,11 +25168,11 @@ var bA = {
|
|
|
25153
25168
|
}, 8, ["label", "align"]);
|
|
25154
25169
|
};
|
|
25155
25170
|
}
|
|
25156
|
-
}),
|
|
25171
|
+
}), ej = (e, t) => {
|
|
25157
25172
|
let n = e.__vccOpts || e;
|
|
25158
25173
|
for (let [e, r] of t) n[e] = r;
|
|
25159
25174
|
return n;
|
|
25160
|
-
},
|
|
25175
|
+
}, tj = /* @__PURE__ */ ej($A, [["__scopeId", "data-v-1fb390ce"]]), nj = { key: 1 }, rj = /* @__PURE__ */ g({
|
|
25161
25176
|
__name: "EditableCell",
|
|
25162
25177
|
props: {
|
|
25163
25178
|
row: {},
|
|
@@ -25216,7 +25231,7 @@ var bA = {
|
|
|
25216
25231
|
"props",
|
|
25217
25232
|
"class",
|
|
25218
25233
|
"modelValue"
|
|
25219
|
-
])) : (I(), d("span",
|
|
25234
|
+
])) : (I(), d("span", nj, H(c.value), 1))], 64)) : (I(), l(ZA, {
|
|
25220
25235
|
key: 1,
|
|
25221
25236
|
row: e.row,
|
|
25222
25237
|
item: e.item,
|
|
@@ -25229,21 +25244,21 @@ var bA = {
|
|
|
25229
25244
|
"globalConfig"
|
|
25230
25245
|
]));
|
|
25231
25246
|
}
|
|
25232
|
-
}),
|
|
25247
|
+
}), ij = (e, t) => {
|
|
25233
25248
|
let n = { ...e };
|
|
25234
25249
|
for (let e in t) {
|
|
25235
25250
|
let r = t[e], i = n[e];
|
|
25236
|
-
r && typeof r == "object" && !Array.isArray(r) ? n[e] =
|
|
25251
|
+
r && typeof r == "object" && !Array.isArray(r) ? n[e] = ij(i && typeof i == "object" ? i : {}, r) : n[e] = r;
|
|
25237
25252
|
}
|
|
25238
25253
|
return n;
|
|
25239
|
-
},
|
|
25254
|
+
}, aj = (e, t) => s(() => {
|
|
25240
25255
|
let n = { ...e };
|
|
25241
25256
|
for (let [r, i] of Object.entries(t)) {
|
|
25242
25257
|
let t = e[r];
|
|
25243
|
-
t === null ? n[r] = {} : t === void 0 ? n[r] = { ...i } : n[r] =
|
|
25258
|
+
t === null ? n[r] = {} : t === void 0 ? n[r] = { ...i } : n[r] = ij({ ...i }, t);
|
|
25244
25259
|
}
|
|
25245
25260
|
return n;
|
|
25246
|
-
}),
|
|
25261
|
+
}), oj = {
|
|
25247
25262
|
extraHeader: { style: {
|
|
25248
25263
|
padding: "10px",
|
|
25249
25264
|
borderBottom: "1px solid var(--el-border-color-light)"
|
|
@@ -25283,7 +25298,7 @@ var bA = {
|
|
|
25283
25298
|
background: !0,
|
|
25284
25299
|
layout: "total, sizes, prev, pager, next, jumper"
|
|
25285
25300
|
}
|
|
25286
|
-
},
|
|
25301
|
+
}, sj = { class: "wyfe-ivue__use-el-table" }, cj = { key: 1 }, lj = { key: 0 }, uj = /* @__PURE__ */ ej(/* @__PURE__ */ g({
|
|
25287
25302
|
__name: "index",
|
|
25288
25303
|
props: bA,
|
|
25289
25304
|
emits: [
|
|
@@ -25295,22 +25310,22 @@ var bA = {
|
|
|
25295
25310
|
],
|
|
25296
25311
|
setup(e, { expose: n, emit: r }) {
|
|
25297
25312
|
_e((e) => ({ c1a8b96c: U(N) }));
|
|
25298
|
-
let i = e, a = r, o = ve(), { proxy: s } = v(), c = TA(i), m =
|
|
25313
|
+
let i = e, a = r, o = ve(), { proxy: s } = v(), c = TA(i), m = aj(i, { extConfig: oj }), { adaptiveComputed: h, slotName: g, processDictData: _, handleHeaderCellClassName: y, headerCellStyleComputed: x, tableColumnsComputed: S, validRequired: w } = qA({
|
|
25299
25314
|
mergedProps: m,
|
|
25300
25315
|
emits: a,
|
|
25301
25316
|
proxy: s,
|
|
25302
25317
|
globalConfig: c
|
|
25303
|
-
}), { handleSelectAll: T, handleSelect: D, handleRowClick: j, radioComputed: M, _selectionContent: N } =
|
|
25318
|
+
}), { handleSelectAll: T, handleSelect: D, handleRowClick: j, radioComputed: M, _selectionContent: N } = JA({
|
|
25304
25319
|
mergedProps: m,
|
|
25305
25320
|
emits: a,
|
|
25306
25321
|
proxy: s
|
|
25307
|
-
}), { paginationFixedComputed: ee, handlePagination: P } =
|
|
25322
|
+
}), { paginationFixedComputed: ee, handlePagination: P } = YA({
|
|
25308
25323
|
mergedProps: m,
|
|
25309
25324
|
emits: a
|
|
25310
25325
|
});
|
|
25311
25326
|
return n({ validRequired: w }), (e, n) => {
|
|
25312
25327
|
let r = IO, i = FO, a = CT, s = yA;
|
|
25313
|
-
return Te((I(), d("div",
|
|
25328
|
+
return Te((I(), d("div", sj, [
|
|
25314
25329
|
e.$slots.extraHeader ? (I(), d("div", {
|
|
25315
25330
|
key: 0,
|
|
25316
25331
|
class: O(U(m).extConfig.extraHeader.class),
|
|
@@ -25328,7 +25343,7 @@ var bA = {
|
|
|
25328
25343
|
onSelectAll: U(T)
|
|
25329
25344
|
}), {
|
|
25330
25345
|
default: G(() => [
|
|
25331
|
-
e.$attrs.hasOwnProperty("selectionData") ? (I(), l(
|
|
25346
|
+
e.$attrs.hasOwnProperty("selectionData") ? (I(), l(XA, {
|
|
25332
25347
|
key: 0,
|
|
25333
25348
|
modelValue: U(M),
|
|
25334
25349
|
"onUpdate:modelValue": n[0] ||= (e) => C(M) ? M.value = e : null,
|
|
@@ -25355,7 +25370,7 @@ var bA = {
|
|
|
25355
25370
|
default: G(({ row: t }) => [B(e.$slots, "expand", k(b({ row: t })), void 0, !0)]),
|
|
25356
25371
|
_: 3
|
|
25357
25372
|
}, 8, ["width"])) : u("", !0),
|
|
25358
|
-
(I(!0), d(t, null, oe(U(S), (n) => (I(), d(t, { key: `${n.label}-${n.prop}` }, [n.children && n.children.length ? (I(), l(
|
|
25373
|
+
(I(!0), d(t, null, oe(U(S), (n) => (I(), d(t, { key: `${n.label}-${n.prop}` }, [n.children && n.children.length ? (I(), l(tj, {
|
|
25359
25374
|
key: 0,
|
|
25360
25375
|
columnObj: n,
|
|
25361
25376
|
tableColumnAlign: e.tableColumnAlign,
|
|
@@ -25378,12 +25393,12 @@ var bA = {
|
|
|
25378
25393
|
sortable: n.sortable,
|
|
25379
25394
|
"show-overflow-tooltip": n.showOverflowTooltip || e.showOverflowTooltip
|
|
25380
25395
|
}, p({
|
|
25381
|
-
default: G(({ row: r, $index: i }) => [n.prop && Object.keys(r).length ? (I(), d(t, { key: 0 }, [n?.extConfig?.slot ? (I(), d("div",
|
|
25396
|
+
default: G(({ row: r, $index: i }) => [n.prop && Object.keys(r).length ? (I(), d(t, { key: 0 }, [n?.extConfig?.slot ? (I(), d("div", lj, [B(e.$slots, U(g)(n), E({ ref_for: !0 }, {
|
|
25382
25397
|
row: r,
|
|
25383
25398
|
item: n,
|
|
25384
25399
|
data: r[n.prop],
|
|
25385
25400
|
dictData: U(_)(n)
|
|
25386
|
-
}), void 0, !0)])) : (I(), l(
|
|
25401
|
+
}), void 0, !0)])) : (I(), l(rj, {
|
|
25387
25402
|
key: 1,
|
|
25388
25403
|
row: r,
|
|
25389
25404
|
item: n,
|
|
@@ -25411,7 +25426,7 @@ var bA = {
|
|
|
25411
25426
|
item: n,
|
|
25412
25427
|
column: t,
|
|
25413
25428
|
$index: r
|
|
25414
|
-
}), void 0, !0) : (I(), d("span",
|
|
25429
|
+
}), void 0, !0) : (I(), d("span", cj, H(n.label), 1))], 2)]),
|
|
25415
25430
|
key: "0"
|
|
25416
25431
|
} : void 0]), 1032, [
|
|
25417
25432
|
"label",
|
|
@@ -25451,7 +25466,7 @@ var bA = {
|
|
|
25451
25466
|
])), [[s, e.tableLoading]]);
|
|
25452
25467
|
};
|
|
25453
25468
|
}
|
|
25454
|
-
}), [["__scopeId", "data-v-36ce9e72"]]),
|
|
25469
|
+
}), [["__scopeId", "data-v-36ce9e72"]]), dj = {
|
|
25455
25470
|
btnText: {
|
|
25456
25471
|
type: String,
|
|
25457
25472
|
required: !0
|
|
@@ -25473,7 +25488,7 @@ var bA = {
|
|
|
25473
25488
|
type: Object,
|
|
25474
25489
|
default: () => ({})
|
|
25475
25490
|
}
|
|
25476
|
-
},
|
|
25491
|
+
}, fj = ({ mergedProps: e, emits: t, attrs: n }) => {
|
|
25477
25492
|
let r = FA(async () => {
|
|
25478
25493
|
let { data: n, title: r, content: i, dataKey: a, toArray: o, appendS: s } = e.value.extConfig.confirm;
|
|
25479
25494
|
if (!PA(n)) {
|
|
@@ -25518,7 +25533,7 @@ var bA = {
|
|
|
25518
25533
|
n.onClick || (a.value ? r() : i());
|
|
25519
25534
|
}
|
|
25520
25535
|
};
|
|
25521
|
-
},
|
|
25536
|
+
}, pj = {
|
|
25522
25537
|
debounce: {
|
|
25523
25538
|
delay: 500,
|
|
25524
25539
|
immediate: !1
|
|
@@ -25531,12 +25546,12 @@ var bA = {
|
|
|
25531
25546
|
title: "删除提示",
|
|
25532
25547
|
content: "确定将选择数据删除?"
|
|
25533
25548
|
}
|
|
25534
|
-
},
|
|
25549
|
+
}, mj = /* @__PURE__ */ ej(/* @__PURE__ */ g({
|
|
25535
25550
|
__name: "index",
|
|
25536
|
-
props:
|
|
25551
|
+
props: dj,
|
|
25537
25552
|
emits: ["onClick"],
|
|
25538
25553
|
setup(e, { emit: t }) {
|
|
25539
|
-
let n = e, r = t, i = ge(), a =
|
|
25554
|
+
let n = e, r = t, i = ge(), a = aj(n, { extConfig: pj }), { isConfirm: o, handleElButton: s } = fj({
|
|
25540
25555
|
mergedProps: a,
|
|
25541
25556
|
emits: r,
|
|
25542
25557
|
attrs: i
|
|
@@ -25559,7 +25574,7 @@ var bA = {
|
|
|
25559
25574
|
}, 8, ["type", "onClick"]);
|
|
25560
25575
|
};
|
|
25561
25576
|
}
|
|
25562
|
-
}), [["__scopeId", "data-v-70fc8ecc"]]),
|
|
25577
|
+
}), [["__scopeId", "data-v-70fc8ecc"]]), hj = {
|
|
25563
25578
|
formColumns: {
|
|
25564
25579
|
type: Array,
|
|
25565
25580
|
required: !0
|
|
@@ -25636,7 +25651,7 @@ var bA = {
|
|
|
25636
25651
|
type: Boolean,
|
|
25637
25652
|
default: !0
|
|
25638
25653
|
}
|
|
25639
|
-
},
|
|
25654
|
+
}, gj = {
|
|
25640
25655
|
content: {
|
|
25641
25656
|
type: [
|
|
25642
25657
|
String,
|
|
@@ -25654,31 +25669,31 @@ var bA = {
|
|
|
25654
25669
|
type: [String, Object],
|
|
25655
25670
|
default: ""
|
|
25656
25671
|
}
|
|
25657
|
-
},
|
|
25672
|
+
}, _j = (e) => ({
|
|
25658
25673
|
isVueComponent: s(() => {
|
|
25659
25674
|
let { content: t } = e;
|
|
25660
25675
|
if (!t || typeof t != "object" || w(t)) return !1;
|
|
25661
25676
|
let n = typeof t.render == "function", r = typeof t.setup == "function";
|
|
25662
25677
|
return n || r;
|
|
25663
25678
|
}),
|
|
25664
|
-
isTextContent: s(() => DA(e.content) || OA(e.content)),
|
|
25679
|
+
isTextContent: s(() => DA(e.content) || OA(e.content) || NA(e.content)),
|
|
25665
25680
|
isVNodeContent: s(() => w(e.content))
|
|
25666
|
-
}),
|
|
25681
|
+
}), vj = ["innerHTML"], yj = {
|
|
25667
25682
|
key: 2,
|
|
25668
25683
|
style: { color: "var(--el-color-danger)" }
|
|
25669
|
-
},
|
|
25684
|
+
}, bj = /* @__PURE__ */ g({
|
|
25670
25685
|
__name: "index",
|
|
25671
|
-
props:
|
|
25686
|
+
props: gj,
|
|
25672
25687
|
setup(e) {
|
|
25673
|
-
let { isVueComponent: t, isTextContent: n, isVNodeContent: r } =
|
|
25688
|
+
let { isVueComponent: t, isTextContent: n, isVNodeContent: r } = _j(e);
|
|
25674
25689
|
return (e, i) => U(t) || U(r) ? (I(), l(V(e.content), { key: 0 })) : U(n) ? (I(), d("div", {
|
|
25675
25690
|
key: 1,
|
|
25676
25691
|
innerHTML: e.content,
|
|
25677
25692
|
class: O(e.class),
|
|
25678
25693
|
style: A(e.style)
|
|
25679
|
-
}, null, 14,
|
|
25694
|
+
}, null, 14, vj)) : (I(), d("span", yj, " 不支持的content类型(仅支持字符串/数字/同步组件/异步组件/VNode) "));
|
|
25680
25695
|
}
|
|
25681
|
-
}),
|
|
25696
|
+
}), xj = ({ props: e, emits: t, globalConfig: n }) => {
|
|
25682
25697
|
let r = s(() => e.formColumns.filter((e) => Object.hasOwn(e, "filter") ? !e.filter : !0)), i = s(() => {
|
|
25683
25698
|
let t = {};
|
|
25684
25699
|
return e.formColumns.forEach((e) => {
|
|
@@ -25719,7 +25734,7 @@ var bA = {
|
|
|
25719
25734
|
return m(o) ?? r;
|
|
25720
25735
|
}), o = s(() => (e, t) => {
|
|
25721
25736
|
let n = Object.keys(e).find((e) => e.endsWith("Config"));
|
|
25722
|
-
return n && t[
|
|
25737
|
+
return n && t[UA(n.replace("Config", ""))] || null;
|
|
25723
25738
|
});
|
|
25724
25739
|
return W(() => e.formColumns, (e) => {
|
|
25725
25740
|
if (!e?.length) return;
|
|
@@ -25739,7 +25754,7 @@ var bA = {
|
|
|
25739
25754
|
processRenderContent: a,
|
|
25740
25755
|
getFormComponent: o
|
|
25741
25756
|
};
|
|
25742
|
-
},
|
|
25757
|
+
}, Sj = {
|
|
25743
25758
|
modelValue: {
|
|
25744
25759
|
type: [String, Number],
|
|
25745
25760
|
default: ""
|
|
@@ -25788,20 +25803,20 @@ var bA = {
|
|
|
25788
25803
|
type: Number,
|
|
25789
25804
|
default: 6
|
|
25790
25805
|
}
|
|
25791
|
-
},
|
|
25806
|
+
}, Cj = { mounted(e, t) {
|
|
25792
25807
|
if (t.value === !1) return;
|
|
25793
25808
|
let n = e.querySelector("input"), r = e.querySelector("textarea"), i = n || r || e;
|
|
25794
25809
|
i && Promise.resolve().then(() => {
|
|
25795
25810
|
i.focus({ preventScroll: !0 });
|
|
25796
25811
|
});
|
|
25797
|
-
} },
|
|
25812
|
+
} }, wj = {
|
|
25798
25813
|
key: 0,
|
|
25799
25814
|
class: "unit"
|
|
25800
|
-
},
|
|
25815
|
+
}, Tj = /* @__PURE__ */ ej(/* @__PURE__ */ g({
|
|
25801
25816
|
name: "UseElInput",
|
|
25802
25817
|
inheritAttrs: !1,
|
|
25803
25818
|
__name: "index",
|
|
25804
|
-
props:
|
|
25819
|
+
props: Sj,
|
|
25805
25820
|
emits: ["update:modelValue"],
|
|
25806
25821
|
setup(e, { emit: n }) {
|
|
25807
25822
|
let r = e, i = n, a = s({
|
|
@@ -25811,7 +25826,7 @@ var bA = {
|
|
|
25811
25826
|
}
|
|
25812
25827
|
});
|
|
25813
25828
|
return (e, n) => {
|
|
25814
|
-
let r =
|
|
25829
|
+
let r = bj, i = cv;
|
|
25815
25830
|
return I(), d("div", {
|
|
25816
25831
|
class: "wyfe-ivue__use-el-input",
|
|
25817
25832
|
style: A({ width: e.width })
|
|
@@ -25862,10 +25877,10 @@ var bA = {
|
|
|
25862
25877
|
"rows",
|
|
25863
25878
|
"show-password",
|
|
25864
25879
|
"show-word-limit"
|
|
25865
|
-
])), [[U(
|
|
25880
|
+
])), [[U(Cj), Object.hasOwn(e.$attrs, "autoFocus")]]), e.unit ? (I(), d("span", wj, [h(r, { content: e.unit }, null, 8, ["content"])])) : u("", !0)], 64))], 4);
|
|
25866
25881
|
};
|
|
25867
25882
|
}
|
|
25868
|
-
}), [["__scopeId", "data-v-b83d7a77"]]),
|
|
25883
|
+
}), [["__scopeId", "data-v-b83d7a77"]]), Ej = /* @__PURE__ */ g({
|
|
25869
25884
|
__name: "Input",
|
|
25870
25885
|
props: {
|
|
25871
25886
|
item: {},
|
|
@@ -25876,7 +25891,7 @@ var bA = {
|
|
|
25876
25891
|
setup(e) {
|
|
25877
25892
|
let t = e, n = s(() => t.item.inputConfig), r = s(() => n.value.placeholder ?? (t.globalConfig.finalLanguage === "en" ? "Please Input" : "请输入"));
|
|
25878
25893
|
return (t, i) => {
|
|
25879
|
-
let a =
|
|
25894
|
+
let a = Tj;
|
|
25880
25895
|
return Te((I(), l(a, {
|
|
25881
25896
|
modelValue: e.formModel[e.item.prop],
|
|
25882
25897
|
"onUpdate:modelValue": i[0] ||= (t) => e.formModel[e.item.prop] = t,
|
|
@@ -25929,16 +25944,16 @@ var bA = {
|
|
|
25929
25944
|
"placeholder",
|
|
25930
25945
|
"disabled",
|
|
25931
25946
|
"style"
|
|
25932
|
-
])), [[U(
|
|
25947
|
+
])), [[U(Cj), n.value.autoFocus || !1]]);
|
|
25933
25948
|
};
|
|
25934
25949
|
}
|
|
25935
|
-
}),
|
|
25950
|
+
}), Dj = {
|
|
25936
25951
|
key: 0,
|
|
25937
25952
|
class: "input-number"
|
|
25938
|
-
},
|
|
25953
|
+
}, Oj = {
|
|
25939
25954
|
key: 2,
|
|
25940
25955
|
class: "unit"
|
|
25941
|
-
},
|
|
25956
|
+
}, kj = /* @__PURE__ */ ej(/* @__PURE__ */ g({
|
|
25942
25957
|
__name: "InputNumber",
|
|
25943
25958
|
props: {
|
|
25944
25959
|
item: {},
|
|
@@ -25948,8 +25963,8 @@ var bA = {
|
|
|
25948
25963
|
setup(e) {
|
|
25949
25964
|
let t = e, n = s(() => t.item.inputNumberConfig), r = s(() => n.value.placeholder ?? (t.globalConfig.finalLanguage === "en" ? "Please Select" : "请选择"));
|
|
25950
25965
|
return (t, i) => {
|
|
25951
|
-
let a =
|
|
25952
|
-
return n.value ? (I(), d("div",
|
|
25966
|
+
let a = bj, o = qw;
|
|
25967
|
+
return n.value ? (I(), d("div", Dj, [n.value.useRender ? (I(), l(a, {
|
|
25953
25968
|
key: 0,
|
|
25954
25969
|
content: e.formModel[e.item.prop],
|
|
25955
25970
|
class: O(typeof n.value.useRender == "object" && n.value.useRender.class),
|
|
@@ -25978,10 +25993,10 @@ var bA = {
|
|
|
25978
25993
|
"disabled-scientific",
|
|
25979
25994
|
"placeholder",
|
|
25980
25995
|
"disabled"
|
|
25981
|
-
])), n.value.unit ? (I(), d("span",
|
|
25996
|
+
])), n.value.unit ? (I(), d("span", Oj, [h(a, { content: n.value.unit }, null, 8, ["content"])])) : u("", !0)])) : u("", !0);
|
|
25982
25997
|
};
|
|
25983
25998
|
}
|
|
25984
|
-
}), [["__scopeId", "data-v-0f2ae943"]]),
|
|
25999
|
+
}), [["__scopeId", "data-v-0f2ae943"]]), Aj = {
|
|
25985
26000
|
modelValue: {
|
|
25986
26001
|
type: [
|
|
25987
26002
|
String,
|
|
@@ -26026,7 +26041,7 @@ var bA = {
|
|
|
26026
26041
|
children: "children"
|
|
26027
26042
|
})
|
|
26028
26043
|
}
|
|
26029
|
-
},
|
|
26044
|
+
}, jj = ({ props: e, emits: t }) => {
|
|
26030
26045
|
let n = s(() => {
|
|
26031
26046
|
let t = e.options?.[0];
|
|
26032
26047
|
if (!t) return "string";
|
|
@@ -26048,19 +26063,19 @@ var bA = {
|
|
|
26048
26063
|
t("update:modelValue", s), t("update:label", l);
|
|
26049
26064
|
}
|
|
26050
26065
|
};
|
|
26051
|
-
},
|
|
26066
|
+
}, Mj = /* @__PURE__ */ g({
|
|
26052
26067
|
name: "UseElSelect",
|
|
26053
26068
|
inheritAttrs: !1,
|
|
26054
26069
|
__name: "index",
|
|
26055
|
-
props:
|
|
26070
|
+
props: Aj,
|
|
26056
26071
|
emits: ["update:modelValue", "update:label"],
|
|
26057
26072
|
setup(e, { emit: n }) {
|
|
26058
|
-
let { modelValue: r, contentComputed: i, handleSelectChange: a } =
|
|
26073
|
+
let { modelValue: r, contentComputed: i, handleSelectChange: a } = jj({
|
|
26059
26074
|
props: e,
|
|
26060
26075
|
emits: n
|
|
26061
26076
|
});
|
|
26062
26077
|
return (e, n) => {
|
|
26063
|
-
let o =
|
|
26078
|
+
let o = bj, s = GE, c = Bb, u = zb;
|
|
26064
26079
|
return e.useRender ? (I(), l(o, {
|
|
26065
26080
|
key: 0,
|
|
26066
26081
|
content: U(i),
|
|
@@ -26110,7 +26125,7 @@ var bA = {
|
|
|
26110
26125
|
]))], 64));
|
|
26111
26126
|
};
|
|
26112
26127
|
}
|
|
26113
|
-
}),
|
|
26128
|
+
}), Nj = /* @__PURE__ */ g({
|
|
26114
26129
|
__name: "Select",
|
|
26115
26130
|
props: {
|
|
26116
26131
|
modelValue: {
|
|
@@ -26157,7 +26172,7 @@ var bA = {
|
|
|
26157
26172
|
}, !0);
|
|
26158
26173
|
});
|
|
26159
26174
|
}), (t, n) => {
|
|
26160
|
-
let r =
|
|
26175
|
+
let r = Mj;
|
|
26161
26176
|
return I(), l(r, {
|
|
26162
26177
|
modelValue: i.value,
|
|
26163
26178
|
"onUpdate:modelValue": n[0] ||= (e) => i.value = e,
|
|
@@ -26185,7 +26200,7 @@ var bA = {
|
|
|
26185
26200
|
]);
|
|
26186
26201
|
};
|
|
26187
26202
|
}
|
|
26188
|
-
}),
|
|
26203
|
+
}), Pj = /* @__PURE__ */ g({
|
|
26189
26204
|
__name: "TreeSelect",
|
|
26190
26205
|
props: {
|
|
26191
26206
|
item: {},
|
|
@@ -26205,7 +26220,7 @@ var bA = {
|
|
|
26205
26220
|
return n ? n[t.globalConfig.finalDictProps.label] : e;
|
|
26206
26221
|
}), a = s(() => n.value?.props || t.globalConfig.finalDictProps), o = s(() => n.value.placeholder ?? (t.globalConfig.finalLanguage === "en" ? "Please Select" : "请选择"));
|
|
26207
26222
|
return (t, s) => {
|
|
26208
|
-
let c =
|
|
26223
|
+
let c = bj, u = kk;
|
|
26209
26224
|
return n.value.useRender ? (I(), l(c, {
|
|
26210
26225
|
key: 0,
|
|
26211
26226
|
content: i.value,
|
|
@@ -26225,6 +26240,7 @@ var bA = {
|
|
|
26225
26240
|
"check-strictly": n.value.checkStrictly ?? !1,
|
|
26226
26241
|
filterable: n.value.filterable ?? !1,
|
|
26227
26242
|
clearable: n.value.clearable ?? !0,
|
|
26243
|
+
"default-expanded-keys": n.value.defaultExpandedKeys ?? [e.formModel[e.item.prop]],
|
|
26228
26244
|
style: A({ width: n.value.width ?? e.formItemWidth }),
|
|
26229
26245
|
"popper-style": "z-index:999999 !important"
|
|
26230
26246
|
}, null, 8, [
|
|
@@ -26235,11 +26251,12 @@ var bA = {
|
|
|
26235
26251
|
"check-strictly",
|
|
26236
26252
|
"filterable",
|
|
26237
26253
|
"clearable",
|
|
26254
|
+
"default-expanded-keys",
|
|
26238
26255
|
"style"
|
|
26239
26256
|
]));
|
|
26240
26257
|
};
|
|
26241
26258
|
}
|
|
26242
|
-
}),
|
|
26259
|
+
}), Fj = /* @__PURE__ */ g({
|
|
26243
26260
|
__name: "Cascader",
|
|
26244
26261
|
props: {
|
|
26245
26262
|
item: {},
|
|
@@ -26264,7 +26281,7 @@ var bA = {
|
|
|
26264
26281
|
}
|
|
26265
26282
|
}, c = z(null);
|
|
26266
26283
|
return t({ cascaderRef: c }), (t, n) => {
|
|
26267
|
-
let s =
|
|
26284
|
+
let s = bj, u = Yx;
|
|
26268
26285
|
return r.value.useRender ? (I(), l(s, {
|
|
26269
26286
|
key: 0,
|
|
26270
26287
|
content: e.formModel[e.item.prop],
|
|
@@ -26296,7 +26313,7 @@ var bA = {
|
|
|
26296
26313
|
]));
|
|
26297
26314
|
};
|
|
26298
26315
|
}
|
|
26299
|
-
}),
|
|
26316
|
+
}), Ij = /* @__PURE__ */ g({
|
|
26300
26317
|
__name: "index",
|
|
26301
26318
|
props: {
|
|
26302
26319
|
modelValue: {
|
|
@@ -26367,7 +26384,7 @@ var bA = {
|
|
|
26367
26384
|
monthrange: "YYYY-MM"
|
|
26368
26385
|
})[n.type] || "YYYY-MM-DD");
|
|
26369
26386
|
return (e, t) => {
|
|
26370
|
-
let n =
|
|
26387
|
+
let n = bj, r = JC;
|
|
26371
26388
|
return e.useRender ? (I(), l(n, {
|
|
26372
26389
|
key: 0,
|
|
26373
26390
|
content: i.value,
|
|
@@ -26401,7 +26418,7 @@ var bA = {
|
|
|
26401
26418
|
]));
|
|
26402
26419
|
};
|
|
26403
26420
|
}
|
|
26404
|
-
}),
|
|
26421
|
+
}), Lj = /* @__PURE__ */ g({
|
|
26405
26422
|
__name: "DatePicker",
|
|
26406
26423
|
props: {
|
|
26407
26424
|
item: {},
|
|
@@ -26416,7 +26433,7 @@ var bA = {
|
|
|
26416
26433
|
});
|
|
26417
26434
|
};
|
|
26418
26435
|
return (t, s) => {
|
|
26419
|
-
let u =
|
|
26436
|
+
let u = Ij;
|
|
26420
26437
|
return I(), l(u, {
|
|
26421
26438
|
modelValue: e.formModel[e.item.prop],
|
|
26422
26439
|
"onUpdate:modelValue": s[0] ||= (t) => e.formModel[e.item.prop] = t,
|
|
@@ -26450,7 +26467,7 @@ var bA = {
|
|
|
26450
26467
|
]);
|
|
26451
26468
|
};
|
|
26452
26469
|
}
|
|
26453
|
-
}),
|
|
26470
|
+
}), Rj = /* @__PURE__ */ g({
|
|
26454
26471
|
__name: "TimePicker",
|
|
26455
26472
|
props: {
|
|
26456
26473
|
item: {},
|
|
@@ -26464,7 +26481,7 @@ var bA = {
|
|
|
26464
26481
|
});
|
|
26465
26482
|
};
|
|
26466
26483
|
return (n, s) => {
|
|
26467
|
-
let p =
|
|
26484
|
+
let p = bj, m = ib;
|
|
26468
26485
|
return I(), d(t, null, [r.value.useRender ? (I(), l(p, {
|
|
26469
26486
|
key: 0,
|
|
26470
26487
|
content: e.formModel[e.item.prop],
|
|
@@ -26497,7 +26514,7 @@ var bA = {
|
|
|
26497
26514
|
])], 64);
|
|
26498
26515
|
};
|
|
26499
26516
|
}
|
|
26500
|
-
}),
|
|
26517
|
+
}), zj = { class: "time-select" }, Bj = /* @__PURE__ */ ej(/* @__PURE__ */ g({
|
|
26501
26518
|
__name: "TimeSelect",
|
|
26502
26519
|
props: {
|
|
26503
26520
|
item: {},
|
|
@@ -26507,8 +26524,8 @@ var bA = {
|
|
|
26507
26524
|
setup(e) {
|
|
26508
26525
|
let n = e, r = s(() => n.item.timeSelectConfig);
|
|
26509
26526
|
return (n, i) => {
|
|
26510
|
-
let a =
|
|
26511
|
-
return I(), d("div",
|
|
26527
|
+
let a = bj, o = GO;
|
|
26528
|
+
return I(), d("div", zj, [r.value.useRender ? (I(), d(t, { key: 0 }, [
|
|
26512
26529
|
h(a, {
|
|
26513
26530
|
content: e.formModel[r.value.startProp],
|
|
26514
26531
|
class: O(typeof r.value.useRender == "object" && r.value.useRender.class),
|
|
@@ -26551,7 +26568,7 @@ var bA = {
|
|
|
26551
26568
|
], 64))]);
|
|
26552
26569
|
};
|
|
26553
26570
|
}
|
|
26554
|
-
}), [["__scopeId", "data-v-8b6299e8"]]),
|
|
26571
|
+
}), [["__scopeId", "data-v-8b6299e8"]]), Vj = /* @__PURE__ */ g({
|
|
26555
26572
|
__name: "Radio",
|
|
26556
26573
|
props: {
|
|
26557
26574
|
item: {},
|
|
@@ -26574,7 +26591,7 @@ var bA = {
|
|
|
26574
26591
|
}
|
|
26575
26592
|
};
|
|
26576
26593
|
return (n, o) => {
|
|
26577
|
-
let s =
|
|
26594
|
+
let s = bj, c = Dx, u = Ox;
|
|
26578
26595
|
return r.value.useRender ? (I(), l(s, {
|
|
26579
26596
|
key: 0,
|
|
26580
26597
|
content: e.formModel[e.item.prop],
|
|
@@ -26602,7 +26619,7 @@ var bA = {
|
|
|
26602
26619
|
}, 8, ["modelValue", "disabled"]));
|
|
26603
26620
|
};
|
|
26604
26621
|
}
|
|
26605
|
-
}),
|
|
26622
|
+
}), Hj = /* @__PURE__ */ g({
|
|
26606
26623
|
__name: "Switch",
|
|
26607
26624
|
props: {
|
|
26608
26625
|
item: {},
|
|
@@ -26613,7 +26630,7 @@ var bA = {
|
|
|
26613
26630
|
Object.hasOwn(n.value, "onChange") && typeof n.value?.onChange == "function" && n.value.onChange(e);
|
|
26614
26631
|
};
|
|
26615
26632
|
return (t, i) => {
|
|
26616
|
-
let a =
|
|
26633
|
+
let a = bj, o = se("UseElwitch");
|
|
26617
26634
|
return n.value.useRender ? (I(), l(a, {
|
|
26618
26635
|
key: 0,
|
|
26619
26636
|
content: e.formModel[e.item.prop],
|
|
@@ -26639,9 +26656,9 @@ var bA = {
|
|
|
26639
26656
|
]));
|
|
26640
26657
|
};
|
|
26641
26658
|
}
|
|
26642
|
-
}),
|
|
26659
|
+
}), Uj = /* @__PURE__ */ g({
|
|
26643
26660
|
__name: "RowForm",
|
|
26644
|
-
props:
|
|
26661
|
+
props: hj,
|
|
26645
26662
|
emits: [
|
|
26646
26663
|
"onDictKeys",
|
|
26647
26664
|
"onQuery",
|
|
@@ -26649,27 +26666,27 @@ var bA = {
|
|
|
26649
26666
|
"onReset"
|
|
26650
26667
|
],
|
|
26651
26668
|
setup(e, { expose: n, emit: r }) {
|
|
26652
|
-
let i = e, a = r, o = ve(), s = TA(i), { formColumnsComputed: c, formRules: f, processRenderContent: p, getFormComponent: m } =
|
|
26669
|
+
let i = e, a = r, o = ve(), s = TA(i), { formColumnsComputed: c, formRules: f, processRenderContent: p, getFormComponent: m } = xj({
|
|
26653
26670
|
props: i,
|
|
26654
26671
|
emits: a,
|
|
26655
26672
|
globalConfig: s
|
|
26656
26673
|
}), g = {
|
|
26657
|
-
Input:
|
|
26658
|
-
InputNumber:
|
|
26659
|
-
Select:
|
|
26660
|
-
TreeSelect:
|
|
26661
|
-
Cascader:
|
|
26662
|
-
DatePicker:
|
|
26663
|
-
TimePicker:
|
|
26664
|
-
TimeSelect:
|
|
26665
|
-
Radio:
|
|
26666
|
-
Switch:
|
|
26674
|
+
Input: Ej,
|
|
26675
|
+
InputNumber: kj,
|
|
26676
|
+
Select: Nj,
|
|
26677
|
+
TreeSelect: Pj,
|
|
26678
|
+
Cascader: Fj,
|
|
26679
|
+
DatePicker: Lj,
|
|
26680
|
+
TimePicker: Rj,
|
|
26681
|
+
TimeSelect: Bj,
|
|
26682
|
+
Radio: Vj,
|
|
26683
|
+
Switch: Hj
|
|
26667
26684
|
}, _ = z(null);
|
|
26668
26685
|
return n({
|
|
26669
26686
|
efRef: _,
|
|
26670
26687
|
cascaderRef: z(null)
|
|
26671
26688
|
}), (e, n) => {
|
|
26672
|
-
let r =
|
|
26689
|
+
let r = bj, i = qg, a = eS, v = $x, y = Kg;
|
|
26673
26690
|
return I(), l(y, {
|
|
26674
26691
|
ref_key: "efRef",
|
|
26675
26692
|
ref: _,
|
|
@@ -26758,10 +26775,10 @@ var bA = {
|
|
|
26758
26775
|
]);
|
|
26759
26776
|
};
|
|
26760
26777
|
}
|
|
26761
|
-
}),
|
|
26778
|
+
}), Wj = {
|
|
26762
26779
|
key: 0,
|
|
26763
26780
|
class: "input-range"
|
|
26764
|
-
},
|
|
26781
|
+
}, Gj = /* @__PURE__ */ ej(/* @__PURE__ */ g({
|
|
26765
26782
|
__name: "InputRange",
|
|
26766
26783
|
props: {
|
|
26767
26784
|
item: {},
|
|
@@ -26779,8 +26796,8 @@ var bA = {
|
|
|
26779
26796
|
return e.includes("%") ? `${parseFloat(e) / 2}%` : e.includes("px") ? `${parseFloat(e) / 2}px` : "120px";
|
|
26780
26797
|
});
|
|
26781
26798
|
return (t, o) => {
|
|
26782
|
-
let s =
|
|
26783
|
-
return n.value ? (I(), d("div",
|
|
26799
|
+
let s = Tj;
|
|
26800
|
+
return n.value ? (I(), d("div", Wj, [
|
|
26784
26801
|
h(s, {
|
|
26785
26802
|
modelValue: e.formModel[n.value.startProp],
|
|
26786
26803
|
"onUpdate:modelValue": o[0] ||= (t) => e.formModel[n.value.startProp] = t,
|
|
@@ -26805,9 +26822,9 @@ var bA = {
|
|
|
26805
26822
|
])) : u("", !0);
|
|
26806
26823
|
};
|
|
26807
26824
|
}
|
|
26808
|
-
}), [["__scopeId", "data-v-3b4c84c9"]]),
|
|
26825
|
+
}), [["__scopeId", "data-v-3b4c84c9"]]), Kj = { class: "btn-wrapper" }, qj = /* @__PURE__ */ ej(/* @__PURE__ */ g({
|
|
26809
26826
|
__name: "InlineForm",
|
|
26810
|
-
props:
|
|
26827
|
+
props: hj,
|
|
26811
26828
|
emits: [
|
|
26812
26829
|
"onDictKeys",
|
|
26813
26830
|
"onQuery",
|
|
@@ -26815,17 +26832,17 @@ var bA = {
|
|
|
26815
26832
|
"onReset"
|
|
26816
26833
|
],
|
|
26817
26834
|
setup(e, { expose: n, emit: r }) {
|
|
26818
|
-
let i = e, a = r, o = s(() => i.showBottomBorber ? "1px solid var(--el-border-color)" : ""), c = TA(i), { formColumnsComputed: p, getFormComponent: g } =
|
|
26835
|
+
let i = e, a = r, o = s(() => i.showBottomBorber ? "1px solid var(--el-border-color)" : ""), c = TA(i), { formColumnsComputed: p, getFormComponent: g } = xj({
|
|
26819
26836
|
props: i,
|
|
26820
26837
|
emits: a,
|
|
26821
26838
|
globalConfig: c
|
|
26822
26839
|
}), _ = {
|
|
26823
|
-
Input:
|
|
26824
|
-
Select:
|
|
26825
|
-
TreeSelect:
|
|
26826
|
-
Cascader:
|
|
26827
|
-
DatePicker:
|
|
26828
|
-
InputRange:
|
|
26840
|
+
Input: Ej,
|
|
26841
|
+
Select: Nj,
|
|
26842
|
+
TreeSelect: Pj,
|
|
26843
|
+
Cascader: Fj,
|
|
26844
|
+
DatePicker: Lj,
|
|
26845
|
+
InputRange: Gj
|
|
26829
26846
|
}, v = (e, t) => {
|
|
26830
26847
|
let n = { ...t };
|
|
26831
26848
|
for (let t of e) {
|
|
@@ -26901,7 +26918,7 @@ var bA = {
|
|
|
26901
26918
|
_: 2
|
|
26902
26919
|
}, 1032, ["label"]))), 128))]),
|
|
26903
26920
|
_: 1
|
|
26904
|
-
}, 8, ["model", "label-suffix"]), f("div",
|
|
26921
|
+
}, 8, ["model", "label-suffix"]), f("div", Kj, [
|
|
26905
26922
|
h(a, {
|
|
26906
26923
|
type: "primary",
|
|
26907
26924
|
loading: e.queryLoading,
|
|
@@ -26920,9 +26937,9 @@ var bA = {
|
|
|
26920
26937
|
});
|
|
26921
26938
|
};
|
|
26922
26939
|
}
|
|
26923
|
-
}), [["__scopeId", "data-v-38978bc9"]]),
|
|
26940
|
+
}), [["__scopeId", "data-v-38978bc9"]]), Jj = { class: "wyfe-ivue__use-el-form" }, Yj = /* @__PURE__ */ g({
|
|
26924
26941
|
__name: "index",
|
|
26925
|
-
props:
|
|
26942
|
+
props: hj,
|
|
26926
26943
|
setup(e, { expose: t }) {
|
|
26927
26944
|
let n = e, r = ve(), i = ge(), a = z(null);
|
|
26928
26945
|
return t({
|
|
@@ -26931,19 +26948,19 @@ var bA = {
|
|
|
26931
26948
|
clearValidate: s(() => a.value?.efRef?.clearValidate),
|
|
26932
26949
|
showInlineForm: s(() => a.value?.showInlineForm),
|
|
26933
26950
|
handleInlineFormDisplay: s(() => a.value?.handleInlineFormDisplay),
|
|
26934
|
-
processApiData: s(() => (e) => {
|
|
26935
|
-
let
|
|
26936
|
-
return n.formColumns?.length
|
|
26937
|
-
let { prop:
|
|
26938
|
-
if (
|
|
26939
|
-
let
|
|
26940
|
-
if (!
|
|
26941
|
-
|
|
26942
|
-
} else
|
|
26943
|
-
}), t;
|
|
26951
|
+
processApiData: s(() => (e, t = []) => {
|
|
26952
|
+
let r = {};
|
|
26953
|
+
return n.formColumns?.length ? (n.formColumns.forEach((t) => {
|
|
26954
|
+
let { prop: n } = t;
|
|
26955
|
+
if (n.includes(",")) {
|
|
26956
|
+
let t = n.split(",");
|
|
26957
|
+
if (!t.every((t) => Reflect.has(e, t))) return;
|
|
26958
|
+
r[n] = t.map((t) => e[t]);
|
|
26959
|
+
} else r[n] = e[n];
|
|
26960
|
+
}), HA(r, t)) : r;
|
|
26944
26961
|
}),
|
|
26945
|
-
processedFormModel: s(() => BA(n.formModel))
|
|
26946
|
-
}), (e, t) => (I(), d("div",
|
|
26962
|
+
processedFormModel: s(() => VA(BA(n.formModel)))
|
|
26963
|
+
}), (e, t) => (I(), d("div", Jj, [(I(), l(V(e.formMode === "rowForm" ? Uj : qj), E({
|
|
26947
26964
|
ref_key: "componentRef",
|
|
26948
26965
|
ref: a
|
|
26949
26966
|
}, {
|
|
@@ -26954,7 +26971,7 @@ var bA = {
|
|
|
26954
26971
|
fn: G((t) => [B(e.$slots, n, k(b(t)))])
|
|
26955
26972
|
}))]), 1040))]));
|
|
26956
26973
|
}
|
|
26957
|
-
}),
|
|
26974
|
+
}), Xj = {
|
|
26958
26975
|
configs: {
|
|
26959
26976
|
type: Array,
|
|
26960
26977
|
required: !0
|
|
@@ -26971,12 +26988,12 @@ var bA = {
|
|
|
26971
26988
|
type: Object,
|
|
26972
26989
|
default: () => ({})
|
|
26973
26990
|
}
|
|
26974
|
-
},
|
|
26991
|
+
}, Zj = (e) => e.map((e) => {
|
|
26975
26992
|
let t = { ...e }, n = Object.keys(t), r = !1;
|
|
26976
26993
|
return n.forEach((e) => {
|
|
26977
26994
|
e.endsWith("Config") && e !== "extConfig" && (r = !0);
|
|
26978
26995
|
}), r ? t : null;
|
|
26979
|
-
}).filter((e) => e !== null),
|
|
26996
|
+
}).filter((e) => e !== null), Qj = (e) => {
|
|
26980
26997
|
let t = [...e].filter((e) => !e.onlySearch), n = /* @__PURE__ */ new Map();
|
|
26981
26998
|
t.forEach((e, t) => {
|
|
26982
26999
|
let r = Number(e?.tableOrder ?? t + 1);
|
|
@@ -26987,7 +27004,7 @@ var bA = {
|
|
|
26987
27004
|
item: e,
|
|
26988
27005
|
_order: Number(e?.tableOrder ?? t + 1)
|
|
26989
27006
|
})).sort((e, t) => e._order - t._order).map(({ item: e }) => e);
|
|
26990
|
-
},
|
|
27007
|
+
}, $j = { actionBar: {
|
|
26991
27008
|
margin: "20px 0",
|
|
26992
27009
|
showControlFormDisplayBtn: !0,
|
|
26993
27010
|
reverse: !1,
|
|
@@ -26995,19 +27012,19 @@ var bA = {
|
|
|
26995
27012
|
show: !1,
|
|
26996
27013
|
borderStyle: "solid"
|
|
26997
27014
|
}
|
|
26998
|
-
} },
|
|
27015
|
+
} }, eM = { class: "wyfe-ivue__use-crud-table" }, tM = { class: "wyfe-ivue__action-bar-inner" }, nM = /* @__PURE__ */ ej(/* @__PURE__ */ g({
|
|
26999
27016
|
__name: "index",
|
|
27000
|
-
props:
|
|
27017
|
+
props: Xj,
|
|
27001
27018
|
emits: ["onDictKeys"],
|
|
27002
27019
|
setup(e, { expose: t, emit: n }) {
|
|
27003
27020
|
_e((e) => ({ v273668d4: U(o).margin }));
|
|
27004
|
-
let r = e, i = n, a = ve(), { actionBar: o } =
|
|
27021
|
+
let r = e, i = n, a = ve(), { actionBar: o } = aj(r, { extConfig: $j }).value.extConfig, s = z({
|
|
27005
27022
|
formColumns: [],
|
|
27006
27023
|
tableColumns: []
|
|
27007
27024
|
});
|
|
27008
27025
|
W(() => r.configs, (e) => {
|
|
27009
27026
|
if (!e?.length) return;
|
|
27010
|
-
s.value.formColumns =
|
|
27027
|
+
s.value.formColumns = Zj(e), s.value.tableColumns = Qj(e);
|
|
27011
27028
|
let t = [];
|
|
27012
27029
|
for (let n of e) {
|
|
27013
27030
|
if (!n.useDict) continue;
|
|
@@ -27021,8 +27038,8 @@ var bA = {
|
|
|
27021
27038
|
});
|
|
27022
27039
|
let c = z();
|
|
27023
27040
|
return t({ uefRef: c }), (e, t) => {
|
|
27024
|
-
let n =
|
|
27025
|
-
return I(), d("div",
|
|
27041
|
+
let n = Yj, r = mj, i = Tw, m = uj;
|
|
27042
|
+
return I(), d("div", eM, [
|
|
27026
27043
|
h(n, E({
|
|
27027
27044
|
ref_key: "uefRef",
|
|
27028
27045
|
ref: c,
|
|
@@ -27032,7 +27049,7 @@ var bA = {
|
|
|
27032
27049
|
a.actionBar ? (I(), d("div", {
|
|
27033
27050
|
key: 0,
|
|
27034
27051
|
class: O(["wyfe-ivue__action-bar", { reverse: U(o).reverse }])
|
|
27035
|
-
}, [f("div",
|
|
27052
|
+
}, [f("div", tM, [f("div", null, [B(e.$slots, "actionBar", {}, void 0, !0)]), U(o).showControlFormDisplayBtn ? (I(), l(r, {
|
|
27036
27053
|
key: 0,
|
|
27037
27054
|
btnText: `${c.value?.showInlineForm ? "收起" : "展开"}查询`,
|
|
27038
27055
|
onClick: t[0] ||= (e) => c.value?.handleInlineFormDisplay()
|
|
@@ -27056,7 +27073,7 @@ var bA = {
|
|
|
27056
27073
|
]);
|
|
27057
27074
|
};
|
|
27058
27075
|
}
|
|
27059
|
-
}), [["__scopeId", "data-v-19d77b70"]]),
|
|
27076
|
+
}), [["__scopeId", "data-v-19d77b70"]]), rM = {
|
|
27060
27077
|
modelValue: {
|
|
27061
27078
|
type: [Array, String],
|
|
27062
27079
|
default: () => []
|
|
@@ -27084,7 +27101,7 @@ var bA = {
|
|
|
27084
27101
|
type: Boolean,
|
|
27085
27102
|
default: !1
|
|
27086
27103
|
}
|
|
27087
|
-
},
|
|
27104
|
+
}, iM = (e, t) => {
|
|
27088
27105
|
let n = s(() => MA(e.data) ? e.data : e.data.map((e) => ({
|
|
27089
27106
|
label: e,
|
|
27090
27107
|
value: e
|
|
@@ -27114,12 +27131,12 @@ var bA = {
|
|
|
27114
27131
|
a.value = t === n.value.length, i.value = t > 0 && t < n.value.length;
|
|
27115
27132
|
}
|
|
27116
27133
|
};
|
|
27117
|
-
},
|
|
27134
|
+
}, aM = /* @__PURE__ */ ej(/* @__PURE__ */ g({
|
|
27118
27135
|
__name: "index",
|
|
27119
|
-
props:
|
|
27136
|
+
props: rM,
|
|
27120
27137
|
emits: ["update:modelValue"],
|
|
27121
27138
|
setup(e, { emit: n }) {
|
|
27122
|
-
let { dataComputed: r, checkedItems: i, isIndeterminate: a, checkAll: o, handleCheckAllChange: s, handleCheckedItemsChange: c } =
|
|
27139
|
+
let { dataComputed: r, checkedItems: i, isIndeterminate: a, checkAll: o, handleCheckAllChange: s, handleCheckedItemsChange: c } = iM(e, n);
|
|
27123
27140
|
return (e, n) => {
|
|
27124
27141
|
let f = ux, p = dx;
|
|
27125
27142
|
return I(), d(t, null, [e.showCheckAll ? (I(), l(f, {
|
|
@@ -27154,7 +27171,7 @@ var bA = {
|
|
|
27154
27171
|
}, 8, ["modelValue", "onChange"])], 64);
|
|
27155
27172
|
};
|
|
27156
27173
|
}
|
|
27157
|
-
}), [["__scopeId", "data-v-f189fc55"]]),
|
|
27174
|
+
}), [["__scopeId", "data-v-f189fc55"]]), oM = {
|
|
27158
27175
|
name: "zh-cn",
|
|
27159
27176
|
el: {
|
|
27160
27177
|
breadcrumb: { label: "面包屑" },
|
|
@@ -27329,7 +27346,7 @@ var bA = {
|
|
|
27329
27346
|
indicator: "幻灯片切换至索引 {index}"
|
|
27330
27347
|
}
|
|
27331
27348
|
}
|
|
27332
|
-
},
|
|
27349
|
+
}, sM = /* @__PURE__ */ g({
|
|
27333
27350
|
__name: "index",
|
|
27334
27351
|
props: {
|
|
27335
27352
|
language: {
|
|
@@ -27368,7 +27385,7 @@ var bA = {
|
|
|
27368
27385
|
}
|
|
27369
27386
|
},
|
|
27370
27387
|
setup(e) {
|
|
27371
|
-
let t =
|
|
27388
|
+
let t = aj(e, {
|
|
27372
27389
|
dictConfig: xA,
|
|
27373
27390
|
debugConfig: SA
|
|
27374
27391
|
});
|
|
@@ -27377,14 +27394,14 @@ var bA = {
|
|
|
27377
27394
|
e("UseElConfigProvider")[t.value.debugConfig.type]("mergeProps=>", t.value, t.value.debugConfig.toJson);
|
|
27378
27395
|
}), wA(t.value), (e, t) => {
|
|
27379
27396
|
let n = Nv;
|
|
27380
|
-
return I(), l(n, { locale: e.language === "en" ? U(Sd) : U(
|
|
27397
|
+
return I(), l(n, { locale: e.language === "en" ? U(Sd) : U(oM) }, {
|
|
27381
27398
|
default: G(() => [B(e.$slots, "default")]),
|
|
27382
27399
|
_: 3
|
|
27383
27400
|
}, 8, ["locale"]);
|
|
27384
27401
|
};
|
|
27385
27402
|
}
|
|
27386
|
-
}),
|
|
27387
|
-
|
|
27403
|
+
}), cM = {
|
|
27404
|
+
configs: {
|
|
27388
27405
|
type: Array,
|
|
27389
27406
|
required: !0
|
|
27390
27407
|
},
|
|
@@ -27392,6 +27409,14 @@ var bA = {
|
|
|
27392
27409
|
type: Object,
|
|
27393
27410
|
required: !0
|
|
27394
27411
|
},
|
|
27412
|
+
dictMap: {
|
|
27413
|
+
type: Object,
|
|
27414
|
+
default: () => ({})
|
|
27415
|
+
},
|
|
27416
|
+
dictProps: {
|
|
27417
|
+
type: Object,
|
|
27418
|
+
default: () => ({})
|
|
27419
|
+
},
|
|
27395
27420
|
column: {
|
|
27396
27421
|
type: Number,
|
|
27397
27422
|
default: 2
|
|
@@ -27408,36 +27433,81 @@ var bA = {
|
|
|
27408
27433
|
type: String,
|
|
27409
27434
|
default: ""
|
|
27410
27435
|
}
|
|
27411
|
-
},
|
|
27436
|
+
}, lM = ({ props: e, emits: t, globalConfig: n }) => {
|
|
27437
|
+
let r = (e) => {
|
|
27438
|
+
if (!e?.length) return;
|
|
27439
|
+
let n = [];
|
|
27440
|
+
for (let t of e) {
|
|
27441
|
+
if (!t.useDict) continue;
|
|
27442
|
+
let e = zA(t.useDict, t.label);
|
|
27443
|
+
e && n.push(e);
|
|
27444
|
+
}
|
|
27445
|
+
t("onDictKeys", n);
|
|
27446
|
+
};
|
|
27447
|
+
return W(() => e.configs, (e) => r(e), {
|
|
27448
|
+
immediate: !0,
|
|
27449
|
+
deep: !0
|
|
27450
|
+
}), {
|
|
27451
|
+
processRenderContent: s(() => (t) => {
|
|
27452
|
+
let r = e.formModel[t.prop];
|
|
27453
|
+
if (r == null) return "—";
|
|
27454
|
+
if (!(Object.keys(e.dictMap).length && typeof t.useDict == "string")) return r;
|
|
27455
|
+
let { finalDictProps: i, finalDictDataToString: a } = n;
|
|
27456
|
+
return e.dictMap[t.useDict]?.find((e) => e[i.value] === a ? r + "" : r)?.[i.label] ?? r;
|
|
27457
|
+
}),
|
|
27458
|
+
processRenderStyle: s(() => (t) => {
|
|
27459
|
+
let { styleField: r, style: i } = t.renderConfig;
|
|
27460
|
+
if (!(Object.keys(e.dictMap).length && typeof t.useDict == "string" && typeof r == "string")) return i;
|
|
27461
|
+
let a = e.formModel[t.prop], { finalDictProps: o, finalDictDataToString: s } = n;
|
|
27462
|
+
return e.dictMap[t.useDict]?.find((e) => e[o.value] === s ? a + "" : a)?.[r] + i || i;
|
|
27463
|
+
}),
|
|
27464
|
+
processPlaceholder: s(() => (e) => `请${["UseElInput"].includes(e.componentConfig?.is.name) ? "输入" : "选择"}${e.componentConfig?.attrs?.appendLabelToPlaceholder === !1 ? "" : e.label}`),
|
|
27465
|
+
processSlotName: s(() => (e) => "slot" in e ? e.slot === !0 ? e.prop : e.slot : "default")
|
|
27466
|
+
};
|
|
27467
|
+
}, uM = { key: 1 }, dM = /* @__PURE__ */ ej(/* @__PURE__ */ g({
|
|
27412
27468
|
__name: "index",
|
|
27413
|
-
props:
|
|
27414
|
-
|
|
27415
|
-
|
|
27416
|
-
|
|
27417
|
-
|
|
27418
|
-
|
|
27469
|
+
props: cM,
|
|
27470
|
+
emits: ["onDictKeys"],
|
|
27471
|
+
setup(e, { emit: n }) {
|
|
27472
|
+
let r = e, i = n, a = ve(), { processRenderContent: o, processRenderStyle: s, processPlaceholder: c, processSlotName: u } = lM({
|
|
27473
|
+
props: r,
|
|
27474
|
+
emits: i,
|
|
27475
|
+
globalConfig: TA(r)
|
|
27476
|
+
});
|
|
27477
|
+
return (e, n) => {
|
|
27478
|
+
let r = bj, i = iw, p = rw;
|
|
27479
|
+
return I(), l(p, {
|
|
27419
27480
|
column: e.column,
|
|
27420
27481
|
border: e.border
|
|
27421
27482
|
}, {
|
|
27422
|
-
default: G(() => [(I(!0), d(t, null, oe(e.
|
|
27483
|
+
default: G(() => [(I(!0), d(t, null, oe(e.configs, (t) => (I(), l(i, {
|
|
27423
27484
|
key: t.label,
|
|
27424
27485
|
span: t.span ?? 1
|
|
27425
27486
|
}, {
|
|
27426
|
-
label: G(() => [f("div", { class: O(["wyfe-ivue__descriptions-item-label", e.labelClass]) }, [
|
|
27487
|
+
label: G(() => [f("div", { class: O(["wyfe-ivue__descriptions-item-label", e.labelClass]) }, [a.label ? B(e.$slots, "label", E({
|
|
27427
27488
|
key: 0,
|
|
27428
27489
|
ref_for: !0
|
|
27429
|
-
}, { item: t }), void 0, !0) : (I(), d("span",
|
|
27430
|
-
default: G(() => [f("div", { class: O(t.defaultClass ?? e.defaultClass) }, [t.
|
|
27490
|
+
}, { item: t }), void 0, !0) : (I(), d("span", uM, H(t.label), 1))], 2)]),
|
|
27491
|
+
default: G(() => [f("div", { class: O(t.defaultClass ?? e.defaultClass) }, [t.renderConfig ? (I(), l(r, {
|
|
27431
27492
|
key: 0,
|
|
27432
|
-
|
|
27493
|
+
content: t.renderConfig?.content ?? U(o)(t),
|
|
27494
|
+
class: O(t?.renderConfig?.class),
|
|
27495
|
+
style: A(U(s)(t))
|
|
27496
|
+
}, null, 8, [
|
|
27497
|
+
"content",
|
|
27498
|
+
"class",
|
|
27499
|
+
"style"
|
|
27500
|
+
])) : t.componentConfig ? (I(), l(V(t.componentConfig.is), E({
|
|
27501
|
+
key: 1,
|
|
27502
|
+
placeholder: U(c)(t),
|
|
27433
27503
|
modelValue: e.formModel[t.prop],
|
|
27434
27504
|
"onUpdate:modelValue": (n) => e.formModel[t.prop] = n
|
|
27435
|
-
}, { ref_for: !0 }, t.attrs), null, 16, [
|
|
27505
|
+
}, { ref_for: !0 }, t.componentConfig.attrs), null, 16, [
|
|
27436
27506
|
"placeholder",
|
|
27437
27507
|
"modelValue",
|
|
27438
27508
|
"onUpdate:modelValue"
|
|
27439
|
-
])) : B(e.$slots,
|
|
27440
|
-
key:
|
|
27509
|
+
])) : B(e.$slots, U(u)(t), E({
|
|
27510
|
+
key: 2,
|
|
27441
27511
|
ref_for: !0
|
|
27442
27512
|
}, {
|
|
27443
27513
|
row: e.formModel,
|
|
@@ -27449,7 +27519,7 @@ var bA = {
|
|
|
27449
27519
|
}, 8, ["column", "border"]);
|
|
27450
27520
|
};
|
|
27451
27521
|
}
|
|
27452
|
-
}), [["__scopeId", "data-v-
|
|
27522
|
+
}), [["__scopeId", "data-v-35d6ba7d"]]), fM = {
|
|
27453
27523
|
title: {
|
|
27454
27524
|
type: String,
|
|
27455
27525
|
default: "欢迎使用wyfe-ivue对话框组件"
|
|
@@ -27539,22 +27609,22 @@ var bA = {
|
|
|
27539
27609
|
type: Function,
|
|
27540
27610
|
default: () => {}
|
|
27541
27611
|
}
|
|
27542
|
-
},
|
|
27612
|
+
}, pM = {
|
|
27543
27613
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27544
27614
|
viewBox: "0 0 1024 1024"
|
|
27545
27615
|
};
|
|
27546
|
-
function
|
|
27547
|
-
return I(), d("svg",
|
|
27616
|
+
function mM(e, t) {
|
|
27617
|
+
return I(), d("svg", pM, [...t[0] ||= [f("path", {
|
|
27548
27618
|
fill: "currentColor",
|
|
27549
27619
|
d: "m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"
|
|
27550
27620
|
}, null, -1)]]);
|
|
27551
27621
|
}
|
|
27552
|
-
var
|
|
27622
|
+
var hM = { render: mM }, gM = {
|
|
27553
27623
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27554
27624
|
viewBox: "0 0 1024 1024"
|
|
27555
27625
|
};
|
|
27556
|
-
function
|
|
27557
|
-
return I(), d("svg",
|
|
27626
|
+
function _M(e, t) {
|
|
27627
|
+
return I(), d("svg", gM, [...t[0] ||= [f("path", {
|
|
27558
27628
|
fill: "currentColor",
|
|
27559
27629
|
d: "M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"
|
|
27560
27630
|
}, null, -1), f("path", {
|
|
@@ -27562,8 +27632,8 @@ function mM(e, t) {
|
|
|
27562
27632
|
d: "M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"
|
|
27563
27633
|
}, null, -1)]]);
|
|
27564
27634
|
}
|
|
27565
|
-
var
|
|
27566
|
-
let t = z(null), n = s(() => t.value?.handleClose), r = z(!1), i = s(() => r.value ?
|
|
27635
|
+
var vM = { render: _M }, yM = (e) => {
|
|
27636
|
+
let t = z(null), n = s(() => t.value?.handleClose), r = z(!1), i = s(() => r.value ? vM : hM), a = () => {
|
|
27567
27637
|
r.value = !r.value;
|
|
27568
27638
|
}, o = !1;
|
|
27569
27639
|
return W([
|
|
@@ -27598,16 +27668,16 @@ var hM = { render: mM }, gM = (e) => {
|
|
|
27598
27668
|
o = !0, e?.();
|
|
27599
27669
|
}
|
|
27600
27670
|
};
|
|
27601
|
-
},
|
|
27671
|
+
}, bM = { key: 1 }, xM = /* @__PURE__ */ g({
|
|
27602
27672
|
__name: "index",
|
|
27603
|
-
props:
|
|
27673
|
+
props: fM,
|
|
27604
27674
|
setup(e, { expose: n }) {
|
|
27605
|
-
let r = e, i = ve(), { edRef: a, handleClose: o, isFullScreen: s, iconComponent: c, handleFullScreen: f, handleClosed: m, handleClick: g } =
|
|
27675
|
+
let r = e, i = ve(), { edRef: a, handleClose: o, isFullScreen: s, iconComponent: c, handleFullScreen: f, handleClosed: m, handleClick: g } = yM(r);
|
|
27606
27676
|
return n({
|
|
27607
27677
|
edRef: a,
|
|
27608
27678
|
handleClose: o
|
|
27609
27679
|
}), (e, n) => {
|
|
27610
|
-
let r = $, o = Sv, _ =
|
|
27680
|
+
let r = $, o = Sv, _ = mj, v = ww;
|
|
27611
27681
|
return I(), l(v, {
|
|
27612
27682
|
ref_key: "edRef",
|
|
27613
27683
|
ref: a,
|
|
@@ -27620,7 +27690,7 @@ var hM = { render: mM }, gM = (e) => {
|
|
|
27620
27690
|
"destroy-on-close": e.destroyOnClose,
|
|
27621
27691
|
onClosed: U(m)
|
|
27622
27692
|
}, p({
|
|
27623
|
-
header: G(() => [i.header ? B(e.$slots, "header", { key: 0 }) : (I(), d("span",
|
|
27693
|
+
header: G(() => [i.header ? B(e.$slots, "header", { key: 0 }) : (I(), d("span", bM, H(e.title), 1)), e.showFullScreenIcon ? (I(), l(r, {
|
|
27624
27694
|
key: 2,
|
|
27625
27695
|
class: "wyfe-ivue__full-screen",
|
|
27626
27696
|
onClick: U(f)
|
|
@@ -27664,7 +27734,7 @@ var hM = { render: mM }, gM = (e) => {
|
|
|
27664
27734
|
]);
|
|
27665
27735
|
};
|
|
27666
27736
|
}
|
|
27667
|
-
}),
|
|
27737
|
+
}), SM = {
|
|
27668
27738
|
title: {
|
|
27669
27739
|
type: String,
|
|
27670
27740
|
default: "欢迎使用wyfe-ivue抽屉组件"
|
|
@@ -27739,8 +27809,8 @@ var hM = { render: mM }, gM = (e) => {
|
|
|
27739
27809
|
type: Function,
|
|
27740
27810
|
default: () => {}
|
|
27741
27811
|
}
|
|
27742
|
-
},
|
|
27743
|
-
let t = z(null), n = s(() => t.value?.handleClose), r = z(!1), i = s(() => r.value ? "100%" : e.size), a = s(() => r.value ?
|
|
27812
|
+
}, CM = (e) => {
|
|
27813
|
+
let t = z(null), n = s(() => t.value?.handleClose), r = z(!1), i = s(() => r.value ? "100%" : e.size), a = s(() => r.value ? vM : hM), o = () => {
|
|
27744
27814
|
r.value = !r.value;
|
|
27745
27815
|
}, c = !1;
|
|
27746
27816
|
return W(() => e.footerPosition, (e) => {
|
|
@@ -27766,16 +27836,16 @@ var hM = { render: mM }, gM = (e) => {
|
|
|
27766
27836
|
c = !0, e?.();
|
|
27767
27837
|
}
|
|
27768
27838
|
};
|
|
27769
|
-
},
|
|
27839
|
+
}, wM = { key: 1 }, TM = /* @__PURE__ */ g({
|
|
27770
27840
|
__name: "index",
|
|
27771
|
-
props:
|
|
27841
|
+
props: SM,
|
|
27772
27842
|
setup(e, { expose: n }) {
|
|
27773
|
-
let r = e, i = ve(), { edRef: a, handleClose: o, drawerSize: s, iconComponent: c, handleFullScreen: f, handleClosed: m, handleClick: g } =
|
|
27843
|
+
let r = e, i = ve(), { edRef: a, handleClose: o, drawerSize: s, iconComponent: c, handleFullScreen: f, handleClosed: m, handleClick: g } = CM(r);
|
|
27774
27844
|
return n({
|
|
27775
27845
|
edRef: a,
|
|
27776
27846
|
handleClose: o
|
|
27777
27847
|
}), (e, n) => {
|
|
27778
|
-
let r = $, o = Sv, _ =
|
|
27848
|
+
let r = $, o = Sv, _ = mj, v = Nw;
|
|
27779
27849
|
return I(), l(v, {
|
|
27780
27850
|
ref_key: "edRef",
|
|
27781
27851
|
ref: a,
|
|
@@ -27788,7 +27858,7 @@ var hM = { render: mM }, gM = (e) => {
|
|
|
27788
27858
|
"close-on-click-modal": e.closeOnClickModal,
|
|
27789
27859
|
onClosed: U(m)
|
|
27790
27860
|
}, p({
|
|
27791
|
-
header: G(() => [i.header ? B(e.$slots, "header", { key: 0 }) : (I(), d("span",
|
|
27861
|
+
header: G(() => [i.header ? B(e.$slots, "header", { key: 0 }) : (I(), d("span", wM, H(e.title), 1)), e.showFullScreenIcon ? (I(), l(r, {
|
|
27792
27862
|
key: 2,
|
|
27793
27863
|
class: "wyfe-ivue__full-screen",
|
|
27794
27864
|
onClick: U(f)
|
|
@@ -27823,7 +27893,7 @@ var hM = { render: mM }, gM = (e) => {
|
|
|
27823
27893
|
]);
|
|
27824
27894
|
};
|
|
27825
27895
|
}
|
|
27826
|
-
}),
|
|
27896
|
+
}), EM = /* @__PURE__ */ g({
|
|
27827
27897
|
__name: "index",
|
|
27828
27898
|
props: {
|
|
27829
27899
|
activeValue: {
|
|
@@ -27873,7 +27943,7 @@ var hM = { render: mM }, gM = (e) => {
|
|
|
27873
27943
|
]);
|
|
27874
27944
|
};
|
|
27875
27945
|
}
|
|
27876
|
-
}),
|
|
27946
|
+
}), DM = /* @__PURE__ */ ej(/* @__PURE__ */ g({
|
|
27877
27947
|
__name: "index",
|
|
27878
27948
|
props: {
|
|
27879
27949
|
content: {
|
|
@@ -27938,7 +28008,7 @@ var hM = { render: mM }, gM = (e) => {
|
|
|
27938
28008
|
]);
|
|
27939
28009
|
};
|
|
27940
28010
|
}
|
|
27941
|
-
}), [["__scopeId", "data-v-8239c412"]]),
|
|
28011
|
+
}), [["__scopeId", "data-v-8239c412"]]), OM = {
|
|
27942
28012
|
fileId: {
|
|
27943
28013
|
type: String,
|
|
27944
28014
|
default: ""
|
|
@@ -27982,7 +28052,7 @@ var hM = { render: mM }, gM = (e) => {
|
|
|
27982
28052
|
type: Number,
|
|
27983
28053
|
default: 2
|
|
27984
28054
|
}
|
|
27985
|
-
},
|
|
28055
|
+
}, kM = {
|
|
27986
28056
|
IMG: {
|
|
27987
28057
|
exts: [
|
|
27988
28058
|
"jpg",
|
|
@@ -28020,15 +28090,15 @@ var hM = { render: mM }, gM = (e) => {
|
|
|
28020
28090
|
tip: "不支持视频格式,支持图片、文档、音频、压缩包等"
|
|
28021
28091
|
}
|
|
28022
28092
|
};
|
|
28023
|
-
Object.assign(
|
|
28093
|
+
Object.assign(kM, { ALL: {
|
|
28024
28094
|
exts: [
|
|
28025
|
-
...
|
|
28026
|
-
...
|
|
28027
|
-
...
|
|
28095
|
+
...kM.IMG.exts,
|
|
28096
|
+
...kM.VIDEO.exts,
|
|
28097
|
+
...kM.EXCLUDE_VIDEO.exts
|
|
28028
28098
|
],
|
|
28029
28099
|
tip: "支持图片、文档、视频、音频、压缩包等格式"
|
|
28030
28100
|
} });
|
|
28031
|
-
var
|
|
28101
|
+
var AM = Object.fromEntries(Object.entries(kM).map(([e, t]) => [e, t.exts.map((e) => `.${e}`).join(",")])), jM = (e, t = 300) => {
|
|
28032
28102
|
let n = null, r = (...r) => {
|
|
28033
28103
|
n && clearTimeout(n), n = setTimeout(() => {
|
|
28034
28104
|
e.apply(void 0, r), n = null;
|
|
@@ -28043,15 +28113,15 @@ var DM = Object.fromEntries(Object.entries(EM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28043
28113
|
return a.lastArgs = e, i.apply(this, e);
|
|
28044
28114
|
};
|
|
28045
28115
|
return a.cancel = i.cancel, a.flush = i.flush, a;
|
|
28046
|
-
},
|
|
28047
|
-
let n = s(() =>
|
|
28116
|
+
}, MM = ({ props: e, emits: t }) => {
|
|
28117
|
+
let n = s(() => AM[e.uploadType]), r = z({
|
|
28048
28118
|
fileList: [],
|
|
28049
28119
|
fileIds: [],
|
|
28050
28120
|
linkUrls: [],
|
|
28051
28121
|
uploadFlag: !1,
|
|
28052
28122
|
deleteFlag: !1,
|
|
28053
28123
|
abortControllers: []
|
|
28054
|
-
}), i =
|
|
28124
|
+
}), i = jM(() => {
|
|
28055
28125
|
t("update:fileId", r.value.fileIds.join(",")), t("update:linkUrl", r.value.linkUrls.join(","));
|
|
28056
28126
|
}, 300), a = z({
|
|
28057
28127
|
show: !1,
|
|
@@ -28129,7 +28199,7 @@ var DM = Object.fromEntries(Object.entries(EM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28129
28199
|
De.error(n), t("onError", n);
|
|
28130
28200
|
},
|
|
28131
28201
|
handleBeforeUpload: (t) => {
|
|
28132
|
-
let { exts: n, tip: i } =
|
|
28202
|
+
let { exts: n, tip: i } = kM[e.uploadType], a = e.maxSize * 1024 * 1024 * 1024, o = t.name.split(".").pop().toLowerCase();
|
|
28133
28203
|
if (!n.includes(o)) return De.error(`不支持的文件类型!${i}`), !1;
|
|
28134
28204
|
if (t.size > a) return De.error(`文件大小不能超过 ${e.maxSize}GB`), !1;
|
|
28135
28205
|
let s = new AbortController();
|
|
@@ -28147,15 +28217,15 @@ var DM = Object.fromEntries(Object.entries(EM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28147
28217
|
return !0;
|
|
28148
28218
|
}, () => !1)
|
|
28149
28219
|
};
|
|
28150
|
-
},
|
|
28220
|
+
}, NM = {
|
|
28151
28221
|
key: 0,
|
|
28152
28222
|
class: "el-upload__tip"
|
|
28153
|
-
},
|
|
28223
|
+
}, PM = {
|
|
28154
28224
|
key: 1,
|
|
28155
28225
|
class: "el-upload__tip"
|
|
28156
|
-
},
|
|
28226
|
+
}, FM = /* @__PURE__ */ ej(/* @__PURE__ */ g({
|
|
28157
28227
|
__name: "index",
|
|
28158
|
-
props:
|
|
28228
|
+
props: OM,
|
|
28159
28229
|
emits: [
|
|
28160
28230
|
"update:fileId",
|
|
28161
28231
|
"update:linkUrl",
|
|
@@ -28163,7 +28233,7 @@ var DM = Object.fromEntries(Object.entries(EM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28163
28233
|
"onError"
|
|
28164
28234
|
],
|
|
28165
28235
|
setup(e, { emit: n }) {
|
|
28166
|
-
let r = e, i = n, a = TA(r), { acceptComputed: o, state: s, dialogState: c, handlePreview: l, handleSuccess: u, handleError: p, handleBeforeUpload: g, handleBeforeRemove: _ } =
|
|
28236
|
+
let r = e, i = n, a = TA(r), { acceptComputed: o, state: s, dialogState: c, handlePreview: l, handleSuccess: u, handleError: p, handleBeforeUpload: g, handleBeforeRemove: _ } = MM({
|
|
28167
28237
|
props: r,
|
|
28168
28238
|
emits: i,
|
|
28169
28239
|
globalConfig: a
|
|
@@ -28195,7 +28265,7 @@ var DM = Object.fromEntries(Object.entries(EM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28195
28265
|
_: 1
|
|
28196
28266
|
}),
|
|
28197
28267
|
n[2] ||= f("div", { class: "el-upload__text" }, [m(" 将文件拖到此处,或 "), f("em", null, "点击上传")], -1),
|
|
28198
|
-
e.uploadTip ? (I(), d("div",
|
|
28268
|
+
e.uploadTip ? (I(), d("div", NM, H(e.uploadTip), 1)) : (I(), d("div", PM, H(U(kM)[e.uploadType].tip) + ",最大支持 " + H(e.maxSize) + "GB ", 1))
|
|
28199
28269
|
]),
|
|
28200
28270
|
_: 1
|
|
28201
28271
|
}, 8, [
|
|
@@ -28228,7 +28298,7 @@ var DM = Object.fromEntries(Object.entries(EM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28228
28298
|
}, 8, ["modelValue"])], 64);
|
|
28229
28299
|
};
|
|
28230
28300
|
}
|
|
28231
|
-
}), [["__scopeId", "data-v-c4f6b29f"]]),
|
|
28301
|
+
}), [["__scopeId", "data-v-c4f6b29f"]]), IM = /* @__PURE__ */ g({
|
|
28232
28302
|
__name: "index",
|
|
28233
28303
|
props: {
|
|
28234
28304
|
name: {
|
|
@@ -28262,7 +28332,7 @@ var DM = Object.fromEntries(Object.entries(EM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28262
28332
|
})
|
|
28263
28333
|
}, null, 6));
|
|
28264
28334
|
}
|
|
28265
|
-
}),
|
|
28335
|
+
}), LM = {
|
|
28266
28336
|
title: {
|
|
28267
28337
|
type: String,
|
|
28268
28338
|
required: !0
|
|
@@ -28283,7 +28353,7 @@ var DM = Object.fromEntries(Object.entries(EM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28283
28353
|
type: Object,
|
|
28284
28354
|
default: () => ({})
|
|
28285
28355
|
}
|
|
28286
|
-
},
|
|
28356
|
+
}, RM = {
|
|
28287
28357
|
margin: {
|
|
28288
28358
|
top: "0px",
|
|
28289
28359
|
bottom: "20px"
|
|
@@ -28300,9 +28370,9 @@ var DM = Object.fromEntries(Object.entries(EM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28300
28370
|
color: "var(--el-border-color-light)",
|
|
28301
28371
|
paddingBottom: "20px"
|
|
28302
28372
|
}
|
|
28303
|
-
},
|
|
28373
|
+
}, zM = ["innerHTML"], BM = /* @__PURE__ */ ej(/* @__PURE__ */ g({
|
|
28304
28374
|
__name: "index",
|
|
28305
|
-
props:
|
|
28375
|
+
props: LM,
|
|
28306
28376
|
setup(e) {
|
|
28307
28377
|
_e((e) => ({
|
|
28308
28378
|
v35dd0630: U(n)?.paddingBottom,
|
|
@@ -28312,7 +28382,7 @@ var DM = Object.fromEntries(Object.entries(EM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28312
28382
|
v3e644f1c: U(i)?.verticalPadding,
|
|
28313
28383
|
d2750ae0: U(i)?.height
|
|
28314
28384
|
}));
|
|
28315
|
-
let t =
|
|
28385
|
+
let t = aj(e, { extConfig: RM }), { borderBottom: n, margin: r, line: i } = t.value.extConfig;
|
|
28316
28386
|
return (e, a) => (I(), d("div", {
|
|
28317
28387
|
class: O(["wyfe-ivue__use-line-title", { borderBottom: U(n)?.show }]),
|
|
28318
28388
|
style: A({
|
|
@@ -28326,9 +28396,9 @@ var DM = Object.fromEntries(Object.entries(EM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28326
28396
|
color: e.color
|
|
28327
28397
|
}),
|
|
28328
28398
|
innerHTML: e.title
|
|
28329
|
-
}, null, 14,
|
|
28399
|
+
}, null, 14, zM)], 6));
|
|
28330
28400
|
}
|
|
28331
|
-
}), [["__scopeId", "data-v-8c384f6d"]]),
|
|
28401
|
+
}), [["__scopeId", "data-v-8c384f6d"]]), VM = {
|
|
28332
28402
|
name: {
|
|
28333
28403
|
type: String,
|
|
28334
28404
|
required: !0
|
|
@@ -28355,9 +28425,9 @@ var DM = Object.fromEntries(Object.entries(EM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28355
28425
|
default: !1
|
|
28356
28426
|
},
|
|
28357
28427
|
hoverClass: { type: String }
|
|
28358
|
-
},
|
|
28428
|
+
}, HM = ["href", "fill"], UM = /* @__PURE__ */ ej(/* @__PURE__ */ g({
|
|
28359
28429
|
__name: "index",
|
|
28360
|
-
props:
|
|
28430
|
+
props: VM,
|
|
28361
28431
|
setup(e) {
|
|
28362
28432
|
_e((e) => ({
|
|
28363
28433
|
v94c66d84: i.value,
|
|
@@ -28377,8 +28447,8 @@ var DM = Object.fromEntries(Object.entries(EM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28377
28447
|
class: O([a.value ? "fillClass" : "", e.hoverClass]),
|
|
28378
28448
|
href: r.value,
|
|
28379
28449
|
fill: i.value
|
|
28380
|
-
}, null, 10,
|
|
28450
|
+
}, null, 10, HM)], 4));
|
|
28381
28451
|
}
|
|
28382
28452
|
}), [["__scopeId", "data-v-b69be9a5"]]);
|
|
28383
28453
|
//#endregion
|
|
28384
|
-
export {
|
|
28454
|
+
export { nM as UseCrudTable, mj as UseElButton, aM as UseElCheckbox, sM as UseElConfigProvider, Ij as UseElDatePicker, dM as UseElDescriptions, xM as UseElDialog, TM as UseElDrawer, Yj as UseElForm, Tj as UseElInput, Mj as UseElSelect, EM as UseElSwitch, uj as UseElTable, DM as UseElTooltip, FM as UseElUpload, IM as UseIconfont, BM as UseLineTitle, bj as UseRender, UM as UseSvgIcon };
|