wyfe-ivue 2.15.0 → 2.17.0
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 +571 -438
- package/dist/index.umd.cjs +2 -2
- package/dist/types/UseCrudTable/defaultExtConfig.d.ts +8 -0
- package/dist/types/UseCrudTable/index.vue.d.ts +21 -14
- package/dist/types/UseCrudTable/props.d.ts +9 -11
- package/dist/types/UseCrudTable/types.d.ts +15 -0
- package/dist/types/UseElButton/index.vue.d.ts +1 -1
- package/dist/types/UseElCheckbox/index.vue.d.ts +2 -2
- package/dist/types/UseElCheckbox/props.d.ts +1 -1
- package/dist/types/UseElDialog/index.vue.d.ts +3 -7
- package/dist/types/UseElDialog/props.d.ts +1 -1
- package/dist/types/UseElDrawer/index.vue.d.ts +3 -7
- package/dist/types/UseElDrawer/props.d.ts +1 -1
- package/dist/types/UseElForm/components/InlineForm.vue.d.ts +1 -1
- package/dist/types/UseElForm/components/RowForm.vue.d.ts +2 -23
- package/dist/types/UseElForm/index.vue.d.ts +28 -70
- package/dist/types/UseElSelect/index.vue.d.ts +2 -2
- package/dist/types/UseElSelect/props.d.ts +1 -1
- package/dist/types/UseElSwitch/index.vue.d.ts +4 -4
- package/dist/types/UseElSwitch/props.d.ts +2 -2
- package/dist/types/UseElTable/index.vue.d.ts +3 -7
- package/dist/types/UseElTooltip/index.vue.d.ts +47 -0
- package/dist/types/UseElTooltip/props.d.ts +16 -0
- package/dist/types/UseIconfont/index.vue.d.ts +49 -0
- package/dist/types/UseIconfont/props.d.ts +23 -0
- package/dist/types/UseLineTitle/defaultExtConfig.d.ts +19 -0
- package/dist/types/UseLineTitle/index.vue.d.ts +8 -45
- package/dist/types/UseLineTitle/props.d.ts +5 -20
- package/dist/types/UseLineTitle/types.d.ts +21 -0
- package/dist/types/UseSvgIcon/index.vue.d.ts +2 -2
- package/dist/types/UseSvgIcon/props.d.ts +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/wyfe-ivue.css +1 -1
- package/package.json +1 -1
- package/src/components/UseCrudTable/defaultExtConfig.ts +24 -0
- package/src/components/UseCrudTable/props.ts +13 -14
- package/src/components/UseCrudTable/types.ts +27 -0
- package/src/components/UseElConfigProvider/props.ts +2 -2
- package/src/components/UseElTable/props.ts +2 -2
- package/src/components/UseElTooltip/props.ts +41 -0
- package/src/components/UseIconfont/props.ts +40 -0
- package/src/components/UseLineTitle/defaultExtConfig.ts +32 -0
- package/src/components/UseLineTitle/props.ts +7 -33
- package/src/components/UseLineTitle/types.ts +36 -0
package/dist/index.es.js
CHANGED
|
@@ -23310,7 +23310,7 @@ var xk = {
|
|
|
23310
23310
|
},
|
|
23311
23311
|
themeMode: {
|
|
23312
23312
|
type: String,
|
|
23313
|
-
default: "
|
|
23313
|
+
default: "",
|
|
23314
23314
|
validator: (e) => [
|
|
23315
23315
|
"",
|
|
23316
23316
|
"light",
|
|
@@ -23325,7 +23325,7 @@ var xk = {
|
|
|
23325
23325
|
let t = S("wyfe-ivue__UseElConfigProvider_key", {}), n = {
|
|
23326
23326
|
globalConfig: t,
|
|
23327
23327
|
finalLanguage: s(() => e.language ?? t.language ?? "zh"),
|
|
23328
|
-
finalThemeMode: s(() => e.themeMode
|
|
23328
|
+
finalThemeMode: s(() => e.themeMode || t.themeMode || (document.documentElement.classList.contains("dark") ? "dark" : "light")),
|
|
23329
23329
|
finalDictMap: s(() => e.dictMap && Object.keys(e.dictMap).length ? e.dictMap : t?.dictMap || {}),
|
|
23330
23330
|
finalDictProps: s(() => e.dictProps && Object.keys(e.dictProps).length ? e.dictProps : t?.dictProps || {
|
|
23331
23331
|
value: "value",
|
|
@@ -23731,7 +23731,7 @@ var xk = {
|
|
|
23731
23731
|
label: e.columnObj.label,
|
|
23732
23732
|
prop: e.columnObj.prop
|
|
23733
23733
|
})), void 0, !0)]),
|
|
23734
|
-
default: K(() => [(L(!0), d(t, null, se(e.columnObj.children, (r) => (L(), d(t, { key: r.prop }, [r.children && r.children.length ? (L(), l(i, {
|
|
23734
|
+
default: K(() => [(L(!0), d(t, null, se(e.columnObj.children, (r) => (L(), d(t, { key: `${r.label}-${r.prop}` }, [r.children && r.children.length ? (L(), l(i, {
|
|
23735
23735
|
key: 0,
|
|
23736
23736
|
columnObj: r,
|
|
23737
23737
|
tableProps: e.tableProps,
|
|
@@ -23795,7 +23795,7 @@ var xk = {
|
|
|
23795
23795
|
let n = e.__vccOpts || e;
|
|
23796
23796
|
for (let [e, r] of t) n[e] = r;
|
|
23797
23797
|
return n;
|
|
23798
|
-
}, Kk = /* @__PURE__ */ Gk(Wk, [["__scopeId", "data-v-
|
|
23798
|
+
}, Kk = /* @__PURE__ */ Gk(Wk, [["__scopeId", "data-v-97276274"]]), qk = { key: 1 }, Jk = /* @__PURE__ */ g({
|
|
23799
23799
|
__name: "EditableCell",
|
|
23800
23800
|
props: {
|
|
23801
23801
|
row: {},
|
|
@@ -23804,8 +23804,8 @@ var xk = {
|
|
|
23804
23804
|
},
|
|
23805
23805
|
setup(e) {
|
|
23806
23806
|
let n = e, r = s(() => ({
|
|
23807
|
-
input:
|
|
23808
|
-
select:
|
|
23807
|
+
input: pA,
|
|
23808
|
+
select: oA
|
|
23809
23809
|
})[n.item.editConfig.component]), i = s({
|
|
23810
23810
|
get() {
|
|
23811
23811
|
return n.row[n.item.prop] ?? "";
|
|
@@ -23842,7 +23842,7 @@ var xk = {
|
|
|
23842
23842
|
"update:pageSize"
|
|
23843
23843
|
],
|
|
23844
23844
|
setup(e, { emit: n }) {
|
|
23845
|
-
_e((e) => ({
|
|
23845
|
+
_e((e) => ({ v415ff6d2: W(E) }));
|
|
23846
23846
|
let r = e, i = n, a = ve(), { proxy: o } = v(), { tableProps: s, mergedExtConfig: c, adaptiveComputed: m, slotName: h, handleHeaderCellClassName: g, headerCellStyleComputed: _, tableColumnsComputed: y } = Rk({
|
|
23847
23847
|
props: r,
|
|
23848
23848
|
proxy: o,
|
|
@@ -23903,7 +23903,7 @@ var xk = {
|
|
|
23903
23903
|
default: K(({ row: t }) => [B(e.$slots, "expand", A(b({ row: t })), void 0, !0)]),
|
|
23904
23904
|
_: 3
|
|
23905
23905
|
}, 8, ["width"])) : u("", !0),
|
|
23906
|
-
(L(!0), d(t, null, se(W(y), (n) => (L(), d(t, { key: n.
|
|
23906
|
+
(L(!0), d(t, null, se(W(y), (n) => (L(), d(t, { key: `${n.label}-${n.prop}` }, [n.children && n.children.length ? (L(), l(Kk, {
|
|
23907
23907
|
key: 0,
|
|
23908
23908
|
columnObj: n,
|
|
23909
23909
|
tableColumnAlign: e.tableColumnAlign,
|
|
@@ -23996,7 +23996,116 @@ var xk = {
|
|
|
23996
23996
|
])), [[v, e.tableLoading]]);
|
|
23997
23997
|
};
|
|
23998
23998
|
}
|
|
23999
|
-
}), [["__scopeId", "data-v-
|
|
23999
|
+
}), [["__scopeId", "data-v-c776b641"]]), $k = {
|
|
24000
|
+
btnText: {
|
|
24001
|
+
type: String,
|
|
24002
|
+
required: !0
|
|
24003
|
+
},
|
|
24004
|
+
type: {
|
|
24005
|
+
type: String,
|
|
24006
|
+
default: "primary",
|
|
24007
|
+
validator: (e) => [
|
|
24008
|
+
"",
|
|
24009
|
+
"default",
|
|
24010
|
+
"primary",
|
|
24011
|
+
"success",
|
|
24012
|
+
"warning",
|
|
24013
|
+
"danger",
|
|
24014
|
+
"info"
|
|
24015
|
+
].includes(e)
|
|
24016
|
+
},
|
|
24017
|
+
extConfig: {
|
|
24018
|
+
type: Object,
|
|
24019
|
+
default: () => ({})
|
|
24020
|
+
}
|
|
24021
|
+
}, eA = {
|
|
24022
|
+
debounce: {
|
|
24023
|
+
delay: 500,
|
|
24024
|
+
immediate: !1
|
|
24025
|
+
},
|
|
24026
|
+
confirm: {
|
|
24027
|
+
type: "danger",
|
|
24028
|
+
dataKey: "id",
|
|
24029
|
+
toArray: !1,
|
|
24030
|
+
appendS: !1,
|
|
24031
|
+
title: "删除提示",
|
|
24032
|
+
content: "确定将选择数据删除?"
|
|
24033
|
+
}
|
|
24034
|
+
}, tA = ({ props: e, emits: t, attrs: n }) => {
|
|
24035
|
+
let r = s(() => wk(eA, e.extConfig)), i = jk(async () => {
|
|
24036
|
+
let { data: e, title: n, content: i, dataKey: a, toArray: o, appendS: s } = r.value.confirm;
|
|
24037
|
+
if (!Ak(e)) {
|
|
24038
|
+
Oe.warning("extConfig.confirm.data类型必须为Array、Object、String或Number");
|
|
24039
|
+
return;
|
|
24040
|
+
}
|
|
24041
|
+
if (Ok(e)) {
|
|
24042
|
+
try {
|
|
24043
|
+
await ke.confirm(i, n, {
|
|
24044
|
+
confirmButtonText: "确定",
|
|
24045
|
+
cancelButtonText: "取消",
|
|
24046
|
+
type: "warning"
|
|
24047
|
+
}), t("onClick", e);
|
|
24048
|
+
} catch {}
|
|
24049
|
+
return;
|
|
24050
|
+
}
|
|
24051
|
+
if (Tk(e) && !Object.keys(e).length || Ek(e) && !e.length) {
|
|
24052
|
+
Oe.warning("请至少选择一条数据");
|
|
24053
|
+
return;
|
|
24054
|
+
}
|
|
24055
|
+
try {
|
|
24056
|
+
if (await ke.confirm(i, n, {
|
|
24057
|
+
confirmButtonText: "确定",
|
|
24058
|
+
cancelButtonText: "取消",
|
|
24059
|
+
type: "warning"
|
|
24060
|
+
}), e === null) {
|
|
24061
|
+
t("onClick");
|
|
24062
|
+
return;
|
|
24063
|
+
}
|
|
24064
|
+
let r = Ek(e) ? e.map((e) => typeof e == "object" ? e[a] : e) : Tk(e) ? [e[a]] : [];
|
|
24065
|
+
t("onClick", {
|
|
24066
|
+
[s ? `${a}s` : a]: o ? r : r.join(),
|
|
24067
|
+
data: e
|
|
24068
|
+
});
|
|
24069
|
+
} catch (e) {
|
|
24070
|
+
console.warn(`_onConfirm事件catch到error:${e}`);
|
|
24071
|
+
}
|
|
24072
|
+
}, r.value.debounce.delay, r.value.debounce.immediate), a = jk(() => t("onClick"), r.value.debounce.delay, r.value.debounce.immediate), o = s(() => Object.hasOwn(r.value.confirm, "data"));
|
|
24073
|
+
return {
|
|
24074
|
+
mergedExtConfig: r,
|
|
24075
|
+
isConfirm: o,
|
|
24076
|
+
handleElButton: () => {
|
|
24077
|
+
n.onClick || (o.value ? i() : a());
|
|
24078
|
+
}
|
|
24079
|
+
};
|
|
24080
|
+
}, nA = /* @__PURE__ */ Gk(/* @__PURE__ */ g({
|
|
24081
|
+
__name: "index",
|
|
24082
|
+
props: $k,
|
|
24083
|
+
emits: ["onClick"],
|
|
24084
|
+
setup(e, { emit: t }) {
|
|
24085
|
+
let { isConfirm: n, mergedExtConfig: r, handleElButton: i } = tA({
|
|
24086
|
+
props: e,
|
|
24087
|
+
emits: t,
|
|
24088
|
+
attrs: ge()
|
|
24089
|
+
});
|
|
24090
|
+
return I(() => {
|
|
24091
|
+
document.querySelectorAll(".el-button").forEach((e) => {
|
|
24092
|
+
e.addEventListener("blur", (e) => {
|
|
24093
|
+
e.target.classList.add("blur");
|
|
24094
|
+
}, !0);
|
|
24095
|
+
});
|
|
24096
|
+
}), (e, t) => {
|
|
24097
|
+
let a = py;
|
|
24098
|
+
return L(), l(a, {
|
|
24099
|
+
class: "wyfe-ivue__use-el-button",
|
|
24100
|
+
type: W(n) ? W(r).confirm.type : e.type,
|
|
24101
|
+
onClick: W(i)
|
|
24102
|
+
}, {
|
|
24103
|
+
default: K(() => [m(U(e.btnText), 1)]),
|
|
24104
|
+
_: 1
|
|
24105
|
+
}, 8, ["type", "onClick"]);
|
|
24106
|
+
};
|
|
24107
|
+
}
|
|
24108
|
+
}), [["__scopeId", "data-v-5f981ffd"]]), rA = {
|
|
24000
24109
|
formColumns: {
|
|
24001
24110
|
type: Array,
|
|
24002
24111
|
required: !0
|
|
@@ -24069,7 +24178,7 @@ var xk = {
|
|
|
24069
24178
|
type: Boolean,
|
|
24070
24179
|
default: !0
|
|
24071
24180
|
}
|
|
24072
|
-
},
|
|
24181
|
+
}, iA = {
|
|
24073
24182
|
modelValue: {
|
|
24074
24183
|
type: [
|
|
24075
24184
|
String,
|
|
@@ -24105,7 +24214,7 @@ var xk = {
|
|
|
24105
24214
|
value: "value"
|
|
24106
24215
|
})
|
|
24107
24216
|
}
|
|
24108
|
-
},
|
|
24217
|
+
}, aA = ({ props: e, emits: t }) => {
|
|
24109
24218
|
let n = s(() => {
|
|
24110
24219
|
let t = e.options?.[0];
|
|
24111
24220
|
if (!t) return "string";
|
|
@@ -24122,12 +24231,12 @@ var xk = {
|
|
|
24122
24231
|
t("update:modelValue", s), t("update:label", l);
|
|
24123
24232
|
}
|
|
24124
24233
|
};
|
|
24125
|
-
},
|
|
24234
|
+
}, oA = /* @__PURE__ */ g({
|
|
24126
24235
|
__name: "index",
|
|
24127
|
-
props:
|
|
24236
|
+
props: iA,
|
|
24128
24237
|
emits: ["update:modelValue", "update:label"],
|
|
24129
24238
|
setup(e, { emit: n }) {
|
|
24130
|
-
let { modelValue: r, handleSelectChange: i } =
|
|
24239
|
+
let { modelValue: r, handleSelectChange: i } = aA({
|
|
24131
24240
|
props: e,
|
|
24132
24241
|
emits: n
|
|
24133
24242
|
});
|
|
@@ -24167,7 +24276,7 @@ var xk = {
|
|
|
24167
24276
|
]));
|
|
24168
24277
|
};
|
|
24169
24278
|
}
|
|
24170
|
-
}),
|
|
24279
|
+
}), sA = {
|
|
24171
24280
|
content: {
|
|
24172
24281
|
type: [String, Object],
|
|
24173
24282
|
required: !0
|
|
@@ -24180,12 +24289,12 @@ var xk = {
|
|
|
24180
24289
|
type: String,
|
|
24181
24290
|
default: ""
|
|
24182
24291
|
}
|
|
24183
|
-
},
|
|
24292
|
+
}, cA = ["innerHTML"], lA = {
|
|
24184
24293
|
key: 2,
|
|
24185
24294
|
style: { color: "#f00" }
|
|
24186
|
-
},
|
|
24295
|
+
}, uA = /* @__PURE__ */ g({
|
|
24187
24296
|
__name: "index",
|
|
24188
|
-
props:
|
|
24297
|
+
props: sA,
|
|
24189
24298
|
setup(e) {
|
|
24190
24299
|
let t = s(() => (e) => typeof e == "string"), n = s(() => (e) => {
|
|
24191
24300
|
if (w(e) || t.value(e) || typeof e != "object" || !e) return !1;
|
|
@@ -24197,18 +24306,18 @@ var xk = {
|
|
|
24197
24306
|
innerHTML: e.content,
|
|
24198
24307
|
class: k(e.class),
|
|
24199
24308
|
style: j(e.style)
|
|
24200
|
-
}, null, 14,
|
|
24309
|
+
}, null, 14, cA)) : (L(), d("span", lA, " 不支持的content类型(仅支持同步组件/异步组件/VNode/字符串) "));
|
|
24201
24310
|
}
|
|
24202
|
-
}),
|
|
24311
|
+
}), dA = { mounted(e, t) {
|
|
24203
24312
|
if (t.value === !1) return;
|
|
24204
24313
|
let n = e.querySelector("input"), r = e.querySelector("textarea"), i = n || r || e;
|
|
24205
24314
|
i && Promise.resolve().then(() => {
|
|
24206
24315
|
i.focus({ preventScroll: !0 });
|
|
24207
24316
|
});
|
|
24208
|
-
} },
|
|
24317
|
+
} }, fA = {
|
|
24209
24318
|
key: 0,
|
|
24210
24319
|
class: "unit"
|
|
24211
|
-
},
|
|
24320
|
+
}, pA = /* @__PURE__ */ Gk(/* @__PURE__ */ g({
|
|
24212
24321
|
__name: "index",
|
|
24213
24322
|
props: /* @__PURE__ */ E({
|
|
24214
24323
|
modelValue: {},
|
|
@@ -24237,7 +24346,7 @@ var xk = {
|
|
|
24237
24346
|
}
|
|
24238
24347
|
});
|
|
24239
24348
|
return (t, n) => {
|
|
24240
|
-
let r =
|
|
24349
|
+
let r = uA, a = av;
|
|
24241
24350
|
return L(), d("div", {
|
|
24242
24351
|
class: "wyfe-ivue__use-el-input",
|
|
24243
24352
|
style: j({ width: e.width })
|
|
@@ -24279,10 +24388,10 @@ var xk = {
|
|
|
24279
24388
|
"rows",
|
|
24280
24389
|
"show-password",
|
|
24281
24390
|
"show-word-limit"
|
|
24282
|
-
])), [[W(
|
|
24391
|
+
])), [[W(dA), Object.hasOwn(t.$attrs, "autoFocus")]]), e.unit ? (L(), d("span", fA, [h(r, { content: e.unit }, null, 8, ["content"])])) : u("", !0)], 4);
|
|
24283
24392
|
};
|
|
24284
24393
|
}
|
|
24285
|
-
}), [["__scopeId", "data-v-754085a3"]]),
|
|
24394
|
+
}), [["__scopeId", "data-v-754085a3"]]), mA = ({ props: e, globalConfig: t }) => {
|
|
24286
24395
|
let n = z(null), r = s(() => e.formColumns.filter((e) => Object.hasOwn(e, "show") ? e.show : !0)), i = s(() => {
|
|
24287
24396
|
let t = {};
|
|
24288
24397
|
return e.formColumns.forEach((e) => {
|
|
@@ -24393,102 +24502,106 @@ var xk = {
|
|
|
24393
24502
|
});
|
|
24394
24503
|
}
|
|
24395
24504
|
};
|
|
24396
|
-
},
|
|
24505
|
+
}, hA = {
|
|
24397
24506
|
key: 2,
|
|
24398
24507
|
class: "input-number-wrapper"
|
|
24399
|
-
},
|
|
24508
|
+
}, gA = {
|
|
24400
24509
|
key: 2,
|
|
24401
24510
|
class: "unit"
|
|
24402
|
-
},
|
|
24511
|
+
}, _A = {
|
|
24403
24512
|
key: 7,
|
|
24404
24513
|
class: "time-select-wrapper"
|
|
24405
|
-
},
|
|
24514
|
+
}, vA = { key: 0 }, yA = /* @__PURE__ */ Gk(/* @__PURE__ */ g({
|
|
24406
24515
|
__name: "RowForm",
|
|
24407
|
-
props:
|
|
24516
|
+
props: rA,
|
|
24408
24517
|
setup(e, { expose: n }) {
|
|
24409
|
-
let r = e, { formProps:
|
|
24518
|
+
let r = e, i = ve(), { formProps: a, formRules: o, dateFormatComputed: c, timeFormatComputed: p, selectOptions: g, selectProps: _, cascaderOptions: v, radioOptions: y, handleInputPlaceholder: b, handleSelectPlaceholder: x, handleDatePickerPalceholder: S, handleDatePickerStartPlaceholder: C, handleDatePickerEndPlaceholder: w, handleDatePickerRangeSeparator: T, handleTimePickerStartPlaceholder: E, handleTimePickerEndPlaceholder: O, handleTimePickerRangeSeparator: A, handleSelectChange: M, handleCascaderChange: N, handleDatePickerChange: P, handleTimePickerChange: F, handleRadioGroupChange: ee, handleSwitchChange: I, efRef: te } = mA({
|
|
24410
24519
|
props: r,
|
|
24411
24520
|
globalConfig: Sk(r)
|
|
24412
|
-
}),
|
|
24521
|
+
}), ne = s(() => (e, t, n) => {
|
|
24413
24522
|
if (!t?.length) return e;
|
|
24414
|
-
let r = n?.props?.value ??
|
|
24415
|
-
return t.find((t) => t[r] === e)?.[
|
|
24523
|
+
let r = n?.props?.value ?? a.value.dictProps.value, i = n?.props?.label ?? a.value.dictProps.label;
|
|
24524
|
+
return t.find((t) => t[r] === e)?.[i] ?? e;
|
|
24416
24525
|
});
|
|
24417
|
-
return n({ efRef:
|
|
24418
|
-
let r =
|
|
24419
|
-
return e.formMode === "rowForm" ? (L(), l(
|
|
24526
|
+
return n({ efRef: te }), (e, n) => {
|
|
24527
|
+
let r = uA, a = pA, s = Nw, re = oA, R = Kx, ie = GC, ae = tb, z = AO, oe = wx, V = Tx, ce = BE, H = Wg, le = Zx, ue = Xx, de = Ug;
|
|
24528
|
+
return e.formMode === "rowForm" ? (L(), l(de, {
|
|
24420
24529
|
key: 0,
|
|
24421
24530
|
ref_key: "efRef",
|
|
24422
|
-
ref:
|
|
24531
|
+
ref: te,
|
|
24423
24532
|
model: e.formModel,
|
|
24424
|
-
rules: e.disabled ? {} : W(
|
|
24533
|
+
rules: e.disabled ? {} : W(o),
|
|
24425
24534
|
"label-width": e.labelWidth,
|
|
24426
24535
|
"label-suffix": e.labelSuffix,
|
|
24427
24536
|
"label-position": e.labelPosition,
|
|
24428
24537
|
"validate-on-rule-change": !1,
|
|
24429
24538
|
disabled: e.disabled
|
|
24430
24539
|
}, {
|
|
24431
|
-
default: K(() => [h(
|
|
24432
|
-
default: K(() => [(L(!0), d(t, null, se(e.formColumns, (
|
|
24433
|
-
key:
|
|
24434
|
-
span:
|
|
24540
|
+
default: K(() => [h(ue, { gutter: e.rowGutter }, {
|
|
24541
|
+
default: K(() => [(L(!0), d(t, null, se(e.formColumns, (o) => (L(), l(le, {
|
|
24542
|
+
key: `${o.label}-${o.prop}`,
|
|
24543
|
+
span: o.span || e.colSpan
|
|
24435
24544
|
}, {
|
|
24436
|
-
default: K(() => [!Object.hasOwn(
|
|
24545
|
+
default: K(() => [!Object.hasOwn(o, "show") || o.show ? (L(), l(H, {
|
|
24437
24546
|
key: 0,
|
|
24438
|
-
label:
|
|
24439
|
-
prop:
|
|
24440
|
-
"label-width":
|
|
24441
|
-
class: k(
|
|
24547
|
+
label: o.hideLabel ? "" : o.label,
|
|
24548
|
+
prop: o.prop,
|
|
24549
|
+
"label-width": o.labelWidth,
|
|
24550
|
+
class: k(o.formItemClass || "")
|
|
24442
24551
|
}, {
|
|
24443
|
-
|
|
24552
|
+
label: K(() => [i[`${o.prop}-label`] ? B(e.$slots, `${o.prop}-label`, D({
|
|
24444
24553
|
key: 0,
|
|
24445
24554
|
ref_for: !0
|
|
24446
|
-
},
|
|
24447
|
-
|
|
24555
|
+
}, { item: o }), void 0, !0) : u("", !0)]),
|
|
24556
|
+
default: K(() => [o.slot ? B(e.$slots, typeof o.slot == "string" ? o.slot : o.prop, D({
|
|
24557
|
+
key: 0,
|
|
24558
|
+
ref_for: !0
|
|
24559
|
+
}, o), void 0, !0) : (L(), d(t, { key: 1 }, [
|
|
24560
|
+
o.renderConfig ? (L(), l(r, {
|
|
24448
24561
|
key: 0,
|
|
24449
|
-
content:
|
|
24450
|
-
class: k(
|
|
24451
|
-
style: j(
|
|
24562
|
+
content: o.renderConfig.content ?? e.formModel[o.prop],
|
|
24563
|
+
class: k(o.renderConfig.class),
|
|
24564
|
+
style: j(o.renderConfig.style)
|
|
24452
24565
|
}, null, 8, [
|
|
24453
24566
|
"content",
|
|
24454
24567
|
"class",
|
|
24455
24568
|
"style"
|
|
24456
24569
|
])) : u("", !0),
|
|
24457
|
-
|
|
24570
|
+
o.inputConfig ? (L(), d(t, { key: 1 }, [o.inputConfig.useRender ? (L(), l(r, {
|
|
24458
24571
|
key: 0,
|
|
24459
|
-
content: e.formModel[
|
|
24460
|
-
class: k(typeof
|
|
24461
|
-
style: j(typeof
|
|
24572
|
+
content: e.formModel[o.prop],
|
|
24573
|
+
class: k(typeof o.inputConfig.useRender == "object" && o.inputConfig.useRender.class),
|
|
24574
|
+
style: j(typeof o.inputConfig.useRender == "object" && o.inputConfig.useRender.style)
|
|
24462
24575
|
}, null, 8, [
|
|
24463
24576
|
"content",
|
|
24464
24577
|
"class",
|
|
24465
24578
|
"style"
|
|
24466
|
-
])) : Te((L(), l(
|
|
24579
|
+
])) : Te((L(), l(a, {
|
|
24467
24580
|
key: 1,
|
|
24468
|
-
modelValue: e.formModel[
|
|
24469
|
-
"onUpdate:modelValue": (t) => e.formModel[
|
|
24470
|
-
type:
|
|
24471
|
-
width:
|
|
24472
|
-
"prefix-icon":
|
|
24473
|
-
"suffix-icon":
|
|
24474
|
-
prefixContent:
|
|
24475
|
-
suffixContent:
|
|
24476
|
-
prependContent:
|
|
24477
|
-
appendContent:
|
|
24478
|
-
unit:
|
|
24479
|
-
clearable:
|
|
24480
|
-
maxlength:
|
|
24481
|
-
"show-word-limit": !!
|
|
24482
|
-
formatter:
|
|
24483
|
-
parser:
|
|
24484
|
-
autosize:
|
|
24485
|
-
rows:
|
|
24486
|
-
resize:
|
|
24487
|
-
"show-password":
|
|
24488
|
-
placeholder: W(
|
|
24489
|
-
disabled:
|
|
24490
|
-
onInput: De((e) =>
|
|
24491
|
-
onKeyup: Ee(De((e) =>
|
|
24581
|
+
modelValue: e.formModel[o.prop],
|
|
24582
|
+
"onUpdate:modelValue": (t) => e.formModel[o.prop] = t,
|
|
24583
|
+
type: o.inputConfig.type || "text",
|
|
24584
|
+
width: o.inputConfig.width ?? "100%",
|
|
24585
|
+
"prefix-icon": o.inputConfig.prefixIcon,
|
|
24586
|
+
"suffix-icon": o.inputConfig.suffixIcon,
|
|
24587
|
+
prefixContent: o.inputConfig.prefixContent,
|
|
24588
|
+
suffixContent: o.inputConfig.suffixContent,
|
|
24589
|
+
prependContent: o.inputConfig.prependContent,
|
|
24590
|
+
appendContent: o.inputConfig.appendContent,
|
|
24591
|
+
unit: o.inputConfig.unit,
|
|
24592
|
+
clearable: o.inputConfig.clearable || !0,
|
|
24593
|
+
maxlength: o.inputConfig.maxlength || void 0,
|
|
24594
|
+
"show-word-limit": !!o.inputConfig.maxlength,
|
|
24595
|
+
formatter: o.inputConfig.formatter,
|
|
24596
|
+
parser: o.inputConfig.parser,
|
|
24597
|
+
autosize: o.inputConfig.autosize || !1,
|
|
24598
|
+
rows: o.inputConfig.rows || 6,
|
|
24599
|
+
resize: o.inputConfig.resize || "none",
|
|
24600
|
+
"show-password": o.inputConfig.showPassword || !1,
|
|
24601
|
+
placeholder: W(b)(o),
|
|
24602
|
+
disabled: o.inputConfig.disabled || !1,
|
|
24603
|
+
onInput: De((e) => o.inputConfig?.onInput?.(e, o), ["self"]),
|
|
24604
|
+
onKeyup: Ee(De((e) => o.inputConfig?.onKeyupEnter?.(e, o), ["self"]), ["enter"])
|
|
24492
24605
|
}, null, 8, [
|
|
24493
24606
|
"modelValue",
|
|
24494
24607
|
"onUpdate:modelValue",
|
|
@@ -24514,27 +24627,27 @@ var xk = {
|
|
|
24514
24627
|
"disabled",
|
|
24515
24628
|
"onInput",
|
|
24516
24629
|
"onKeyup"
|
|
24517
|
-
])), [[W(
|
|
24518
|
-
|
|
24630
|
+
])), [[W(dA), o.inputConfig.autoFocus || !1]])], 64)) : u("", !0),
|
|
24631
|
+
o.inputNumberConfig ? (L(), d("div", hA, [o.inputNumberConfig.useRender ? (L(), l(r, {
|
|
24519
24632
|
key: 0,
|
|
24520
|
-
content: e.formModel[
|
|
24521
|
-
class: k(typeof
|
|
24522
|
-
style: j(typeof
|
|
24633
|
+
content: e.formModel[o.prop],
|
|
24634
|
+
class: k(typeof o.inputNumberConfig.useRender == "object" && o.inputNumberConfig.useRender.class),
|
|
24635
|
+
style: j(typeof o.inputNumberConfig.useRender == "object" && o.inputNumberConfig.useRender.style)
|
|
24523
24636
|
}, null, 8, [
|
|
24524
24637
|
"content",
|
|
24525
24638
|
"class",
|
|
24526
24639
|
"style"
|
|
24527
24640
|
])) : (L(), l(s, {
|
|
24528
24641
|
key: 1,
|
|
24529
|
-
modelValue: e.formModel[
|
|
24530
|
-
"onUpdate:modelValue": (t) => e.formModel[
|
|
24531
|
-
min:
|
|
24532
|
-
max:
|
|
24533
|
-
precision:
|
|
24534
|
-
step:
|
|
24535
|
-
"disabled-scientific":
|
|
24536
|
-
placeholder:
|
|
24537
|
-
disabled:
|
|
24642
|
+
modelValue: e.formModel[o.prop],
|
|
24643
|
+
"onUpdate:modelValue": (t) => e.formModel[o.prop] = t,
|
|
24644
|
+
min: o.inputNumberConfig.min,
|
|
24645
|
+
max: o.inputNumberConfig.max,
|
|
24646
|
+
precision: o.inputNumberConfig.precision,
|
|
24647
|
+
step: o.inputNumberConfig.step,
|
|
24648
|
+
"disabled-scientific": o.inputNumberConfig.disabledScientific ?? !0,
|
|
24649
|
+
placeholder: o.inputNumberConfig.placeholder || "请选择",
|
|
24650
|
+
disabled: o.inputNumberConfig.disabled || !1
|
|
24538
24651
|
}, null, 8, [
|
|
24539
24652
|
"modelValue",
|
|
24540
24653
|
"onUpdate:modelValue",
|
|
@@ -24545,30 +24658,30 @@ var xk = {
|
|
|
24545
24658
|
"disabled-scientific",
|
|
24546
24659
|
"placeholder",
|
|
24547
24660
|
"disabled"
|
|
24548
|
-
])),
|
|
24549
|
-
|
|
24661
|
+
])), o.inputNumberConfig.unit ? (L(), d("span", gA, [h(r, { content: o.inputNumberConfig.unit }, null, 8, ["content"])])) : u("", !0)])) : u("", !0),
|
|
24662
|
+
o.selectConfig ? (L(), d(t, { key: 3 }, [o.selectConfig.useRender ? (L(), l(r, {
|
|
24550
24663
|
key: 0,
|
|
24551
|
-
content:
|
|
24552
|
-
class: k(typeof
|
|
24553
|
-
style: j(typeof
|
|
24664
|
+
content: ne.value(e.formModel[o.prop], W(g)(o), o.selectConfig),
|
|
24665
|
+
class: k(typeof o.selectConfig.useRender == "object" && o.selectConfig.useRender.class),
|
|
24666
|
+
style: j(typeof o.selectConfig.useRender == "object" && o.selectConfig.useRender.style)
|
|
24554
24667
|
}, null, 8, [
|
|
24555
24668
|
"content",
|
|
24556
24669
|
"class",
|
|
24557
24670
|
"style"
|
|
24558
|
-
])) : (L(), l(
|
|
24671
|
+
])) : (L(), l(re, {
|
|
24559
24672
|
key: 1,
|
|
24560
|
-
modelValue: e.formModel[
|
|
24561
|
-
"onUpdate:modelValue": (t) => e.formModel[
|
|
24562
|
-
options: W(
|
|
24563
|
-
defaultProps: W(
|
|
24564
|
-
useV2:
|
|
24565
|
-
multiple:
|
|
24566
|
-
clearable:
|
|
24567
|
-
placeholder: W(
|
|
24568
|
-
style: j({ width:
|
|
24569
|
-
disabled:
|
|
24673
|
+
modelValue: e.formModel[o.prop],
|
|
24674
|
+
"onUpdate:modelValue": (t) => e.formModel[o.prop] = t,
|
|
24675
|
+
options: W(g)(o),
|
|
24676
|
+
defaultProps: W(_)(o),
|
|
24677
|
+
useV2: o.selectConfig.useV2 || !0,
|
|
24678
|
+
multiple: o.selectConfig.multiple || !1,
|
|
24679
|
+
clearable: o.selectConfig.clearable || !1,
|
|
24680
|
+
placeholder: W(x)(o),
|
|
24681
|
+
style: j({ width: o.selectConfig.width ?? "100%" }),
|
|
24682
|
+
disabled: o.selectConfig.disabled || !1,
|
|
24570
24683
|
"popper-style": "z-index:999999 !important",
|
|
24571
|
-
onChange: (e) => W(
|
|
24684
|
+
onChange: (e) => W(M)(e, o)
|
|
24572
24685
|
}, null, 8, [
|
|
24573
24686
|
"modelValue",
|
|
24574
24687
|
"onUpdate:modelValue",
|
|
@@ -24582,24 +24695,24 @@ var xk = {
|
|
|
24582
24695
|
"disabled",
|
|
24583
24696
|
"onChange"
|
|
24584
24697
|
]))], 64)) : u("", !0),
|
|
24585
|
-
|
|
24698
|
+
o.cascaderConfig ? (L(), d(t, { key: 4 }, [o.cascaderConfig.useRender ? (L(), l(r, {
|
|
24586
24699
|
key: 0,
|
|
24587
|
-
content: e.formModel[
|
|
24588
|
-
class: k(typeof
|
|
24589
|
-
style: j(typeof
|
|
24700
|
+
content: e.formModel[o.prop],
|
|
24701
|
+
class: k(typeof o.cascaderConfig.useRender == "object" && o.cascaderConfig.useRender.class),
|
|
24702
|
+
style: j(typeof o.cascaderConfig.useRender == "object" && o.cascaderConfig.useRender.style)
|
|
24590
24703
|
}, null, 8, [
|
|
24591
24704
|
"content",
|
|
24592
24705
|
"class",
|
|
24593
24706
|
"style"
|
|
24594
|
-
])) : (L(), l(
|
|
24707
|
+
])) : (L(), l(R, {
|
|
24595
24708
|
key: 1,
|
|
24596
|
-
modelValue: e.formModel[
|
|
24597
|
-
"onUpdate:modelValue": (t) => e.formModel[
|
|
24598
|
-
options: W(
|
|
24599
|
-
props:
|
|
24600
|
-
disabled:
|
|
24601
|
-
style: j({ width:
|
|
24602
|
-
onChange: (e) => W(
|
|
24709
|
+
modelValue: e.formModel[o.prop],
|
|
24710
|
+
"onUpdate:modelValue": (t) => e.formModel[o.prop] = t,
|
|
24711
|
+
options: W(v)(o),
|
|
24712
|
+
props: o.cascaderConfig?.props || {},
|
|
24713
|
+
disabled: o.cascaderConfig.disabled || !1,
|
|
24714
|
+
style: j({ width: o.cascaderConfig.width ?? "100%" }),
|
|
24715
|
+
onChange: (e) => W(N)(e, o)
|
|
24603
24716
|
}, null, 8, [
|
|
24604
24717
|
"modelValue",
|
|
24605
24718
|
"onUpdate:modelValue",
|
|
@@ -24609,27 +24722,27 @@ var xk = {
|
|
|
24609
24722
|
"style",
|
|
24610
24723
|
"onChange"
|
|
24611
24724
|
]))], 64)) : u("", !0),
|
|
24612
|
-
|
|
24725
|
+
o.datePickerConfig ? (L(), d(t, { key: 5 }, [o.datePickerConfig.useRender ? (L(), l(r, {
|
|
24613
24726
|
key: 0,
|
|
24614
|
-
content: e.formModel[
|
|
24615
|
-
class: k(typeof
|
|
24616
|
-
style: j(typeof
|
|
24727
|
+
content: e.formModel[o.prop],
|
|
24728
|
+
class: k(typeof o.datePickerConfig.useRender == "object" && o.datePickerConfig.useRender.class),
|
|
24729
|
+
style: j(typeof o.datePickerConfig.useRender == "object" && o.datePickerConfig.useRender.style)
|
|
24617
24730
|
}, null, 8, [
|
|
24618
24731
|
"content",
|
|
24619
24732
|
"class",
|
|
24620
24733
|
"style"
|
|
24621
|
-
])) : u("", !0), h(
|
|
24622
|
-
modelValue: e.formModel[
|
|
24623
|
-
"onUpdate:modelValue": (t) => e.formModel[
|
|
24624
|
-
type:
|
|
24625
|
-
placeholder: W(
|
|
24626
|
-
"start-placeholder": W(
|
|
24627
|
-
"end-placeholder": W(
|
|
24628
|
-
"range-separator": W(
|
|
24629
|
-
format: W(
|
|
24630
|
-
"value-format": W(
|
|
24631
|
-
style: j({ width:
|
|
24632
|
-
onChange: (t) => W(
|
|
24734
|
+
])) : u("", !0), h(ie, {
|
|
24735
|
+
modelValue: e.formModel[o.prop],
|
|
24736
|
+
"onUpdate:modelValue": (t) => e.formModel[o.prop] = t,
|
|
24737
|
+
type: o.datePickerConfig.type || "date",
|
|
24738
|
+
placeholder: W(S)(o),
|
|
24739
|
+
"start-placeholder": W(C)(o),
|
|
24740
|
+
"end-placeholder": W(w)(o),
|
|
24741
|
+
"range-separator": W(T)(o),
|
|
24742
|
+
format: W(c)(o.datePickerConfig),
|
|
24743
|
+
"value-format": W(c)(o.datePickerConfig),
|
|
24744
|
+
style: j({ width: o.datePickerConfig.width ?? "100%" }),
|
|
24745
|
+
onChange: (t) => W(P)(t, o, e.formModel)
|
|
24633
24746
|
}, null, 8, [
|
|
24634
24747
|
"modelValue",
|
|
24635
24748
|
"onUpdate:modelValue",
|
|
@@ -24643,26 +24756,26 @@ var xk = {
|
|
|
24643
24756
|
"style",
|
|
24644
24757
|
"onChange"
|
|
24645
24758
|
])], 64)) : u("", !0),
|
|
24646
|
-
|
|
24759
|
+
o.timePickerConfig ? (L(), d(t, { key: 6 }, [o.timePickerConfig.useRender ? (L(), l(r, {
|
|
24647
24760
|
key: 0,
|
|
24648
|
-
content: e.formModel[
|
|
24649
|
-
class: k(typeof
|
|
24650
|
-
style: j(typeof
|
|
24761
|
+
content: e.formModel[o.prop],
|
|
24762
|
+
class: k(typeof o.timePickerConfig.useRender == "object" && o.timePickerConfig.useRender.class),
|
|
24763
|
+
style: j(typeof o.timePickerConfig.useRender == "object" && o.timePickerConfig.useRender.style)
|
|
24651
24764
|
}, null, 8, [
|
|
24652
24765
|
"content",
|
|
24653
24766
|
"class",
|
|
24654
24767
|
"style"
|
|
24655
|
-
])) : u("", !0), h(
|
|
24656
|
-
modelValue: e.formModel[
|
|
24657
|
-
"onUpdate:modelValue": (t) => e.formModel[
|
|
24658
|
-
"is-range":
|
|
24659
|
-
editable:
|
|
24660
|
-
"range-separator": W(
|
|
24661
|
-
"start-placeholder": W(
|
|
24662
|
-
"end-placeholder": W(
|
|
24663
|
-
format: W(
|
|
24664
|
-
"value-format": W(
|
|
24665
|
-
onChange: (t) => W(
|
|
24768
|
+
])) : u("", !0), h(ae, {
|
|
24769
|
+
modelValue: e.formModel[o.prop],
|
|
24770
|
+
"onUpdate:modelValue": (t) => e.formModel[o.prop] = t,
|
|
24771
|
+
"is-range": o.timePickerConfig.isRange || !0,
|
|
24772
|
+
editable: o.timePickerConfig.editable || !0,
|
|
24773
|
+
"range-separator": W(A)(o),
|
|
24774
|
+
"start-placeholder": W(E)(o),
|
|
24775
|
+
"end-placeholder": W(O)(o),
|
|
24776
|
+
format: W(p)(o.timePickerConfig),
|
|
24777
|
+
"value-format": W(p)(o.timePickerConfig),
|
|
24778
|
+
onChange: (t) => W(F)(t, o, e.formModel)
|
|
24666
24779
|
}, null, 8, [
|
|
24667
24780
|
"modelValue",
|
|
24668
24781
|
"onUpdate:modelValue",
|
|
@@ -24675,11 +24788,11 @@ var xk = {
|
|
|
24675
24788
|
"value-format",
|
|
24676
24789
|
"onChange"
|
|
24677
24790
|
])], 64)) : u("", !0),
|
|
24678
|
-
|
|
24791
|
+
o.timeSelectConfig ? (L(), d("div", _A, [o.timeSelectConfig.useRender ? (L(), d(t, { key: 0 }, [
|
|
24679
24792
|
h(r, {
|
|
24680
|
-
content: e.formModel[
|
|
24681
|
-
class: k(typeof
|
|
24682
|
-
style: j(typeof
|
|
24793
|
+
content: e.formModel[o.timeSelectConfig.startProp],
|
|
24794
|
+
class: k(typeof o.timeSelectConfig.useRender == "object" && o.timeSelectConfig.useRender.class),
|
|
24795
|
+
style: j(typeof o.timeSelectConfig.useRender == "object" && o.timeSelectConfig.useRender.style)
|
|
24683
24796
|
}, null, 8, [
|
|
24684
24797
|
"content",
|
|
24685
24798
|
"class",
|
|
@@ -24687,19 +24800,19 @@ var xk = {
|
|
|
24687
24800
|
]),
|
|
24688
24801
|
n[0] ||= f("span", { class: "range-separator" }, "至", -1),
|
|
24689
24802
|
h(r, {
|
|
24690
|
-
content: e.formModel[
|
|
24691
|
-
class: k(typeof
|
|
24692
|
-
style: j(typeof
|
|
24803
|
+
content: e.formModel[o.timeSelectConfig.endProp],
|
|
24804
|
+
class: k(typeof o.timeSelectConfig.useRender == "object" && o.timeSelectConfig.useRender.class),
|
|
24805
|
+
style: j(typeof o.timeSelectConfig.useRender == "object" && o.timeSelectConfig.useRender.style)
|
|
24693
24806
|
}, null, 8, [
|
|
24694
24807
|
"content",
|
|
24695
24808
|
"class",
|
|
24696
24809
|
"style"
|
|
24697
24810
|
])
|
|
24698
24811
|
], 64)) : (L(), d(t, { key: 1 }, [
|
|
24699
|
-
h(
|
|
24700
|
-
modelValue: e.formModel[
|
|
24701
|
-
"onUpdate:modelValue": (t) => e.formModel[
|
|
24702
|
-
"max-time": e.formModel[
|
|
24812
|
+
h(z, {
|
|
24813
|
+
modelValue: e.formModel[o.timeSelectConfig.startProp],
|
|
24814
|
+
"onUpdate:modelValue": (t) => e.formModel[o.timeSelectConfig.startProp] = t,
|
|
24815
|
+
"max-time": e.formModel[o.timeSelectConfig.endProp],
|
|
24703
24816
|
placeholder: "开始时间",
|
|
24704
24817
|
start: "00:00",
|
|
24705
24818
|
step: "00:30",
|
|
@@ -24710,10 +24823,10 @@ var xk = {
|
|
|
24710
24823
|
"max-time"
|
|
24711
24824
|
]),
|
|
24712
24825
|
n[1] ||= f("span", { class: "range-separator" }, "至", -1),
|
|
24713
|
-
h(
|
|
24714
|
-
modelValue: e.formModel[
|
|
24715
|
-
"onUpdate:modelValue": (t) => e.formModel[
|
|
24716
|
-
"min-time": e.formModel[
|
|
24826
|
+
h(z, {
|
|
24827
|
+
modelValue: e.formModel[o.timeSelectConfig.endProp],
|
|
24828
|
+
"onUpdate:modelValue": (t) => e.formModel[o.timeSelectConfig.endProp] = t,
|
|
24829
|
+
"min-time": e.formModel[o.timeSelectConfig.startProp],
|
|
24717
24830
|
placeholder: "结束时间",
|
|
24718
24831
|
start: "00:00",
|
|
24719
24832
|
step: "00:30",
|
|
@@ -24724,17 +24837,20 @@ var xk = {
|
|
|
24724
24837
|
"min-time"
|
|
24725
24838
|
])
|
|
24726
24839
|
], 64))])) : u("", !0),
|
|
24727
|
-
|
|
24840
|
+
o.radioConfig ? (L(), d(t, { key: 8 }, [o.radioConfig.useRender ? (L(), d("span", vA, U(e.formModel[o.prop]), 1)) : (L(), l(V, {
|
|
24728
24841
|
key: 1,
|
|
24729
|
-
modelValue: e.formModel[
|
|
24730
|
-
"onUpdate:modelValue": (t) => e.formModel[
|
|
24731
|
-
disabled:
|
|
24732
|
-
onChange: (e) => W(
|
|
24842
|
+
modelValue: e.formModel[o.prop],
|
|
24843
|
+
"onUpdate:modelValue": (t) => e.formModel[o.prop] = t,
|
|
24844
|
+
disabled: o.radioConfig.disabled || !1,
|
|
24845
|
+
onChange: (e) => W(ee)(e, o)
|
|
24733
24846
|
}, {
|
|
24734
|
-
default: K(() => [(L(!0), d(t, null, se(W(
|
|
24735
|
-
|
|
24847
|
+
default: K(() => [(L(!0), d(t, null, se(W(y)(o), (e) => (L(), l(oe, {
|
|
24848
|
+
key: e.value,
|
|
24849
|
+
value: e.value
|
|
24850
|
+
}, {
|
|
24851
|
+
default: K(() => [m(U(e[o.radioConfig?.props?.label || "label"]), 1)]),
|
|
24736
24852
|
_: 2
|
|
24737
|
-
}, 1032, ["value"]))),
|
|
24853
|
+
}, 1032, ["value"]))), 128))]),
|
|
24738
24854
|
_: 2
|
|
24739
24855
|
}, 1032, [
|
|
24740
24856
|
"modelValue",
|
|
@@ -24742,23 +24858,23 @@ var xk = {
|
|
|
24742
24858
|
"disabled",
|
|
24743
24859
|
"onChange"
|
|
24744
24860
|
]))], 64)) : u("", !0),
|
|
24745
|
-
|
|
24861
|
+
o.switchConfig ? (L(), d(t, { key: 9 }, [o.switchConfig.useRender ? (L(), l(r, {
|
|
24746
24862
|
key: 0,
|
|
24747
|
-
content: e.formModel[
|
|
24748
|
-
class: k(typeof
|
|
24749
|
-
style: j(typeof
|
|
24863
|
+
content: e.formModel[o.prop],
|
|
24864
|
+
class: k(typeof o.switchConfig.useRender == "object" && o.switchConfig.useRender.class),
|
|
24865
|
+
style: j(typeof o.switchConfig.useRender == "object" && o.switchConfig.useRender.style)
|
|
24750
24866
|
}, null, 8, [
|
|
24751
24867
|
"content",
|
|
24752
24868
|
"class",
|
|
24753
24869
|
"style"
|
|
24754
|
-
])) : (L(), l(
|
|
24870
|
+
])) : (L(), l(ce, {
|
|
24755
24871
|
key: 1,
|
|
24756
|
-
modelValue: e.formModel[
|
|
24757
|
-
"onUpdate:modelValue": (t) => e.formModel[
|
|
24758
|
-
"active-value":
|
|
24759
|
-
"inactive-value":
|
|
24760
|
-
disabled:
|
|
24761
|
-
onChange: (e) => W(
|
|
24872
|
+
modelValue: e.formModel[o.prop],
|
|
24873
|
+
"onUpdate:modelValue": (t) => e.formModel[o.prop] = t,
|
|
24874
|
+
"active-value": o.switchConfig.activeValue ?? !0,
|
|
24875
|
+
"inactive-value": o.switchConfig.inactiveValue ?? !1,
|
|
24876
|
+
disabled: o.switchConfig.disabled || !1,
|
|
24877
|
+
onChange: (e) => W(I)(e, o)
|
|
24762
24878
|
}, null, 8, [
|
|
24763
24879
|
"modelValue",
|
|
24764
24880
|
"onUpdate:modelValue",
|
|
@@ -24790,9 +24906,9 @@ var xk = {
|
|
|
24790
24906
|
])) : u("", !0);
|
|
24791
24907
|
};
|
|
24792
24908
|
}
|
|
24793
|
-
}), [["__scopeId", "data-v-
|
|
24909
|
+
}), [["__scopeId", "data-v-aa714328"]]), bA = { class: "btn-wrapper" }, xA = /* @__PURE__ */ Gk(/* @__PURE__ */ g({
|
|
24794
24910
|
__name: "InlineForm",
|
|
24795
|
-
props:
|
|
24911
|
+
props: rA,
|
|
24796
24912
|
emits: ["onQuery"],
|
|
24797
24913
|
setup(e, { expose: n, emit: r }) {
|
|
24798
24914
|
let i = e, a = r, o = s(() => i.showBottomBorber ? "1px solid var(--el-border-color)" : "");
|
|
@@ -24803,30 +24919,32 @@ var xk = {
|
|
|
24803
24919
|
}, !0);
|
|
24804
24920
|
});
|
|
24805
24921
|
});
|
|
24806
|
-
let { efRef: c, cascaderRef: p, formColumnsComputed: g, selectOptions: _, selectProps: v, cascaderOptions: y, dateFormatComputed: b, transformFieldProps: x, handleInputPlaceholder: S, handleSelectPlaceholder: C, handleDatePickerPalceholder: w, handleDatePickerStartPlaceholder: T, handleDatePickerRangeSeparator: E, handleDatePickerEndPlaceholder: D, handleCascaderChange: k } =
|
|
24922
|
+
let { efRef: c, cascaderRef: p, formColumnsComputed: g, selectOptions: _, selectProps: v, cascaderOptions: y, dateFormatComputed: b, transformFieldProps: x, handleInputPlaceholder: S, handleSelectPlaceholder: C, handleDatePickerPalceholder: w, handleDatePickerStartPlaceholder: T, handleDatePickerRangeSeparator: E, handleDatePickerEndPlaceholder: D, handleCascaderChange: k } = mA({
|
|
24807
24923
|
props: i,
|
|
24808
24924
|
globalConfig: Sk(i)
|
|
24809
24925
|
}), A = async () => {
|
|
24810
24926
|
await O(), a("onQuery", x(i.formColumns, i.formModel));
|
|
24811
24927
|
}, M = () => {
|
|
24812
24928
|
a("onQuery", {});
|
|
24813
|
-
}, N = z(), P = z(!0)
|
|
24929
|
+
}, N = z(), P = z(!0), F = (e) => new Promise((t) => {
|
|
24930
|
+
if (!e) {
|
|
24931
|
+
t();
|
|
24932
|
+
return;
|
|
24933
|
+
}
|
|
24934
|
+
let n = () => {
|
|
24935
|
+
e.removeEventListener("transitionend", n), t();
|
|
24936
|
+
};
|
|
24937
|
+
e.addEventListener("transitionend", n, { once: !0 }), setTimeout(() => t(), 1500);
|
|
24938
|
+
});
|
|
24814
24939
|
return n({
|
|
24815
24940
|
efRef: c,
|
|
24816
24941
|
cascaderRef: p,
|
|
24817
24942
|
showInlineForm: P,
|
|
24818
24943
|
handleInlineFormDisplay: async () => {
|
|
24819
|
-
P.value = !P.value, await O();
|
|
24820
|
-
let e = N.value;
|
|
24821
|
-
if (e) {
|
|
24822
|
-
let t = getComputedStyle(e), n = (e) => e ? e.split(",").map((e) => e.trim()).map((e) => e.endsWith("ms") ? parseFloat(e) : parseFloat(e) * 1e3).reduce((e, t) => t > e ? t : e, 0) : 0, r = n(t.transitionDuration), i = n(t.transitionDelay), a = Math.max(r + i, 200), o = Math.min(Math.max(a, 200), 1500) + 50, s = () => {
|
|
24823
|
-
window.dispatchEvent(new Event("resize")), e.removeEventListener("transitionend", s);
|
|
24824
|
-
};
|
|
24825
|
-
e.addEventListener("transitionend", s, { once: !0 }), setTimeout(() => window.dispatchEvent(new Event("resize")), o);
|
|
24826
|
-
} else setTimeout(() => window.dispatchEvent(new Event("resize")), 300);
|
|
24944
|
+
P.value = !P.value, await O(), await F(N.value), window.dispatchEvent(new Event("resize"));
|
|
24827
24945
|
}
|
|
24828
24946
|
}), (e, n) => {
|
|
24829
|
-
let r =
|
|
24947
|
+
let r = pA, i = jE, a = Kx, s = GC, x = Wg, O = Ug, F = py, ee = Qx;
|
|
24830
24948
|
return L(), l(ee, null, {
|
|
24831
24949
|
default: K(() => [Te(f("div", {
|
|
24832
24950
|
ref_key: "ifRef",
|
|
@@ -24842,7 +24960,7 @@ var xk = {
|
|
|
24842
24960
|
onSubmit: n[0] ||= De(() => {}, ["prevent"])
|
|
24843
24961
|
}, {
|
|
24844
24962
|
default: K(() => [(L(!0), d(t, null, se(W(g), (t) => (L(), l(x, {
|
|
24845
|
-
key: t.label
|
|
24963
|
+
key: `${t.label}-${t.prop}`,
|
|
24846
24964
|
label: t.label
|
|
24847
24965
|
}, {
|
|
24848
24966
|
default: K(() => [
|
|
@@ -24946,7 +25064,7 @@ var xk = {
|
|
|
24946
25064
|
_: 2
|
|
24947
25065
|
}, 1032, ["label"]))), 128))]),
|
|
24948
25066
|
_: 1
|
|
24949
|
-
}, 8, ["model", "label-suffix"]), f("div",
|
|
25067
|
+
}, 8, ["model", "label-suffix"]), f("div", bA, [
|
|
24950
25068
|
h(F, {
|
|
24951
25069
|
type: "primary",
|
|
24952
25070
|
loading: e.queryLoading,
|
|
@@ -24965,9 +25083,9 @@ var xk = {
|
|
|
24965
25083
|
});
|
|
24966
25084
|
};
|
|
24967
25085
|
}
|
|
24968
|
-
}), [["__scopeId", "data-v-
|
|
25086
|
+
}), [["__scopeId", "data-v-a18d0aef"]]), SA = { class: "wyfe-ivue__use-el-form" }, CA = /* @__PURE__ */ g({
|
|
24969
25087
|
__name: "index",
|
|
24970
|
-
props:
|
|
25088
|
+
props: rA,
|
|
24971
25089
|
setup(e, { expose: t }) {
|
|
24972
25090
|
let n = e, r = ve(), i = z(null);
|
|
24973
25091
|
return G(() => n.formColumns, (e) => {
|
|
@@ -24980,15 +25098,15 @@ var xk = {
|
|
|
24980
25098
|
clearValidate: s(() => i.value?.efRef?.clearValidate),
|
|
24981
25099
|
showInlineForm: s(() => i.value?.showInlineForm),
|
|
24982
25100
|
handleInlineFormDisplay: s(() => i.value?.handleInlineFormDisplay)
|
|
24983
|
-
}), (e, t) => (L(), d("div",
|
|
25101
|
+
}), (e, t) => (L(), d("div", SA, [(L(), l(H(e.formMode === "rowForm" ? yA : xA), D({
|
|
24984
25102
|
ref_key: "componentRef",
|
|
24985
25103
|
ref: i
|
|
24986
|
-
}, n), p({ _: 2 }, [se(
|
|
25104
|
+
}, n), p({ _: 2 }, [se(r, (t, n) => ({
|
|
24987
25105
|
name: n,
|
|
24988
25106
|
fn: K((t) => [B(e.$slots, n, A(b(t)))])
|
|
24989
25107
|
}))]), 1040))]));
|
|
24990
25108
|
}
|
|
24991
|
-
}),
|
|
25109
|
+
}), wA = {
|
|
24992
25110
|
configs: {
|
|
24993
25111
|
type: Array,
|
|
24994
25112
|
required: !0
|
|
@@ -24997,16 +25115,20 @@ var xk = {
|
|
|
24997
25115
|
type: String,
|
|
24998
25116
|
default: "20px"
|
|
24999
25117
|
},
|
|
25000
|
-
|
|
25001
|
-
type:
|
|
25002
|
-
default:
|
|
25118
|
+
tableExtConfig: {
|
|
25119
|
+
type: Object,
|
|
25120
|
+
default: () => ({})
|
|
25121
|
+
},
|
|
25122
|
+
extConfig: {
|
|
25123
|
+
type: Object,
|
|
25124
|
+
default: () => ({})
|
|
25003
25125
|
}
|
|
25004
|
-
},
|
|
25126
|
+
}, TA = (e) => e.map((e) => {
|
|
25005
25127
|
let t = { ...e }, n = Object.keys(t), r = !1;
|
|
25006
25128
|
return n.forEach((e) => {
|
|
25007
25129
|
e.endsWith("Config") && e !== "extConfig" && (r = !0);
|
|
25008
25130
|
}), r ? t : null;
|
|
25009
|
-
}).filter((e) => e !== null),
|
|
25131
|
+
}).filter((e) => e !== null), EA = (e) => {
|
|
25010
25132
|
let t = [...e].filter((e) => !e.onlySearch), n = /* @__PURE__ */ new Map();
|
|
25011
25133
|
t.forEach((e, t) => {
|
|
25012
25134
|
let r = Number(e?.tableOrder ?? t + 1);
|
|
@@ -25017,151 +25139,60 @@ var xk = {
|
|
|
25017
25139
|
item: e,
|
|
25018
25140
|
_order: Number(e?.tableOrder ?? t + 1)
|
|
25019
25141
|
})).sort((e, t) => e._order - t._order).map(({ item: e }) => e);
|
|
25020
|
-
},
|
|
25142
|
+
}, DA = { actionBar: {
|
|
25143
|
+
margin: "20px 0",
|
|
25144
|
+
showControlFormDisplayBtn: !0,
|
|
25145
|
+
reverse: !1
|
|
25146
|
+
} }, OA = { class: "wyfe-ivue__use-crud-table" }, kA = /* @__PURE__ */ Gk(/* @__PURE__ */ g({
|
|
25021
25147
|
__name: "index",
|
|
25022
|
-
props:
|
|
25148
|
+
props: wA,
|
|
25023
25149
|
setup(e, { expose: t }) {
|
|
25150
|
+
_e((e) => ({ v299e72c8: a.value.actionBar.margin }));
|
|
25024
25151
|
let n = e, r = ve(), i = z({
|
|
25025
25152
|
formColumns: [],
|
|
25026
25153
|
tableColumns: []
|
|
25027
25154
|
});
|
|
25028
25155
|
G(() => n.configs, (e) => {
|
|
25029
|
-
i.value.formColumns =
|
|
25156
|
+
i.value.formColumns = TA(e), i.value.tableColumns = EA(e);
|
|
25030
25157
|
}, {
|
|
25031
25158
|
immediate: !0,
|
|
25032
25159
|
deep: !0
|
|
25033
25160
|
});
|
|
25034
|
-
let a = z(
|
|
25035
|
-
return t({ uefRef:
|
|
25036
|
-
let n =
|
|
25037
|
-
return L(), d("div",
|
|
25161
|
+
let a = s(() => wk(DA, n.extConfig)), o = z();
|
|
25162
|
+
return t({ uefRef: o }), (e, t) => {
|
|
25163
|
+
let n = CA, s = nA, c = Qk;
|
|
25164
|
+
return L(), d("div", OA, [
|
|
25038
25165
|
h(n, D({
|
|
25039
25166
|
ref_key: "uefRef",
|
|
25040
|
-
ref:
|
|
25167
|
+
ref: o,
|
|
25041
25168
|
formMode: "inlineForm",
|
|
25042
25169
|
formColumns: i.value.formColumns
|
|
25043
25170
|
}, e.$attrs), null, 16, ["formColumns"]),
|
|
25044
|
-
|
|
25045
|
-
|
|
25046
|
-
|
|
25047
|
-
|
|
25048
|
-
|
|
25171
|
+
r.actionBar ? (L(), d("div", {
|
|
25172
|
+
key: 0,
|
|
25173
|
+
class: k(["wyfe-ivue__action-bar", { reverse: a.value.actionBar.reverse }])
|
|
25174
|
+
}, [f("div", null, [B(e.$slots, "actionBar", {}, void 0, !0)]), a.value.actionBar.showControlFormDisplayBtn ? (L(), l(s, {
|
|
25175
|
+
key: 0,
|
|
25176
|
+
btnText: `${o.value?.showInlineForm ? "收起" : "展开"}查询`,
|
|
25177
|
+
onClick: t[0] ||= (e) => o.value?.handleInlineFormDisplay()
|
|
25178
|
+
}, null, 8, ["btnText"])) : u("", !0)], 2)) : u("", !0),
|
|
25179
|
+
r.customTableArea ? B(e.$slots, "customTableArea", { key: 1 }, void 0, !0) : (L(), l(c, D({
|
|
25180
|
+
key: 2,
|
|
25181
|
+
tableColumns: i.value.tableColumns,
|
|
25182
|
+
extConfig: e.tableExtConfig,
|
|
25183
|
+
style: { marginTop: e.tableMarginTop }
|
|
25184
|
+
}, e.$attrs), p({ _: 2 }, [se(r, (t, n) => ({
|
|
25049
25185
|
name: n,
|
|
25050
25186
|
fn: K((t) => [B(e.$slots, n, A(b(t)), void 0, !0)])
|
|
25051
|
-
}))]), 1040, [
|
|
25187
|
+
}))]), 1040, [
|
|
25188
|
+
"tableColumns",
|
|
25189
|
+
"extConfig",
|
|
25190
|
+
"style"
|
|
25191
|
+
]))
|
|
25052
25192
|
]);
|
|
25053
25193
|
};
|
|
25054
25194
|
}
|
|
25055
|
-
}), [["__scopeId", "data-v-
|
|
25056
|
-
btnText: {
|
|
25057
|
-
type: String,
|
|
25058
|
-
required: !0
|
|
25059
|
-
},
|
|
25060
|
-
type: {
|
|
25061
|
-
type: String,
|
|
25062
|
-
default: "primary",
|
|
25063
|
-
validator: (e) => [
|
|
25064
|
-
"",
|
|
25065
|
-
"default",
|
|
25066
|
-
"primary",
|
|
25067
|
-
"success",
|
|
25068
|
-
"warning",
|
|
25069
|
-
"danger",
|
|
25070
|
-
"info"
|
|
25071
|
-
].includes(e)
|
|
25072
|
-
},
|
|
25073
|
-
extConfig: {
|
|
25074
|
-
type: Object,
|
|
25075
|
-
default: () => ({})
|
|
25076
|
-
}
|
|
25077
|
-
}, EA = {
|
|
25078
|
-
debounce: {
|
|
25079
|
-
delay: 500,
|
|
25080
|
-
immediate: !1
|
|
25081
|
-
},
|
|
25082
|
-
confirm: {
|
|
25083
|
-
type: "danger",
|
|
25084
|
-
dataKey: "id",
|
|
25085
|
-
toArray: !1,
|
|
25086
|
-
appendS: !1,
|
|
25087
|
-
title: "删除提示",
|
|
25088
|
-
content: "确定将选择数据删除?"
|
|
25089
|
-
}
|
|
25090
|
-
}, DA = ({ props: e, emits: t, attrs: n }) => {
|
|
25091
|
-
let r = s(() => wk(EA, e.extConfig)), i = jk(async () => {
|
|
25092
|
-
let { data: e, title: n, content: i, dataKey: a, toArray: o, appendS: s } = r.value.confirm;
|
|
25093
|
-
if (!Ak(e)) {
|
|
25094
|
-
Oe.warning("extConfig.confirm.data类型必须为Array、Object、String或Number");
|
|
25095
|
-
return;
|
|
25096
|
-
}
|
|
25097
|
-
if (Ok(e)) {
|
|
25098
|
-
try {
|
|
25099
|
-
await ke.confirm(i, n, {
|
|
25100
|
-
confirmButtonText: "确定",
|
|
25101
|
-
cancelButtonText: "取消",
|
|
25102
|
-
type: "warning"
|
|
25103
|
-
}), t("onClick", e);
|
|
25104
|
-
} catch {}
|
|
25105
|
-
return;
|
|
25106
|
-
}
|
|
25107
|
-
if (Tk(e) && !Object.keys(e).length || Ek(e) && !e.length) {
|
|
25108
|
-
Oe.warning("请至少选择一条数据");
|
|
25109
|
-
return;
|
|
25110
|
-
}
|
|
25111
|
-
try {
|
|
25112
|
-
if (await ke.confirm(i, n, {
|
|
25113
|
-
confirmButtonText: "确定",
|
|
25114
|
-
cancelButtonText: "取消",
|
|
25115
|
-
type: "warning"
|
|
25116
|
-
}), e === null) {
|
|
25117
|
-
t("onClick");
|
|
25118
|
-
return;
|
|
25119
|
-
}
|
|
25120
|
-
let r = Ek(e) ? e.map((e) => typeof e == "object" ? e[a] : e) : Tk(e) ? [e[a]] : [];
|
|
25121
|
-
t("onClick", {
|
|
25122
|
-
[s ? `${a}s` : a]: o ? r : r.join(),
|
|
25123
|
-
data: e
|
|
25124
|
-
});
|
|
25125
|
-
} catch (e) {
|
|
25126
|
-
console.warn(`_onConfirm事件catch到error:${e}`);
|
|
25127
|
-
}
|
|
25128
|
-
}, r.value.debounce.delay, r.value.debounce.immediate), a = jk(() => t("onClick"), r.value.debounce.delay, r.value.debounce.immediate), o = s(() => Object.hasOwn(r.value.confirm, "data"));
|
|
25129
|
-
return {
|
|
25130
|
-
mergedExtConfig: r,
|
|
25131
|
-
isConfirm: o,
|
|
25132
|
-
handleElButton: () => {
|
|
25133
|
-
n.onClick || (o.value ? i() : a());
|
|
25134
|
-
}
|
|
25135
|
-
};
|
|
25136
|
-
}, OA = /* @__PURE__ */ Gk(/* @__PURE__ */ g({
|
|
25137
|
-
__name: "index",
|
|
25138
|
-
props: TA,
|
|
25139
|
-
emits: ["onClick"],
|
|
25140
|
-
setup(e, { emit: t }) {
|
|
25141
|
-
let { isConfirm: n, mergedExtConfig: r, handleElButton: i } = DA({
|
|
25142
|
-
props: e,
|
|
25143
|
-
emits: t,
|
|
25144
|
-
attrs: ge()
|
|
25145
|
-
});
|
|
25146
|
-
return I(() => {
|
|
25147
|
-
document.querySelectorAll(".el-button").forEach((e) => {
|
|
25148
|
-
e.addEventListener("blur", (e) => {
|
|
25149
|
-
e.target.classList.add("blur");
|
|
25150
|
-
}, !0);
|
|
25151
|
-
});
|
|
25152
|
-
}), (e, t) => {
|
|
25153
|
-
let a = py;
|
|
25154
|
-
return L(), l(a, {
|
|
25155
|
-
class: "wyfe-ivue__use-el-button",
|
|
25156
|
-
type: W(n) ? W(r).confirm.type : e.type,
|
|
25157
|
-
onClick: W(i)
|
|
25158
|
-
}, {
|
|
25159
|
-
default: K(() => [m(U(e.btnText), 1)]),
|
|
25160
|
-
_: 1
|
|
25161
|
-
}, 8, ["type", "onClick"]);
|
|
25162
|
-
};
|
|
25163
|
-
}
|
|
25164
|
-
}), [["__scopeId", "data-v-5f981ffd"]]), kA = {
|
|
25195
|
+
}), [["__scopeId", "data-v-177d5585"]]), AA = {
|
|
25165
25196
|
modelValue: {
|
|
25166
25197
|
type: [Array, String],
|
|
25167
25198
|
default: () => []
|
|
@@ -25189,7 +25220,7 @@ var xk = {
|
|
|
25189
25220
|
type: Boolean,
|
|
25190
25221
|
default: !1
|
|
25191
25222
|
}
|
|
25192
|
-
},
|
|
25223
|
+
}, jA = (e, t) => {
|
|
25193
25224
|
let n = s(() => kk(e.data) ? e.data : e.data.map((e) => ({
|
|
25194
25225
|
label: e,
|
|
25195
25226
|
value: e
|
|
@@ -25219,12 +25250,12 @@ var xk = {
|
|
|
25219
25250
|
a.value = t === n.value.length, i.value = t > 0 && t < n.value.length;
|
|
25220
25251
|
}
|
|
25221
25252
|
};
|
|
25222
|
-
},
|
|
25253
|
+
}, MA = /* @__PURE__ */ Gk(/* @__PURE__ */ g({
|
|
25223
25254
|
__name: "index",
|
|
25224
|
-
props:
|
|
25255
|
+
props: AA,
|
|
25225
25256
|
emits: ["update:modelValue"],
|
|
25226
25257
|
setup(e, { emit: n }) {
|
|
25227
|
-
let { dataComputed: r, checkedItems: i, isIndeterminate: a, checkAll: o, handleCheckAllChange: s, handleCheckedItemsChange: c } =
|
|
25258
|
+
let { dataComputed: r, checkedItems: i, isIndeterminate: a, checkAll: o, handleCheckAllChange: s, handleCheckedItemsChange: c } = jA(e, n);
|
|
25228
25259
|
return (e, n) => {
|
|
25229
25260
|
let f = sx, p = cx;
|
|
25230
25261
|
return L(), d(t, null, [e.showCheckAll ? (L(), l(f, {
|
|
@@ -25259,7 +25290,7 @@ var xk = {
|
|
|
25259
25290
|
}, 8, ["modelValue", "onChange"])], 64);
|
|
25260
25291
|
};
|
|
25261
25292
|
}
|
|
25262
|
-
}), [["__scopeId", "data-v-a03662ef"]]),
|
|
25293
|
+
}), [["__scopeId", "data-v-a03662ef"]]), NA = {
|
|
25263
25294
|
name: "zh-cn",
|
|
25264
25295
|
el: {
|
|
25265
25296
|
breadcrumb: { label: "面包屑" },
|
|
@@ -25434,7 +25465,7 @@ var xk = {
|
|
|
25434
25465
|
indicator: "幻灯片切换至索引 {index}"
|
|
25435
25466
|
}
|
|
25436
25467
|
}
|
|
25437
|
-
},
|
|
25468
|
+
}, PA = /* @__PURE__ */ g({
|
|
25438
25469
|
__name: "index",
|
|
25439
25470
|
props: {
|
|
25440
25471
|
language: {
|
|
@@ -25448,7 +25479,7 @@ var xk = {
|
|
|
25448
25479
|
},
|
|
25449
25480
|
themeMode: {
|
|
25450
25481
|
type: String,
|
|
25451
|
-
default: "
|
|
25482
|
+
default: "",
|
|
25452
25483
|
validator: (e) => [
|
|
25453
25484
|
"",
|
|
25454
25485
|
"light",
|
|
@@ -25482,13 +25513,13 @@ var xk = {
|
|
|
25482
25513
|
setup(e) {
|
|
25483
25514
|
return R("wyfe-ivue__UseElConfigProvider_key", e), (e, t) => {
|
|
25484
25515
|
let n = Av;
|
|
25485
|
-
return L(), l(n, { locale: e.language === "en" ? W(xd) : W(
|
|
25516
|
+
return L(), l(n, { locale: e.language === "en" ? W(xd) : W(NA) }, {
|
|
25486
25517
|
default: K(() => [B(e.$slots, "default")]),
|
|
25487
25518
|
_: 3
|
|
25488
25519
|
}, 8, ["locale"]);
|
|
25489
25520
|
};
|
|
25490
25521
|
}
|
|
25491
|
-
}),
|
|
25522
|
+
}), FA = {
|
|
25492
25523
|
title: {
|
|
25493
25524
|
type: String,
|
|
25494
25525
|
default: "欢迎使用wyfe-ivue对话框组件"
|
|
@@ -25579,7 +25610,7 @@ var xk = {
|
|
|
25579
25610
|
type: Function,
|
|
25580
25611
|
default: () => {}
|
|
25581
25612
|
}
|
|
25582
|
-
},
|
|
25613
|
+
}, IA = (e) => {
|
|
25583
25614
|
let t = z(null), n = s(() => t.value?.handleClose), r = z(!1), i = s(() => r.value ? Hm : qm), a = () => {
|
|
25584
25615
|
r.value = !r.value;
|
|
25585
25616
|
}, o = !1;
|
|
@@ -25614,30 +25645,29 @@ var xk = {
|
|
|
25614
25645
|
o = !0, e?.();
|
|
25615
25646
|
}
|
|
25616
25647
|
};
|
|
25617
|
-
},
|
|
25648
|
+
}, LA = { key: 1 }, RA = /* @__PURE__ */ g({
|
|
25618
25649
|
__name: "index",
|
|
25619
|
-
props:
|
|
25650
|
+
props: FA,
|
|
25620
25651
|
setup(e, { expose: n }) {
|
|
25621
|
-
let r = e, i = ve(), { edRef: a, handleClose: o, isFullScreen: s, iconComponent: c, handleFullScreen: f, handleClosed: m, handleClick: g } =
|
|
25652
|
+
let r = e, i = ve(), { edRef: a, handleClose: o, isFullScreen: s, iconComponent: c, handleFullScreen: f, handleClosed: m, handleClick: g } = IA(r);
|
|
25622
25653
|
return n({
|
|
25623
25654
|
edRef: a,
|
|
25624
25655
|
handleClose: o
|
|
25625
25656
|
}), (e, n) => {
|
|
25626
|
-
let r = Q, o = yv, _ =
|
|
25657
|
+
let r = Q, o = yv, _ = nA, v = dw;
|
|
25627
25658
|
return L(), l(v, {
|
|
25628
25659
|
ref_key: "edRef",
|
|
25629
25660
|
ref: a,
|
|
25630
25661
|
"header-class": "wyfe-ivue__el-dialog__header",
|
|
25631
25662
|
"body-class": "wyfe-ivue__el-dialog__body",
|
|
25632
25663
|
"footer-class": "wyfe-ivue__el-dialog__footer",
|
|
25633
|
-
title: e.title,
|
|
25634
25664
|
fullscreen: W(s),
|
|
25635
25665
|
"append-to-body": e.appendToBody,
|
|
25636
25666
|
"close-on-click-modal": e.closeOnClickModal,
|
|
25637
25667
|
"destroy-on-close": e.destroyOnClose,
|
|
25638
25668
|
onClosed: W(m)
|
|
25639
25669
|
}, p({
|
|
25640
|
-
header: K(() => [
|
|
25670
|
+
header: K(() => [i.header ? B(e.$slots, "header", { key: 0 }) : (L(), d("span", LA, U(e.title), 1)), e.showFullScreenIcon ? (L(), l(r, {
|
|
25641
25671
|
key: 2,
|
|
25642
25672
|
class: "wyfe-ivue__full-screen",
|
|
25643
25673
|
onClick: W(f)
|
|
@@ -25668,7 +25698,6 @@ var xk = {
|
|
|
25668
25698
|
}, null, 8, ["btnText", "type"])) : u("", !0)], 64)) : u("", !0), e.showFooter === "CUSTOM" ? B(e.$slots, "footer", { key: 1 }) : u("", !0)]),
|
|
25669
25699
|
key: "0"
|
|
25670
25700
|
} : void 0]), 1032, [
|
|
25671
|
-
"title",
|
|
25672
25701
|
"fullscreen",
|
|
25673
25702
|
"append-to-body",
|
|
25674
25703
|
"close-on-click-modal",
|
|
@@ -25677,7 +25706,7 @@ var xk = {
|
|
|
25677
25706
|
]);
|
|
25678
25707
|
};
|
|
25679
25708
|
}
|
|
25680
|
-
}),
|
|
25709
|
+
}), zA = {
|
|
25681
25710
|
title: {
|
|
25682
25711
|
type: String,
|
|
25683
25712
|
default: "欢迎使用wyfe-ivue抽屉组件"
|
|
@@ -25757,7 +25786,7 @@ var xk = {
|
|
|
25757
25786
|
type: Function,
|
|
25758
25787
|
default: () => {}
|
|
25759
25788
|
}
|
|
25760
|
-
},
|
|
25789
|
+
}, BA = (e) => {
|
|
25761
25790
|
let t = z(null), n = s(() => t.value?.handleClose), r = z(!1), i = s(() => r.value ? "100%" : e.size), a = s(() => r.value ? Hm : qm), o = () => {
|
|
25762
25791
|
r.value = !r.value;
|
|
25763
25792
|
}, c = !1;
|
|
@@ -25784,37 +25813,37 @@ var xk = {
|
|
|
25784
25813
|
c = !0, e?.();
|
|
25785
25814
|
}
|
|
25786
25815
|
};
|
|
25787
|
-
},
|
|
25816
|
+
}, VA = { key: 1 }, HA = /* @__PURE__ */ g({
|
|
25788
25817
|
__name: "index",
|
|
25789
|
-
props:
|
|
25818
|
+
props: zA,
|
|
25790
25819
|
setup(e, { expose: n }) {
|
|
25791
|
-
let { edRef:
|
|
25820
|
+
let r = e, i = ve(), { edRef: a, handleClose: o, drawerSize: s, iconComponent: c, handleFullScreen: f, handleClosed: m, handleClick: g } = BA(r);
|
|
25792
25821
|
return n({
|
|
25793
|
-
edRef:
|
|
25794
|
-
handleClose:
|
|
25822
|
+
edRef: a,
|
|
25823
|
+
handleClose: o
|
|
25795
25824
|
}), (e, n) => {
|
|
25796
|
-
let
|
|
25825
|
+
let r = Q, o = yv, _ = nA, v = yw;
|
|
25797
25826
|
return L(), l(v, {
|
|
25798
25827
|
ref_key: "edRef",
|
|
25799
|
-
ref:
|
|
25828
|
+
ref: a,
|
|
25829
|
+
"header-class": "wyfe-ivue__drawer-header",
|
|
25800
25830
|
"body-class": "wyfe-ivue__drawer-body",
|
|
25801
25831
|
"footer-class": "wyfe-ivue__drawer-footer",
|
|
25802
|
-
|
|
25803
|
-
size: W(a),
|
|
25832
|
+
size: W(s),
|
|
25804
25833
|
"append-to-body": e.appendToBody,
|
|
25805
25834
|
"destroy-on-close": e.destroyOnClose,
|
|
25806
25835
|
"close-on-click-modal": e.closeOnClickModal,
|
|
25807
|
-
onClosed: W(
|
|
25836
|
+
onClosed: W(m)
|
|
25808
25837
|
}, p({
|
|
25809
|
-
header: K(() => [
|
|
25810
|
-
key:
|
|
25838
|
+
header: K(() => [i.header ? B(e.$slots, "header", { key: 0 }) : (L(), d("span", VA, U(e.title), 1)), e.showFullScreenIcon ? (L(), l(r, {
|
|
25839
|
+
key: 2,
|
|
25811
25840
|
class: "wyfe-ivue__full-screen",
|
|
25812
|
-
onClick: W(
|
|
25841
|
+
onClick: W(f)
|
|
25813
25842
|
}, {
|
|
25814
|
-
default: K(() => [(L(), l(H(W(
|
|
25843
|
+
default: K(() => [(L(), l(H(W(c))))]),
|
|
25815
25844
|
_: 1
|
|
25816
25845
|
}, 8, ["onClick"])) : u("", !0)]),
|
|
25817
|
-
default: K(() => [h(
|
|
25846
|
+
default: K(() => [h(o, { "view-class": "wyfe-ivue__scrollbar-view" }, {
|
|
25818
25847
|
default: K(() => [B(e.$slots, "default")]),
|
|
25819
25848
|
_: 3
|
|
25820
25849
|
})]),
|
|
@@ -25824,16 +25853,15 @@ var xk = {
|
|
|
25824
25853
|
fn: K(() => [e.showFooter === !0 ? (L(), d(t, { key: 0 }, [e.confirmBtnText ? (L(), l(_, {
|
|
25825
25854
|
key: 0,
|
|
25826
25855
|
btnText: e.confirmBtnText,
|
|
25827
|
-
onOnClick: n[0] ||= (t) => W(
|
|
25856
|
+
onOnClick: n[0] ||= (t) => W(g)(e.onConfirm)
|
|
25828
25857
|
}, null, 8, ["btnText"])) : u("", !0), e.cancelBtnText ? (L(), l(_, {
|
|
25829
25858
|
key: 1,
|
|
25830
25859
|
btnText: e.cancelBtnText,
|
|
25831
25860
|
type: e.cancelBtnType,
|
|
25832
|
-
onClick: n[1] ||= (t) => W(
|
|
25861
|
+
onClick: n[1] ||= (t) => W(g)(e.onCancel)
|
|
25833
25862
|
}, null, 8, ["btnText", "type"])) : u("", !0)], 64)) : u("", !0), e.showFooter === "CUSTOM" ? B(e.$slots, "footer", { key: 1 }) : u("", !0)]),
|
|
25834
25863
|
key: "0"
|
|
25835
25864
|
} : void 0]), 1032, [
|
|
25836
|
-
"title",
|
|
25837
25865
|
"size",
|
|
25838
25866
|
"append-to-body",
|
|
25839
25867
|
"destroy-on-close",
|
|
@@ -25842,7 +25870,7 @@ var xk = {
|
|
|
25842
25870
|
]);
|
|
25843
25871
|
};
|
|
25844
25872
|
}
|
|
25845
|
-
}),
|
|
25873
|
+
}), UA = /* @__PURE__ */ g({
|
|
25846
25874
|
__name: "index",
|
|
25847
25875
|
props: {
|
|
25848
25876
|
activeValue: {
|
|
@@ -25892,7 +25920,72 @@ var xk = {
|
|
|
25892
25920
|
]);
|
|
25893
25921
|
};
|
|
25894
25922
|
}
|
|
25895
|
-
}),
|
|
25923
|
+
}), WA = /* @__PURE__ */ Gk(/* @__PURE__ */ g({
|
|
25924
|
+
__name: "index",
|
|
25925
|
+
props: {
|
|
25926
|
+
content: {
|
|
25927
|
+
type: String,
|
|
25928
|
+
default: ""
|
|
25929
|
+
},
|
|
25930
|
+
placement: {
|
|
25931
|
+
type: String,
|
|
25932
|
+
default: "top",
|
|
25933
|
+
validator: (e) => [
|
|
25934
|
+
"top",
|
|
25935
|
+
"top-start",
|
|
25936
|
+
"top-end",
|
|
25937
|
+
"bottom",
|
|
25938
|
+
"bottom-start",
|
|
25939
|
+
"bottom-end",
|
|
25940
|
+
"left",
|
|
25941
|
+
"left-start",
|
|
25942
|
+
"left-end",
|
|
25943
|
+
"right",
|
|
25944
|
+
"right-start",
|
|
25945
|
+
"right-end"
|
|
25946
|
+
].includes(e)
|
|
25947
|
+
},
|
|
25948
|
+
spanClass: {
|
|
25949
|
+
type: String,
|
|
25950
|
+
default: ""
|
|
25951
|
+
}
|
|
25952
|
+
},
|
|
25953
|
+
setup(e) {
|
|
25954
|
+
let t = e, n = ge(), r = ve(), i = {
|
|
25955
|
+
mounted(e, t) {
|
|
25956
|
+
let n = () => {
|
|
25957
|
+
let n = e.scrollWidth > e.clientWidth;
|
|
25958
|
+
typeof t.value == "function" && t.value(n);
|
|
25959
|
+
}, r = new ResizeObserver(n);
|
|
25960
|
+
r.observe(e), e._overflowObserver = r, n();
|
|
25961
|
+
},
|
|
25962
|
+
unmounted(e) {
|
|
25963
|
+
e._overflowObserver && e._overflowObserver.disconnect();
|
|
25964
|
+
}
|
|
25965
|
+
}, a = z(!1), o = s(() => t.content ? n.disabled ?? !a.value : n.disabled);
|
|
25966
|
+
return (e, t) => {
|
|
25967
|
+
let n = K_;
|
|
25968
|
+
return L(), l(n, {
|
|
25969
|
+
content: e.content,
|
|
25970
|
+
placement: e.placement,
|
|
25971
|
+
disabled: o.value
|
|
25972
|
+
}, p({
|
|
25973
|
+
default: K(() => [e.content ? Te((L(), d("span", {
|
|
25974
|
+
key: 0,
|
|
25975
|
+
class: k(["text-ellipsis", e.spanClass])
|
|
25976
|
+
}, [m(U(e.content), 1)], 2)), [[i, (e) => a.value = e]]) : u("", !0)]),
|
|
25977
|
+
_: 2
|
|
25978
|
+
}, [se(r, (t, n) => ({
|
|
25979
|
+
name: n,
|
|
25980
|
+
fn: K((t) => [B(e.$slots, n, A(b(t)), void 0, !0)])
|
|
25981
|
+
}))]), 1032, [
|
|
25982
|
+
"content",
|
|
25983
|
+
"placement",
|
|
25984
|
+
"disabled"
|
|
25985
|
+
]);
|
|
25986
|
+
};
|
|
25987
|
+
}
|
|
25988
|
+
}), [["__scopeId", "data-v-8239c412"]]), GA = {
|
|
25896
25989
|
fileId: {
|
|
25897
25990
|
type: String,
|
|
25898
25991
|
default: ""
|
|
@@ -25936,7 +26029,7 @@ var xk = {
|
|
|
25936
26029
|
type: Number,
|
|
25937
26030
|
default: 2
|
|
25938
26031
|
}
|
|
25939
|
-
},
|
|
26032
|
+
}, KA = {
|
|
25940
26033
|
IMG: {
|
|
25941
26034
|
exts: [
|
|
25942
26035
|
"jpg",
|
|
@@ -25974,15 +26067,15 @@ var xk = {
|
|
|
25974
26067
|
tip: "不支持视频格式,支持图片、文档、音频、压缩包等"
|
|
25975
26068
|
}
|
|
25976
26069
|
};
|
|
25977
|
-
Object.assign(
|
|
26070
|
+
Object.assign(KA, { ALL: {
|
|
25978
26071
|
exts: [
|
|
25979
|
-
...
|
|
25980
|
-
...
|
|
25981
|
-
...
|
|
26072
|
+
...KA.IMG.exts,
|
|
26073
|
+
...KA.VIDEO.exts,
|
|
26074
|
+
...KA.EXCLUDE_VIDEO.exts
|
|
25982
26075
|
],
|
|
25983
26076
|
tip: "支持图片、文档、视频、音频、压缩包等格式"
|
|
25984
26077
|
} });
|
|
25985
|
-
var
|
|
26078
|
+
var qA = Object.fromEntries(Object.entries(KA).map(([e, t]) => [e, t.exts.map((e) => `.${e}`).join(",")])), JA = (e, t = 300) => {
|
|
25986
26079
|
let n = null, r = (...r) => {
|
|
25987
26080
|
n && clearTimeout(n), n = setTimeout(() => {
|
|
25988
26081
|
e.apply(void 0, r), n = null;
|
|
@@ -25997,15 +26090,15 @@ var GA = Object.fromEntries(Object.entries(WA).map(([e, t]) => [e, t.exts.map((e
|
|
|
25997
26090
|
return a.lastArgs = e, i.apply(this, e);
|
|
25998
26091
|
};
|
|
25999
26092
|
return a.cancel = i.cancel, a.flush = i.flush, a;
|
|
26000
|
-
},
|
|
26001
|
-
let n = s(() =>
|
|
26093
|
+
}, YA = ({ props: e, emits: t }) => {
|
|
26094
|
+
let n = s(() => qA[e.uploadType]), r = z({
|
|
26002
26095
|
fileList: [],
|
|
26003
26096
|
fileIds: [],
|
|
26004
26097
|
linkUrls: [],
|
|
26005
26098
|
uploadFlag: !1,
|
|
26006
26099
|
deleteFlag: !1,
|
|
26007
26100
|
abortControllers: []
|
|
26008
|
-
}), i =
|
|
26101
|
+
}), i = JA(() => {
|
|
26009
26102
|
t("update:fileId", r.value.fileIds.join(",")), t("update:linkUrl", r.value.linkUrls.join(","));
|
|
26010
26103
|
}, 300), a = z({
|
|
26011
26104
|
show: !1,
|
|
@@ -26083,7 +26176,7 @@ var GA = Object.fromEntries(Object.entries(WA).map(([e, t]) => [e, t.exts.map((e
|
|
|
26083
26176
|
Oe.error(n), t("onError", n);
|
|
26084
26177
|
},
|
|
26085
26178
|
handleBeforeUpload: (t) => {
|
|
26086
|
-
let { exts: n, tip: i } =
|
|
26179
|
+
let { exts: n, tip: i } = KA[e.uploadType], a = e.maxSize * 1024 * 1024 * 1024, o = t.name.split(".").pop().toLowerCase();
|
|
26087
26180
|
if (!n.includes(o)) return Oe.error(`不支持的文件类型!${i}`), !1;
|
|
26088
26181
|
if (t.size > a) return Oe.error(`文件大小不能超过 ${e.maxSize}GB`), !1;
|
|
26089
26182
|
let s = new AbortController();
|
|
@@ -26101,15 +26194,15 @@ var GA = Object.fromEntries(Object.entries(WA).map(([e, t]) => [e, t.exts.map((e
|
|
|
26101
26194
|
return !0;
|
|
26102
26195
|
}, () => !1)
|
|
26103
26196
|
};
|
|
26104
|
-
},
|
|
26197
|
+
}, XA = {
|
|
26105
26198
|
key: 0,
|
|
26106
26199
|
class: "el-upload__tip"
|
|
26107
|
-
},
|
|
26200
|
+
}, ZA = {
|
|
26108
26201
|
key: 1,
|
|
26109
26202
|
class: "el-upload__tip"
|
|
26110
|
-
},
|
|
26203
|
+
}, QA = /* @__PURE__ */ Gk(/* @__PURE__ */ g({
|
|
26111
26204
|
__name: "index",
|
|
26112
|
-
props:
|
|
26205
|
+
props: GA,
|
|
26113
26206
|
emits: [
|
|
26114
26207
|
"update:fileId",
|
|
26115
26208
|
"update:linkUrl",
|
|
@@ -26117,7 +26210,7 @@ var GA = Object.fromEntries(Object.entries(WA).map(([e, t]) => [e, t.exts.map((e
|
|
|
26117
26210
|
"onError"
|
|
26118
26211
|
],
|
|
26119
26212
|
setup(e, { emit: n }) {
|
|
26120
|
-
let r = e, i = n, a = Sk(r), { acceptComputed: o, state: s, dialogState: c, handlePreview: l, handleSuccess: u, handleError: p, handleBeforeUpload: g, handleBeforeRemove: _ } =
|
|
26213
|
+
let r = e, i = n, a = Sk(r), { acceptComputed: o, state: s, dialogState: c, handlePreview: l, handleSuccess: u, handleError: p, handleBeforeUpload: g, handleBeforeRemove: _ } = YA({
|
|
26121
26214
|
props: r,
|
|
26122
26215
|
emits: i,
|
|
26123
26216
|
globalConfig: a
|
|
@@ -26149,7 +26242,7 @@ var GA = Object.fromEntries(Object.entries(WA).map(([e, t]) => [e, t.exts.map((e
|
|
|
26149
26242
|
_: 1
|
|
26150
26243
|
}),
|
|
26151
26244
|
n[2] ||= f("div", { class: "el-upload__text" }, [m(" 将文件拖到此处,或 "), f("em", null, "点击上传")], -1),
|
|
26152
|
-
e.uploadTip ? (L(), d("div",
|
|
26245
|
+
e.uploadTip ? (L(), d("div", XA, U(e.uploadTip), 1)) : (L(), d("div", ZA, U(W(KA)[e.uploadType].tip) + ",最大支持 " + U(e.maxSize) + "GB ", 1))
|
|
26153
26246
|
]),
|
|
26154
26247
|
_: 1
|
|
26155
26248
|
}, 8, [
|
|
@@ -26182,7 +26275,41 @@ var GA = Object.fromEntries(Object.entries(WA).map(([e, t]) => [e, t.exts.map((e
|
|
|
26182
26275
|
}, 8, ["modelValue"])], 64);
|
|
26183
26276
|
};
|
|
26184
26277
|
}
|
|
26185
|
-
}), [["__scopeId", "data-v-6bee1046"]]),
|
|
26278
|
+
}), [["__scopeId", "data-v-6bee1046"]]), $A = /* @__PURE__ */ g({
|
|
26279
|
+
__name: "index",
|
|
26280
|
+
props: {
|
|
26281
|
+
prefix: {
|
|
26282
|
+
type: String,
|
|
26283
|
+
default: "iconfont"
|
|
26284
|
+
},
|
|
26285
|
+
name: {
|
|
26286
|
+
type: String,
|
|
26287
|
+
required: !0
|
|
26288
|
+
},
|
|
26289
|
+
fontSize: {
|
|
26290
|
+
type: String,
|
|
26291
|
+
default: "18px"
|
|
26292
|
+
},
|
|
26293
|
+
color: {
|
|
26294
|
+
type: String,
|
|
26295
|
+
default: ""
|
|
26296
|
+
},
|
|
26297
|
+
clickable: {
|
|
26298
|
+
type: Boolean,
|
|
26299
|
+
default: !1
|
|
26300
|
+
}
|
|
26301
|
+
},
|
|
26302
|
+
setup(e) {
|
|
26303
|
+
return (e, t) => (L(), d("i", {
|
|
26304
|
+
class: k(`${e.prefix} ${e.name}`),
|
|
26305
|
+
style: j({
|
|
26306
|
+
fontSize: e.fontSize,
|
|
26307
|
+
color: e.color,
|
|
26308
|
+
cursor: e.clickable ? "pointer" : "auto"
|
|
26309
|
+
})
|
|
26310
|
+
}, null, 6));
|
|
26311
|
+
}
|
|
26312
|
+
}), ej = {
|
|
26186
26313
|
title: {
|
|
26187
26314
|
type: String,
|
|
26188
26315
|
required: !0
|
|
@@ -26195,58 +26322,64 @@ var GA = Object.fromEntries(Object.entries(WA).map(([e, t]) => [e, t.exts.map((e
|
|
|
26195
26322
|
type: String,
|
|
26196
26323
|
default: ""
|
|
26197
26324
|
},
|
|
26198
|
-
lineColor: {
|
|
26199
|
-
type: String,
|
|
26200
|
-
default: "var(--theme-color)"
|
|
26201
|
-
},
|
|
26202
|
-
linePosition: {
|
|
26203
|
-
type: String,
|
|
26204
|
-
default: "left",
|
|
26205
|
-
validator: (e) => [
|
|
26206
|
-
"left",
|
|
26207
|
-
"bottom",
|
|
26208
|
-
"between"
|
|
26209
|
-
].includes(e)
|
|
26210
|
-
},
|
|
26211
|
-
lineWidth: {
|
|
26212
|
-
type: String,
|
|
26213
|
-
default: "6px"
|
|
26214
|
-
},
|
|
26215
|
-
lineHeight: {
|
|
26216
|
-
type: String,
|
|
26217
|
-
default: "2px"
|
|
26218
|
-
},
|
|
26219
26325
|
className: {
|
|
26220
26326
|
type: String,
|
|
26221
26327
|
default: ""
|
|
26222
26328
|
},
|
|
26223
|
-
|
|
26224
|
-
type:
|
|
26225
|
-
default:
|
|
26329
|
+
extConfig: {
|
|
26330
|
+
type: Object,
|
|
26331
|
+
default: () => ({})
|
|
26226
26332
|
}
|
|
26227
|
-
},
|
|
26333
|
+
}, tj = {
|
|
26334
|
+
margin: {
|
|
26335
|
+
top: "0px",
|
|
26336
|
+
bottom: "20px"
|
|
26337
|
+
},
|
|
26338
|
+
line: {
|
|
26339
|
+
width: "4px",
|
|
26340
|
+
height: "2px",
|
|
26341
|
+
color: "var(--theme-color)",
|
|
26342
|
+
position: "left",
|
|
26343
|
+
verticalPadding: "0px"
|
|
26344
|
+
},
|
|
26345
|
+
borderBottom: {
|
|
26346
|
+
show: !1,
|
|
26347
|
+
color: "var(--el-border-color-light)",
|
|
26348
|
+
paddingBottom: "20px"
|
|
26349
|
+
}
|
|
26350
|
+
}, nj = ["innerHTML"], rj = /* @__PURE__ */ Gk(/* @__PURE__ */ g({
|
|
26228
26351
|
__name: "index",
|
|
26229
|
-
props:
|
|
26352
|
+
props: ej,
|
|
26230
26353
|
setup(e) {
|
|
26231
|
-
|
|
26232
|
-
|
|
26233
|
-
|
|
26234
|
-
|
|
26235
|
-
|
|
26236
|
-
|
|
26354
|
+
_e((e) => ({
|
|
26355
|
+
v44034c5c: n.value.borderBottom.paddingBottom,
|
|
26356
|
+
v35418a23: n.value.borderBottom.color,
|
|
26357
|
+
v41686443: n.value.line.width,
|
|
26358
|
+
v405165e0: n.value.line.color,
|
|
26359
|
+
v584f39f8: n.value.line.verticalPadding,
|
|
26360
|
+
v5c55ab6c: n.value.line.height
|
|
26361
|
+
}));
|
|
26362
|
+
let t = e, n = s(() => wk(tj, t.extConfig));
|
|
26363
|
+
return (e, t) => (L(), d("div", {
|
|
26364
|
+
class: k(["wyfe-ivue__use-line-title", { borderBottom: n.value.borderBottom.show }]),
|
|
26365
|
+
style: j({
|
|
26366
|
+
marginTop: n.value.margin.top,
|
|
26367
|
+
marginBottom: n.value.margin.bottom
|
|
26368
|
+
})
|
|
26369
|
+
}, [f("div", {
|
|
26370
|
+
class: k(["content", [e.className, n.value.line.position]]),
|
|
26237
26371
|
style: j({
|
|
26238
26372
|
fontSize: e.fontSize,
|
|
26239
|
-
marginBottom: e.marginBottom,
|
|
26240
26373
|
color: e.color
|
|
26241
26374
|
}),
|
|
26242
26375
|
innerHTML: e.title
|
|
26243
|
-
}, null, 14,
|
|
26376
|
+
}, null, 14, nj)], 6));
|
|
26244
26377
|
}
|
|
26245
|
-
}), [["__scopeId", "data-v-
|
|
26378
|
+
}), [["__scopeId", "data-v-764ae00c"]]), ij = (e) => {
|
|
26246
26379
|
let t = e.match(/^(-?\d*\.?\d+)(\D+)?$/);
|
|
26247
26380
|
if (!t) throw Error("size不合法");
|
|
26248
26381
|
return [parseFloat(t[1]), t[2]?.trim() || "px"];
|
|
26249
|
-
},
|
|
26382
|
+
}, aj = ([, e]) => {
|
|
26250
26383
|
let t = [
|
|
26251
26384
|
"px",
|
|
26252
26385
|
"rem",
|
|
@@ -26256,7 +26389,7 @@ var GA = Object.fromEntries(Object.entries(WA).map(([e, t]) => [e, t.exts.map((e
|
|
|
26256
26389
|
], n = t.includes(e);
|
|
26257
26390
|
if (!n) throw Error(`size单位不合法,合法单位:${t.join("、")}`);
|
|
26258
26391
|
return n;
|
|
26259
|
-
},
|
|
26392
|
+
}, oj = {
|
|
26260
26393
|
name: {
|
|
26261
26394
|
type: String,
|
|
26262
26395
|
required: !0
|
|
@@ -26265,7 +26398,7 @@ var GA = Object.fromEntries(Object.entries(WA).map(([e, t]) => [e, t.exts.map((e
|
|
|
26265
26398
|
type: [Number, String],
|
|
26266
26399
|
default: 28,
|
|
26267
26400
|
validator(e) {
|
|
26268
|
-
return (typeof e == "number" ||
|
|
26401
|
+
return (typeof e == "number" || aj(ij(e))) && e;
|
|
26269
26402
|
}
|
|
26270
26403
|
},
|
|
26271
26404
|
color: {
|
|
@@ -26283,9 +26416,9 @@ var GA = Object.fromEntries(Object.entries(WA).map(([e, t]) => [e, t.exts.map((e
|
|
|
26283
26416
|
default: !1
|
|
26284
26417
|
},
|
|
26285
26418
|
hoverClass: { type: String }
|
|
26286
|
-
},
|
|
26419
|
+
}, sj = ["href", "fill"], cj = /* @__PURE__ */ Gk(/* @__PURE__ */ g({
|
|
26287
26420
|
__name: "index",
|
|
26288
|
-
props:
|
|
26421
|
+
props: oj,
|
|
26289
26422
|
setup(e) {
|
|
26290
26423
|
_e((e) => ({
|
|
26291
26424
|
v94c66d84: i.value,
|
|
@@ -26305,8 +26438,8 @@ var GA = Object.fromEntries(Object.entries(WA).map(([e, t]) => [e, t.exts.map((e
|
|
|
26305
26438
|
class: k([a.value ? "fillClass" : "", e.hoverClass]),
|
|
26306
26439
|
href: r.value,
|
|
26307
26440
|
fill: i.value
|
|
26308
|
-
}, null, 10,
|
|
26441
|
+
}, null, 10, sj)], 4));
|
|
26309
26442
|
}
|
|
26310
26443
|
}), [["__scopeId", "data-v-b69be9a5"]]);
|
|
26311
26444
|
//#endregion
|
|
26312
|
-
export {
|
|
26445
|
+
export { kA as UseCrudTable, nA as UseElButton, MA as UseElCheckbox, PA as UseElConfigProvider, RA as UseElDialog, HA as UseElDrawer, CA as UseElForm, pA as UseElInput, oA as UseElSelect, UA as UseElSwitch, Qk as UseElTable, WA as UseElTooltip, QA as UseElUpload, $A as UseIconfont, rj as UseLineTitle, uA as UseRender, cj as UseSvgIcon };
|