wyfe-ivue 2.19.16 → 2.19.17
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 +250 -239
- package/dist/index.umd.cjs +1 -1
- package/dist/types/UseElDescriptions/index.vue.d.ts +2 -2
- package/dist/types/UseElDescriptions/props.d.ts +1 -1
- package/dist/wyfe-ivue.css +1 -1
- package/package.json +1 -1
- package/src/components/UseElDescriptions/props.ts +1 -1
- package/src/types/index.ts +14 -1
package/dist/index.es.js
CHANGED
|
@@ -25652,7 +25652,29 @@ var EA = {
|
|
|
25652
25652
|
let n = e.__vccOpts || e;
|
|
25653
25653
|
for (let [e, r] of t) n[e] = r;
|
|
25654
25654
|
return n;
|
|
25655
|
-
}, ij = /* @__PURE__ */ rj(nj, [["__scopeId", "data-v-9ef97beb"]]), aj =
|
|
25655
|
+
}, ij = /* @__PURE__ */ rj(nj, [["__scopeId", "data-v-9ef97beb"]]), aj = (e, t, n, r = 6) => {
|
|
25656
|
+
let i = e.replace(/[^0-9.]/g, "");
|
|
25657
|
+
if (!i) {
|
|
25658
|
+
n[t] = "";
|
|
25659
|
+
return;
|
|
25660
|
+
}
|
|
25661
|
+
i.startsWith("0") && i.length > 1 && i[1] !== "." && (i = "0");
|
|
25662
|
+
let a = i.indexOf(".");
|
|
25663
|
+
a !== -1 && (i = `${i.slice(0, a)}.${i.slice(a + 1).replace(/\./g, "").slice(0, r)}`), n[t] = i;
|
|
25664
|
+
}, oj = () => ({ handleInput: ({ inputEvent: e, value: t, key: n, formModel: r }) => {
|
|
25665
|
+
if (e) {
|
|
25666
|
+
if (typeof e == "function") return e({
|
|
25667
|
+
value: t,
|
|
25668
|
+
key: n,
|
|
25669
|
+
formModel: r
|
|
25670
|
+
});
|
|
25671
|
+
if (typeof e == "string" && e === "nonNegativeDecimal") return aj(t, n, r);
|
|
25672
|
+
if (typeof e == "object") {
|
|
25673
|
+
let { name: i, digits: a } = e;
|
|
25674
|
+
if (i === "nonNegativeDecimal") return aj(t, n, r, a);
|
|
25675
|
+
}
|
|
25676
|
+
}
|
|
25677
|
+
} }), sj = { key: 1 }, cj = /* @__PURE__ */ g({
|
|
25656
25678
|
__name: "EditableCell",
|
|
25657
25679
|
props: {
|
|
25658
25680
|
row: {},
|
|
@@ -25661,57 +25683,56 @@ var EA = {
|
|
|
25661
25683
|
globalConfig: {}
|
|
25662
25684
|
},
|
|
25663
25685
|
setup(e) {
|
|
25664
|
-
let n = e, r = s({
|
|
25686
|
+
let n = e, { handleInput: r } = oj(), i = s({
|
|
25665
25687
|
get() {
|
|
25666
25688
|
return n.row[n.item.prop] ?? "";
|
|
25667
25689
|
},
|
|
25668
25690
|
set(e) {
|
|
25669
25691
|
n.row[n.item.prop] = e;
|
|
25670
25692
|
}
|
|
25671
|
-
}),
|
|
25693
|
+
}), a = s(() => `请${["UseElInput"].includes(n.item.extConfig.edit.component.name) ? "输入" : "选择"}${n.item.extConfig.edit.attrs?.appendLabelToPlaceholder === !1 ? "" : n.item.label}`), o = s(() => {
|
|
25672
25694
|
let { edit: e } = n.item.extConfig;
|
|
25673
25695
|
if (e?.attrs?.options?.length) return e.attrs.options;
|
|
25674
25696
|
let { dictMap: t = {} } = n.mergedProps, r = UA(n.item.useDict, n.item.label);
|
|
25675
25697
|
return r ? t[r] : [];
|
|
25676
|
-
}),
|
|
25698
|
+
}), c = s(() => {
|
|
25677
25699
|
let { edit: e } = n.item.extConfig;
|
|
25678
25700
|
return e?.attrs?.props ? e.attrs.props : n.globalConfig.finalDictProps;
|
|
25679
|
-
}),
|
|
25701
|
+
}), u = s(() => {
|
|
25680
25702
|
let { edit: e } = n.item.extConfig;
|
|
25681
|
-
if (!(e &&
|
|
25703
|
+
if (!(e && o.value?.length)) return i.value;
|
|
25682
25704
|
let { finalDictProps: t } = n.globalConfig;
|
|
25683
|
-
return
|
|
25705
|
+
return o.value?.find((e) => String(e[t.value]) === String(i.value))?.[t.label] ?? i.value;
|
|
25684
25706
|
});
|
|
25685
|
-
return (s,
|
|
25707
|
+
return (s, f) => e.item.extConfig?.edit ? (F(), d(t, { key: 0 }, [e.row.$editFlag && n.item.extConfig.edit.component ? (F(), l(V(n.item.extConfig.edit.component), D({
|
|
25686
25708
|
key: 0,
|
|
25687
|
-
placeholder:
|
|
25688
|
-
options:
|
|
25689
|
-
props:
|
|
25709
|
+
placeholder: a.value,
|
|
25710
|
+
options: o.value,
|
|
25711
|
+
props: c.value,
|
|
25690
25712
|
class: e.row[`$required_${e.item.prop}`] ? "wyfe-ivue__required" : "",
|
|
25691
25713
|
style: { width: "100%" },
|
|
25692
|
-
modelValue:
|
|
25693
|
-
"onUpdate:modelValue":
|
|
25694
|
-
onChange:
|
|
25714
|
+
modelValue: i.value,
|
|
25715
|
+
"onUpdate:modelValue": f[0] ||= (e) => i.value = e,
|
|
25716
|
+
onChange: f[1] ||= (t) => {
|
|
25695
25717
|
e.item.extConfig?.edit?.attrs?.changeEvent?.({
|
|
25696
25718
|
value: t,
|
|
25697
25719
|
row: e.row,
|
|
25698
25720
|
item: e.item
|
|
25699
25721
|
});
|
|
25700
25722
|
},
|
|
25701
|
-
onInput:
|
|
25702
|
-
e.item.extConfig?.edit?.attrs?.inputEvent
|
|
25703
|
-
|
|
25704
|
-
|
|
25705
|
-
|
|
25706
|
-
|
|
25707
|
-
}
|
|
25723
|
+
onInput: f[2] ||= (t) => U(r)({
|
|
25724
|
+
inputEvent: e.item.extConfig?.edit?.attrs?.inputEvent,
|
|
25725
|
+
value: t,
|
|
25726
|
+
key: e.item.prop,
|
|
25727
|
+
formModel: e.row
|
|
25728
|
+
})
|
|
25708
25729
|
}, e.item.extConfig.edit.attrs), null, 16, [
|
|
25709
25730
|
"placeholder",
|
|
25710
25731
|
"options",
|
|
25711
25732
|
"props",
|
|
25712
25733
|
"class",
|
|
25713
25734
|
"modelValue"
|
|
25714
|
-
])) : (F(), d("span",
|
|
25735
|
+
])) : (F(), d("span", sj, H(u.value), 1))], 64)) : (F(), l(ej, {
|
|
25715
25736
|
key: 1,
|
|
25716
25737
|
row: e.row,
|
|
25717
25738
|
item: e.item,
|
|
@@ -25724,21 +25745,21 @@ var EA = {
|
|
|
25724
25745
|
"globalConfig"
|
|
25725
25746
|
]));
|
|
25726
25747
|
}
|
|
25727
|
-
}),
|
|
25748
|
+
}), lj = (e, t) => {
|
|
25728
25749
|
let n = { ...e };
|
|
25729
25750
|
for (let e in t) {
|
|
25730
25751
|
let r = t[e], i = n[e];
|
|
25731
|
-
r && typeof r == "object" && !MA(r) ? n[e] =
|
|
25752
|
+
r && typeof r == "object" && !MA(r) ? n[e] = lj(i && typeof i == "object" ? i : {}, r) : n[e] = r;
|
|
25732
25753
|
}
|
|
25733
25754
|
return n;
|
|
25734
|
-
},
|
|
25755
|
+
}, uj = (e, t) => s(() => {
|
|
25735
25756
|
let n = { ...e };
|
|
25736
25757
|
for (let [r, i] of Object.entries(t)) {
|
|
25737
25758
|
let t = e[r];
|
|
25738
|
-
t === null ? n[r] = {} : t === void 0 ? n[r] = { ...i } : n[r] =
|
|
25759
|
+
t === null ? n[r] = {} : t === void 0 ? n[r] = { ...i } : n[r] = lj({ ...i }, t);
|
|
25739
25760
|
}
|
|
25740
25761
|
return n;
|
|
25741
|
-
}),
|
|
25762
|
+
}), dj = {
|
|
25742
25763
|
extraHeader: { style: {
|
|
25743
25764
|
padding: "10px",
|
|
25744
25765
|
borderBottom: "1px solid var(--el-border-color-light)"
|
|
@@ -25778,7 +25799,7 @@ var EA = {
|
|
|
25778
25799
|
background: !0,
|
|
25779
25800
|
layout: "total, sizes, prev, pager, next, jumper"
|
|
25780
25801
|
}
|
|
25781
|
-
},
|
|
25802
|
+
}, fj = { class: "wyfe-ivue__use-el-table" }, pj = { key: 1 }, mj = { key: 0 }, hj = /* @__PURE__ */ rj(/* @__PURE__ */ g({
|
|
25782
25803
|
__name: "index",
|
|
25783
25804
|
props: EA,
|
|
25784
25805
|
emits: [
|
|
@@ -25790,7 +25811,7 @@ var EA = {
|
|
|
25790
25811
|
],
|
|
25791
25812
|
setup(e, { expose: n, emit: r }) {
|
|
25792
25813
|
ye((e) => ({ v4eebae30: U(M) }));
|
|
25793
|
-
let i = e, a = r, o = be(), { proxy: s } = v(), c = AA(i), f =
|
|
25814
|
+
let i = e, a = r, o = be(), { proxy: s } = v(), c = AA(i), f = uj(i, { extConfig: dj }), { adaptiveComputed: m, slotName: h, processDictData: g, handleHeaderCellClassName: _, headerCellStyleComputed: y, tableColumnsComputed: x, validRequired: S } = XA({
|
|
25794
25815
|
mergedProps: f,
|
|
25795
25816
|
emits: a,
|
|
25796
25817
|
proxy: s,
|
|
@@ -25805,7 +25826,7 @@ var EA = {
|
|
|
25805
25826
|
});
|
|
25806
25827
|
return n({ validRequired: S }), (e, n) => {
|
|
25807
25828
|
let r = HO, i = VO, a = SE, s = TA;
|
|
25808
|
-
return De((F(), d("div",
|
|
25829
|
+
return De((F(), d("div", fj, [
|
|
25809
25830
|
e.$slots.extraHeader ? (F(), d("div", {
|
|
25810
25831
|
key: 0,
|
|
25811
25832
|
class: k(U(f).extConfig.extraHeader.class),
|
|
@@ -25883,13 +25904,13 @@ var EA = {
|
|
|
25883
25904
|
item: n,
|
|
25884
25905
|
column: t,
|
|
25885
25906
|
$index: r
|
|
25886
|
-
}), void 0, !0) : (F(), d("span",
|
|
25887
|
-
default: G(({ row: r, $index: i }) => [n.prop && Object.keys(r).length ? (F(), d(t, { key: 0 }, [n?.extConfig?.slot ? (F(), d("div",
|
|
25907
|
+
}), void 0, !0) : (F(), d("span", pj, H(n.label), 1))], 2)) : u("", !0)]),
|
|
25908
|
+
default: G(({ row: r, $index: i }) => [n.prop && Object.keys(r).length ? (F(), d(t, { key: 0 }, [n?.extConfig?.slot ? (F(), d("div", mj, [z(e.$slots, U(h)(n), D({ ref_for: !0 }, {
|
|
25888
25909
|
row: r,
|
|
25889
25910
|
item: n,
|
|
25890
25911
|
data: r[n.prop],
|
|
25891
25912
|
dictData: U(g)(n)
|
|
25892
|
-
}), void 0, !0)])) : (F(), l(
|
|
25913
|
+
}), void 0, !0)])) : (F(), l(cj, {
|
|
25893
25914
|
key: 1,
|
|
25894
25915
|
row: r,
|
|
25895
25916
|
item: n,
|
|
@@ -25946,7 +25967,7 @@ var EA = {
|
|
|
25946
25967
|
])), [[s, e.tableLoading]]);
|
|
25947
25968
|
};
|
|
25948
25969
|
}
|
|
25949
|
-
}), [["__scopeId", "data-v-1baf35c9"]]),
|
|
25970
|
+
}), [["__scopeId", "data-v-1baf35c9"]]), gj = {
|
|
25950
25971
|
btnText: {
|
|
25951
25972
|
type: String,
|
|
25952
25973
|
required: !0
|
|
@@ -25968,7 +25989,7 @@ var EA = {
|
|
|
25968
25989
|
type: Object,
|
|
25969
25990
|
default: () => ({})
|
|
25970
25991
|
}
|
|
25971
|
-
},
|
|
25992
|
+
}, _j = {
|
|
25972
25993
|
debounce: {
|
|
25973
25994
|
delay: 500,
|
|
25974
25995
|
immediate: !1
|
|
@@ -25981,7 +26002,7 @@ var EA = {
|
|
|
25981
26002
|
title: "删除提示",
|
|
25982
26003
|
content: "确定将选择数据删除?"
|
|
25983
26004
|
}
|
|
25984
|
-
},
|
|
26005
|
+
}, vj = ({ mergedProps: e, emits: t, attrs: n }) => {
|
|
25985
26006
|
P(() => {
|
|
25986
26007
|
document.querySelectorAll(".el-button").forEach((e) => {
|
|
25987
26008
|
e.addEventListener("blur", (e) => {
|
|
@@ -26033,12 +26054,12 @@ var EA = {
|
|
|
26033
26054
|
n.onClick || (a.value ? r() : i());
|
|
26034
26055
|
}
|
|
26035
26056
|
};
|
|
26036
|
-
},
|
|
26057
|
+
}, yj = /* @__PURE__ */ g({
|
|
26037
26058
|
__name: "index",
|
|
26038
|
-
props:
|
|
26059
|
+
props: gj,
|
|
26039
26060
|
emits: ["onClick"],
|
|
26040
26061
|
setup(e, { emit: t }) {
|
|
26041
|
-
let n = e, r = t, i = ve(), a =
|
|
26062
|
+
let n = e, r = t, i = ve(), a = uj(n, { extConfig: _j }), { isConfirm: o, handleElButton: s } = vj({
|
|
26042
26063
|
mergedProps: a,
|
|
26043
26064
|
emits: r,
|
|
26044
26065
|
attrs: i
|
|
@@ -26055,7 +26076,7 @@ var EA = {
|
|
|
26055
26076
|
}, 8, ["type", "onClick"]);
|
|
26056
26077
|
};
|
|
26057
26078
|
}
|
|
26058
|
-
}),
|
|
26079
|
+
}), bj = {
|
|
26059
26080
|
formColumns: {
|
|
26060
26081
|
type: Array,
|
|
26061
26082
|
required: !0
|
|
@@ -26132,7 +26153,7 @@ var EA = {
|
|
|
26132
26153
|
type: Boolean,
|
|
26133
26154
|
default: !0
|
|
26134
26155
|
}
|
|
26135
|
-
},
|
|
26156
|
+
}, xj = {
|
|
26136
26157
|
content: {
|
|
26137
26158
|
type: [
|
|
26138
26159
|
String,
|
|
@@ -26150,7 +26171,7 @@ var EA = {
|
|
|
26150
26171
|
type: [String, Object],
|
|
26151
26172
|
default: ""
|
|
26152
26173
|
}
|
|
26153
|
-
},
|
|
26174
|
+
}, Sj = (e) => ({
|
|
26154
26175
|
isVueComponent: s(() => {
|
|
26155
26176
|
let { content: t } = e;
|
|
26156
26177
|
if (!t || typeof t != "object" || T(t)) return !1;
|
|
@@ -26159,22 +26180,22 @@ var EA = {
|
|
|
26159
26180
|
}),
|
|
26160
26181
|
isTextContent: s(() => IA(e.content) || FA(e.content) || PA(e.content)),
|
|
26161
26182
|
isVNodeContent: s(() => T(e.content))
|
|
26162
|
-
}),
|
|
26183
|
+
}), Cj = ["innerHTML"], wj = {
|
|
26163
26184
|
key: 2,
|
|
26164
26185
|
style: { color: "var(--el-color-danger)" }
|
|
26165
|
-
},
|
|
26186
|
+
}, Tj = /* @__PURE__ */ g({
|
|
26166
26187
|
__name: "index",
|
|
26167
|
-
props:
|
|
26188
|
+
props: xj,
|
|
26168
26189
|
setup(e) {
|
|
26169
|
-
let { isVueComponent: t, isTextContent: n, isVNodeContent: r } =
|
|
26190
|
+
let { isVueComponent: t, isTextContent: n, isVNodeContent: r } = Sj(e);
|
|
26170
26191
|
return (e, i) => U(t) || U(r) ? (F(), l(V(e.content), { key: 0 })) : U(n) ? (F(), d("div", {
|
|
26171
26192
|
key: 1,
|
|
26172
26193
|
innerHTML: e.content,
|
|
26173
26194
|
class: k(e.class),
|
|
26174
26195
|
style: j(e.style)
|
|
26175
|
-
}, null, 14,
|
|
26196
|
+
}, null, 14, Cj)) : (F(), d("span", wj, " 不支持的content类型(仅支持字符串/数字/同步组件/异步组件/VNode) "));
|
|
26176
26197
|
}
|
|
26177
|
-
}),
|
|
26198
|
+
}), Ej = {
|
|
26178
26199
|
mobile: () => (e, t, n) => {
|
|
26179
26200
|
let r = /^1[3-9]\d{9}$/;
|
|
26180
26201
|
if (!t) return n(/* @__PURE__ */ Error("请输入手机号"));
|
|
@@ -26191,7 +26212,7 @@ var EA = {
|
|
|
26191
26212
|
if (i.startsWith("0") && i.length > 1 && i[1] !== ".") return r(/* @__PURE__ */ Error("请输入正确的数字格式,例如 0 或 0.123"));
|
|
26192
26213
|
r();
|
|
26193
26214
|
}
|
|
26194
|
-
},
|
|
26215
|
+
}, Dj = ({ props: e, emits: t, globalConfig: n }) => (W(() => e.formColumns, (e) => {
|
|
26195
26216
|
if (!e?.length) return;
|
|
26196
26217
|
let n = [];
|
|
26197
26218
|
for (let t of e) {
|
|
@@ -26222,7 +26243,7 @@ var EA = {
|
|
|
26222
26243
|
if (!i) continue;
|
|
26223
26244
|
t[r] = [{
|
|
26224
26245
|
required: e,
|
|
26225
|
-
validator:
|
|
26246
|
+
validator: Ej[i](a),
|
|
26226
26247
|
trigger: ["blur", "change"]
|
|
26227
26248
|
}];
|
|
26228
26249
|
} else LA(n) && (t[r] = n);
|
|
@@ -26277,7 +26298,7 @@ var EA = {
|
|
|
26277
26298
|
let n = Object.keys(e).find((e) => e.endsWith("Config"));
|
|
26278
26299
|
return n && t[WA(n.replace("Config", ""))] || null;
|
|
26279
26300
|
})
|
|
26280
|
-
}),
|
|
26301
|
+
}), Oj = {
|
|
26281
26302
|
modelValue: {
|
|
26282
26303
|
type: [String, Number],
|
|
26283
26304
|
default: ""
|
|
@@ -26326,20 +26347,20 @@ var EA = {
|
|
|
26326
26347
|
type: Number,
|
|
26327
26348
|
default: 6
|
|
26328
26349
|
}
|
|
26329
|
-
},
|
|
26350
|
+
}, kj = { mounted(e, t) {
|
|
26330
26351
|
if (t.value === !1) return;
|
|
26331
26352
|
let n = e.querySelector("input"), r = e.querySelector("textarea"), i = n || r || e;
|
|
26332
26353
|
i && Promise.resolve().then(() => {
|
|
26333
26354
|
i.focus({ preventScroll: !0 });
|
|
26334
26355
|
});
|
|
26335
|
-
} },
|
|
26356
|
+
} }, Aj = {
|
|
26336
26357
|
key: 0,
|
|
26337
26358
|
class: "unit"
|
|
26338
|
-
},
|
|
26359
|
+
}, jj = /* @__PURE__ */ rj(/* @__PURE__ */ g({
|
|
26339
26360
|
name: "UseElInput",
|
|
26340
26361
|
inheritAttrs: !1,
|
|
26341
26362
|
__name: "index",
|
|
26342
|
-
props:
|
|
26363
|
+
props: Oj,
|
|
26343
26364
|
emits: ["update:modelValue"],
|
|
26344
26365
|
setup(e, { emit: n }) {
|
|
26345
26366
|
let r = e, i = n, a = s({
|
|
@@ -26349,7 +26370,7 @@ var EA = {
|
|
|
26349
26370
|
}
|
|
26350
26371
|
});
|
|
26351
26372
|
return (e, n) => {
|
|
26352
|
-
let r =
|
|
26373
|
+
let r = Tj, i = k_;
|
|
26353
26374
|
return F(), d("div", {
|
|
26354
26375
|
class: "wyfe-ivue__use-el-input",
|
|
26355
26376
|
style: j({ width: e.width })
|
|
@@ -26400,10 +26421,10 @@ var EA = {
|
|
|
26400
26421
|
"rows",
|
|
26401
26422
|
"show-password",
|
|
26402
26423
|
"show-word-limit"
|
|
26403
|
-
])), [[U(
|
|
26424
|
+
])), [[U(kj), Object.hasOwn(e.$attrs, "autoFocus")]]), e.unit ? (F(), d("span", Aj, [h(r, { content: e.unit }, null, 8, ["content"])])) : u("", !0)], 64))], 4);
|
|
26404
26425
|
};
|
|
26405
26426
|
}
|
|
26406
|
-
}), [["__scopeId", "data-v-b83d7a77"]]),
|
|
26427
|
+
}), [["__scopeId", "data-v-b83d7a77"]]), Mj = /* @__PURE__ */ g({
|
|
26407
26428
|
__name: "Input",
|
|
26408
26429
|
props: {
|
|
26409
26430
|
item: {},
|
|
@@ -26412,34 +26433,12 @@ var EA = {
|
|
|
26412
26433
|
formItemWidth: {}
|
|
26413
26434
|
},
|
|
26414
26435
|
setup(e) {
|
|
26415
|
-
let t = e, n = s(() => t.item.inputConfig), r = s(() => n.value.placeholder ?? (t.globalConfig.finalLanguage === "en" ? "Please Input" : "请输入")),
|
|
26416
|
-
|
|
26417
|
-
|
|
26418
|
-
t.formModel[n.prop] = "", ke.warning(`请输入数字,最多支持 ${r} 位小数`);
|
|
26419
|
-
return;
|
|
26420
|
-
}
|
|
26421
|
-
i.startsWith("0") && i.length > 1 && i[1] !== "." && (i = "0");
|
|
26422
|
-
let a = i.indexOf(".");
|
|
26423
|
-
a !== -1 && (i = `${i.slice(0, a)}.${i.slice(a + 1).replace(/\./g, "").slice(0, r)}`), t.formModel[n.prop] = i;
|
|
26424
|
-
}, a = (e, t) => {
|
|
26425
|
-
let { inputEvent: r } = n.value;
|
|
26426
|
-
if (r) {
|
|
26427
|
-
if (typeof r == "function") return r({
|
|
26428
|
-
value: e,
|
|
26429
|
-
item: t
|
|
26430
|
-
});
|
|
26431
|
-
if (typeof r == "string" && r === "limitDecimal") return i(e, t);
|
|
26432
|
-
if (typeof r == "object") {
|
|
26433
|
-
let { name: n, digits: a } = r;
|
|
26434
|
-
if (n === "limitDecimal") return i(e, t, a);
|
|
26435
|
-
}
|
|
26436
|
-
}
|
|
26437
|
-
};
|
|
26438
|
-
return (t, i) => {
|
|
26439
|
-
let o = kj;
|
|
26436
|
+
let t = e, n = s(() => t.item.inputConfig), r = s(() => n.value.placeholder ?? (t.globalConfig.finalLanguage === "en" ? "Please Input" : "请输入")), { handleInput: i } = oj();
|
|
26437
|
+
return (t, a) => {
|
|
26438
|
+
let o = jj;
|
|
26440
26439
|
return De((F(), l(o, {
|
|
26441
26440
|
modelValue: e.formModel[e.item.prop],
|
|
26442
|
-
"onUpdate:modelValue":
|
|
26441
|
+
"onUpdate:modelValue": a[0] ||= (t) => e.formModel[e.item.prop] = t,
|
|
26443
26442
|
useRender: n.value.useRender,
|
|
26444
26443
|
type: n.value.type || "text",
|
|
26445
26444
|
width: n.value.width ?? "100%",
|
|
@@ -26461,9 +26460,14 @@ var EA = {
|
|
|
26461
26460
|
"show-password": n.value.showPassword ?? !1,
|
|
26462
26461
|
placeholder: r.value,
|
|
26463
26462
|
style: j({ width: n.value.width ?? e.formItemWidth }),
|
|
26464
|
-
onClear:
|
|
26465
|
-
onInput:
|
|
26466
|
-
|
|
26463
|
+
onClear: a[1] ||= (t) => n.value?.onClear?.(t, e.item),
|
|
26464
|
+
onInput: a[2] ||= (t) => U(i)({
|
|
26465
|
+
inputEvent: n.value?.inputEvent,
|
|
26466
|
+
value: t,
|
|
26467
|
+
key: e.item.prop,
|
|
26468
|
+
formModel: e.formModel
|
|
26469
|
+
}),
|
|
26470
|
+
onKeyup: a[3] ||= Oe(K((t) => n.value?.onKeyupEnter?.(t, e.item), ["self"]), ["enter"])
|
|
26467
26471
|
}, null, 8, [
|
|
26468
26472
|
"modelValue",
|
|
26469
26473
|
"useRender",
|
|
@@ -26487,16 +26491,16 @@ var EA = {
|
|
|
26487
26491
|
"show-password",
|
|
26488
26492
|
"placeholder",
|
|
26489
26493
|
"style"
|
|
26490
|
-
])), [[U(
|
|
26494
|
+
])), [[U(kj), n.value.autoFocus || !1]]);
|
|
26491
26495
|
};
|
|
26492
26496
|
}
|
|
26493
|
-
}),
|
|
26497
|
+
}), Nj = {
|
|
26494
26498
|
key: 0,
|
|
26495
26499
|
class: "input-number"
|
|
26496
|
-
},
|
|
26500
|
+
}, Pj = {
|
|
26497
26501
|
key: 2,
|
|
26498
26502
|
class: "unit"
|
|
26499
|
-
},
|
|
26503
|
+
}, Fj = /* @__PURE__ */ rj(/* @__PURE__ */ g({
|
|
26500
26504
|
__name: "InputNumber",
|
|
26501
26505
|
props: {
|
|
26502
26506
|
item: {},
|
|
@@ -26506,8 +26510,8 @@ var EA = {
|
|
|
26506
26510
|
setup(e) {
|
|
26507
26511
|
let t = e, n = s(() => t.item.inputNumberConfig), r = s(() => n.value.placeholder ?? (t.globalConfig.finalLanguage === "en" ? "Please Select" : "请选择"));
|
|
26508
26512
|
return (t, i) => {
|
|
26509
|
-
let a =
|
|
26510
|
-
return n.value ? (F(), d("div",
|
|
26513
|
+
let a = Tj, o = KT;
|
|
26514
|
+
return n.value ? (F(), d("div", Nj, [n.value.useRender ? (F(), l(a, {
|
|
26511
26515
|
key: 0,
|
|
26512
26516
|
content: e.formModel[e.item.prop],
|
|
26513
26517
|
class: k(typeof n.value.useRender == "object" && n.value.useRender.class),
|
|
@@ -26534,10 +26538,10 @@ var EA = {
|
|
|
26534
26538
|
"step",
|
|
26535
26539
|
"disabled-scientific",
|
|
26536
26540
|
"placeholder"
|
|
26537
|
-
])), n.value.unit ? (F(), d("span",
|
|
26541
|
+
])), n.value.unit ? (F(), d("span", Pj, [h(a, { content: n.value.unit }, null, 8, ["content"])])) : u("", !0)])) : u("", !0);
|
|
26538
26542
|
};
|
|
26539
26543
|
}
|
|
26540
|
-
}), [["__scopeId", "data-v-5c31e30b"]]),
|
|
26544
|
+
}), [["__scopeId", "data-v-5c31e30b"]]), Ij = {
|
|
26541
26545
|
modelValue: {
|
|
26542
26546
|
type: [
|
|
26543
26547
|
String,
|
|
@@ -26582,7 +26586,7 @@ var EA = {
|
|
|
26582
26586
|
children: "children"
|
|
26583
26587
|
})
|
|
26584
26588
|
}
|
|
26585
|
-
},
|
|
26589
|
+
}, Lj = ({ props: e, emits: t }) => {
|
|
26586
26590
|
let n = s(() => {
|
|
26587
26591
|
let t = e.options?.[0];
|
|
26588
26592
|
if (!t) return "string";
|
|
@@ -26604,19 +26608,19 @@ var EA = {
|
|
|
26604
26608
|
t("update:modelValue", s), t("update:label", l);
|
|
26605
26609
|
}
|
|
26606
26610
|
};
|
|
26607
|
-
},
|
|
26611
|
+
}, Rj = /* @__PURE__ */ g({
|
|
26608
26612
|
name: "UseElSelect",
|
|
26609
26613
|
inheritAttrs: !1,
|
|
26610
26614
|
__name: "index",
|
|
26611
|
-
props:
|
|
26615
|
+
props: Ij,
|
|
26612
26616
|
emits: ["update:modelValue", "update:label"],
|
|
26613
26617
|
setup(e, { emit: n }) {
|
|
26614
|
-
let { modelValue: r, contentComputed: i, handleSelectChange: a } =
|
|
26618
|
+
let { modelValue: r, contentComputed: i, handleSelectChange: a } = Lj({
|
|
26615
26619
|
props: e,
|
|
26616
26620
|
emits: n
|
|
26617
26621
|
});
|
|
26618
26622
|
return (e, n) => {
|
|
26619
|
-
let o =
|
|
26623
|
+
let o = Tj, s = ZE, c = Ub, u = Hb;
|
|
26620
26624
|
return e.useRender ? (F(), l(o, {
|
|
26621
26625
|
key: 0,
|
|
26622
26626
|
content: U(i),
|
|
@@ -26666,7 +26670,7 @@ var EA = {
|
|
|
26666
26670
|
]))], 64));
|
|
26667
26671
|
};
|
|
26668
26672
|
}
|
|
26669
|
-
}),
|
|
26673
|
+
}), zj = /* @__PURE__ */ g({
|
|
26670
26674
|
__name: "Select",
|
|
26671
26675
|
props: {
|
|
26672
26676
|
modelValue: {
|
|
@@ -26713,7 +26717,7 @@ var EA = {
|
|
|
26713
26717
|
}, !0);
|
|
26714
26718
|
});
|
|
26715
26719
|
}), (t, n) => {
|
|
26716
|
-
let r =
|
|
26720
|
+
let r = Rj;
|
|
26717
26721
|
return F(), l(r, {
|
|
26718
26722
|
modelValue: a.value,
|
|
26719
26723
|
"onUpdate:modelValue": n[0] ||= (e) => a.value = e,
|
|
@@ -26739,7 +26743,7 @@ var EA = {
|
|
|
26739
26743
|
]);
|
|
26740
26744
|
};
|
|
26741
26745
|
}
|
|
26742
|
-
}),
|
|
26746
|
+
}), Bj = /* @__PURE__ */ g({
|
|
26743
26747
|
__name: "TreeSelect",
|
|
26744
26748
|
props: {
|
|
26745
26749
|
item: {},
|
|
@@ -26759,7 +26763,7 @@ var EA = {
|
|
|
26759
26763
|
return n ? n[t.globalConfig.finalDictProps.label] : e;
|
|
26760
26764
|
}), a = s(() => n.value?.props || t.globalConfig.finalDictProps), o = s(() => n.value.placeholder ?? (t.globalConfig.finalLanguage === "en" ? "Please Select" : "请选择"));
|
|
26761
26765
|
return (t, s) => {
|
|
26762
|
-
let c =
|
|
26766
|
+
let c = Tj, u = Fk;
|
|
26763
26767
|
return n.value.useRender ? (F(), l(c, {
|
|
26764
26768
|
key: 0,
|
|
26765
26769
|
content: i.value,
|
|
@@ -26795,7 +26799,7 @@ var EA = {
|
|
|
26795
26799
|
]));
|
|
26796
26800
|
};
|
|
26797
26801
|
}
|
|
26798
|
-
}),
|
|
26802
|
+
}), Vj = /* @__PURE__ */ g({
|
|
26799
26803
|
__name: "Cascader",
|
|
26800
26804
|
props: {
|
|
26801
26805
|
item: {},
|
|
@@ -26820,7 +26824,7 @@ var EA = {
|
|
|
26820
26824
|
}
|
|
26821
26825
|
}, c = L(null);
|
|
26822
26826
|
return t({ cascaderRef: c }), (t, n) => {
|
|
26823
|
-
let s =
|
|
26827
|
+
let s = Tj, u = JS;
|
|
26824
26828
|
return r.value.useRender ? (F(), l(s, {
|
|
26825
26829
|
key: 0,
|
|
26826
26830
|
content: e.formModel[e.item.prop],
|
|
@@ -26850,7 +26854,7 @@ var EA = {
|
|
|
26850
26854
|
]));
|
|
26851
26855
|
};
|
|
26852
26856
|
}
|
|
26853
|
-
}),
|
|
26857
|
+
}), Hj = /* @__PURE__ */ g({
|
|
26854
26858
|
__name: "index",
|
|
26855
26859
|
props: {
|
|
26856
26860
|
modelValue: {
|
|
@@ -26921,7 +26925,7 @@ var EA = {
|
|
|
26921
26925
|
monthrange: "YYYY-MM"
|
|
26922
26926
|
})[n.type] || "YYYY-MM-DD");
|
|
26923
26927
|
return (e, t) => {
|
|
26924
|
-
let n =
|
|
26928
|
+
let n = Tj, r = qw;
|
|
26925
26929
|
return e.useRender ? (F(), l(n, {
|
|
26926
26930
|
key: 0,
|
|
26927
26931
|
content: i.value,
|
|
@@ -26955,7 +26959,7 @@ var EA = {
|
|
|
26955
26959
|
]));
|
|
26956
26960
|
};
|
|
26957
26961
|
}
|
|
26958
|
-
}),
|
|
26962
|
+
}), Uj = /* @__PURE__ */ g({
|
|
26959
26963
|
__name: "DatePicker",
|
|
26960
26964
|
props: {
|
|
26961
26965
|
modelValue: {},
|
|
@@ -26980,7 +26984,7 @@ var EA = {
|
|
|
26980
26984
|
});
|
|
26981
26985
|
};
|
|
26982
26986
|
return (t, n) => {
|
|
26983
|
-
let r =
|
|
26987
|
+
let r = Hj;
|
|
26984
26988
|
return F(), l(r, {
|
|
26985
26989
|
modelValue: a.value,
|
|
26986
26990
|
"onUpdate:modelValue": n[0] ||= (e) => a.value = e,
|
|
@@ -27014,7 +27018,7 @@ var EA = {
|
|
|
27014
27018
|
]);
|
|
27015
27019
|
};
|
|
27016
27020
|
}
|
|
27017
|
-
}),
|
|
27021
|
+
}), Wj = /* @__PURE__ */ g({
|
|
27018
27022
|
__name: "TimePicker",
|
|
27019
27023
|
props: {
|
|
27020
27024
|
item: {},
|
|
@@ -27028,7 +27032,7 @@ var EA = {
|
|
|
27028
27032
|
});
|
|
27029
27033
|
};
|
|
27030
27034
|
return (n, s) => {
|
|
27031
|
-
let p =
|
|
27035
|
+
let p = Tj, m = ob;
|
|
27032
27036
|
return F(), d(t, null, [r.value.useRender ? (F(), l(p, {
|
|
27033
27037
|
key: 0,
|
|
27034
27038
|
content: e.formModel[e.item.prop],
|
|
@@ -27061,7 +27065,7 @@ var EA = {
|
|
|
27061
27065
|
])], 64);
|
|
27062
27066
|
};
|
|
27063
27067
|
}
|
|
27064
|
-
}),
|
|
27068
|
+
}), Gj = { class: "time-select" }, Kj = /* @__PURE__ */ rj(/* @__PURE__ */ g({
|
|
27065
27069
|
__name: "TimeSelect",
|
|
27066
27070
|
props: {
|
|
27067
27071
|
item: {},
|
|
@@ -27071,8 +27075,8 @@ var EA = {
|
|
|
27071
27075
|
setup(e) {
|
|
27072
27076
|
let n = e, r = s(() => n.item.timeSelectConfig);
|
|
27073
27077
|
return (n, i) => {
|
|
27074
|
-
let a =
|
|
27075
|
-
return F(), d("div",
|
|
27078
|
+
let a = Tj, o = ZO;
|
|
27079
|
+
return F(), d("div", Gj, [r.value.useRender ? (F(), d(t, { key: 0 }, [
|
|
27076
27080
|
h(a, {
|
|
27077
27081
|
content: e.formModel[r.value.startProp],
|
|
27078
27082
|
class: k(typeof r.value.useRender == "object" && r.value.useRender.class),
|
|
@@ -27115,7 +27119,7 @@ var EA = {
|
|
|
27115
27119
|
], 64))]);
|
|
27116
27120
|
};
|
|
27117
27121
|
}
|
|
27118
|
-
}), [["__scopeId", "data-v-8b6299e8"]]),
|
|
27122
|
+
}), [["__scopeId", "data-v-8b6299e8"]]), qj = /* @__PURE__ */ g({
|
|
27119
27123
|
__name: "Radio",
|
|
27120
27124
|
props: {
|
|
27121
27125
|
item: {},
|
|
@@ -27138,7 +27142,7 @@ var EA = {
|
|
|
27138
27142
|
}
|
|
27139
27143
|
};
|
|
27140
27144
|
return (n, o) => {
|
|
27141
|
-
let s =
|
|
27145
|
+
let s = Tj, c = wS, u = TS;
|
|
27142
27146
|
return r.value.useRender ? (F(), l(s, {
|
|
27143
27147
|
key: 0,
|
|
27144
27148
|
content: e.formModel[e.item.prop],
|
|
@@ -27165,7 +27169,7 @@ var EA = {
|
|
|
27165
27169
|
}, 8, ["modelValue"]));
|
|
27166
27170
|
};
|
|
27167
27171
|
}
|
|
27168
|
-
}),
|
|
27172
|
+
}), Jj = /* @__PURE__ */ g({
|
|
27169
27173
|
__name: "index",
|
|
27170
27174
|
props: {
|
|
27171
27175
|
activeValue: {
|
|
@@ -27215,7 +27219,7 @@ var EA = {
|
|
|
27215
27219
|
]);
|
|
27216
27220
|
};
|
|
27217
27221
|
}
|
|
27218
|
-
}),
|
|
27222
|
+
}), Yj = /* @__PURE__ */ g({
|
|
27219
27223
|
__name: "Switch",
|
|
27220
27224
|
props: {
|
|
27221
27225
|
item: {},
|
|
@@ -27226,7 +27230,7 @@ var EA = {
|
|
|
27226
27230
|
Object.hasOwn(n.value, "onChange") && typeof n.value?.onChange == "function" && n.value.onChange(e);
|
|
27227
27231
|
};
|
|
27228
27232
|
return (t, i) => {
|
|
27229
|
-
let a =
|
|
27233
|
+
let a = Tj, o = Jj;
|
|
27230
27234
|
return n.value.useRender ? (F(), l(a, {
|
|
27231
27235
|
key: 0,
|
|
27232
27236
|
content: e.formModel[e.item.prop],
|
|
@@ -27250,36 +27254,36 @@ var EA = {
|
|
|
27250
27254
|
]));
|
|
27251
27255
|
};
|
|
27252
27256
|
}
|
|
27253
|
-
}),
|
|
27257
|
+
}), Xj = /* @__PURE__ */ rj(/* @__PURE__ */ g({
|
|
27254
27258
|
__name: "RowForm",
|
|
27255
|
-
props:
|
|
27259
|
+
props: bj,
|
|
27256
27260
|
emits: [
|
|
27257
27261
|
"onDictKeys",
|
|
27258
27262
|
"onQuery",
|
|
27259
27263
|
"update:formModel"
|
|
27260
27264
|
],
|
|
27261
27265
|
setup(e, { expose: n, emit: r }) {
|
|
27262
|
-
let i = e, a = r, o = be(), s = AA(i), { formColumnsComputed: c, formRules: f, processRenderContent: p, getFormComponent: m } =
|
|
27266
|
+
let i = e, a = r, o = be(), s = AA(i), { formColumnsComputed: c, formRules: f, processRenderContent: p, getFormComponent: m } = Dj({
|
|
27263
27267
|
props: i,
|
|
27264
27268
|
emits: a,
|
|
27265
27269
|
globalConfig: s
|
|
27266
27270
|
}), g = {
|
|
27267
|
-
Input:
|
|
27268
|
-
InputNumber:
|
|
27269
|
-
Select:
|
|
27270
|
-
TreeSelect:
|
|
27271
|
-
Cascader:
|
|
27272
|
-
DatePicker:
|
|
27273
|
-
TimePicker:
|
|
27274
|
-
TimeSelect:
|
|
27275
|
-
Radio:
|
|
27276
|
-
Switch:
|
|
27271
|
+
Input: Mj,
|
|
27272
|
+
InputNumber: Fj,
|
|
27273
|
+
Select: zj,
|
|
27274
|
+
TreeSelect: Bj,
|
|
27275
|
+
Cascader: Vj,
|
|
27276
|
+
DatePicker: Uj,
|
|
27277
|
+
TimePicker: Wj,
|
|
27278
|
+
TimeSelect: Kj,
|
|
27279
|
+
Radio: qj,
|
|
27280
|
+
Switch: Yj
|
|
27277
27281
|
}, _ = L(null);
|
|
27278
27282
|
return n({
|
|
27279
27283
|
efRef: _,
|
|
27280
27284
|
cascaderRef: L(null)
|
|
27281
27285
|
}), (e, n) => {
|
|
27282
|
-
let r =
|
|
27286
|
+
let r = Tj, i = mg, a = $S, v = QS, y = pg;
|
|
27283
27287
|
return F(), l(y, {
|
|
27284
27288
|
ref_key: "efRef",
|
|
27285
27289
|
ref: _,
|
|
@@ -27370,10 +27374,10 @@ var EA = {
|
|
|
27370
27374
|
]);
|
|
27371
27375
|
};
|
|
27372
27376
|
}
|
|
27373
|
-
}), [["__scopeId", "data-v-60318d3a"]]),
|
|
27377
|
+
}), [["__scopeId", "data-v-60318d3a"]]), Zj = {
|
|
27374
27378
|
key: 0,
|
|
27375
27379
|
class: "input-range"
|
|
27376
|
-
},
|
|
27380
|
+
}, Qj = /* @__PURE__ */ rj(/* @__PURE__ */ g({
|
|
27377
27381
|
__name: "InputRange",
|
|
27378
27382
|
props: {
|
|
27379
27383
|
item: {},
|
|
@@ -27391,8 +27395,8 @@ var EA = {
|
|
|
27391
27395
|
return e.includes("%") ? `${parseFloat(e) / 2}%` : e.includes("px") ? `${parseFloat(e) / 2}px` : "120px";
|
|
27392
27396
|
});
|
|
27393
27397
|
return (t, o) => {
|
|
27394
|
-
let s =
|
|
27395
|
-
return n.value ? (F(), d("div",
|
|
27398
|
+
let s = jj;
|
|
27399
|
+
return n.value ? (F(), d("div", Zj, [
|
|
27396
27400
|
h(s, {
|
|
27397
27401
|
modelValue: e.formModel[n.value.startProp],
|
|
27398
27402
|
"onUpdate:modelValue": o[0] ||= (t) => e.formModel[n.value.startProp] = t,
|
|
@@ -27417,26 +27421,26 @@ var EA = {
|
|
|
27417
27421
|
])) : u("", !0);
|
|
27418
27422
|
};
|
|
27419
27423
|
}
|
|
27420
|
-
}), [["__scopeId", "data-v-3b4c84c9"]]),
|
|
27424
|
+
}), [["__scopeId", "data-v-3b4c84c9"]]), $j = { class: "btn-wrapper" }, eM = /* @__PURE__ */ rj(/* @__PURE__ */ g({
|
|
27421
27425
|
__name: "InlineForm",
|
|
27422
|
-
props:
|
|
27426
|
+
props: bj,
|
|
27423
27427
|
emits: [
|
|
27424
27428
|
"onDictKeys",
|
|
27425
27429
|
"onQuery",
|
|
27426
27430
|
"update:formModel"
|
|
27427
27431
|
],
|
|
27428
27432
|
setup(e, { expose: n, emit: r }) {
|
|
27429
|
-
let i = e, a = r, o = s(() => i.showBottomBorber ? "1px solid var(--el-border-color)" : ""), c = AA(i), { formColumnsComputed: p, getFormComponent: g, resolveQueryParams: _ } =
|
|
27433
|
+
let i = e, a = r, o = s(() => i.showBottomBorber ? "1px solid var(--el-border-color)" : ""), c = AA(i), { formColumnsComputed: p, getFormComponent: g, resolveQueryParams: _ } = Dj({
|
|
27430
27434
|
props: i,
|
|
27431
27435
|
emits: a,
|
|
27432
27436
|
globalConfig: c
|
|
27433
27437
|
}), v = {
|
|
27434
|
-
Input:
|
|
27435
|
-
Select:
|
|
27436
|
-
TreeSelect:
|
|
27437
|
-
Cascader:
|
|
27438
|
-
DatePicker:
|
|
27439
|
-
InputRange:
|
|
27438
|
+
Input: Mj,
|
|
27439
|
+
Select: zj,
|
|
27440
|
+
TreeSelect: Bj,
|
|
27441
|
+
Cascader: Vj,
|
|
27442
|
+
DatePicker: Uj,
|
|
27443
|
+
InputRange: Qj
|
|
27440
27444
|
}, y = () => {
|
|
27441
27445
|
a("onQuery", _(i.formColumns, i.formModel));
|
|
27442
27446
|
}, b = () => {
|
|
@@ -27501,7 +27505,7 @@ var EA = {
|
|
|
27501
27505
|
_: 2
|
|
27502
27506
|
}, 1032, ["label"]))), 128))]),
|
|
27503
27507
|
_: 1
|
|
27504
|
-
}, 8, ["model", "label-suffix"]), f("div",
|
|
27508
|
+
}, 8, ["model", "label-suffix"]), f("div", $j, [
|
|
27505
27509
|
h(a, {
|
|
27506
27510
|
type: "primary",
|
|
27507
27511
|
loading: e.queryLoading,
|
|
@@ -27520,9 +27524,9 @@ var EA = {
|
|
|
27520
27524
|
});
|
|
27521
27525
|
};
|
|
27522
27526
|
}
|
|
27523
|
-
}), [["__scopeId", "data-v-3c92553e"]]),
|
|
27527
|
+
}), [["__scopeId", "data-v-3c92553e"]]), tM = { class: "wyfe-ivue__use-el-form" }, nM = /* @__PURE__ */ rj(/* @__PURE__ */ g({
|
|
27524
27528
|
__name: "index",
|
|
27525
|
-
props:
|
|
27529
|
+
props: bj,
|
|
27526
27530
|
setup(e, { expose: t }) {
|
|
27527
27531
|
let n = e, r = be(), i = ve(), a = L(null);
|
|
27528
27532
|
return t({
|
|
@@ -27533,7 +27537,7 @@ var EA = {
|
|
|
27533
27537
|
handleInlineFormDisplay: s(() => a.value?.handleInlineFormDisplay),
|
|
27534
27538
|
processApiData: (e) => KA(e, n.formColumns),
|
|
27535
27539
|
getProcessedFormModel: () => GA(n.formModel)
|
|
27536
|
-
}), (e, t) => (F(), d("div",
|
|
27540
|
+
}), (e, t) => (F(), d("div", tM, [(F(), l(V(e.formMode === "rowForm" ? Xj : eM), D({
|
|
27537
27541
|
ref_key: "componentRef",
|
|
27538
27542
|
ref: a
|
|
27539
27543
|
}, {
|
|
@@ -27544,7 +27548,7 @@ var EA = {
|
|
|
27544
27548
|
fn: G((t) => [z(e.$slots, n, A(b(t)), void 0, !0)])
|
|
27545
27549
|
}))]), 1040))]));
|
|
27546
27550
|
}
|
|
27547
|
-
}), [["__scopeId", "data-v-52034635"]]),
|
|
27551
|
+
}), [["__scopeId", "data-v-52034635"]]), rM = {
|
|
27548
27552
|
configs: {
|
|
27549
27553
|
type: Array,
|
|
27550
27554
|
required: !0
|
|
@@ -27561,12 +27565,12 @@ var EA = {
|
|
|
27561
27565
|
type: Object,
|
|
27562
27566
|
default: () => ({})
|
|
27563
27567
|
}
|
|
27564
|
-
},
|
|
27568
|
+
}, iM = (e) => e.map((e) => {
|
|
27565
27569
|
let t = { ...e }, n = Object.keys(t), r = !1;
|
|
27566
27570
|
return n.forEach((e) => {
|
|
27567
27571
|
e.endsWith("Config") && e !== "extConfig" && (r = !0);
|
|
27568
27572
|
}), r ? t : null;
|
|
27569
|
-
}).filter((e) => e !== null),
|
|
27573
|
+
}).filter((e) => e !== null), aM = (e) => {
|
|
27570
27574
|
let t = [...e].filter((e) => !e.onlySearch), n = /* @__PURE__ */ new Map();
|
|
27571
27575
|
t.forEach((e, t) => {
|
|
27572
27576
|
let r = Number(e?.tableOrder ?? t + 1);
|
|
@@ -27577,7 +27581,7 @@ var EA = {
|
|
|
27577
27581
|
item: e,
|
|
27578
27582
|
_order: Number(e?.tableOrder ?? t + 1)
|
|
27579
27583
|
})).sort((e, t) => e._order - t._order).map(({ item: e }) => e);
|
|
27580
|
-
},
|
|
27584
|
+
}, oM = { actionBar: {
|
|
27581
27585
|
margin: "20px 0",
|
|
27582
27586
|
showControlFormDisplayBtn: !0,
|
|
27583
27587
|
reverse: !1,
|
|
@@ -27585,19 +27589,19 @@ var EA = {
|
|
|
27585
27589
|
show: !1,
|
|
27586
27590
|
borderStyle: "solid"
|
|
27587
27591
|
}
|
|
27588
|
-
} },
|
|
27592
|
+
} }, sM = { class: "wyfe-ivue__use-crud-table" }, cM = { class: "wyfe-ivue__action-bar-inner" }, lM = /* @__PURE__ */ rj(/* @__PURE__ */ g({
|
|
27589
27593
|
__name: "index",
|
|
27590
|
-
props:
|
|
27594
|
+
props: rM,
|
|
27591
27595
|
emits: ["onDictKeys"],
|
|
27592
27596
|
setup(e, { expose: t, emit: n }) {
|
|
27593
27597
|
ye((e) => ({ v273668d4: U(o).margin }));
|
|
27594
|
-
let r = e, i = n, a = be(), { actionBar: o } =
|
|
27598
|
+
let r = e, i = n, a = be(), { actionBar: o } = uj(r, { extConfig: oM }).value.extConfig, s = L({
|
|
27595
27599
|
formColumns: [],
|
|
27596
27600
|
tableColumns: []
|
|
27597
27601
|
});
|
|
27598
27602
|
W(() => r.configs, (e) => {
|
|
27599
27603
|
if (!e?.length) return;
|
|
27600
|
-
s.value.formColumns =
|
|
27604
|
+
s.value.formColumns = iM(e), s.value.tableColumns = aM(e);
|
|
27601
27605
|
let t = [];
|
|
27602
27606
|
for (let n of e) {
|
|
27603
27607
|
if (!n.useDict) continue;
|
|
@@ -27611,8 +27615,8 @@ var EA = {
|
|
|
27611
27615
|
});
|
|
27612
27616
|
let c = L();
|
|
27613
27617
|
return t({ uefRef: c }), (e, t) => {
|
|
27614
|
-
let n =
|
|
27615
|
-
return F(), d("div",
|
|
27618
|
+
let n = nM, r = yj, i = wT, m = hj;
|
|
27619
|
+
return F(), d("div", sM, [
|
|
27616
27620
|
h(n, D({
|
|
27617
27621
|
ref_key: "uefRef",
|
|
27618
27622
|
ref: c,
|
|
@@ -27622,7 +27626,7 @@ var EA = {
|
|
|
27622
27626
|
a.actionBar ? (F(), d("div", {
|
|
27623
27627
|
key: 0,
|
|
27624
27628
|
class: k(["wyfe-ivue__action-bar", { reverse: U(o).reverse }])
|
|
27625
|
-
}, [f("div",
|
|
27629
|
+
}, [f("div", cM, [f("div", null, [z(e.$slots, "actionBar", {}, void 0, !0)]), U(o).showControlFormDisplayBtn ? (F(), l(r, {
|
|
27626
27630
|
key: 0,
|
|
27627
27631
|
btnText: `${c.value?.showInlineForm ? "收起" : "展开"}查询`,
|
|
27628
27632
|
onClick: t[0] ||= (e) => c.value?.handleInlineFormDisplay()
|
|
@@ -27646,7 +27650,7 @@ var EA = {
|
|
|
27646
27650
|
]);
|
|
27647
27651
|
};
|
|
27648
27652
|
}
|
|
27649
|
-
}), [["__scopeId", "data-v-19d77b70"]]),
|
|
27653
|
+
}), [["__scopeId", "data-v-19d77b70"]]), uM = {
|
|
27650
27654
|
modelValue: {
|
|
27651
27655
|
type: [Array, String],
|
|
27652
27656
|
default: () => []
|
|
@@ -27674,7 +27678,7 @@ var EA = {
|
|
|
27674
27678
|
type: Boolean,
|
|
27675
27679
|
default: !1
|
|
27676
27680
|
}
|
|
27677
|
-
},
|
|
27681
|
+
}, dM = (e, t) => {
|
|
27678
27682
|
let n = s(() => LA(e.data) ? e.data : e.data.map((e) => ({
|
|
27679
27683
|
label: e,
|
|
27680
27684
|
value: e
|
|
@@ -27704,12 +27708,12 @@ var EA = {
|
|
|
27704
27708
|
a.value = t === n.value.length, i.value = t > 0 && t < n.value.length;
|
|
27705
27709
|
}
|
|
27706
27710
|
};
|
|
27707
|
-
},
|
|
27711
|
+
}, fM = /* @__PURE__ */ rj(/* @__PURE__ */ g({
|
|
27708
27712
|
__name: "index",
|
|
27709
|
-
props:
|
|
27713
|
+
props: uM,
|
|
27710
27714
|
emits: ["update:modelValue"],
|
|
27711
27715
|
setup(e, { emit: n }) {
|
|
27712
|
-
let { dataComputed: r, checkedItems: i, isIndeterminate: a, checkAll: o, handleCheckAllChange: s, handleCheckedItemsChange: c } =
|
|
27716
|
+
let { dataComputed: r, checkedItems: i, isIndeterminate: a, checkAll: o, handleCheckAllChange: s, handleCheckedItemsChange: c } = dM(e, n);
|
|
27713
27717
|
return (e, n) => {
|
|
27714
27718
|
let f = sS, p = cS;
|
|
27715
27719
|
return F(), d(t, null, [e.showCheckAll ? (F(), l(f, {
|
|
@@ -27744,7 +27748,7 @@ var EA = {
|
|
|
27744
27748
|
}, 8, ["modelValue", "onChange"])], 64);
|
|
27745
27749
|
};
|
|
27746
27750
|
}
|
|
27747
|
-
}), [["__scopeId", "data-v-f189fc55"]]),
|
|
27751
|
+
}), [["__scopeId", "data-v-f189fc55"]]), pM = {
|
|
27748
27752
|
name: "zh-cn",
|
|
27749
27753
|
el: {
|
|
27750
27754
|
breadcrumb: { label: "面包屑" },
|
|
@@ -27923,7 +27927,7 @@ var EA = {
|
|
|
27923
27927
|
defaultLabel: "请输入第 {index} 位 OTP 字符"
|
|
27924
27928
|
}
|
|
27925
27929
|
}
|
|
27926
|
-
},
|
|
27930
|
+
}, mM = /* @__PURE__ */ g({
|
|
27927
27931
|
__name: "index",
|
|
27928
27932
|
props: {
|
|
27929
27933
|
language: {
|
|
@@ -27958,19 +27962,19 @@ var EA = {
|
|
|
27958
27962
|
}
|
|
27959
27963
|
},
|
|
27960
27964
|
setup(e) {
|
|
27961
|
-
let t =
|
|
27965
|
+
let t = uj(e, { extConfig: DA });
|
|
27962
27966
|
return t.value.extConfig.debug.open && Promise.resolve().then(async () => {
|
|
27963
27967
|
let { useLog: e } = await import("./useLog-B5L0eM59.js");
|
|
27964
27968
|
e("UseElConfigProvider")[t.value.extConfig.debug.type]("mergeProps=>", t.value, t.value.extConfig.debug.toJson);
|
|
27965
27969
|
}), kA(t.value), (e, t) => {
|
|
27966
27970
|
let n = ev;
|
|
27967
|
-
return F(), l(n, { locale: e.language === "en" ? U(Hu) : U(
|
|
27971
|
+
return F(), l(n, { locale: e.language === "en" ? U(Hu) : U(pM) }, {
|
|
27968
27972
|
default: G(() => [z(e.$slots, "default")]),
|
|
27969
27973
|
_: 3
|
|
27970
27974
|
}, 8, ["locale"]);
|
|
27971
27975
|
};
|
|
27972
27976
|
}
|
|
27973
|
-
}),
|
|
27977
|
+
}), hM = {
|
|
27974
27978
|
configs: {
|
|
27975
27979
|
type: Array,
|
|
27976
27980
|
required: !0
|
|
@@ -28007,7 +28011,7 @@ var EA = {
|
|
|
28007
28011
|
type: String,
|
|
28008
28012
|
default: ""
|
|
28009
28013
|
}
|
|
28010
|
-
},
|
|
28014
|
+
}, gM = ({ props: e, emits: t, globalConfig: n }) => {
|
|
28011
28015
|
let r = (e) => {
|
|
28012
28016
|
if (!e?.length) return;
|
|
28013
28017
|
let n = [];
|
|
@@ -28039,19 +28043,19 @@ var EA = {
|
|
|
28039
28043
|
processPlaceholder: (e) => `请${["UseElInput"].includes(e.componentConfig?.is.name) ? "输入" : "选择"}${e.componentConfig?.attrs?.appendLabelToPlaceholder === !1 ? "" : e.label}`,
|
|
28040
28044
|
processSlotName: (e) => "slot" in e ? e.slot === !0 ? e.prop : e.slot : "default"
|
|
28041
28045
|
};
|
|
28042
|
-
},
|
|
28046
|
+
}, _M = { key: 1 }, vM = /* @__PURE__ */ rj(/* @__PURE__ */ g({
|
|
28043
28047
|
__name: "index",
|
|
28044
|
-
props:
|
|
28048
|
+
props: hM,
|
|
28045
28049
|
emits: ["onDictKeys"],
|
|
28046
28050
|
setup(e, { emit: n }) {
|
|
28047
|
-
let r = e, i = n, a = be(), { processRenderContent:
|
|
28051
|
+
let r = e, i = n, a = be(), o = AA(r), { handleInput: s } = oj(), { processRenderContent: c, processRenderStyle: u, processPlaceholder: p, processSlotName: m } = gM({
|
|
28048
28052
|
props: r,
|
|
28049
28053
|
emits: i,
|
|
28050
|
-
globalConfig:
|
|
28054
|
+
globalConfig: o
|
|
28051
28055
|
});
|
|
28052
28056
|
return (e, n) => {
|
|
28053
|
-
let r =
|
|
28054
|
-
return F(), l(
|
|
28057
|
+
let r = Tj, i = rT, o = nT;
|
|
28058
|
+
return F(), l(o, {
|
|
28055
28059
|
column: e.column,
|
|
28056
28060
|
border: e.border
|
|
28057
28061
|
}, {
|
|
@@ -28062,26 +28066,33 @@ var EA = {
|
|
|
28062
28066
|
label: G(() => [f("div", { class: k(["wyfe-ivue__descriptions-item-label", e.labelClass]) }, [a.label ? z(e.$slots, "label", D({
|
|
28063
28067
|
key: 0,
|
|
28064
28068
|
ref_for: !0
|
|
28065
|
-
}, { item: t }), void 0, !0) : (F(), d("span",
|
|
28069
|
+
}, { item: t }), void 0, !0) : (F(), d("span", _M, H(t.label), 1))], 2)]),
|
|
28066
28070
|
default: G(() => [f("div", { class: k(t.defaultClass ?? e.defaultClass) }, [t.renderConfig || e.useRender ? (F(), l(r, {
|
|
28067
28071
|
key: 0,
|
|
28068
|
-
content: t.renderConfig?.content ?? e.useRender?.content ?? U(
|
|
28072
|
+
content: t.renderConfig?.content ?? e.useRender?.content ?? U(c)(t),
|
|
28069
28073
|
class: k(t?.renderConfig?.class ?? e.useRender.class),
|
|
28070
|
-
style: j(t.renderConfig ? U(
|
|
28074
|
+
style: j(t.renderConfig ? U(u)(t.renderConfig, t) : U(u)(e.useRender, t))
|
|
28071
28075
|
}, null, 8, [
|
|
28072
28076
|
"content",
|
|
28073
28077
|
"class",
|
|
28074
28078
|
"style"
|
|
28075
28079
|
])) : t.componentConfig ? (F(), l(V(t.componentConfig.is), D({
|
|
28076
28080
|
key: 1,
|
|
28077
|
-
placeholder: U(
|
|
28081
|
+
placeholder: U(p)(t),
|
|
28078
28082
|
modelValue: e.formModel[t.prop],
|
|
28079
|
-
"onUpdate:modelValue": (n) => e.formModel[t.prop] = n
|
|
28080
|
-
|
|
28083
|
+
"onUpdate:modelValue": (n) => e.formModel[t.prop] = n,
|
|
28084
|
+
onInput: (n) => U(s)({
|
|
28085
|
+
inputEvent: t.componentConfig?.attrs?.inputEvent,
|
|
28086
|
+
value: n,
|
|
28087
|
+
key: t.prop,
|
|
28088
|
+
formModel: e.formModel
|
|
28089
|
+
})
|
|
28090
|
+
}, { ref_for: !0 }, t.componentConfig?.attrs), null, 16, [
|
|
28081
28091
|
"placeholder",
|
|
28082
28092
|
"modelValue",
|
|
28083
|
-
"onUpdate:modelValue"
|
|
28084
|
-
|
|
28093
|
+
"onUpdate:modelValue",
|
|
28094
|
+
"onInput"
|
|
28095
|
+
])) : z(e.$slots, U(m)(t), D({
|
|
28085
28096
|
key: 2,
|
|
28086
28097
|
ref_for: !0
|
|
28087
28098
|
}, {
|
|
@@ -28094,7 +28105,7 @@ var EA = {
|
|
|
28094
28105
|
}, 8, ["column", "border"]);
|
|
28095
28106
|
};
|
|
28096
28107
|
}
|
|
28097
|
-
}), [["__scopeId", "data-v-
|
|
28108
|
+
}), [["__scopeId", "data-v-1037b3eb"]]), yM = {
|
|
28098
28109
|
title: {
|
|
28099
28110
|
type: String,
|
|
28100
28111
|
default: "欢迎使用wyfe-ivue对话框组件"
|
|
@@ -28184,22 +28195,22 @@ var EA = {
|
|
|
28184
28195
|
type: Function,
|
|
28185
28196
|
default: () => {}
|
|
28186
28197
|
}
|
|
28187
|
-
},
|
|
28198
|
+
}, bM = {
|
|
28188
28199
|
xmlns: "http://www.w3.org/2000/svg",
|
|
28189
28200
|
viewBox: "0 0 1024 1024"
|
|
28190
28201
|
};
|
|
28191
|
-
function
|
|
28192
|
-
return F(), d("svg",
|
|
28202
|
+
function xM(e, t) {
|
|
28203
|
+
return F(), d("svg", bM, [...t[0] ||= [f("path", {
|
|
28193
28204
|
fill: "currentColor",
|
|
28194
28205
|
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"
|
|
28195
28206
|
}, null, -1)]]);
|
|
28196
28207
|
}
|
|
28197
|
-
var
|
|
28208
|
+
var SM = { render: xM }, CM = {
|
|
28198
28209
|
xmlns: "http://www.w3.org/2000/svg",
|
|
28199
28210
|
viewBox: "0 0 1024 1024"
|
|
28200
28211
|
};
|
|
28201
|
-
function
|
|
28202
|
-
return F(), d("svg",
|
|
28212
|
+
function wM(e, t) {
|
|
28213
|
+
return F(), d("svg", CM, [...t[0] ||= [f("path", {
|
|
28203
28214
|
fill: "currentColor",
|
|
28204
28215
|
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"
|
|
28205
28216
|
}, null, -1), f("path", {
|
|
@@ -28207,8 +28218,8 @@ function SM(e, t) {
|
|
|
28207
28218
|
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"
|
|
28208
28219
|
}, null, -1)]]);
|
|
28209
28220
|
}
|
|
28210
|
-
var
|
|
28211
|
-
let t = L(null), n = s(() => t.value?.handleClose), r = L(!1), i = s(() => r.value ?
|
|
28221
|
+
var TM = { render: wM }, EM = (e) => {
|
|
28222
|
+
let t = L(null), n = s(() => t.value?.handleClose), r = L(!1), i = s(() => r.value ? TM : SM), a = () => {
|
|
28212
28223
|
r.value = !r.value;
|
|
28213
28224
|
}, o = !1;
|
|
28214
28225
|
return W([
|
|
@@ -28243,16 +28254,16 @@ var CM = { render: SM }, wM = (e) => {
|
|
|
28243
28254
|
o = !0, e?.();
|
|
28244
28255
|
}
|
|
28245
28256
|
};
|
|
28246
|
-
},
|
|
28257
|
+
}, DM = { key: 1 }, OM = /* @__PURE__ */ g({
|
|
28247
28258
|
__name: "index",
|
|
28248
|
-
props:
|
|
28259
|
+
props: yM,
|
|
28249
28260
|
setup(e, { expose: n }) {
|
|
28250
|
-
let r = e, i = be(), { edRef: a, handleClose: o, isFullScreen: s, iconComponent: c, handleFullScreen: f, handleClosed: m, handleClick: g } =
|
|
28261
|
+
let r = e, i = be(), { edRef: a, handleClose: o, isFullScreen: s, iconComponent: c, handleFullScreen: f, handleClosed: m, handleClick: g } = EM(r);
|
|
28251
28262
|
return n({
|
|
28252
28263
|
edRef: a,
|
|
28253
28264
|
handleClose: o
|
|
28254
28265
|
}), (e, n) => {
|
|
28255
|
-
let r = $, o = U_, _ =
|
|
28266
|
+
let r = $, o = U_, _ = yj, v = CT;
|
|
28256
28267
|
return F(), l(v, {
|
|
28257
28268
|
ref_key: "edRef",
|
|
28258
28269
|
ref: a,
|
|
@@ -28265,7 +28276,7 @@ var CM = { render: SM }, wM = (e) => {
|
|
|
28265
28276
|
"destroy-on-close": e.destroyOnClose,
|
|
28266
28277
|
onClosed: U(m)
|
|
28267
28278
|
}, p({
|
|
28268
|
-
header: G(() => [i.header ? z(e.$slots, "header", { key: 0 }) : (F(), d("span",
|
|
28279
|
+
header: G(() => [i.header ? z(e.$slots, "header", { key: 0 }) : (F(), d("span", DM, H(e.title), 1)), e.showFullScreenIcon ? (F(), l(r, {
|
|
28269
28280
|
key: 2,
|
|
28270
28281
|
class: "wyfe-ivue__full-screen",
|
|
28271
28282
|
onClick: U(f)
|
|
@@ -28309,7 +28320,7 @@ var CM = { render: SM }, wM = (e) => {
|
|
|
28309
28320
|
]);
|
|
28310
28321
|
};
|
|
28311
28322
|
}
|
|
28312
|
-
}),
|
|
28323
|
+
}), kM = {
|
|
28313
28324
|
title: {
|
|
28314
28325
|
type: String,
|
|
28315
28326
|
default: "欢迎使用wyfe-ivue抽屉组件"
|
|
@@ -28384,8 +28395,8 @@ var CM = { render: SM }, wM = (e) => {
|
|
|
28384
28395
|
type: Function,
|
|
28385
28396
|
default: () => {}
|
|
28386
28397
|
}
|
|
28387
|
-
},
|
|
28388
|
-
let t = L(null), n = s(() => t.value?.handleClose), r = L(!1), i = s(() => r.value ? "100%" : e.size), a = s(() => r.value ?
|
|
28398
|
+
}, AM = (e) => {
|
|
28399
|
+
let t = L(null), n = s(() => t.value?.handleClose), r = L(!1), i = s(() => r.value ? "100%" : e.size), a = s(() => r.value ? TM : SM), o = () => {
|
|
28389
28400
|
r.value = !r.value;
|
|
28390
28401
|
}, c = !1;
|
|
28391
28402
|
return W(() => e.footerPosition, (e) => {
|
|
@@ -28411,16 +28422,16 @@ var CM = { render: SM }, wM = (e) => {
|
|
|
28411
28422
|
c = !0, e?.();
|
|
28412
28423
|
}
|
|
28413
28424
|
};
|
|
28414
|
-
},
|
|
28425
|
+
}, jM = { key: 1 }, MM = /* @__PURE__ */ g({
|
|
28415
28426
|
__name: "index",
|
|
28416
|
-
props:
|
|
28427
|
+
props: kM,
|
|
28417
28428
|
setup(e, { expose: n }) {
|
|
28418
|
-
let r = e, i = be(), { edRef: a, handleClose: o, drawerSize: s, iconComponent: c, handleFullScreen: f, handleClosed: m, handleClick: g } =
|
|
28429
|
+
let r = e, i = be(), { edRef: a, handleClose: o, drawerSize: s, iconComponent: c, handleFullScreen: f, handleClosed: m, handleClick: g } = AM(r);
|
|
28419
28430
|
return n({
|
|
28420
28431
|
edRef: a,
|
|
28421
28432
|
handleClose: o
|
|
28422
28433
|
}), (e, n) => {
|
|
28423
|
-
let r = $, o = U_, _ =
|
|
28434
|
+
let r = $, o = U_, _ = yj, v = MT;
|
|
28424
28435
|
return F(), l(v, {
|
|
28425
28436
|
ref_key: "edRef",
|
|
28426
28437
|
ref: a,
|
|
@@ -28433,7 +28444,7 @@ var CM = { render: SM }, wM = (e) => {
|
|
|
28433
28444
|
"close-on-click-modal": e.closeOnClickModal,
|
|
28434
28445
|
onClosed: U(m)
|
|
28435
28446
|
}, p({
|
|
28436
|
-
header: G(() => [i.header ? z(e.$slots, "header", { key: 0 }) : (F(), d("span",
|
|
28447
|
+
header: G(() => [i.header ? z(e.$slots, "header", { key: 0 }) : (F(), d("span", jM, H(e.title), 1)), e.showFullScreenIcon ? (F(), l(r, {
|
|
28437
28448
|
key: 2,
|
|
28438
28449
|
class: "wyfe-ivue__full-screen",
|
|
28439
28450
|
onClick: U(f)
|
|
@@ -28468,7 +28479,7 @@ var CM = { render: SM }, wM = (e) => {
|
|
|
28468
28479
|
]);
|
|
28469
28480
|
};
|
|
28470
28481
|
}
|
|
28471
|
-
}),
|
|
28482
|
+
}), NM = /* @__PURE__ */ rj(/* @__PURE__ */ g({
|
|
28472
28483
|
__name: "index",
|
|
28473
28484
|
props: {
|
|
28474
28485
|
content: {
|
|
@@ -28533,7 +28544,7 @@ var CM = { render: SM }, wM = (e) => {
|
|
|
28533
28544
|
]);
|
|
28534
28545
|
};
|
|
28535
28546
|
}
|
|
28536
|
-
}), [["__scopeId", "data-v-8239c412"]]),
|
|
28547
|
+
}), [["__scopeId", "data-v-8239c412"]]), PM = {
|
|
28537
28548
|
fileId: {
|
|
28538
28549
|
type: String,
|
|
28539
28550
|
default: ""
|
|
@@ -28577,7 +28588,7 @@ var CM = { render: SM }, wM = (e) => {
|
|
|
28577
28588
|
type: Number,
|
|
28578
28589
|
default: 2
|
|
28579
28590
|
}
|
|
28580
|
-
},
|
|
28591
|
+
}, FM = {
|
|
28581
28592
|
IMG: {
|
|
28582
28593
|
exts: [
|
|
28583
28594
|
"jpg",
|
|
@@ -28615,15 +28626,15 @@ var CM = { render: SM }, wM = (e) => {
|
|
|
28615
28626
|
tip: "不支持视频格式,支持图片、文档、音频、压缩包等"
|
|
28616
28627
|
}
|
|
28617
28628
|
};
|
|
28618
|
-
Object.assign(
|
|
28629
|
+
Object.assign(FM, { ALL: {
|
|
28619
28630
|
exts: [
|
|
28620
|
-
...
|
|
28621
|
-
...
|
|
28622
|
-
...
|
|
28631
|
+
...FM.IMG.exts,
|
|
28632
|
+
...FM.VIDEO.exts,
|
|
28633
|
+
...FM.EXCLUDE_VIDEO.exts
|
|
28623
28634
|
],
|
|
28624
28635
|
tip: "支持图片、文档、视频、音频、压缩包等格式"
|
|
28625
28636
|
} });
|
|
28626
|
-
var
|
|
28637
|
+
var IM = Object.fromEntries(Object.entries(FM).map(([e, t]) => [e, t.exts.map((e) => `.${e}`).join(",")])), LM = (e, t = 300) => {
|
|
28627
28638
|
let n = null, r = (...r) => {
|
|
28628
28639
|
n && clearTimeout(n), n = setTimeout(() => {
|
|
28629
28640
|
e.apply(void 0, r), n = null;
|
|
@@ -28638,15 +28649,15 @@ var PM = Object.fromEntries(Object.entries(NM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28638
28649
|
return a.lastArgs = e, i.apply(this, e);
|
|
28639
28650
|
};
|
|
28640
28651
|
return a.cancel = i.cancel, a.flush = i.flush, a;
|
|
28641
|
-
},
|
|
28642
|
-
let n = s(() =>
|
|
28652
|
+
}, RM = ({ props: e, emits: t }) => {
|
|
28653
|
+
let n = s(() => IM[e.uploadType]), r = L({
|
|
28643
28654
|
fileList: [],
|
|
28644
28655
|
fileIds: [],
|
|
28645
28656
|
linkUrls: [],
|
|
28646
28657
|
uploadFlag: !1,
|
|
28647
28658
|
deleteFlag: !1,
|
|
28648
28659
|
abortControllers: []
|
|
28649
|
-
}), i =
|
|
28660
|
+
}), i = LM(() => {
|
|
28650
28661
|
t("update:fileId", r.value.fileIds.join(",")), t("update:linkUrl", r.value.linkUrls.join(","));
|
|
28651
28662
|
}, 300), a = L({
|
|
28652
28663
|
show: !1,
|
|
@@ -28724,7 +28735,7 @@ var PM = Object.fromEntries(Object.entries(NM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28724
28735
|
ke.error(n), t("onError", n);
|
|
28725
28736
|
},
|
|
28726
28737
|
handleBeforeUpload: (t) => {
|
|
28727
|
-
let { exts: n, tip: i } =
|
|
28738
|
+
let { exts: n, tip: i } = FM[e.uploadType], a = e.maxSize * 1024 * 1024 * 1024, o = t.name.split(".").pop().toLowerCase();
|
|
28728
28739
|
if (!n.includes(o)) return ke.error(`不支持的文件类型!${i}`), !1;
|
|
28729
28740
|
if (t.size > a) return ke.error(`文件大小不能超过 ${e.maxSize}GB`), !1;
|
|
28730
28741
|
let s = new AbortController();
|
|
@@ -28742,15 +28753,15 @@ var PM = Object.fromEntries(Object.entries(NM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28742
28753
|
return !0;
|
|
28743
28754
|
}, () => !1)
|
|
28744
28755
|
};
|
|
28745
|
-
},
|
|
28756
|
+
}, zM = {
|
|
28746
28757
|
key: 0,
|
|
28747
28758
|
class: "el-upload__tip"
|
|
28748
|
-
},
|
|
28759
|
+
}, BM = {
|
|
28749
28760
|
key: 1,
|
|
28750
28761
|
class: "el-upload__tip"
|
|
28751
|
-
},
|
|
28762
|
+
}, VM = /* @__PURE__ */ rj(/* @__PURE__ */ g({
|
|
28752
28763
|
__name: "index",
|
|
28753
|
-
props:
|
|
28764
|
+
props: PM,
|
|
28754
28765
|
emits: [
|
|
28755
28766
|
"update:fileId",
|
|
28756
28767
|
"update:linkUrl",
|
|
@@ -28758,7 +28769,7 @@ var PM = Object.fromEntries(Object.entries(NM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28758
28769
|
"onError"
|
|
28759
28770
|
],
|
|
28760
28771
|
setup(e, { emit: n }) {
|
|
28761
|
-
let r = e, i = n, a = AA(r), { acceptComputed: o, state: s, dialogState: c, handlePreview: l, handleSuccess: u, handleError: p, handleBeforeUpload: g, handleBeforeRemove: _ } =
|
|
28772
|
+
let r = e, i = n, a = AA(r), { acceptComputed: o, state: s, dialogState: c, handlePreview: l, handleSuccess: u, handleError: p, handleBeforeUpload: g, handleBeforeRemove: _ } = RM({
|
|
28762
28773
|
props: r,
|
|
28763
28774
|
emits: i,
|
|
28764
28775
|
globalConfig: a
|
|
@@ -28790,7 +28801,7 @@ var PM = Object.fromEntries(Object.entries(NM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28790
28801
|
_: 1
|
|
28791
28802
|
}),
|
|
28792
28803
|
n[2] ||= f("div", { class: "el-upload__text" }, [m(" 将文件拖到此处,或 "), f("em", null, "点击上传")], -1),
|
|
28793
|
-
e.uploadTip ? (F(), d("div",
|
|
28804
|
+
e.uploadTip ? (F(), d("div", zM, H(e.uploadTip), 1)) : (F(), d("div", BM, H(U(FM)[e.uploadType].tip) + ",最大支持 " + H(e.maxSize) + "GB ", 1))
|
|
28794
28805
|
]),
|
|
28795
28806
|
_: 1
|
|
28796
28807
|
}, 8, [
|
|
@@ -28823,7 +28834,7 @@ var PM = Object.fromEntries(Object.entries(NM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28823
28834
|
}, 8, ["modelValue"])], 64);
|
|
28824
28835
|
};
|
|
28825
28836
|
}
|
|
28826
|
-
}), [["__scopeId", "data-v-c4f6b29f"]]),
|
|
28837
|
+
}), [["__scopeId", "data-v-c4f6b29f"]]), HM = /* @__PURE__ */ g({
|
|
28827
28838
|
__name: "index",
|
|
28828
28839
|
props: {
|
|
28829
28840
|
name: {
|
|
@@ -28857,7 +28868,7 @@ var PM = Object.fromEntries(Object.entries(NM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28857
28868
|
})
|
|
28858
28869
|
}, null, 6));
|
|
28859
28870
|
}
|
|
28860
|
-
}),
|
|
28871
|
+
}), UM = {
|
|
28861
28872
|
title: {
|
|
28862
28873
|
type: String,
|
|
28863
28874
|
required: !0
|
|
@@ -28878,7 +28889,7 @@ var PM = Object.fromEntries(Object.entries(NM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28878
28889
|
type: Object,
|
|
28879
28890
|
default: () => ({})
|
|
28880
28891
|
}
|
|
28881
|
-
},
|
|
28892
|
+
}, WM = {
|
|
28882
28893
|
margin: {
|
|
28883
28894
|
top: "0px",
|
|
28884
28895
|
bottom: "20px"
|
|
@@ -28895,9 +28906,9 @@ var PM = Object.fromEntries(Object.entries(NM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28895
28906
|
color: "var(--el-border-color-light)",
|
|
28896
28907
|
paddingBottom: "20px"
|
|
28897
28908
|
}
|
|
28898
|
-
},
|
|
28909
|
+
}, GM = ["innerHTML"], KM = /* @__PURE__ */ rj(/* @__PURE__ */ g({
|
|
28899
28910
|
__name: "index",
|
|
28900
|
-
props:
|
|
28911
|
+
props: UM,
|
|
28901
28912
|
setup(e) {
|
|
28902
28913
|
ye((e) => ({
|
|
28903
28914
|
v35dd0630: U(n)?.paddingBottom,
|
|
@@ -28907,7 +28918,7 @@ var PM = Object.fromEntries(Object.entries(NM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28907
28918
|
v3e644f1c: U(i)?.verticalPadding,
|
|
28908
28919
|
d2750ae0: U(i)?.height
|
|
28909
28920
|
}));
|
|
28910
|
-
let t =
|
|
28921
|
+
let t = uj(e, { extConfig: WM }), { borderBottom: n, margin: r, line: i } = t.value.extConfig;
|
|
28911
28922
|
return (e, a) => (F(), d("div", {
|
|
28912
28923
|
class: k(["wyfe-ivue__use-line-title", { borderBottom: U(n)?.show }]),
|
|
28913
28924
|
style: j({
|
|
@@ -28921,9 +28932,9 @@ var PM = Object.fromEntries(Object.entries(NM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28921
28932
|
color: e.color
|
|
28922
28933
|
}),
|
|
28923
28934
|
innerHTML: e.title
|
|
28924
|
-
}, null, 14,
|
|
28935
|
+
}, null, 14, GM)], 6));
|
|
28925
28936
|
}
|
|
28926
|
-
}), [["__scopeId", "data-v-8c384f6d"]]),
|
|
28937
|
+
}), [["__scopeId", "data-v-8c384f6d"]]), qM = {
|
|
28927
28938
|
name: {
|
|
28928
28939
|
type: String,
|
|
28929
28940
|
required: !0
|
|
@@ -28950,9 +28961,9 @@ var PM = Object.fromEntries(Object.entries(NM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28950
28961
|
default: !1
|
|
28951
28962
|
},
|
|
28952
28963
|
hoverClass: { type: String }
|
|
28953
|
-
},
|
|
28964
|
+
}, JM = ["href", "fill"], YM = /* @__PURE__ */ rj(/* @__PURE__ */ g({
|
|
28954
28965
|
__name: "index",
|
|
28955
|
-
props:
|
|
28966
|
+
props: qM,
|
|
28956
28967
|
setup(e) {
|
|
28957
28968
|
ye((e) => ({
|
|
28958
28969
|
v4d0b5a07: i.value,
|
|
@@ -28972,8 +28983,8 @@ var PM = Object.fromEntries(Object.entries(NM).map(([e, t]) => [e, t.exts.map((e
|
|
|
28972
28983
|
class: k([a.value ? "fillClass" : "", e.hoverClass]),
|
|
28973
28984
|
href: r.value,
|
|
28974
28985
|
fill: i.value
|
|
28975
|
-
}, null, 10,
|
|
28986
|
+
}, null, 10, JM)], 4));
|
|
28976
28987
|
}
|
|
28977
28988
|
}), [["__scopeId", "data-v-2bca3212"]]);
|
|
28978
28989
|
//#endregion
|
|
28979
|
-
export {
|
|
28990
|
+
export { lM as UseCrudTable, yj as UseElButton, fM as UseElCheckbox, mM as UseElConfigProvider, Hj as UseElDatePicker, vM as UseElDescriptions, OM as UseElDialog, MM as UseElDrawer, nM as UseElForm, jj as UseElInput, Rj as UseElSelect, Jj as UseElSwitch, hj as UseElTable, NM as UseElTooltip, VM as UseElUpload, HM as UseIconfont, KM as UseLineTitle, Tj as UseRender, YM as UseSvgIcon };
|