wyfe-ivue 2.12.1 → 2.14.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 +586 -318
- package/dist/index.umd.cjs +7 -7
- package/dist/types/UseElCheckbox/index.vue.d.ts +63 -0
- package/dist/types/UseElCheckbox/props.d.ts +27 -0
- package/dist/types/UseElCheckbox/types.d.ts +6 -0
- package/dist/types/UseElCheckbox/useCheckboxHook.d.ts +10 -0
- package/dist/types/UseElDialog/index.vue.d.ts +19 -6
- package/dist/types/UseElDialog/useDialogHook.d.ts +4 -4
- package/dist/types/UseElDrawer/index.vue.d.ts +5 -5
- package/dist/types/UseElDrawer/useDrawerHook.d.ts +4 -4
- package/dist/types/UseElForm/components/RowForm.vue.d.ts +1 -0
- package/dist/types/UseElForm/index.vue.d.ts +2 -0
- package/dist/types/UseElForm/types.d.ts +18 -1
- package/dist/types/UseElSelect/index.vue.d.ts +4 -4
- package/dist/types/UseElSelect/props.d.ts +1 -1
- package/dist/types/UseElSwitch/index.vue.d.ts +50 -0
- package/dist/types/UseElSwitch/props.d.ts +23 -0
- package/dist/types/UseRender/index.vue.d.ts +31 -2
- package/dist/types/UseRender/props.d.ts +17 -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/UseElCheckbox/props.ts +45 -0
- package/src/components/UseElCheckbox/types.ts +15 -0
- package/src/components/UseElForm/types.ts +20 -2
- package/src/components/UseElSwitch/props.ts +40 -0
- package/src/components/UseRender/props.ts +33 -0
- package/dist/types/UseRender/types.d.ts +0 -5
- package/src/components/UseRender/types.ts +0 -16
package/dist/index.es.js
CHANGED
|
@@ -21706,9 +21706,12 @@ var aO = {
|
|
|
21706
21706
|
let t = x("wyfe-ivue__UseElConfigProvider_key", {}), n = {
|
|
21707
21707
|
globalConfig: t,
|
|
21708
21708
|
finalLanguage: s(() => e.language || t.language),
|
|
21709
|
-
finalThemeMode: s(() => e.themeMode || t.themeMode),
|
|
21709
|
+
finalThemeMode: s(() => e.themeMode || t.themeMode || document.documentElement.classList.contains("dark") ? "dark" : ""),
|
|
21710
21710
|
finalDictMap: s(() => e.dictMap && Object.keys(e.dictMap).length ? e.dictMap : t?.dictMap || {}),
|
|
21711
|
-
finalDictProps: s(() => e.dictProps && Object.keys(e.dictProps).length ? e.dictProps : t?.dictProps || {
|
|
21711
|
+
finalDictProps: s(() => e.dictProps && Object.keys(e.dictProps).length ? e.dictProps : t?.dictProps || {
|
|
21712
|
+
value: "value",
|
|
21713
|
+
label: "label"
|
|
21714
|
+
}),
|
|
21712
21715
|
finalDictDataToString: s(() => e.dictDataToString ?? t.dictDataToString),
|
|
21713
21716
|
finalTableExtraHeight: s(() => e.extConfig?.adaptive?.extraHeight ?? t.tableExtraHeight),
|
|
21714
21717
|
finalUploadConfig: s(() => e.uploadConfig && Object.keys(e.uploadConfig).length ? e.uploadConfig : t?.uploadConfig || {})
|
|
@@ -22181,26 +22184,26 @@ var aO = {
|
|
|
22181
22184
|
tableProps: {}
|
|
22182
22185
|
},
|
|
22183
22186
|
setup(e) {
|
|
22184
|
-
let
|
|
22185
|
-
input:
|
|
22186
|
-
select:
|
|
22187
|
-
})[
|
|
22187
|
+
let n = e, r = s(() => ({
|
|
22188
|
+
input: qO,
|
|
22189
|
+
select: BO
|
|
22190
|
+
})[n.item.editConfig.component]), i = s({
|
|
22188
22191
|
get() {
|
|
22189
|
-
return
|
|
22192
|
+
return n.row[n.item.prop] ?? "";
|
|
22190
22193
|
},
|
|
22191
22194
|
set(e) {
|
|
22192
|
-
|
|
22195
|
+
n.row[n.item.prop] = e;
|
|
22193
22196
|
}
|
|
22194
|
-
}),
|
|
22195
|
-
let { editConfig: e } =
|
|
22196
|
-
return e ? (e.attrs?.options || []).find((e) => e.value ===
|
|
22197
|
+
}), a = s(() => {
|
|
22198
|
+
let { editConfig: e } = n.item;
|
|
22199
|
+
return e ? (e.attrs?.options || []).find((e) => e.value === i.value)?.label ?? i.value : i.value;
|
|
22197
22200
|
});
|
|
22198
|
-
return (
|
|
22201
|
+
return (n, o) => e.item.editConfig ? (L(), d(t, { key: 0 }, [e.row.$editFlag && r.value ? (L(), l(H(r.value), E({
|
|
22199
22202
|
key: 0,
|
|
22200
|
-
modelValue:
|
|
22201
|
-
"onUpdate:modelValue":
|
|
22202
|
-
}, e.item.editConfig.attrs), null, 16, ["modelValue"])) :
|
|
22203
|
-
key:
|
|
22203
|
+
modelValue: i.value,
|
|
22204
|
+
"onUpdate:modelValue": o[0] ||= (e) => i.value = e
|
|
22205
|
+
}, e.item.editConfig.attrs), null, 16, ["modelValue"])) : (L(), d("span", jO, U(a.value), 1))], 64)) : (L(), l(EO, {
|
|
22206
|
+
key: 1,
|
|
22204
22207
|
row: e.row,
|
|
22205
22208
|
item: e.item,
|
|
22206
22209
|
tableProps: e.tableProps
|
|
@@ -22447,33 +22450,146 @@ var aO = {
|
|
|
22447
22450
|
type: Boolean,
|
|
22448
22451
|
default: !0
|
|
22449
22452
|
}
|
|
22450
|
-
}, RO =
|
|
22453
|
+
}, RO = {
|
|
22454
|
+
modelValue: {
|
|
22455
|
+
type: [
|
|
22456
|
+
String,
|
|
22457
|
+
Number,
|
|
22458
|
+
Array
|
|
22459
|
+
],
|
|
22460
|
+
default: ""
|
|
22461
|
+
},
|
|
22462
|
+
options: {
|
|
22463
|
+
type: Array,
|
|
22464
|
+
default: () => []
|
|
22465
|
+
},
|
|
22466
|
+
useV2: {
|
|
22467
|
+
type: Boolean,
|
|
22468
|
+
default: !0
|
|
22469
|
+
},
|
|
22470
|
+
isJoin: {
|
|
22471
|
+
type: Boolean,
|
|
22472
|
+
default: !1
|
|
22473
|
+
},
|
|
22474
|
+
placeholder: {
|
|
22475
|
+
type: String,
|
|
22476
|
+
default: "请选择"
|
|
22477
|
+
},
|
|
22478
|
+
width: {
|
|
22479
|
+
type: String,
|
|
22480
|
+
default: "100%"
|
|
22481
|
+
},
|
|
22482
|
+
defaultProps: {
|
|
22483
|
+
type: Object,
|
|
22484
|
+
default: () => ({
|
|
22485
|
+
label: "label",
|
|
22486
|
+
value: "value"
|
|
22487
|
+
})
|
|
22488
|
+
}
|
|
22489
|
+
}, zO = ({ props: e, emits: t }) => {
|
|
22490
|
+
let n = s(() => {
|
|
22491
|
+
let t = e.options?.[0];
|
|
22492
|
+
if (!t) return "string";
|
|
22493
|
+
let { value: n } = e.defaultProps;
|
|
22494
|
+
return typeof t[n];
|
|
22495
|
+
});
|
|
22496
|
+
return {
|
|
22497
|
+
modelValue: s(() => {
|
|
22498
|
+
let t = e.modelValue;
|
|
22499
|
+
return e.isJoin && typeof t == "string" ? t.split(",").filter(Boolean).map((e) => n.value === "number" ? Number(e) : e) : t;
|
|
22500
|
+
}),
|
|
22501
|
+
handleSelectChange: (n) => {
|
|
22502
|
+
let { value: r, label: i } = e.defaultProps, a = Array.isArray(n), o = (t) => e.options.find((e) => e[r] === t)?.[i] ?? "", s = a && e.isJoin ? n.join() : n, c = a ? n.map(o).filter(Boolean) : [o(n)], l = e.isJoin ? c.join() : a ? c : c[0];
|
|
22503
|
+
t("update:modelValue", s), t("update:label", l);
|
|
22504
|
+
}
|
|
22505
|
+
};
|
|
22506
|
+
}, BO = /* @__PURE__ */ g({
|
|
22507
|
+
__name: "index",
|
|
22508
|
+
props: RO,
|
|
22509
|
+
emits: ["update:modelValue", "update:label"],
|
|
22510
|
+
setup(e, { emit: n }) {
|
|
22511
|
+
let { modelValue: r, handleSelectChange: i } = zO({
|
|
22512
|
+
props: e,
|
|
22513
|
+
emits: n
|
|
22514
|
+
});
|
|
22515
|
+
return (e, n) => {
|
|
22516
|
+
let a = JT, o = gb, s = hb;
|
|
22517
|
+
return e.useV2 ? (L(), l(a, {
|
|
22518
|
+
key: 0,
|
|
22519
|
+
"model-value": W(r),
|
|
22520
|
+
placeholder: e.placeholder,
|
|
22521
|
+
options: e.options,
|
|
22522
|
+
props: e.defaultProps,
|
|
22523
|
+
onChange: W(i)
|
|
22524
|
+
}, null, 8, [
|
|
22525
|
+
"model-value",
|
|
22526
|
+
"placeholder",
|
|
22527
|
+
"options",
|
|
22528
|
+
"props",
|
|
22529
|
+
"onChange"
|
|
22530
|
+
])) : (L(), l(s, {
|
|
22531
|
+
key: 1,
|
|
22532
|
+
"model-value": W(r),
|
|
22533
|
+
placeholder: e.placeholder,
|
|
22534
|
+
style: A({ width: e.width }),
|
|
22535
|
+
onChange: W(i)
|
|
22536
|
+
}, {
|
|
22537
|
+
default: K(() => [(L(!0), d(t, null, ae(e.options, (t) => (L(), l(o, {
|
|
22538
|
+
key: t[e.defaultProps.value],
|
|
22539
|
+
label: t[e.defaultProps.label],
|
|
22540
|
+
value: t[e.defaultProps.value]
|
|
22541
|
+
}, null, 8, ["label", "value"]))), 128))]),
|
|
22542
|
+
_: 1
|
|
22543
|
+
}, 8, [
|
|
22544
|
+
"model-value",
|
|
22545
|
+
"placeholder",
|
|
22546
|
+
"style",
|
|
22547
|
+
"onChange"
|
|
22548
|
+
]));
|
|
22549
|
+
};
|
|
22550
|
+
}
|
|
22551
|
+
}), VO = {
|
|
22552
|
+
content: {
|
|
22553
|
+
type: [String, Object],
|
|
22554
|
+
required: !0
|
|
22555
|
+
},
|
|
22556
|
+
class: {
|
|
22557
|
+
type: String,
|
|
22558
|
+
default: ""
|
|
22559
|
+
},
|
|
22560
|
+
style: {
|
|
22561
|
+
type: String,
|
|
22562
|
+
default: ""
|
|
22563
|
+
}
|
|
22564
|
+
}, HO = ["innerHTML"], UO = {
|
|
22451
22565
|
key: 2,
|
|
22452
22566
|
style: { color: "#f00" }
|
|
22453
|
-
},
|
|
22567
|
+
}, WO = /* @__PURE__ */ g({
|
|
22454
22568
|
__name: "index",
|
|
22455
|
-
props:
|
|
22569
|
+
props: VO,
|
|
22456
22570
|
setup(e) {
|
|
22457
22571
|
let t = s(() => (e) => typeof e == "string"), n = s(() => (e) => {
|
|
22458
22572
|
if (C(e) || t.value(e) || typeof e != "object" || !e) return !1;
|
|
22459
22573
|
let n = typeof e.render == "function", r = typeof e.setup == "function";
|
|
22460
22574
|
return n || r;
|
|
22461
22575
|
});
|
|
22462
|
-
return (
|
|
22576
|
+
return (e, r) => n.value(e.content) || C(e.content) ? (L(), l(H(e.content), { key: 0 })) : t.value(e.content) ? (L(), d("div", {
|
|
22463
22577
|
key: 1,
|
|
22464
|
-
innerHTML: e.content
|
|
22465
|
-
|
|
22578
|
+
innerHTML: e.content,
|
|
22579
|
+
class: O(e.class),
|
|
22580
|
+
style: A(e.style)
|
|
22581
|
+
}, null, 14, HO)) : (L(), d("span", UO, " 不支持的content类型(仅支持同步组件/异步组件/VNode/字符串) "));
|
|
22466
22582
|
}
|
|
22467
|
-
}),
|
|
22583
|
+
}), GO = { mounted(e, t) {
|
|
22468
22584
|
if (t.value === !1) return;
|
|
22469
22585
|
let n = e.querySelector("input"), r = e.querySelector("textarea"), i = n || r || e;
|
|
22470
22586
|
i && Promise.resolve().then(() => {
|
|
22471
22587
|
i.focus({ preventScroll: !0 });
|
|
22472
22588
|
});
|
|
22473
|
-
} },
|
|
22589
|
+
} }, KO = {
|
|
22474
22590
|
key: 0,
|
|
22475
22591
|
class: "unit"
|
|
22476
|
-
},
|
|
22592
|
+
}, qO = /* @__PURE__ */ kO(/* @__PURE__ */ g({
|
|
22477
22593
|
__name: "index",
|
|
22478
22594
|
props: /* @__PURE__ */ T({
|
|
22479
22595
|
modelValue: {},
|
|
@@ -22502,7 +22618,7 @@ var aO = {
|
|
|
22502
22618
|
}
|
|
22503
22619
|
});
|
|
22504
22620
|
return (t, n) => {
|
|
22505
|
-
let r =
|
|
22621
|
+
let r = WO, a = R_;
|
|
22506
22622
|
return L(), d("div", {
|
|
22507
22623
|
class: "wyfe-ivue__use-el-input",
|
|
22508
22624
|
style: A({ width: e.width })
|
|
@@ -22544,10 +22660,10 @@ var aO = {
|
|
|
22544
22660
|
"rows",
|
|
22545
22661
|
"show-password",
|
|
22546
22662
|
"show-word-limit"
|
|
22547
|
-
])), [[W(
|
|
22663
|
+
])), [[W(GO), Object.hasOwn(t.$attrs, "autoFocus")]]), e.unit ? (L(), d("span", KO, [h(r, { content: e.unit }, null, 8, ["content"])])) : u("", !0)], 4);
|
|
22548
22664
|
};
|
|
22549
22665
|
}
|
|
22550
|
-
}), [["__scopeId", "data-v-754085a3"]]),
|
|
22666
|
+
}), [["__scopeId", "data-v-754085a3"]]), JO = ({ props: e, globalConfig: t }) => {
|
|
22551
22667
|
let n = B(null), r = s(() => e.formColumns.filter((e) => Object.hasOwn(e, "show") ? e.show : !0)), i = s(() => {
|
|
22552
22668
|
let t = {};
|
|
22553
22669
|
return e.formColumns.forEach((e) => {
|
|
@@ -22658,79 +22774,102 @@ var aO = {
|
|
|
22658
22774
|
});
|
|
22659
22775
|
}
|
|
22660
22776
|
};
|
|
22661
|
-
},
|
|
22662
|
-
key:
|
|
22777
|
+
}, YO = {
|
|
22778
|
+
key: 2,
|
|
22663
22779
|
class: "input-number-wrapper"
|
|
22664
|
-
},
|
|
22665
|
-
key:
|
|
22780
|
+
}, XO = {
|
|
22781
|
+
key: 2,
|
|
22666
22782
|
class: "unit"
|
|
22667
|
-
},
|
|
22668
|
-
key:
|
|
22783
|
+
}, ZO = {
|
|
22784
|
+
key: 7,
|
|
22669
22785
|
class: "time-select-wrapper"
|
|
22670
|
-
},
|
|
22786
|
+
}, QO = { key: 0 }, $O = /* @__PURE__ */ kO(/* @__PURE__ */ g({
|
|
22671
22787
|
__name: "RowForm",
|
|
22672
22788
|
props: LO,
|
|
22673
22789
|
setup(e, { expose: n }) {
|
|
22674
|
-
let r = e, {
|
|
22790
|
+
let r = e, { formProps: i, formRules: a, dateFormatComputed: o, timeFormatComputed: c, selectOptions: p, selectProps: g, cascaderOptions: _, radioOptions: v, handleInputPlaceholder: y, handleSelectPlaceholder: b, handleDatePickerPalceholder: x, handleDatePickerStartPlaceholder: S, handleDatePickerEndPlaceholder: C, handleDatePickerRangeSeparator: w, handleTimePickerStartPlaceholder: T, handleTimePickerEndPlaceholder: D, handleTimePickerRangeSeparator: k, handleSelectChange: j, handleCascaderChange: M, handleDatePickerChange: N, handleTimePickerChange: P, handleRadioGroupChange: F, handleSwitchChange: ee, efRef: I } = JO({
|
|
22675
22791
|
props: r,
|
|
22676
22792
|
globalConfig: oO(r)
|
|
22793
|
+
}), te = s(() => (e, t, n) => {
|
|
22794
|
+
if (!t?.length) return e;
|
|
22795
|
+
let r = n?.props?.value ?? i.value.dictProps.value, a = n?.props?.label ?? i.value.dictProps.label;
|
|
22796
|
+
return t.find((t) => t[r] === e)?.[a] ?? e;
|
|
22677
22797
|
});
|
|
22678
|
-
return n({ efRef:
|
|
22679
|
-
let r =
|
|
22680
|
-
return e.formMode === "rowForm" ? (L(), l(
|
|
22798
|
+
return n({ efRef: I }), (e, n) => {
|
|
22799
|
+
let r = WO, i = qO, s = rw, ne = BO, R = Tx, z = wC, re = Py, B = qD, ie = rx, oe = ix, se = rE, H = Cg, ce = Ax, le = kx, ue = Sg;
|
|
22800
|
+
return e.formMode === "rowForm" ? (L(), l(ue, {
|
|
22681
22801
|
key: 0,
|
|
22682
22802
|
ref_key: "efRef",
|
|
22683
|
-
ref:
|
|
22803
|
+
ref: I,
|
|
22684
22804
|
model: e.formModel,
|
|
22685
|
-
rules: e.disabled ? {} : W(
|
|
22805
|
+
rules: e.disabled ? {} : W(a),
|
|
22686
22806
|
"label-width": e.labelWidth,
|
|
22687
22807
|
"label-suffix": e.labelSuffix,
|
|
22688
22808
|
"label-position": e.labelPosition,
|
|
22689
22809
|
"validate-on-rule-change": !1,
|
|
22690
22810
|
disabled: e.disabled
|
|
22691
22811
|
}, {
|
|
22692
|
-
default: K(() => [h(
|
|
22693
|
-
default: K(() => [(L(!0), d(t, null, ae(e.formColumns, (
|
|
22694
|
-
key:
|
|
22695
|
-
span:
|
|
22812
|
+
default: K(() => [h(le, { gutter: e.rowGutter }, {
|
|
22813
|
+
default: K(() => [(L(!0), d(t, null, ae(e.formColumns, (a) => (L(), l(ce, {
|
|
22814
|
+
key: a.label,
|
|
22815
|
+
span: a.span || e.colSpan
|
|
22696
22816
|
}, {
|
|
22697
|
-
default: K(() => [!Object.hasOwn(
|
|
22817
|
+
default: K(() => [!Object.hasOwn(a, "show") || a.show ? (L(), l(H, {
|
|
22698
22818
|
key: 0,
|
|
22699
|
-
label:
|
|
22700
|
-
prop:
|
|
22701
|
-
"label-width":
|
|
22702
|
-
class: O(
|
|
22819
|
+
label: a.hideLabel ? "" : a.label,
|
|
22820
|
+
prop: a.prop,
|
|
22821
|
+
"label-width": a.labelWidth,
|
|
22822
|
+
class: O(a.formItemClass || "")
|
|
22703
22823
|
}, {
|
|
22704
|
-
default: K(() => [
|
|
22824
|
+
default: K(() => [a.slot ? V(e.$slots, typeof a.slot == "string" ? a.slot : a.prop, E({
|
|
22705
22825
|
key: 0,
|
|
22706
22826
|
ref_for: !0
|
|
22707
|
-
},
|
|
22708
|
-
|
|
22827
|
+
}, a), void 0, !0) : (L(), d(t, { key: 1 }, [
|
|
22828
|
+
a.renderConfig ? (L(), l(r, {
|
|
22829
|
+
key: 0,
|
|
22830
|
+
content: a.renderConfig.content ?? e.formModel[a.prop],
|
|
22831
|
+
class: O(a.renderConfig.class),
|
|
22832
|
+
style: A(a.renderConfig.style)
|
|
22833
|
+
}, null, 8, [
|
|
22834
|
+
"content",
|
|
22835
|
+
"class",
|
|
22836
|
+
"style"
|
|
22837
|
+
])) : u("", !0),
|
|
22838
|
+
a.inputConfig ? (L(), d(t, { key: 1 }, [a.inputConfig.useRender ? (L(), l(r, {
|
|
22709
22839
|
key: 0,
|
|
22710
|
-
|
|
22711
|
-
|
|
22712
|
-
|
|
22713
|
-
|
|
22714
|
-
"
|
|
22715
|
-
"
|
|
22716
|
-
|
|
22717
|
-
|
|
22718
|
-
|
|
22719
|
-
|
|
22720
|
-
|
|
22721
|
-
|
|
22722
|
-
|
|
22723
|
-
"
|
|
22724
|
-
|
|
22725
|
-
|
|
22726
|
-
|
|
22727
|
-
|
|
22728
|
-
|
|
22729
|
-
|
|
22730
|
-
|
|
22731
|
-
|
|
22732
|
-
|
|
22733
|
-
|
|
22840
|
+
content: e.formModel[a.prop],
|
|
22841
|
+
class: O(typeof a.inputConfig.useRender == "object" && a.inputConfig.useRender.class),
|
|
22842
|
+
style: A(typeof a.inputConfig.useRender == "object" && a.inputConfig.useRender.style)
|
|
22843
|
+
}, null, 8, [
|
|
22844
|
+
"content",
|
|
22845
|
+
"class",
|
|
22846
|
+
"style"
|
|
22847
|
+
])) : we((L(), l(i, {
|
|
22848
|
+
key: 1,
|
|
22849
|
+
modelValue: e.formModel[a.prop],
|
|
22850
|
+
"onUpdate:modelValue": (t) => e.formModel[a.prop] = t,
|
|
22851
|
+
type: a.inputConfig.type || "text",
|
|
22852
|
+
width: a.inputConfig.width ?? "100%",
|
|
22853
|
+
"prefix-icon": a.inputConfig.prefixIcon,
|
|
22854
|
+
"suffix-icon": a.inputConfig.suffixIcon,
|
|
22855
|
+
prefixContent: a.inputConfig.prefixContent,
|
|
22856
|
+
suffixContent: a.inputConfig.suffixContent,
|
|
22857
|
+
prependContent: a.inputConfig.prependContent,
|
|
22858
|
+
appendContent: a.inputConfig.appendContent,
|
|
22859
|
+
unit: a.inputConfig.unit,
|
|
22860
|
+
clearable: a.inputConfig.clearable || !0,
|
|
22861
|
+
maxlength: a.inputConfig.maxlength || void 0,
|
|
22862
|
+
"show-word-limit": !!a.inputConfig.maxlength,
|
|
22863
|
+
formatter: a.inputConfig.formatter,
|
|
22864
|
+
parser: a.inputConfig.parser,
|
|
22865
|
+
autosize: a.inputConfig.autosize || !1,
|
|
22866
|
+
rows: a.inputConfig.rows || 6,
|
|
22867
|
+
resize: a.inputConfig.resize || "none",
|
|
22868
|
+
"show-password": a.inputConfig.showPassword || !1,
|
|
22869
|
+
placeholder: W(y)(a),
|
|
22870
|
+
disabled: a.inputConfig.disabled || !1,
|
|
22871
|
+
onInput: Ee((e) => a.inputConfig?.onInput?.(e, a), ["self"]),
|
|
22872
|
+
onKeyup: Te(Ee((e) => a.inputConfig?.onKeyupEnter?.(e, a), ["self"]), ["enter"])
|
|
22734
22873
|
}, null, 8, [
|
|
22735
22874
|
"modelValue",
|
|
22736
22875
|
"onUpdate:modelValue",
|
|
@@ -22756,17 +22895,27 @@ var aO = {
|
|
|
22756
22895
|
"disabled",
|
|
22757
22896
|
"onInput",
|
|
22758
22897
|
"onKeyup"
|
|
22759
|
-
])), [[W(
|
|
22760
|
-
|
|
22761
|
-
|
|
22762
|
-
|
|
22763
|
-
|
|
22764
|
-
|
|
22765
|
-
|
|
22766
|
-
|
|
22767
|
-
"
|
|
22768
|
-
|
|
22769
|
-
|
|
22898
|
+
])), [[W(GO), a.inputConfig.autoFocus || !1]])], 64)) : u("", !0),
|
|
22899
|
+
a.inputNumberConfig ? (L(), d("div", YO, [a.inputNumberConfig.useRender ? (L(), l(r, {
|
|
22900
|
+
key: 0,
|
|
22901
|
+
content: e.formModel[a.prop],
|
|
22902
|
+
class: O(typeof a.inputNumberConfig.useRender == "object" && a.inputNumberConfig.useRender.class),
|
|
22903
|
+
style: A(typeof a.inputNumberConfig.useRender == "object" && a.inputNumberConfig.useRender.style)
|
|
22904
|
+
}, null, 8, [
|
|
22905
|
+
"content",
|
|
22906
|
+
"class",
|
|
22907
|
+
"style"
|
|
22908
|
+
])) : (L(), l(s, {
|
|
22909
|
+
key: 1,
|
|
22910
|
+
modelValue: e.formModel[a.prop],
|
|
22911
|
+
"onUpdate:modelValue": (t) => e.formModel[a.prop] = t,
|
|
22912
|
+
min: a.inputNumberConfig.min,
|
|
22913
|
+
max: a.inputNumberConfig.max,
|
|
22914
|
+
precision: a.inputNumberConfig.precision,
|
|
22915
|
+
step: a.inputNumberConfig.step,
|
|
22916
|
+
"disabled-scientific": a.inputNumberConfig.disabledScientific ?? !0,
|
|
22917
|
+
placeholder: a.inputNumberConfig.placeholder || "请选择",
|
|
22918
|
+
disabled: a.inputNumberConfig.disabled || !1
|
|
22770
22919
|
}, null, 8, [
|
|
22771
22920
|
"modelValue",
|
|
22772
22921
|
"onUpdate:modelValue",
|
|
@@ -22777,41 +22926,61 @@ var aO = {
|
|
|
22777
22926
|
"disabled-scientific",
|
|
22778
22927
|
"placeholder",
|
|
22779
22928
|
"disabled"
|
|
22780
|
-
]),
|
|
22781
|
-
|
|
22782
|
-
key:
|
|
22783
|
-
|
|
22784
|
-
|
|
22785
|
-
|
|
22786
|
-
|
|
22787
|
-
|
|
22788
|
-
|
|
22789
|
-
|
|
22790
|
-
|
|
22791
|
-
|
|
22929
|
+
])), a.inputNumberConfig.unit ? (L(), d("span", XO, [h(r, { content: a.inputNumberConfig.unit }, null, 8, ["content"])])) : u("", !0)])) : u("", !0),
|
|
22930
|
+
a.selectConfig ? (L(), d(t, { key: 3 }, [a.selectConfig.useRender ? (L(), l(r, {
|
|
22931
|
+
key: 0,
|
|
22932
|
+
content: te.value(e.formModel[a.prop], W(p)(a), a.selectConfig),
|
|
22933
|
+
class: O(typeof a.selectConfig.useRender == "object" && a.selectConfig.useRender.class),
|
|
22934
|
+
style: A(typeof a.selectConfig.useRender == "object" && a.selectConfig.useRender.style)
|
|
22935
|
+
}, null, 8, [
|
|
22936
|
+
"content",
|
|
22937
|
+
"class",
|
|
22938
|
+
"style"
|
|
22939
|
+
])) : (L(), l(ne, {
|
|
22940
|
+
key: 1,
|
|
22941
|
+
modelValue: e.formModel[a.prop],
|
|
22942
|
+
"onUpdate:modelValue": (t) => e.formModel[a.prop] = t,
|
|
22943
|
+
options: W(p)(a),
|
|
22944
|
+
defaultProps: W(g)(a),
|
|
22945
|
+
useV2: a.selectConfig.useV2 || !0,
|
|
22946
|
+
multiple: a.selectConfig.multiple || !1,
|
|
22947
|
+
clearable: a.selectConfig.clearable || !1,
|
|
22948
|
+
placeholder: W(b)(a),
|
|
22949
|
+
style: A({ width: a.selectConfig.width ?? "100%" }),
|
|
22950
|
+
disabled: a.selectConfig.disabled || !1,
|
|
22792
22951
|
"popper-style": "z-index:999999 !important",
|
|
22793
|
-
onChange: (e) => W(
|
|
22952
|
+
onChange: (e) => W(j)(e, a)
|
|
22794
22953
|
}, null, 8, [
|
|
22795
22954
|
"modelValue",
|
|
22796
22955
|
"onUpdate:modelValue",
|
|
22797
22956
|
"options",
|
|
22798
|
-
"
|
|
22957
|
+
"defaultProps",
|
|
22958
|
+
"useV2",
|
|
22799
22959
|
"multiple",
|
|
22800
22960
|
"clearable",
|
|
22801
22961
|
"placeholder",
|
|
22802
22962
|
"style",
|
|
22803
22963
|
"disabled",
|
|
22804
22964
|
"onChange"
|
|
22805
|
-
])) : u("", !0),
|
|
22806
|
-
|
|
22807
|
-
key:
|
|
22808
|
-
|
|
22809
|
-
|
|
22810
|
-
|
|
22811
|
-
|
|
22812
|
-
|
|
22813
|
-
|
|
22814
|
-
|
|
22965
|
+
]))], 64)) : u("", !0),
|
|
22966
|
+
a.cascaderConfig ? (L(), d(t, { key: 4 }, [a.cascaderConfig.useRender ? (L(), l(r, {
|
|
22967
|
+
key: 0,
|
|
22968
|
+
content: e.formModel[a.prop],
|
|
22969
|
+
class: O(typeof a.cascaderConfig.useRender == "object" && a.cascaderConfig.useRender.class),
|
|
22970
|
+
style: A(typeof a.cascaderConfig.useRender == "object" && a.cascaderConfig.useRender.style)
|
|
22971
|
+
}, null, 8, [
|
|
22972
|
+
"content",
|
|
22973
|
+
"class",
|
|
22974
|
+
"style"
|
|
22975
|
+
])) : (L(), l(R, {
|
|
22976
|
+
key: 1,
|
|
22977
|
+
modelValue: e.formModel[a.prop],
|
|
22978
|
+
"onUpdate:modelValue": (t) => e.formModel[a.prop] = t,
|
|
22979
|
+
options: W(_)(a),
|
|
22980
|
+
props: a.cascaderConfig?.props || {},
|
|
22981
|
+
disabled: a.cascaderConfig.disabled || !1,
|
|
22982
|
+
style: A({ width: a.cascaderConfig.width ?? "100%" }),
|
|
22983
|
+
onChange: (e) => W(M)(e, a)
|
|
22815
22984
|
}, null, 8, [
|
|
22816
22985
|
"modelValue",
|
|
22817
22986
|
"onUpdate:modelValue",
|
|
@@ -22820,20 +22989,28 @@ var aO = {
|
|
|
22820
22989
|
"disabled",
|
|
22821
22990
|
"style",
|
|
22822
22991
|
"onChange"
|
|
22823
|
-
])) : u("", !0),
|
|
22824
|
-
|
|
22825
|
-
key:
|
|
22826
|
-
|
|
22827
|
-
|
|
22828
|
-
|
|
22829
|
-
|
|
22830
|
-
"
|
|
22831
|
-
"
|
|
22832
|
-
"
|
|
22833
|
-
|
|
22834
|
-
|
|
22835
|
-
|
|
22836
|
-
|
|
22992
|
+
]))], 64)) : u("", !0),
|
|
22993
|
+
a.datePickerConfig ? (L(), d(t, { key: 5 }, [a.datePickerConfig.useRender ? (L(), l(r, {
|
|
22994
|
+
key: 0,
|
|
22995
|
+
content: e.formModel[a.prop],
|
|
22996
|
+
class: O(typeof a.datePickerConfig.useRender == "object" && a.datePickerConfig.useRender.class),
|
|
22997
|
+
style: A(typeof a.datePickerConfig.useRender == "object" && a.datePickerConfig.useRender.style)
|
|
22998
|
+
}, null, 8, [
|
|
22999
|
+
"content",
|
|
23000
|
+
"class",
|
|
23001
|
+
"style"
|
|
23002
|
+
])) : u("", !0), h(z, {
|
|
23003
|
+
modelValue: e.formModel[a.prop],
|
|
23004
|
+
"onUpdate:modelValue": (t) => e.formModel[a.prop] = t,
|
|
23005
|
+
type: a.datePickerConfig.type || "date",
|
|
23006
|
+
placeholder: W(x)(a),
|
|
23007
|
+
"start-placeholder": W(S)(a),
|
|
23008
|
+
"end-placeholder": W(C)(a),
|
|
23009
|
+
"range-separator": W(w)(a),
|
|
23010
|
+
format: W(o)(a.datePickerConfig),
|
|
23011
|
+
"value-format": W(o)(a.datePickerConfig),
|
|
23012
|
+
style: A({ width: a.datePickerConfig.width ?? "100%" }),
|
|
23013
|
+
onChange: (t) => W(N)(t, a, e.formModel)
|
|
22837
23014
|
}, null, 8, [
|
|
22838
23015
|
"modelValue",
|
|
22839
23016
|
"onUpdate:modelValue",
|
|
@@ -22846,19 +23023,27 @@ var aO = {
|
|
|
22846
23023
|
"value-format",
|
|
22847
23024
|
"style",
|
|
22848
23025
|
"onChange"
|
|
22849
|
-
])) : u("", !0),
|
|
22850
|
-
|
|
22851
|
-
key:
|
|
22852
|
-
|
|
22853
|
-
|
|
22854
|
-
|
|
22855
|
-
|
|
22856
|
-
"
|
|
22857
|
-
"
|
|
22858
|
-
"
|
|
22859
|
-
|
|
22860
|
-
|
|
22861
|
-
|
|
23026
|
+
])], 64)) : u("", !0),
|
|
23027
|
+
a.timePickerConfig ? (L(), d(t, { key: 6 }, [a.timePickerConfig.useRender ? (L(), l(r, {
|
|
23028
|
+
key: 0,
|
|
23029
|
+
content: e.formModel[a.prop],
|
|
23030
|
+
class: O(typeof a.timePickerConfig.useRender == "object" && a.timePickerConfig.useRender.class),
|
|
23031
|
+
style: A(typeof a.timePickerConfig.useRender == "object" && a.timePickerConfig.useRender.style)
|
|
23032
|
+
}, null, 8, [
|
|
23033
|
+
"content",
|
|
23034
|
+
"class",
|
|
23035
|
+
"style"
|
|
23036
|
+
])) : u("", !0), h(re, {
|
|
23037
|
+
modelValue: e.formModel[a.prop],
|
|
23038
|
+
"onUpdate:modelValue": (t) => e.formModel[a.prop] = t,
|
|
23039
|
+
"is-range": a.timePickerConfig.isRange || !0,
|
|
23040
|
+
editable: a.timePickerConfig.editable || !0,
|
|
23041
|
+
"range-separator": W(k)(a),
|
|
23042
|
+
"start-placeholder": W(T)(a),
|
|
23043
|
+
"end-placeholder": W(D)(a),
|
|
23044
|
+
format: W(c)(a.timePickerConfig),
|
|
23045
|
+
"value-format": W(c)(a.timePickerConfig),
|
|
23046
|
+
onChange: (t) => W(P)(t, a, e.formModel)
|
|
22862
23047
|
}, null, 8, [
|
|
22863
23048
|
"modelValue",
|
|
22864
23049
|
"onUpdate:modelValue",
|
|
@@ -22870,12 +23055,32 @@ var aO = {
|
|
|
22870
23055
|
"format",
|
|
22871
23056
|
"value-format",
|
|
22872
23057
|
"onChange"
|
|
22873
|
-
])) : u("", !0),
|
|
22874
|
-
|
|
22875
|
-
h(
|
|
22876
|
-
|
|
22877
|
-
|
|
22878
|
-
"
|
|
23058
|
+
])], 64)) : u("", !0),
|
|
23059
|
+
a.timeSelectConfig ? (L(), d("div", ZO, [a.timeSelectConfig.useRender ? (L(), d(t, { key: 0 }, [
|
|
23060
|
+
h(r, {
|
|
23061
|
+
content: e.formModel[a.timeSelectConfig.startProp],
|
|
23062
|
+
class: O(typeof a.timeSelectConfig.useRender == "object" && a.timeSelectConfig.useRender.class),
|
|
23063
|
+
style: A(typeof a.timeSelectConfig.useRender == "object" && a.timeSelectConfig.useRender.style)
|
|
23064
|
+
}, null, 8, [
|
|
23065
|
+
"content",
|
|
23066
|
+
"class",
|
|
23067
|
+
"style"
|
|
23068
|
+
]),
|
|
23069
|
+
n[0] ||= f("span", { class: "range-separator" }, "至", -1),
|
|
23070
|
+
h(r, {
|
|
23071
|
+
content: e.formModel[a.timeSelectConfig.endProp],
|
|
23072
|
+
class: O(typeof a.timeSelectConfig.useRender == "object" && a.timeSelectConfig.useRender.class),
|
|
23073
|
+
style: A(typeof a.timeSelectConfig.useRender == "object" && a.timeSelectConfig.useRender.style)
|
|
23074
|
+
}, null, 8, [
|
|
23075
|
+
"content",
|
|
23076
|
+
"class",
|
|
23077
|
+
"style"
|
|
23078
|
+
])
|
|
23079
|
+
], 64)) : (L(), d(t, { key: 1 }, [
|
|
23080
|
+
h(B, {
|
|
23081
|
+
modelValue: e.formModel[a.timeSelectConfig.startProp],
|
|
23082
|
+
"onUpdate:modelValue": (t) => e.formModel[a.timeSelectConfig.startProp] = t,
|
|
23083
|
+
"max-time": e.formModel[a.timeSelectConfig.endProp],
|
|
22879
23084
|
placeholder: "开始时间",
|
|
22880
23085
|
start: "00:00",
|
|
22881
23086
|
step: "00:30",
|
|
@@ -22885,11 +23090,11 @@ var aO = {
|
|
|
22885
23090
|
"onUpdate:modelValue",
|
|
22886
23091
|
"max-time"
|
|
22887
23092
|
]),
|
|
22888
|
-
n[
|
|
22889
|
-
h(
|
|
22890
|
-
modelValue: e.formModel[
|
|
22891
|
-
"onUpdate:modelValue": (t) => e.formModel[
|
|
22892
|
-
"min-time": e.formModel[
|
|
23093
|
+
n[1] ||= f("span", { class: "range-separator" }, "至", -1),
|
|
23094
|
+
h(B, {
|
|
23095
|
+
modelValue: e.formModel[a.timeSelectConfig.endProp],
|
|
23096
|
+
"onUpdate:modelValue": (t) => e.formModel[a.timeSelectConfig.endProp] = t,
|
|
23097
|
+
"min-time": e.formModel[a.timeSelectConfig.startProp],
|
|
22893
23098
|
placeholder: "结束时间",
|
|
22894
23099
|
start: "00:00",
|
|
22895
23100
|
step: "00:30",
|
|
@@ -22899,16 +23104,16 @@ var aO = {
|
|
|
22899
23104
|
"onUpdate:modelValue",
|
|
22900
23105
|
"min-time"
|
|
22901
23106
|
])
|
|
22902
|
-
])) : u("", !0),
|
|
22903
|
-
|
|
22904
|
-
key:
|
|
22905
|
-
modelValue: e.formModel[
|
|
22906
|
-
"onUpdate:modelValue": (t) => e.formModel[
|
|
22907
|
-
disabled:
|
|
22908
|
-
onChange: (e) => W(
|
|
23107
|
+
], 64))])) : u("", !0),
|
|
23108
|
+
a.radioConfig ? (L(), d(t, { key: 8 }, [a.radioConfig.useRender ? (L(), d("span", QO, U(e.formModel[a.prop]), 1)) : (L(), l(oe, {
|
|
23109
|
+
key: 1,
|
|
23110
|
+
modelValue: e.formModel[a.prop],
|
|
23111
|
+
"onUpdate:modelValue": (t) => e.formModel[a.prop] = t,
|
|
23112
|
+
disabled: a.radioConfig.disabled || !1,
|
|
23113
|
+
onChange: (e) => W(F)(e, a)
|
|
22909
23114
|
}, {
|
|
22910
|
-
default: K(() => [(L(!0), d(t, null, ae(W(
|
|
22911
|
-
default: K(() => [m(U(e[
|
|
23115
|
+
default: K(() => [(L(!0), d(t, null, ae(W(v)(a), (e) => (L(), l(ie, { value: e.value }, {
|
|
23116
|
+
default: K(() => [m(U(e[a.radioConfig?.props?.label || "label"]), 1)]),
|
|
22912
23117
|
_: 2
|
|
22913
23118
|
}, 1032, ["value"]))), 256))]),
|
|
22914
23119
|
_: 2
|
|
@@ -22917,15 +23122,24 @@ var aO = {
|
|
|
22917
23122
|
"onUpdate:modelValue",
|
|
22918
23123
|
"disabled",
|
|
22919
23124
|
"onChange"
|
|
22920
|
-
])) : u("", !0),
|
|
22921
|
-
|
|
22922
|
-
key:
|
|
22923
|
-
|
|
22924
|
-
|
|
22925
|
-
|
|
22926
|
-
|
|
22927
|
-
|
|
22928
|
-
|
|
23125
|
+
]))], 64)) : u("", !0),
|
|
23126
|
+
a.switchConfig ? (L(), d(t, { key: 9 }, [a.switchConfig.useRender ? (L(), l(r, {
|
|
23127
|
+
key: 0,
|
|
23128
|
+
content: e.formModel[a.prop],
|
|
23129
|
+
class: O(typeof a.switchConfig.useRender == "object" && a.switchConfig.useRender.class),
|
|
23130
|
+
style: A(typeof a.switchConfig.useRender == "object" && a.switchConfig.useRender.style)
|
|
23131
|
+
}, null, 8, [
|
|
23132
|
+
"content",
|
|
23133
|
+
"class",
|
|
23134
|
+
"style"
|
|
23135
|
+
])) : (L(), l(se, {
|
|
23136
|
+
key: 1,
|
|
23137
|
+
modelValue: e.formModel[a.prop],
|
|
23138
|
+
"onUpdate:modelValue": (t) => e.formModel[a.prop] = t,
|
|
23139
|
+
"active-value": a.switchConfig.activeValue ?? !0,
|
|
23140
|
+
"inactive-value": a.switchConfig.inactiveValue ?? !1,
|
|
23141
|
+
disabled: a.switchConfig.disabled || !1,
|
|
23142
|
+
onChange: (e) => W(ee)(e, a)
|
|
22929
23143
|
}, null, 8, [
|
|
22930
23144
|
"modelValue",
|
|
22931
23145
|
"onUpdate:modelValue",
|
|
@@ -22933,7 +23147,7 @@ var aO = {
|
|
|
22933
23147
|
"inactive-value",
|
|
22934
23148
|
"disabled",
|
|
22935
23149
|
"onChange"
|
|
22936
|
-
])) : u("", !0)
|
|
23150
|
+
]))], 64)) : u("", !0)
|
|
22937
23151
|
], 64))]),
|
|
22938
23152
|
_: 2
|
|
22939
23153
|
}, 1032, [
|
|
@@ -22957,7 +23171,7 @@ var aO = {
|
|
|
22957
23171
|
])) : u("", !0);
|
|
22958
23172
|
};
|
|
22959
23173
|
}
|
|
22960
|
-
}), [["__scopeId", "data-v-
|
|
23174
|
+
}), [["__scopeId", "data-v-690bb119"]]), ek = { class: "btn-wrapper" }, tk = /* @__PURE__ */ kO(/* @__PURE__ */ g({
|
|
22961
23175
|
__name: "InlineForm",
|
|
22962
23176
|
props: LO,
|
|
22963
23177
|
emits: ["onQuery"],
|
|
@@ -22970,7 +23184,7 @@ var aO = {
|
|
|
22970
23184
|
}, !0);
|
|
22971
23185
|
});
|
|
22972
23186
|
});
|
|
22973
|
-
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: O, handleCascaderChange: k } =
|
|
23187
|
+
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: O, handleCascaderChange: k } = JO({
|
|
22974
23188
|
props: i,
|
|
22975
23189
|
globalConfig: oO(i)
|
|
22976
23190
|
}), j = async () => {
|
|
@@ -22993,7 +23207,7 @@ var aO = {
|
|
|
22993
23207
|
} else setTimeout(() => window.dispatchEvent(new Event("resize")), 300);
|
|
22994
23208
|
}
|
|
22995
23209
|
}), (e, n) => {
|
|
22996
|
-
let r =
|
|
23210
|
+
let r = qO, i = JT, a = Tx, s = wC, x = Cg, D = Sg, F = Kv, ee = jx;
|
|
22997
23211
|
return L(), l(ee, null, {
|
|
22998
23212
|
default: K(() => [we(f("div", {
|
|
22999
23213
|
ref_key: "ifRef",
|
|
@@ -23113,7 +23327,7 @@ var aO = {
|
|
|
23113
23327
|
_: 2
|
|
23114
23328
|
}, 1032, ["label"]))), 128))]),
|
|
23115
23329
|
_: 1
|
|
23116
|
-
}, 8, ["model", "label-suffix"]), f("div",
|
|
23330
|
+
}, 8, ["model", "label-suffix"]), f("div", ek, [
|
|
23117
23331
|
h(F, {
|
|
23118
23332
|
type: "primary",
|
|
23119
23333
|
loading: e.queryLoading,
|
|
@@ -23132,18 +23346,22 @@ var aO = {
|
|
|
23132
23346
|
});
|
|
23133
23347
|
};
|
|
23134
23348
|
}
|
|
23135
|
-
}), [["__scopeId", "data-v-76516626"]]),
|
|
23349
|
+
}), [["__scopeId", "data-v-76516626"]]), nk = { class: "wyfe-ivue__use-el-form" }, rk = /* @__PURE__ */ g({
|
|
23136
23350
|
__name: "index",
|
|
23137
23351
|
props: LO,
|
|
23138
23352
|
setup(e, { expose: t }) {
|
|
23139
23353
|
let n = e, r = _e(), i = B(null);
|
|
23140
|
-
return
|
|
23354
|
+
return G(() => n.formColumns, (e) => {
|
|
23355
|
+
e?.length && e.filter((e) => e.prop).forEach((e) => {
|
|
23356
|
+
n.formModel[e.prop] = n.formModel[e.prop] ?? "";
|
|
23357
|
+
});
|
|
23358
|
+
}, { immediate: !0 }), t({
|
|
23141
23359
|
validate: s(() => i.value?.efRef?.validate),
|
|
23142
23360
|
resetFields: s(() => i.value?.efRef?.resetFields),
|
|
23143
23361
|
clearValidate: s(() => i.value?.efRef?.clearValidate),
|
|
23144
23362
|
showInlineForm: s(() => i.value?.showInlineForm),
|
|
23145
23363
|
handleInlineFormDisplay: s(() => i.value?.handleInlineFormDisplay)
|
|
23146
|
-
}), (e, t) => (L(), d("div",
|
|
23364
|
+
}), (e, t) => (L(), d("div", nk, [(L(), l(H(e.formMode === "rowForm" ? $O : tk), E({
|
|
23147
23365
|
ref_key: "componentRef",
|
|
23148
23366
|
ref: i
|
|
23149
23367
|
}, n), p({ _: 2 }, [ae(W(r), (t, n) => ({
|
|
@@ -23151,7 +23369,7 @@ var aO = {
|
|
|
23151
23369
|
fn: K((t) => [V(e.$slots, n, k(y(t)))])
|
|
23152
23370
|
}))]), 1040))]));
|
|
23153
23371
|
}
|
|
23154
|
-
}),
|
|
23372
|
+
}), ik = {
|
|
23155
23373
|
configs: {
|
|
23156
23374
|
type: Array,
|
|
23157
23375
|
required: !0
|
|
@@ -23164,12 +23382,12 @@ var aO = {
|
|
|
23164
23382
|
type: Boolean,
|
|
23165
23383
|
default: !1
|
|
23166
23384
|
}
|
|
23167
|
-
},
|
|
23385
|
+
}, ak = (e) => e.map((e) => {
|
|
23168
23386
|
let t = { ...e }, n = Object.keys(t), r = !1;
|
|
23169
23387
|
return n.forEach((e) => {
|
|
23170
23388
|
e.endsWith("Config") && e !== "extConfig" && (r = !0);
|
|
23171
23389
|
}), r ? t : null;
|
|
23172
|
-
}).filter((e) => e !== null),
|
|
23390
|
+
}).filter((e) => e !== null), ok = (e) => {
|
|
23173
23391
|
let t = [...e].filter((e) => !e.onlySearch), n = /* @__PURE__ */ new Map();
|
|
23174
23392
|
t.forEach((e, t) => {
|
|
23175
23393
|
let r = Number(e?.tableOrder ?? t + 1);
|
|
@@ -23180,24 +23398,24 @@ var aO = {
|
|
|
23180
23398
|
item: e,
|
|
23181
23399
|
_order: Number(e?.tableOrder ?? t + 1)
|
|
23182
23400
|
})).sort((e, t) => e._order - t._order).map(({ item: e }) => e);
|
|
23183
|
-
},
|
|
23401
|
+
}, sk = { class: "wyfe-ivue__use-crud-table" }, ck = /* @__PURE__ */ kO(/* @__PURE__ */ g({
|
|
23184
23402
|
__name: "index",
|
|
23185
|
-
props:
|
|
23403
|
+
props: ik,
|
|
23186
23404
|
setup(e, { expose: t }) {
|
|
23187
23405
|
let n = e, r = _e(), i = B({
|
|
23188
23406
|
formColumns: [],
|
|
23189
23407
|
tableColumns: []
|
|
23190
23408
|
});
|
|
23191
23409
|
G(() => n.configs, (e) => {
|
|
23192
|
-
i.value.formColumns =
|
|
23410
|
+
i.value.formColumns = ak(e), i.value.tableColumns = ok(e);
|
|
23193
23411
|
}, {
|
|
23194
23412
|
immediate: !0,
|
|
23195
23413
|
deep: !0
|
|
23196
23414
|
});
|
|
23197
23415
|
let a = B(null);
|
|
23198
23416
|
return t({ uefRef: a }), (e, t) => {
|
|
23199
|
-
let n =
|
|
23200
|
-
return L(), d("div",
|
|
23417
|
+
let n = rk, o = IO;
|
|
23418
|
+
return L(), d("div", sk, [
|
|
23201
23419
|
h(n, E({
|
|
23202
23420
|
ref_key: "uefRef",
|
|
23203
23421
|
ref: a,
|
|
@@ -23215,7 +23433,7 @@ var aO = {
|
|
|
23215
23433
|
]);
|
|
23216
23434
|
};
|
|
23217
23435
|
}
|
|
23218
|
-
}), [["__scopeId", "data-v-f0f2c900"]]),
|
|
23436
|
+
}), [["__scopeId", "data-v-f0f2c900"]]), lk = {
|
|
23219
23437
|
btnText: {
|
|
23220
23438
|
type: String,
|
|
23221
23439
|
required: !0
|
|
@@ -23237,7 +23455,7 @@ var aO = {
|
|
|
23237
23455
|
type: Object,
|
|
23238
23456
|
default: () => ({})
|
|
23239
23457
|
}
|
|
23240
|
-
},
|
|
23458
|
+
}, uk = {
|
|
23241
23459
|
debounce: {
|
|
23242
23460
|
delay: 500,
|
|
23243
23461
|
immediate: !1
|
|
@@ -23250,8 +23468,8 @@ var aO = {
|
|
|
23250
23468
|
title: "删除提示",
|
|
23251
23469
|
content: "确定将选择数据删除?"
|
|
23252
23470
|
}
|
|
23253
|
-
},
|
|
23254
|
-
let r = s(() => cO(
|
|
23471
|
+
}, dk = ({ props: e, emits: t, attrs: n }) => {
|
|
23472
|
+
let r = s(() => cO(uk, e.extConfig)), i = hO(async () => {
|
|
23255
23473
|
let { data: e, title: n, content: i, dataKey: a, toArray: o, appendS: s } = r.value.confirm;
|
|
23256
23474
|
if (!mO(e)) {
|
|
23257
23475
|
De.warning("extConfig.confirm.data类型必须为Array、Object、String或Number");
|
|
@@ -23296,12 +23514,12 @@ var aO = {
|
|
|
23296
23514
|
n.onClick || (o.value ? i() : a());
|
|
23297
23515
|
}
|
|
23298
23516
|
};
|
|
23299
|
-
},
|
|
23517
|
+
}, fk = /* @__PURE__ */ kO(/* @__PURE__ */ g({
|
|
23300
23518
|
__name: "index",
|
|
23301
|
-
props:
|
|
23519
|
+
props: lk,
|
|
23302
23520
|
emits: ["onClick"],
|
|
23303
23521
|
setup(e, { emit: t }) {
|
|
23304
|
-
let { isConfirm: n, mergedExtConfig: r, handleElButton: i } =
|
|
23522
|
+
let { isConfirm: n, mergedExtConfig: r, handleElButton: i } = dk({
|
|
23305
23523
|
props: e,
|
|
23306
23524
|
emits: t,
|
|
23307
23525
|
attrs: he()
|
|
@@ -23324,7 +23542,105 @@ var aO = {
|
|
|
23324
23542
|
}, 8, ["type", "onClick"]);
|
|
23325
23543
|
};
|
|
23326
23544
|
}
|
|
23327
|
-
}), [["__scopeId", "data-v-5f981ffd"]]),
|
|
23545
|
+
}), [["__scopeId", "data-v-5f981ffd"]]), pk = {
|
|
23546
|
+
modelValue: {
|
|
23547
|
+
type: [Array, String],
|
|
23548
|
+
default: () => []
|
|
23549
|
+
},
|
|
23550
|
+
data: {
|
|
23551
|
+
type: Array,
|
|
23552
|
+
required: !0
|
|
23553
|
+
},
|
|
23554
|
+
defaultProps: {
|
|
23555
|
+
type: Object,
|
|
23556
|
+
default: () => ({
|
|
23557
|
+
label: "label",
|
|
23558
|
+
value: "value"
|
|
23559
|
+
})
|
|
23560
|
+
},
|
|
23561
|
+
showCheckAll: {
|
|
23562
|
+
type: Boolean,
|
|
23563
|
+
default: !1
|
|
23564
|
+
},
|
|
23565
|
+
vertical: {
|
|
23566
|
+
type: Boolean,
|
|
23567
|
+
default: !1
|
|
23568
|
+
},
|
|
23569
|
+
isJoin: {
|
|
23570
|
+
type: Boolean,
|
|
23571
|
+
default: !1
|
|
23572
|
+
}
|
|
23573
|
+
}, mk = (e, t) => {
|
|
23574
|
+
let n = s(() => pO(e.data) ? e.data : e.data.map((e) => ({
|
|
23575
|
+
label: e,
|
|
23576
|
+
value: e
|
|
23577
|
+
}))), r = s({
|
|
23578
|
+
get: () => {
|
|
23579
|
+
if (Array.isArray(e.modelValue)) return e.modelValue;
|
|
23580
|
+
{
|
|
23581
|
+
let t = e.modelValue.split(",").filter((e) => e !== "");
|
|
23582
|
+
return typeof n.value?.[0]?.[e.defaultProps.value] == "number" ? t.map(Number) : t;
|
|
23583
|
+
}
|
|
23584
|
+
},
|
|
23585
|
+
set: (n) => {
|
|
23586
|
+
t("update:modelValue", e.isJoin ? n.join() : n);
|
|
23587
|
+
}
|
|
23588
|
+
}), i = B(!1), a = B(!1);
|
|
23589
|
+
return {
|
|
23590
|
+
dataComputed: n,
|
|
23591
|
+
checkedItems: r,
|
|
23592
|
+
isIndeterminate: i,
|
|
23593
|
+
checkAll: a,
|
|
23594
|
+
handleCheckAllChange: (t) => {
|
|
23595
|
+
let a = n.value.map((t) => t[e.defaultProps.value]);
|
|
23596
|
+
r.value = t ? a : [], i.value = !1;
|
|
23597
|
+
},
|
|
23598
|
+
handleCheckedItemsChange: (e) => {
|
|
23599
|
+
let t = e.length;
|
|
23600
|
+
a.value = t === n.value.length, i.value = t > 0 && t < n.value.length;
|
|
23601
|
+
}
|
|
23602
|
+
};
|
|
23603
|
+
}, hk = /* @__PURE__ */ kO(/* @__PURE__ */ g({
|
|
23604
|
+
__name: "index",
|
|
23605
|
+
props: pk,
|
|
23606
|
+
emits: ["update:modelValue"],
|
|
23607
|
+
setup(e, { emit: n }) {
|
|
23608
|
+
let { dataComputed: r, checkedItems: i, isIndeterminate: a, checkAll: o, handleCheckAllChange: s, handleCheckedItemsChange: c } = mk(e, n);
|
|
23609
|
+
return (e, n) => {
|
|
23610
|
+
let f = Bb, p = Vb;
|
|
23611
|
+
return L(), d(t, null, [e.showCheckAll ? (L(), l(f, {
|
|
23612
|
+
key: 0,
|
|
23613
|
+
modelValue: W(o),
|
|
23614
|
+
"onUpdate:modelValue": n[0] ||= (e) => S(o) ? o.value = e : null,
|
|
23615
|
+
indeterminate: W(a),
|
|
23616
|
+
onChange: W(s)
|
|
23617
|
+
}, {
|
|
23618
|
+
default: K(() => [...n[2] ||= [m(" 全选 ", -1)]]),
|
|
23619
|
+
_: 1
|
|
23620
|
+
}, 8, [
|
|
23621
|
+
"modelValue",
|
|
23622
|
+
"indeterminate",
|
|
23623
|
+
"onChange"
|
|
23624
|
+
])) : u("", !0), h(p, {
|
|
23625
|
+
modelValue: W(i),
|
|
23626
|
+
"onUpdate:modelValue": n[1] ||= (e) => S(i) ? i.value = e : null,
|
|
23627
|
+
onChange: W(c)
|
|
23628
|
+
}, {
|
|
23629
|
+
default: K(() => [(L(!0), d(t, null, ae(W(r), (t) => (L(), l(f, {
|
|
23630
|
+
class: O({ vertical: e.vertical }),
|
|
23631
|
+
key: t[e.defaultProps.value],
|
|
23632
|
+
label: t[e.defaultProps.label],
|
|
23633
|
+
value: t[e.defaultProps.value]
|
|
23634
|
+
}, null, 8, [
|
|
23635
|
+
"class",
|
|
23636
|
+
"label",
|
|
23637
|
+
"value"
|
|
23638
|
+
]))), 128))]),
|
|
23639
|
+
_: 1
|
|
23640
|
+
}, 8, ["modelValue", "onChange"])], 64);
|
|
23641
|
+
};
|
|
23642
|
+
}
|
|
23643
|
+
}), [["__scopeId", "data-v-a03662ef"]]), gk = {
|
|
23328
23644
|
name: "zh-cn",
|
|
23329
23645
|
el: {
|
|
23330
23646
|
breadcrumb: { label: "面包屑" },
|
|
@@ -23499,7 +23815,7 @@ var aO = {
|
|
|
23499
23815
|
indicator: "幻灯片切换至索引 {index}"
|
|
23500
23816
|
}
|
|
23501
23817
|
}
|
|
23502
|
-
},
|
|
23818
|
+
}, _k = /* @__PURE__ */ g({
|
|
23503
23819
|
__name: "index",
|
|
23504
23820
|
props: /* @__PURE__ */ T({
|
|
23505
23821
|
language: {},
|
|
@@ -23524,13 +23840,13 @@ var aO = {
|
|
|
23524
23840
|
setup(e) {
|
|
23525
23841
|
return R("wyfe-ivue__UseElConfigProvider_key", e), (t, n) => {
|
|
23526
23842
|
let r = lv;
|
|
23527
|
-
return L(), l(r, { locale: e.language === "en" ? W(ud) : W(
|
|
23843
|
+
return L(), l(r, { locale: e.language === "en" ? W(ud) : W(gk) }, {
|
|
23528
23844
|
default: K(() => [V(t.$slots, "default")]),
|
|
23529
23845
|
_: 3
|
|
23530
23846
|
}, 8, ["locale"]);
|
|
23531
23847
|
};
|
|
23532
23848
|
}
|
|
23533
|
-
}),
|
|
23849
|
+
}), vk = {
|
|
23534
23850
|
title: {
|
|
23535
23851
|
type: String,
|
|
23536
23852
|
default: "欢迎使用wyfe-ivue对话框组件"
|
|
@@ -23621,7 +23937,7 @@ var aO = {
|
|
|
23621
23937
|
type: Function,
|
|
23622
23938
|
default: () => {}
|
|
23623
23939
|
}
|
|
23624
|
-
},
|
|
23940
|
+
}, yk = (e) => {
|
|
23625
23941
|
let t = B(null), n = s(() => t.value?.handleClose), r = B(!1), i = s(() => r.value ? km : Mm), a = () => {
|
|
23626
23942
|
r.value = !r.value;
|
|
23627
23943
|
}, o = !1;
|
|
@@ -23656,16 +23972,16 @@ var aO = {
|
|
|
23656
23972
|
o = !0, e?.();
|
|
23657
23973
|
}
|
|
23658
23974
|
};
|
|
23659
|
-
},
|
|
23975
|
+
}, bk = { key: 1 }, xk = /* @__PURE__ */ g({
|
|
23660
23976
|
__name: "index",
|
|
23661
|
-
props:
|
|
23977
|
+
props: vk,
|
|
23662
23978
|
setup(e, { expose: n }) {
|
|
23663
|
-
let r = e, i = _e(), { edRef: a, handleClose: o, isFullScreen: s, iconComponent: c, handleFullScreen: f, handleClosed: m, handleClick: g } =
|
|
23979
|
+
let r = e, i = _e(), { edRef: a, handleClose: o, isFullScreen: s, iconComponent: c, handleFullScreen: f, handleClosed: m, handleClick: g } = yk(r);
|
|
23664
23980
|
return n({
|
|
23665
23981
|
edRef: a,
|
|
23666
23982
|
handleClose: o
|
|
23667
23983
|
}), (e, n) => {
|
|
23668
|
-
let r = Q, o = Q_, _ =
|
|
23984
|
+
let r = Q, o = Q_, _ = fk, v = WC;
|
|
23669
23985
|
return L(), l(v, {
|
|
23670
23986
|
ref_key: "edRef",
|
|
23671
23987
|
ref: a,
|
|
@@ -23679,7 +23995,7 @@ var aO = {
|
|
|
23679
23995
|
"destroy-on-close": e.destroyOnClose,
|
|
23680
23996
|
onClosed: W(m)
|
|
23681
23997
|
}, p({
|
|
23682
|
-
header: K(() => [W(i).header ? V(e.$slots, "header", { key: 0 }) : (L(), d("span",
|
|
23998
|
+
header: K(() => [W(i).header ? V(e.$slots, "header", { key: 0 }) : (L(), d("span", bk, U(e.title), 1)), e.showFullScreenIcon ? (L(), l(r, {
|
|
23683
23999
|
key: 2,
|
|
23684
24000
|
class: "wyfe-ivue__full-screen",
|
|
23685
24001
|
onClick: W(f)
|
|
@@ -23719,7 +24035,7 @@ var aO = {
|
|
|
23719
24035
|
]);
|
|
23720
24036
|
};
|
|
23721
24037
|
}
|
|
23722
|
-
}),
|
|
24038
|
+
}), Sk = {
|
|
23723
24039
|
title: {
|
|
23724
24040
|
type: String,
|
|
23725
24041
|
default: "欢迎使用wyfe-ivue抽屉组件"
|
|
@@ -23799,7 +24115,7 @@ var aO = {
|
|
|
23799
24115
|
type: Function,
|
|
23800
24116
|
default: () => {}
|
|
23801
24117
|
}
|
|
23802
|
-
},
|
|
24118
|
+
}, Ck = (e) => {
|
|
23803
24119
|
let t = B(null), n = s(() => t.value?.handleClose), r = B(!1), i = s(() => r.value ? "100%" : e.size), a = s(() => r.value ? km : Mm), o = () => {
|
|
23804
24120
|
r.value = !r.value;
|
|
23805
24121
|
}, c = !1;
|
|
@@ -23826,16 +24142,16 @@ var aO = {
|
|
|
23826
24142
|
c = !0, e?.();
|
|
23827
24143
|
}
|
|
23828
24144
|
};
|
|
23829
|
-
},
|
|
24145
|
+
}, wk = { class: "wyfe-ivue__header" }, Tk = /* @__PURE__ */ g({
|
|
23830
24146
|
__name: "index",
|
|
23831
|
-
props:
|
|
24147
|
+
props: Sk,
|
|
23832
24148
|
setup(e, { expose: n }) {
|
|
23833
|
-
let { edRef: r, handleClose: i, drawerSize: a, iconComponent: o, handleFullScreen: s, handleClosed: c, handleClick: m } =
|
|
24149
|
+
let { edRef: r, handleClose: i, drawerSize: a, iconComponent: o, handleFullScreen: s, handleClosed: c, handleClick: m } = Ck(e);
|
|
23834
24150
|
return n({
|
|
23835
24151
|
edRef: r,
|
|
23836
24152
|
handleClose: i
|
|
23837
24153
|
}), (e, n) => {
|
|
23838
|
-
let i = Q, g = Q_, _ =
|
|
24154
|
+
let i = Q, g = Q_, _ = fk, v = QC;
|
|
23839
24155
|
return L(), l(v, {
|
|
23840
24156
|
ref_key: "edRef",
|
|
23841
24157
|
ref: r,
|
|
@@ -23848,7 +24164,7 @@ var aO = {
|
|
|
23848
24164
|
"close-on-click-modal": e.closeOnClickModal,
|
|
23849
24165
|
onClosed: W(c)
|
|
23850
24166
|
}, p({
|
|
23851
|
-
header: K(() => [f("div",
|
|
24167
|
+
header: K(() => [f("div", wk, [V(e.$slots, "header")]), e.showFullScreenIcon ? (L(), l(i, {
|
|
23852
24168
|
key: 0,
|
|
23853
24169
|
class: "wyfe-ivue__full-screen",
|
|
23854
24170
|
onClick: W(s)
|
|
@@ -23884,105 +24200,57 @@ var aO = {
|
|
|
23884
24200
|
]);
|
|
23885
24201
|
};
|
|
23886
24202
|
}
|
|
23887
|
-
}),
|
|
23888
|
-
modelValue: {
|
|
23889
|
-
type: [
|
|
23890
|
-
String,
|
|
23891
|
-
Number,
|
|
23892
|
-
Array
|
|
23893
|
-
],
|
|
23894
|
-
default: ""
|
|
23895
|
-
},
|
|
23896
|
-
options: {
|
|
23897
|
-
type: Array,
|
|
23898
|
-
default: () => []
|
|
23899
|
-
},
|
|
23900
|
-
useV2: {
|
|
23901
|
-
type: Boolean,
|
|
23902
|
-
default: !0
|
|
23903
|
-
},
|
|
23904
|
-
isJoin: {
|
|
23905
|
-
type: Boolean,
|
|
23906
|
-
default: !1
|
|
23907
|
-
},
|
|
23908
|
-
placeholder: {
|
|
23909
|
-
type: String,
|
|
23910
|
-
default: "请选择"
|
|
23911
|
-
},
|
|
23912
|
-
width: {
|
|
23913
|
-
type: String,
|
|
23914
|
-
default: "100%"
|
|
23915
|
-
},
|
|
23916
|
-
defaultProps: {
|
|
23917
|
-
type: Object,
|
|
23918
|
-
default: () => ({
|
|
23919
|
-
label: "label",
|
|
23920
|
-
value: "value"
|
|
23921
|
-
})
|
|
23922
|
-
}
|
|
23923
|
-
}, yk = ({ props: e, emits: t }) => {
|
|
23924
|
-
let n = s(() => {
|
|
23925
|
-
let t = e.options?.[0];
|
|
23926
|
-
if (!t) return "string";
|
|
23927
|
-
let { value: n } = e.defaultProps;
|
|
23928
|
-
return typeof t[n];
|
|
23929
|
-
});
|
|
23930
|
-
return {
|
|
23931
|
-
modelValue: s(() => {
|
|
23932
|
-
let t = e.modelValue;
|
|
23933
|
-
return e.isJoin && typeof t == "string" ? t.split(",").filter(Boolean).map((e) => n.value === "number" ? Number(e) : e) : t;
|
|
23934
|
-
}),
|
|
23935
|
-
handleSelectChange: (n) => {
|
|
23936
|
-
let { value: r, label: i } = e.defaultProps, a = Array.isArray(n), o = (t) => e.options.find((e) => e[r] === t)?.[i] ?? "", s = a && e.isJoin ? n.join() : n, c = a ? n.map(o).filter(Boolean) : [o(n)], l = e.isJoin ? c.join() : a ? c : c[0];
|
|
23937
|
-
t("update:modelValue", s), t("update:label", l);
|
|
23938
|
-
}
|
|
23939
|
-
};
|
|
23940
|
-
}, bk = /* @__PURE__ */ g({
|
|
24203
|
+
}), Ek = /* @__PURE__ */ g({
|
|
23941
24204
|
__name: "index",
|
|
23942
|
-
props:
|
|
23943
|
-
|
|
23944
|
-
|
|
23945
|
-
|
|
23946
|
-
|
|
23947
|
-
|
|
23948
|
-
|
|
23949
|
-
|
|
23950
|
-
|
|
23951
|
-
|
|
23952
|
-
|
|
23953
|
-
|
|
23954
|
-
|
|
23955
|
-
|
|
23956
|
-
|
|
23957
|
-
|
|
24205
|
+
props: {
|
|
24206
|
+
activeValue: {
|
|
24207
|
+
type: [
|
|
24208
|
+
Number,
|
|
24209
|
+
String,
|
|
24210
|
+
Boolean
|
|
24211
|
+
],
|
|
24212
|
+
default: 1
|
|
24213
|
+
},
|
|
24214
|
+
inactiveValue: {
|
|
24215
|
+
type: [
|
|
24216
|
+
Number,
|
|
24217
|
+
String,
|
|
24218
|
+
Boolean
|
|
24219
|
+
],
|
|
24220
|
+
default: 0
|
|
24221
|
+
},
|
|
24222
|
+
activeText: {
|
|
24223
|
+
type: String,
|
|
24224
|
+
default: "启用"
|
|
24225
|
+
},
|
|
24226
|
+
inactiveText: {
|
|
24227
|
+
type: String,
|
|
24228
|
+
default: "禁用"
|
|
24229
|
+
},
|
|
24230
|
+
inlinePrompt: {
|
|
24231
|
+
type: Boolean,
|
|
24232
|
+
default: !0
|
|
24233
|
+
}
|
|
24234
|
+
},
|
|
24235
|
+
setup(e) {
|
|
24236
|
+
return (e, t) => {
|
|
24237
|
+
let n = rE;
|
|
24238
|
+
return L(), l(n, {
|
|
24239
|
+
"active-value": e.activeValue,
|
|
24240
|
+
"inactive-value": e.inactiveValue,
|
|
24241
|
+
"active-text": e.activeText,
|
|
24242
|
+
"inactive-text": e.inactiveText,
|
|
24243
|
+
"inline-prompt": e.inlinePrompt
|
|
23958
24244
|
}, null, 8, [
|
|
23959
|
-
"
|
|
23960
|
-
"
|
|
23961
|
-
"
|
|
23962
|
-
"
|
|
23963
|
-
"
|
|
23964
|
-
])
|
|
23965
|
-
key: 1,
|
|
23966
|
-
"model-value": W(r),
|
|
23967
|
-
placeholder: e.placeholder,
|
|
23968
|
-
style: A({ width: e.width }),
|
|
23969
|
-
onChange: W(i)
|
|
23970
|
-
}, {
|
|
23971
|
-
default: K(() => [(L(!0), d(t, null, ae(e.options, (t) => (L(), l(o, {
|
|
23972
|
-
key: t[e.defaultProps.value],
|
|
23973
|
-
label: t[e.defaultProps.label],
|
|
23974
|
-
value: t[e.defaultProps.value]
|
|
23975
|
-
}, null, 8, ["label", "value"]))), 128))]),
|
|
23976
|
-
_: 1
|
|
23977
|
-
}, 8, [
|
|
23978
|
-
"model-value",
|
|
23979
|
-
"placeholder",
|
|
23980
|
-
"style",
|
|
23981
|
-
"onChange"
|
|
23982
|
-
]));
|
|
24245
|
+
"active-value",
|
|
24246
|
+
"inactive-value",
|
|
24247
|
+
"active-text",
|
|
24248
|
+
"inactive-text",
|
|
24249
|
+
"inline-prompt"
|
|
24250
|
+
]);
|
|
23983
24251
|
};
|
|
23984
24252
|
}
|
|
23985
|
-
}),
|
|
24253
|
+
}), Dk = {
|
|
23986
24254
|
title: {
|
|
23987
24255
|
type: String,
|
|
23988
24256
|
required: !0
|
|
@@ -24024,15 +24292,15 @@ var aO = {
|
|
|
24024
24292
|
type: String,
|
|
24025
24293
|
default: "10px"
|
|
24026
24294
|
}
|
|
24027
|
-
},
|
|
24295
|
+
}, Ok = { class: "wyfe-ivue__use-line-title" }, kk = ["innerHTML"], Ak = /* @__PURE__ */ kO(/* @__PURE__ */ g({
|
|
24028
24296
|
__name: "index",
|
|
24029
|
-
props:
|
|
24297
|
+
props: Dk,
|
|
24030
24298
|
setup(e) {
|
|
24031
24299
|
return ge((e) => ({
|
|
24032
24300
|
v72c96550: e.lineWidth,
|
|
24033
24301
|
v74f76216: e.lineColor,
|
|
24034
24302
|
v1a013856: e.lineHeight
|
|
24035
|
-
})), (e, t) => (L(), d("div",
|
|
24303
|
+
})), (e, t) => (L(), d("div", Ok, [f("div", {
|
|
24036
24304
|
class: O(["content", [e.className, e.linePosition]]),
|
|
24037
24305
|
style: A({
|
|
24038
24306
|
fontSize: e.fontSize,
|
|
@@ -24040,13 +24308,13 @@ var aO = {
|
|
|
24040
24308
|
color: e.color
|
|
24041
24309
|
}),
|
|
24042
24310
|
innerHTML: e.title
|
|
24043
|
-
}, null, 14,
|
|
24311
|
+
}, null, 14, kk)]));
|
|
24044
24312
|
}
|
|
24045
|
-
}), [["__scopeId", "data-v-afe78fed"]]),
|
|
24313
|
+
}), [["__scopeId", "data-v-afe78fed"]]), jk = (e) => {
|
|
24046
24314
|
let t = e.match(/^(-?\d*\.?\d+)(\D+)?$/);
|
|
24047
24315
|
if (!t) throw Error("size不合法");
|
|
24048
24316
|
return [parseFloat(t[1]), t[2]?.trim() || "px"];
|
|
24049
|
-
},
|
|
24317
|
+
}, Mk = ([, e]) => {
|
|
24050
24318
|
let t = [
|
|
24051
24319
|
"px",
|
|
24052
24320
|
"rem",
|
|
@@ -24056,7 +24324,7 @@ var aO = {
|
|
|
24056
24324
|
], n = t.includes(e);
|
|
24057
24325
|
if (!n) throw Error(`size单位不合法,合法单位:${t.join("、")}`);
|
|
24058
24326
|
return n;
|
|
24059
|
-
},
|
|
24327
|
+
}, Nk = {
|
|
24060
24328
|
name: {
|
|
24061
24329
|
type: String,
|
|
24062
24330
|
required: !0
|
|
@@ -24065,7 +24333,7 @@ var aO = {
|
|
|
24065
24333
|
type: [Number, String],
|
|
24066
24334
|
default: 28,
|
|
24067
24335
|
validator(e) {
|
|
24068
|
-
return (typeof e == "number" ||
|
|
24336
|
+
return (typeof e == "number" || Mk(jk(e))) && e;
|
|
24069
24337
|
}
|
|
24070
24338
|
},
|
|
24071
24339
|
color: {
|
|
@@ -24083,9 +24351,9 @@ var aO = {
|
|
|
24083
24351
|
default: !1
|
|
24084
24352
|
},
|
|
24085
24353
|
hoverClass: { type: String }
|
|
24086
|
-
},
|
|
24354
|
+
}, Pk = ["href", "fill"], Fk = /* @__PURE__ */ kO(/* @__PURE__ */ g({
|
|
24087
24355
|
__name: "index",
|
|
24088
|
-
props:
|
|
24356
|
+
props: Nk,
|
|
24089
24357
|
setup(e) {
|
|
24090
24358
|
ge((e) => ({
|
|
24091
24359
|
v94c66d84: i.value,
|
|
@@ -24105,13 +24373,13 @@ var aO = {
|
|
|
24105
24373
|
class: O([a.value ? "fillClass" : "", e.hoverClass]),
|
|
24106
24374
|
href: r.value,
|
|
24107
24375
|
fill: i.value
|
|
24108
|
-
}, null, 10,
|
|
24376
|
+
}, null, 10, Pk)], 4));
|
|
24109
24377
|
}
|
|
24110
|
-
}), [["__scopeId", "data-v-b69be9a5"]]),
|
|
24111
|
-
Object.entries(
|
|
24378
|
+
}), [["__scopeId", "data-v-b69be9a5"]]), Ik = /* @__PURE__ */ Object.assign({}), Lk = {};
|
|
24379
|
+
Object.entries(Ik).forEach(([e, t]) => {
|
|
24112
24380
|
typeof t != "object" || !t || Object.entries(t).forEach(([t, n]) => {
|
|
24113
|
-
Reflect.has(
|
|
24381
|
+
Reflect.has(Lk, t) && console.warn(`[iVueUtils] 工具函数 ${t} 重复定义,已覆盖(来源:${e})`), Lk[t] = n;
|
|
24114
24382
|
});
|
|
24115
24383
|
});
|
|
24116
24384
|
//#endregion
|
|
24117
|
-
export {
|
|
24385
|
+
export { ck as UseCrudTable, fk as UseElButton, hk as UseElCheckbox, _k as UseElConfigProvider, xk as UseElDialog, Tk as UseElDrawer, rk as UseElForm, qO as UseElInput, BO as UseElSelect, Ek as UseElSwitch, IO as UseElTable, Ak as UseLineTitle, WO as UseRender, Fk as UseSvgIcon, Lk as iVueUtils };
|