wyfe-ivue 2.11.0 → 2.12.1
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 +252 -177
- package/dist/index.umd.cjs +1 -1
- package/dist/types/UseElButton/index.vue.d.ts +1 -1
- package/dist/types/UseElDialog/index.vue.d.ts +2 -2
- package/dist/types/UseElDialog/props.d.ts +1 -1
- package/dist/types/UseElDrawer/index.vue.d.ts +2 -2
- package/dist/types/UseElDrawer/props.d.ts +1 -1
- package/dist/types/UseElForm/components/InlineForm.vue.d.ts +136 -4
- package/dist/types/UseElForm/components/RowForm.vue.d.ts +135 -3
- package/dist/types/UseElForm/index.vue.d.ts +846 -89
- package/dist/types/UseElForm/props.d.ts +65 -0
- package/dist/types/UseElForm/types.d.ts +3 -17
- package/dist/types/UseElForm/useFormHook.d.ts +12 -12
- package/dist/types/UseElTable/index.vue.d.ts +2 -2
- package/dist/types/UseLineTitle/index.vue.d.ts +87 -0
- package/dist/types/UseLineTitle/props.d.ts +40 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/wyfe-ivue.css +1 -1
- package/package.json +1 -1
- package/src/components/UseElForm/props.ts +110 -0
- package/src/components/UseElForm/types.ts +4 -60
- package/src/components/UseLineTitle/props.ts +69 -0
package/dist/index.es.js
CHANGED
|
@@ -22182,8 +22182,8 @@ var aO = {
|
|
|
22182
22182
|
},
|
|
22183
22183
|
setup(e) {
|
|
22184
22184
|
let t = e, n = s(() => ({
|
|
22185
|
-
input:
|
|
22186
|
-
select:
|
|
22185
|
+
input: UO,
|
|
22186
|
+
select: bk
|
|
22187
22187
|
})[t.item.editConfig.component]), r = s({
|
|
22188
22188
|
get() {
|
|
22189
22189
|
return t.row[t.item.prop];
|
|
@@ -22374,10 +22374,83 @@ var aO = {
|
|
|
22374
22374
|
])), [[_, e.tableLoading]]);
|
|
22375
22375
|
};
|
|
22376
22376
|
}
|
|
22377
|
-
}), [["__scopeId", "data-v-0795ff62"]]), LO =
|
|
22377
|
+
}), [["__scopeId", "data-v-0795ff62"]]), LO = {
|
|
22378
|
+
formColumns: {
|
|
22379
|
+
type: Array,
|
|
22380
|
+
required: !0
|
|
22381
|
+
},
|
|
22382
|
+
formModel: {
|
|
22383
|
+
type: Object,
|
|
22384
|
+
required: !0
|
|
22385
|
+
},
|
|
22386
|
+
formMode: {
|
|
22387
|
+
type: String,
|
|
22388
|
+
default: "rowForm",
|
|
22389
|
+
validator: (e) => ["rowForm", "inlineForm"].includes(e)
|
|
22390
|
+
},
|
|
22391
|
+
dictMap: {
|
|
22392
|
+
type: Object,
|
|
22393
|
+
default: () => ({})
|
|
22394
|
+
},
|
|
22395
|
+
dictProps: {
|
|
22396
|
+
type: Object,
|
|
22397
|
+
default: () => ({})
|
|
22398
|
+
},
|
|
22399
|
+
formItemWidth: {
|
|
22400
|
+
type: String,
|
|
22401
|
+
default: "180px"
|
|
22402
|
+
},
|
|
22403
|
+
labelSuffix: {
|
|
22404
|
+
type: String,
|
|
22405
|
+
default: ""
|
|
22406
|
+
},
|
|
22407
|
+
labelWidth: {
|
|
22408
|
+
type: String,
|
|
22409
|
+
default: "auto"
|
|
22410
|
+
},
|
|
22411
|
+
labelPosition: {
|
|
22412
|
+
type: String,
|
|
22413
|
+
default: "right",
|
|
22414
|
+
validator: (e) => [
|
|
22415
|
+
"left",
|
|
22416
|
+
"right",
|
|
22417
|
+
"top"
|
|
22418
|
+
].includes(e)
|
|
22419
|
+
},
|
|
22420
|
+
rowGutter: {
|
|
22421
|
+
type: Number,
|
|
22422
|
+
default: 20
|
|
22423
|
+
},
|
|
22424
|
+
colSpan: {
|
|
22425
|
+
type: Number,
|
|
22426
|
+
default: 12,
|
|
22427
|
+
validator: (e) => [
|
|
22428
|
+
24,
|
|
22429
|
+
12,
|
|
22430
|
+
8,
|
|
22431
|
+
6,
|
|
22432
|
+
4,
|
|
22433
|
+
3,
|
|
22434
|
+
2,
|
|
22435
|
+
1
|
|
22436
|
+
].includes(e)
|
|
22437
|
+
},
|
|
22438
|
+
disabled: {
|
|
22439
|
+
type: Boolean,
|
|
22440
|
+
default: !1
|
|
22441
|
+
},
|
|
22442
|
+
queryLoading: {
|
|
22443
|
+
type: Boolean,
|
|
22444
|
+
default: !1
|
|
22445
|
+
},
|
|
22446
|
+
showBottomBorber: {
|
|
22447
|
+
type: Boolean,
|
|
22448
|
+
default: !0
|
|
22449
|
+
}
|
|
22450
|
+
}, RO = ["innerHTML"], zO = {
|
|
22378
22451
|
key: 2,
|
|
22379
22452
|
style: { color: "#f00" }
|
|
22380
|
-
},
|
|
22453
|
+
}, BO = /* @__PURE__ */ g({
|
|
22381
22454
|
__name: "index",
|
|
22382
22455
|
props: { content: {} },
|
|
22383
22456
|
setup(e) {
|
|
@@ -22389,18 +22462,18 @@ var aO = {
|
|
|
22389
22462
|
return (r, i) => n.value(e.content) || C(e.content) ? (L(), l(H(e.content), { key: 0 })) : t.value(e.content) ? (L(), d("div", {
|
|
22390
22463
|
key: 1,
|
|
22391
22464
|
innerHTML: e.content
|
|
22392
|
-
}, null, 8,
|
|
22465
|
+
}, null, 8, RO)) : (L(), d("span", zO, " 不支持的content类型(仅支持同步组件/异步组件/VNode/字符串) "));
|
|
22393
22466
|
}
|
|
22394
|
-
}),
|
|
22467
|
+
}), VO = { mounted(e, t) {
|
|
22395
22468
|
if (t.value === !1) return;
|
|
22396
22469
|
let n = e.querySelector("input"), r = e.querySelector("textarea"), i = n || r || e;
|
|
22397
22470
|
i && Promise.resolve().then(() => {
|
|
22398
22471
|
i.focus({ preventScroll: !0 });
|
|
22399
22472
|
});
|
|
22400
|
-
} },
|
|
22473
|
+
} }, HO = {
|
|
22401
22474
|
key: 0,
|
|
22402
22475
|
class: "unit"
|
|
22403
|
-
},
|
|
22476
|
+
}, UO = /* @__PURE__ */ kO(/* @__PURE__ */ g({
|
|
22404
22477
|
__name: "index",
|
|
22405
22478
|
props: /* @__PURE__ */ T({
|
|
22406
22479
|
modelValue: {},
|
|
@@ -22429,7 +22502,7 @@ var aO = {
|
|
|
22429
22502
|
}
|
|
22430
22503
|
});
|
|
22431
22504
|
return (t, n) => {
|
|
22432
|
-
let r =
|
|
22505
|
+
let r = BO, a = R_;
|
|
22433
22506
|
return L(), d("div", {
|
|
22434
22507
|
class: "wyfe-ivue__use-el-input",
|
|
22435
22508
|
style: A({ width: e.width })
|
|
@@ -22471,10 +22544,10 @@ var aO = {
|
|
|
22471
22544
|
"rows",
|
|
22472
22545
|
"show-password",
|
|
22473
22546
|
"show-word-limit"
|
|
22474
|
-
])), [[W(
|
|
22547
|
+
])), [[W(VO), Object.hasOwn(t.$attrs, "autoFocus")]]), e.unit ? (L(), d("span", HO, [h(r, { content: e.unit }, null, 8, ["content"])])) : u("", !0)], 4);
|
|
22475
22548
|
};
|
|
22476
22549
|
}
|
|
22477
|
-
}), [["__scopeId", "data-v-754085a3"]]),
|
|
22550
|
+
}), [["__scopeId", "data-v-754085a3"]]), WO = ({ props: e, globalConfig: t }) => {
|
|
22478
22551
|
let n = B(null), r = s(() => e.formColumns.filter((e) => Object.hasOwn(e, "show") ? e.show : !0)), i = s(() => {
|
|
22479
22552
|
let t = {};
|
|
22480
22553
|
return e.formColumns.forEach((e) => {
|
|
@@ -22585,41 +22658,26 @@ var aO = {
|
|
|
22585
22658
|
});
|
|
22586
22659
|
}
|
|
22587
22660
|
};
|
|
22588
|
-
},
|
|
22661
|
+
}, GO = {
|
|
22589
22662
|
key: 1,
|
|
22590
22663
|
class: "input-number-wrapper"
|
|
22591
|
-
},
|
|
22664
|
+
}, KO = {
|
|
22592
22665
|
key: 0,
|
|
22593
22666
|
class: "unit"
|
|
22594
|
-
},
|
|
22667
|
+
}, qO = {
|
|
22595
22668
|
key: 6,
|
|
22596
22669
|
class: "time-select-wrapper"
|
|
22597
|
-
},
|
|
22670
|
+
}, JO = /* @__PURE__ */ kO(/* @__PURE__ */ g({
|
|
22598
22671
|
__name: "RowForm",
|
|
22599
|
-
props:
|
|
22600
|
-
formColumns: {},
|
|
22601
|
-
formModel: {},
|
|
22602
|
-
formMode: {},
|
|
22603
|
-
dictMap: {},
|
|
22604
|
-
dictProps: {},
|
|
22605
|
-
formItemWidth: {},
|
|
22606
|
-
labelSuffix: {},
|
|
22607
|
-
labelWidth: {},
|
|
22608
|
-
labelPosition: {},
|
|
22609
|
-
rowGutter: {},
|
|
22610
|
-
colSpan: {},
|
|
22611
|
-
disabled: { type: Boolean },
|
|
22612
|
-
queryLoading: { type: Boolean },
|
|
22613
|
-
showBorberBottom: { type: Boolean }
|
|
22614
|
-
},
|
|
22672
|
+
props: LO,
|
|
22615
22673
|
setup(e, { expose: n }) {
|
|
22616
|
-
let r = e, { formRules: i, dateFormatComputed: a, timeFormatComputed: o, selectOptions: s, selectProps: c, cascaderOptions: p, radioOptions: g, handleInputPlaceholder: _, handleSelectPlaceholder: v, handleDatePickerPalceholder: y, handleDatePickerStartPlaceholder: b, handleDatePickerEndPlaceholder: x, handleDatePickerRangeSeparator: S, handleTimePickerStartPlaceholder: C, handleTimePickerEndPlaceholder: w, handleTimePickerRangeSeparator: T, handleSelectChange: D, handleCascaderChange: k, handleDatePickerChange: j, handleTimePickerChange: M, handleRadioGroupChange: N, handleSwitchChange: P, efRef: F } =
|
|
22674
|
+
let r = e, { formRules: i, dateFormatComputed: a, timeFormatComputed: o, selectOptions: s, selectProps: c, cascaderOptions: p, radioOptions: g, handleInputPlaceholder: _, handleSelectPlaceholder: v, handleDatePickerPalceholder: y, handleDatePickerStartPlaceholder: b, handleDatePickerEndPlaceholder: x, handleDatePickerRangeSeparator: S, handleTimePickerStartPlaceholder: C, handleTimePickerEndPlaceholder: w, handleTimePickerRangeSeparator: T, handleSelectChange: D, handleCascaderChange: k, handleDatePickerChange: j, handleTimePickerChange: M, handleRadioGroupChange: N, handleSwitchChange: P, efRef: F } = WO({
|
|
22617
22675
|
props: r,
|
|
22618
22676
|
globalConfig: oO(r)
|
|
22619
22677
|
});
|
|
22620
|
-
return n({ efRef: F }), (
|
|
22621
|
-
let
|
|
22622
|
-
return e.formMode === "rowForm" ? (L(), l(
|
|
22678
|
+
return n({ efRef: F }), (e, n) => {
|
|
22679
|
+
let r = UO, ee = rw, I = BO, te = JT, ne = Tx, R = wC, z = Py, re = qD, B = rx, ie = ix, oe = rE, se = Cg, H = Ax, ce = kx, le = Sg;
|
|
22680
|
+
return e.formMode === "rowForm" ? (L(), l(le, {
|
|
22623
22681
|
key: 0,
|
|
22624
22682
|
ref_key: "efRef",
|
|
22625
22683
|
ref: F,
|
|
@@ -22631,23 +22689,23 @@ var aO = {
|
|
|
22631
22689
|
"validate-on-rule-change": !1,
|
|
22632
22690
|
disabled: e.disabled
|
|
22633
22691
|
}, {
|
|
22634
|
-
default: K(() => [h(
|
|
22635
|
-
default: K(() => [(L(!0), d(t, null, ae(e.formColumns, (i) => (L(), l(
|
|
22692
|
+
default: K(() => [h(ce, { gutter: e.rowGutter }, {
|
|
22693
|
+
default: K(() => [(L(!0), d(t, null, ae(e.formColumns, (i) => (L(), l(H, {
|
|
22636
22694
|
key: i.label,
|
|
22637
22695
|
span: i.span || e.colSpan
|
|
22638
22696
|
}, {
|
|
22639
|
-
default: K(() => [!Object.hasOwn(i, "show") || i.show ? (L(), l(
|
|
22697
|
+
default: K(() => [!Object.hasOwn(i, "show") || i.show ? (L(), l(se, {
|
|
22640
22698
|
key: 0,
|
|
22641
22699
|
label: i.hideLabel ? "" : i.label,
|
|
22642
22700
|
prop: i.prop,
|
|
22643
22701
|
"label-width": i.labelWidth,
|
|
22644
22702
|
class: O(i.formItemClass || "")
|
|
22645
22703
|
}, {
|
|
22646
|
-
default: K(() => [i.slot ? V(
|
|
22704
|
+
default: K(() => [i.slot ? V(e.$slots, typeof i.slot == "string" ? i.slot : i.prop, E({
|
|
22647
22705
|
key: 0,
|
|
22648
22706
|
ref_for: !0
|
|
22649
22707
|
}, i), void 0, !0) : (L(), d(t, { key: 1 }, [
|
|
22650
|
-
i.inputConfig ? we((L(), l(
|
|
22708
|
+
i.inputConfig ? we((L(), l(r, {
|
|
22651
22709
|
key: 0,
|
|
22652
22710
|
modelValue: e.formModel[i.prop],
|
|
22653
22711
|
"onUpdate:modelValue": (t) => e.formModel[i.prop] = t,
|
|
@@ -22698,8 +22756,8 @@ var aO = {
|
|
|
22698
22756
|
"disabled",
|
|
22699
22757
|
"onInput",
|
|
22700
22758
|
"onKeyup"
|
|
22701
|
-
])), [[W(
|
|
22702
|
-
i.inputNumberConfig ? (L(), d("div",
|
|
22759
|
+
])), [[W(VO), i.inputConfig.autoFocus || !1]]) : u("", !0),
|
|
22760
|
+
i.inputNumberConfig ? (L(), d("div", GO, [h(ee, {
|
|
22703
22761
|
modelValue: e.formModel[i.prop],
|
|
22704
22762
|
"onUpdate:modelValue": (t) => e.formModel[i.prop] = t,
|
|
22705
22763
|
min: i.inputNumberConfig.min,
|
|
@@ -22719,8 +22777,8 @@ var aO = {
|
|
|
22719
22777
|
"disabled-scientific",
|
|
22720
22778
|
"placeholder",
|
|
22721
22779
|
"disabled"
|
|
22722
|
-
]), i.inputNumberConfig.unit ? (L(), d("span",
|
|
22723
|
-
i.selectConfig ? (L(), l(
|
|
22780
|
+
]), i.inputNumberConfig.unit ? (L(), d("span", KO, [h(I, { content: i.inputNumberConfig.unit }, null, 8, ["content"])])) : u("", !0)])) : u("", !0),
|
|
22781
|
+
i.selectConfig ? (L(), l(te, {
|
|
22724
22782
|
key: 2,
|
|
22725
22783
|
modelValue: e.formModel[i.prop],
|
|
22726
22784
|
"onUpdate:modelValue": (t) => e.formModel[i.prop] = t,
|
|
@@ -22745,7 +22803,7 @@ var aO = {
|
|
|
22745
22803
|
"disabled",
|
|
22746
22804
|
"onChange"
|
|
22747
22805
|
])) : u("", !0),
|
|
22748
|
-
i.cascaderConfig ? (L(), l(
|
|
22806
|
+
i.cascaderConfig ? (L(), l(ne, {
|
|
22749
22807
|
key: 3,
|
|
22750
22808
|
modelValue: e.formModel[i.prop],
|
|
22751
22809
|
"onUpdate:modelValue": (t) => e.formModel[i.prop] = t,
|
|
@@ -22763,7 +22821,7 @@ var aO = {
|
|
|
22763
22821
|
"style",
|
|
22764
22822
|
"onChange"
|
|
22765
22823
|
])) : u("", !0),
|
|
22766
|
-
i.datePickerConfig ? (L(), l(
|
|
22824
|
+
i.datePickerConfig ? (L(), l(R, {
|
|
22767
22825
|
key: 4,
|
|
22768
22826
|
modelValue: e.formModel[i.prop],
|
|
22769
22827
|
"onUpdate:modelValue": (t) => e.formModel[i.prop] = t,
|
|
@@ -22789,7 +22847,7 @@ var aO = {
|
|
|
22789
22847
|
"style",
|
|
22790
22848
|
"onChange"
|
|
22791
22849
|
])) : u("", !0),
|
|
22792
|
-
i.timePickerConfig ? (L(), l(
|
|
22850
|
+
i.timePickerConfig ? (L(), l(z, {
|
|
22793
22851
|
key: 5,
|
|
22794
22852
|
modelValue: e.formModel[i.prop],
|
|
22795
22853
|
"onUpdate:modelValue": (t) => e.formModel[i.prop] = t,
|
|
@@ -22813,8 +22871,8 @@ var aO = {
|
|
|
22813
22871
|
"value-format",
|
|
22814
22872
|
"onChange"
|
|
22815
22873
|
])) : u("", !0),
|
|
22816
|
-
i.timeSelectConfig ? (L(), d("div",
|
|
22817
|
-
h(
|
|
22874
|
+
i.timeSelectConfig ? (L(), d("div", qO, [
|
|
22875
|
+
h(re, {
|
|
22818
22876
|
modelValue: e.formModel[i.timeSelectConfig.startProp],
|
|
22819
22877
|
"onUpdate:modelValue": (t) => e.formModel[i.timeSelectConfig.startProp] = t,
|
|
22820
22878
|
"max-time": e.formModel[i.timeSelectConfig.endProp],
|
|
@@ -22827,8 +22885,8 @@ var aO = {
|
|
|
22827
22885
|
"onUpdate:modelValue",
|
|
22828
22886
|
"max-time"
|
|
22829
22887
|
]),
|
|
22830
|
-
|
|
22831
|
-
h(
|
|
22888
|
+
n[0] ||= f("span", { class: "range-separator" }, "至", -1),
|
|
22889
|
+
h(re, {
|
|
22832
22890
|
modelValue: e.formModel[i.timeSelectConfig.endProp],
|
|
22833
22891
|
"onUpdate:modelValue": (t) => e.formModel[i.timeSelectConfig.endProp] = t,
|
|
22834
22892
|
"min-time": e.formModel[i.timeSelectConfig.startProp],
|
|
@@ -22842,14 +22900,14 @@ var aO = {
|
|
|
22842
22900
|
"min-time"
|
|
22843
22901
|
])
|
|
22844
22902
|
])) : u("", !0),
|
|
22845
|
-
i.radioConfig ? (L(), l(
|
|
22903
|
+
i.radioConfig ? (L(), l(ie, {
|
|
22846
22904
|
key: 7,
|
|
22847
22905
|
modelValue: e.formModel[i.prop],
|
|
22848
22906
|
"onUpdate:modelValue": (t) => e.formModel[i.prop] = t,
|
|
22849
22907
|
disabled: i.radioConfig.disabled || !1,
|
|
22850
22908
|
onChange: (e) => W(N)(e, i)
|
|
22851
22909
|
}, {
|
|
22852
|
-
default: K(() => [(L(!0), d(t, null, ae(W(g)(i), (e) => (L(), l(
|
|
22910
|
+
default: K(() => [(L(!0), d(t, null, ae(W(g)(i), (e) => (L(), l(B, { value: e.value }, {
|
|
22853
22911
|
default: K(() => [m(U(e[i.radioConfig?.props?.label || "label"]), 1)]),
|
|
22854
22912
|
_: 2
|
|
22855
22913
|
}, 1032, ["value"]))), 256))]),
|
|
@@ -22860,7 +22918,7 @@ var aO = {
|
|
|
22860
22918
|
"disabled",
|
|
22861
22919
|
"onChange"
|
|
22862
22920
|
])) : u("", !0),
|
|
22863
|
-
i.switchConfig ? (L(), l(
|
|
22921
|
+
i.switchConfig ? (L(), l(oe, {
|
|
22864
22922
|
key: 8,
|
|
22865
22923
|
modelValue: e.formModel[i.prop],
|
|
22866
22924
|
"onUpdate:modelValue": (t) => e.formModel[i.prop] = t,
|
|
@@ -22899,27 +22957,12 @@ var aO = {
|
|
|
22899
22957
|
])) : u("", !0);
|
|
22900
22958
|
};
|
|
22901
22959
|
}
|
|
22902
|
-
}), [["__scopeId", "data-v-
|
|
22960
|
+
}), [["__scopeId", "data-v-388960c1"]]), YO = { class: "btn-wrapper" }, XO = /* @__PURE__ */ kO(/* @__PURE__ */ g({
|
|
22903
22961
|
__name: "InlineForm",
|
|
22904
|
-
props:
|
|
22905
|
-
formColumns: {},
|
|
22906
|
-
formModel: {},
|
|
22907
|
-
formMode: {},
|
|
22908
|
-
dictMap: {},
|
|
22909
|
-
dictProps: {},
|
|
22910
|
-
formItemWidth: {},
|
|
22911
|
-
labelSuffix: {},
|
|
22912
|
-
labelWidth: {},
|
|
22913
|
-
labelPosition: {},
|
|
22914
|
-
rowGutter: {},
|
|
22915
|
-
colSpan: {},
|
|
22916
|
-
disabled: { type: Boolean },
|
|
22917
|
-
queryLoading: { type: Boolean },
|
|
22918
|
-
showBorberBottom: { type: Boolean }
|
|
22919
|
-
},
|
|
22962
|
+
props: LO,
|
|
22920
22963
|
emits: ["onQuery"],
|
|
22921
22964
|
setup(e, { expose: n, emit: r }) {
|
|
22922
|
-
let i = e, a = r, o = s(() => i.
|
|
22965
|
+
let i = e, a = r, o = s(() => i.showBottomBorber ? "1px solid var(--el-border-color)" : "");
|
|
22923
22966
|
ee(() => {
|
|
22924
22967
|
document.querySelectorAll(".el-select__input").forEach((e) => {
|
|
22925
22968
|
e.addEventListener("keydown", (e) => {
|
|
@@ -22927,7 +22970,7 @@ var aO = {
|
|
|
22927
22970
|
}, !0);
|
|
22928
22971
|
});
|
|
22929
22972
|
});
|
|
22930
|
-
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 } =
|
|
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 } = WO({
|
|
22931
22974
|
props: i,
|
|
22932
22975
|
globalConfig: oO(i)
|
|
22933
22976
|
}), j = async () => {
|
|
@@ -22949,28 +22992,28 @@ var aO = {
|
|
|
22949
22992
|
e.addEventListener("transitionend", s, { once: !0 }), setTimeout(() => window.dispatchEvent(new Event("resize")), o);
|
|
22950
22993
|
} else setTimeout(() => window.dispatchEvent(new Event("resize")), 300);
|
|
22951
22994
|
}
|
|
22952
|
-
}), (
|
|
22953
|
-
let
|
|
22954
|
-
return L(), l(
|
|
22995
|
+
}), (e, n) => {
|
|
22996
|
+
let r = UO, i = JT, a = Tx, s = wC, x = Cg, D = Sg, F = Kv, ee = jx;
|
|
22997
|
+
return L(), l(ee, null, {
|
|
22955
22998
|
default: K(() => [we(f("div", {
|
|
22956
22999
|
ref_key: "ifRef",
|
|
22957
23000
|
ref: N,
|
|
22958
23001
|
class: "inline-form",
|
|
22959
23002
|
style: A({ borderBottom: o.value })
|
|
22960
|
-
}, [h(
|
|
23003
|
+
}, [h(D, {
|
|
22961
23004
|
ref_key: "efRef",
|
|
22962
23005
|
ref: c,
|
|
22963
23006
|
inline: "",
|
|
22964
23007
|
model: e.formModel,
|
|
22965
23008
|
"label-suffix": e.labelSuffix,
|
|
22966
|
-
onSubmit:
|
|
23009
|
+
onSubmit: n[0] ||= Ee(() => {}, ["prevent"])
|
|
22967
23010
|
}, {
|
|
22968
|
-
default: K(() => [(L(!0), d(t, null, ae(W(g), (t) => (L(), l(
|
|
23011
|
+
default: K(() => [(L(!0), d(t, null, ae(W(g), (t) => (L(), l(x, {
|
|
22969
23012
|
key: t.label,
|
|
22970
23013
|
label: t.label
|
|
22971
23014
|
}, {
|
|
22972
23015
|
default: K(() => [
|
|
22973
|
-
t.inputConfig ? (L(), l(
|
|
23016
|
+
t.inputConfig ? (L(), l(r, {
|
|
22974
23017
|
key: 0,
|
|
22975
23018
|
modelValue: e.formModel[t.prop],
|
|
22976
23019
|
"onUpdate:modelValue": (n) => e.formModel[t.prop] = n,
|
|
@@ -22991,7 +23034,7 @@ var aO = {
|
|
|
22991
23034
|
"clearable",
|
|
22992
23035
|
"onKeyup"
|
|
22993
23036
|
])) : u("", !0),
|
|
22994
|
-
t.selectConfig ? (L(), l(
|
|
23037
|
+
t.selectConfig ? (L(), l(i, {
|
|
22995
23038
|
key: 1,
|
|
22996
23039
|
modelValue: e.formModel[t.prop],
|
|
22997
23040
|
"onUpdate:modelValue": (n) => e.formModel[t.prop] = n,
|
|
@@ -23011,7 +23054,7 @@ var aO = {
|
|
|
23011
23054
|
"style",
|
|
23012
23055
|
"clearable"
|
|
23013
23056
|
])) : u("", !0),
|
|
23014
|
-
t.cascaderConfig ? (L(), l(
|
|
23057
|
+
t.cascaderConfig ? (L(), l(a, {
|
|
23015
23058
|
key: 2,
|
|
23016
23059
|
ref_for: !0,
|
|
23017
23060
|
ref_key: "cascaderRef",
|
|
@@ -23033,7 +23076,7 @@ var aO = {
|
|
|
23033
23076
|
"clearable",
|
|
23034
23077
|
"onChange"
|
|
23035
23078
|
])) : u("", !0),
|
|
23036
|
-
t.datePickerConfig ? (L(), l(
|
|
23079
|
+
t.datePickerConfig ? (L(), l(s, {
|
|
23037
23080
|
key: 3,
|
|
23038
23081
|
modelValue: e.formModel[t.prop],
|
|
23039
23082
|
"onUpdate:modelValue": (n) => e.formModel[t.prop] = n,
|
|
@@ -23070,73 +23113,45 @@ var aO = {
|
|
|
23070
23113
|
_: 2
|
|
23071
23114
|
}, 1032, ["label"]))), 128))]),
|
|
23072
23115
|
_: 1
|
|
23073
|
-
}, 8, ["model", "label-suffix"]), f("div",
|
|
23074
|
-
h(
|
|
23116
|
+
}, 8, ["model", "label-suffix"]), f("div", YO, [
|
|
23117
|
+
h(F, {
|
|
23075
23118
|
type: "primary",
|
|
23076
23119
|
loading: e.queryLoading,
|
|
23077
23120
|
onClick: j
|
|
23078
23121
|
}, {
|
|
23079
|
-
default: K(() => [...
|
|
23122
|
+
default: K(() => [...n[1] ||= [m(" 查询 ", -1)]]),
|
|
23080
23123
|
_: 1
|
|
23081
23124
|
}, 8, ["loading"]),
|
|
23082
|
-
h(
|
|
23083
|
-
default: K(() => [...
|
|
23125
|
+
h(F, { onClick: M }, {
|
|
23126
|
+
default: K(() => [...n[2] ||= [m("重置", -1)]]),
|
|
23084
23127
|
_: 1
|
|
23085
23128
|
}),
|
|
23086
|
-
V(
|
|
23129
|
+
V(e.$slots, "formRight", {}, void 0, !0)
|
|
23087
23130
|
])], 4), [[xe, P.value]])]),
|
|
23088
23131
|
_: 3
|
|
23089
23132
|
});
|
|
23090
23133
|
};
|
|
23091
23134
|
}
|
|
23092
|
-
}), [["__scopeId", "data-v-
|
|
23135
|
+
}), [["__scopeId", "data-v-76516626"]]), ZO = { class: "wyfe-ivue__use-el-form" }, QO = /* @__PURE__ */ g({
|
|
23093
23136
|
__name: "index",
|
|
23094
|
-
props:
|
|
23095
|
-
formColumns: {},
|
|
23096
|
-
formModel: {},
|
|
23097
|
-
formMode: {},
|
|
23098
|
-
dictMap: {},
|
|
23099
|
-
dictProps: {},
|
|
23100
|
-
formItemWidth: {},
|
|
23101
|
-
labelSuffix: {},
|
|
23102
|
-
labelWidth: {},
|
|
23103
|
-
labelPosition: {},
|
|
23104
|
-
rowGutter: {},
|
|
23105
|
-
colSpan: {},
|
|
23106
|
-
disabled: { type: Boolean },
|
|
23107
|
-
queryLoading: { type: Boolean },
|
|
23108
|
-
showBorberBottom: { type: Boolean }
|
|
23109
|
-
}, {
|
|
23110
|
-
formMode: "rowForm",
|
|
23111
|
-
dictMap: () => ({}),
|
|
23112
|
-
dictProps: () => ({}),
|
|
23113
|
-
formItemWidth: "180px",
|
|
23114
|
-
labelWidth: "auto",
|
|
23115
|
-
labelPosition: "right",
|
|
23116
|
-
rowGutter: 20,
|
|
23117
|
-
colSpan: 12,
|
|
23118
|
-
showBorberBottom: !0
|
|
23119
|
-
}),
|
|
23137
|
+
props: LO,
|
|
23120
23138
|
setup(e, { expose: t }) {
|
|
23121
|
-
let n = e, r =
|
|
23122
|
-
...n,
|
|
23123
|
-
...r
|
|
23124
|
-
}));
|
|
23139
|
+
let n = e, r = _e(), i = B(null);
|
|
23125
23140
|
return t({
|
|
23126
|
-
validate: s(() =>
|
|
23127
|
-
resetFields: s(() =>
|
|
23128
|
-
clearValidate: s(() =>
|
|
23129
|
-
showInlineForm: s(() =>
|
|
23130
|
-
handleInlineFormDisplay: s(() =>
|
|
23131
|
-
}), (
|
|
23141
|
+
validate: s(() => i.value?.efRef?.validate),
|
|
23142
|
+
resetFields: s(() => i.value?.efRef?.resetFields),
|
|
23143
|
+
clearValidate: s(() => i.value?.efRef?.clearValidate),
|
|
23144
|
+
showInlineForm: s(() => i.value?.showInlineForm),
|
|
23145
|
+
handleInlineFormDisplay: s(() => i.value?.handleInlineFormDisplay)
|
|
23146
|
+
}), (e, t) => (L(), d("div", ZO, [(L(), l(H(e.formMode === "rowForm" ? JO : XO), E({
|
|
23132
23147
|
ref_key: "componentRef",
|
|
23133
|
-
ref:
|
|
23134
|
-
},
|
|
23148
|
+
ref: i
|
|
23149
|
+
}, n), p({ _: 2 }, [ae(W(r), (t, n) => ({
|
|
23135
23150
|
name: n,
|
|
23136
|
-
fn: K((
|
|
23151
|
+
fn: K((t) => [V(e.$slots, n, k(y(t)))])
|
|
23137
23152
|
}))]), 1040))]));
|
|
23138
23153
|
}
|
|
23139
|
-
}),
|
|
23154
|
+
}), $O = {
|
|
23140
23155
|
configs: {
|
|
23141
23156
|
type: Array,
|
|
23142
23157
|
required: !0
|
|
@@ -23149,12 +23164,12 @@ var aO = {
|
|
|
23149
23164
|
type: Boolean,
|
|
23150
23165
|
default: !1
|
|
23151
23166
|
}
|
|
23152
|
-
},
|
|
23167
|
+
}, ek = (e) => e.map((e) => {
|
|
23153
23168
|
let t = { ...e }, n = Object.keys(t), r = !1;
|
|
23154
23169
|
return n.forEach((e) => {
|
|
23155
23170
|
e.endsWith("Config") && e !== "extConfig" && (r = !0);
|
|
23156
23171
|
}), r ? t : null;
|
|
23157
|
-
}).filter((e) => e !== null),
|
|
23172
|
+
}).filter((e) => e !== null), tk = (e) => {
|
|
23158
23173
|
let t = [...e].filter((e) => !e.onlySearch), n = /* @__PURE__ */ new Map();
|
|
23159
23174
|
t.forEach((e, t) => {
|
|
23160
23175
|
let r = Number(e?.tableOrder ?? t + 1);
|
|
@@ -23165,24 +23180,24 @@ var aO = {
|
|
|
23165
23180
|
item: e,
|
|
23166
23181
|
_order: Number(e?.tableOrder ?? t + 1)
|
|
23167
23182
|
})).sort((e, t) => e._order - t._order).map(({ item: e }) => e);
|
|
23168
|
-
},
|
|
23183
|
+
}, nk = { class: "wyfe-ivue__use-crud-table" }, rk = /* @__PURE__ */ kO(/* @__PURE__ */ g({
|
|
23169
23184
|
__name: "index",
|
|
23170
|
-
props:
|
|
23185
|
+
props: $O,
|
|
23171
23186
|
setup(e, { expose: t }) {
|
|
23172
23187
|
let n = e, r = _e(), i = B({
|
|
23173
23188
|
formColumns: [],
|
|
23174
23189
|
tableColumns: []
|
|
23175
23190
|
});
|
|
23176
23191
|
G(() => n.configs, (e) => {
|
|
23177
|
-
i.value.formColumns =
|
|
23192
|
+
i.value.formColumns = ek(e), i.value.tableColumns = tk(e);
|
|
23178
23193
|
}, {
|
|
23179
23194
|
immediate: !0,
|
|
23180
23195
|
deep: !0
|
|
23181
23196
|
});
|
|
23182
23197
|
let a = B(null);
|
|
23183
23198
|
return t({ uefRef: a }), (e, t) => {
|
|
23184
|
-
let n =
|
|
23185
|
-
return L(), d("div",
|
|
23199
|
+
let n = QO, o = IO;
|
|
23200
|
+
return L(), d("div", nk, [
|
|
23186
23201
|
h(n, E({
|
|
23187
23202
|
ref_key: "uefRef",
|
|
23188
23203
|
ref: a,
|
|
@@ -23200,7 +23215,7 @@ var aO = {
|
|
|
23200
23215
|
]);
|
|
23201
23216
|
};
|
|
23202
23217
|
}
|
|
23203
|
-
}), [["__scopeId", "data-v-f0f2c900"]]),
|
|
23218
|
+
}), [["__scopeId", "data-v-f0f2c900"]]), ik = {
|
|
23204
23219
|
btnText: {
|
|
23205
23220
|
type: String,
|
|
23206
23221
|
required: !0
|
|
@@ -23222,7 +23237,7 @@ var aO = {
|
|
|
23222
23237
|
type: Object,
|
|
23223
23238
|
default: () => ({})
|
|
23224
23239
|
}
|
|
23225
|
-
},
|
|
23240
|
+
}, ak = {
|
|
23226
23241
|
debounce: {
|
|
23227
23242
|
delay: 500,
|
|
23228
23243
|
immediate: !1
|
|
@@ -23235,8 +23250,8 @@ var aO = {
|
|
|
23235
23250
|
title: "删除提示",
|
|
23236
23251
|
content: "确定将选择数据删除?"
|
|
23237
23252
|
}
|
|
23238
|
-
},
|
|
23239
|
-
let r = s(() => cO(
|
|
23253
|
+
}, ok = ({ props: e, emits: t, attrs: n }) => {
|
|
23254
|
+
let r = s(() => cO(ak, e.extConfig)), i = hO(async () => {
|
|
23240
23255
|
let { data: e, title: n, content: i, dataKey: a, toArray: o, appendS: s } = r.value.confirm;
|
|
23241
23256
|
if (!mO(e)) {
|
|
23242
23257
|
De.warning("extConfig.confirm.data类型必须为Array、Object、String或Number");
|
|
@@ -23281,12 +23296,12 @@ var aO = {
|
|
|
23281
23296
|
n.onClick || (o.value ? i() : a());
|
|
23282
23297
|
}
|
|
23283
23298
|
};
|
|
23284
|
-
},
|
|
23299
|
+
}, sk = /* @__PURE__ */ kO(/* @__PURE__ */ g({
|
|
23285
23300
|
__name: "index",
|
|
23286
|
-
props:
|
|
23301
|
+
props: ik,
|
|
23287
23302
|
emits: ["onClick"],
|
|
23288
23303
|
setup(e, { emit: t }) {
|
|
23289
|
-
let { isConfirm: n, mergedExtConfig: r, handleElButton: i } =
|
|
23304
|
+
let { isConfirm: n, mergedExtConfig: r, handleElButton: i } = ok({
|
|
23290
23305
|
props: e,
|
|
23291
23306
|
emits: t,
|
|
23292
23307
|
attrs: he()
|
|
@@ -23309,7 +23324,7 @@ var aO = {
|
|
|
23309
23324
|
}, 8, ["type", "onClick"]);
|
|
23310
23325
|
};
|
|
23311
23326
|
}
|
|
23312
|
-
}), [["__scopeId", "data-v-5f981ffd"]]),
|
|
23327
|
+
}), [["__scopeId", "data-v-5f981ffd"]]), ck = {
|
|
23313
23328
|
name: "zh-cn",
|
|
23314
23329
|
el: {
|
|
23315
23330
|
breadcrumb: { label: "面包屑" },
|
|
@@ -23484,7 +23499,7 @@ var aO = {
|
|
|
23484
23499
|
indicator: "幻灯片切换至索引 {index}"
|
|
23485
23500
|
}
|
|
23486
23501
|
}
|
|
23487
|
-
},
|
|
23502
|
+
}, lk = /* @__PURE__ */ g({
|
|
23488
23503
|
__name: "index",
|
|
23489
23504
|
props: /* @__PURE__ */ T({
|
|
23490
23505
|
language: {},
|
|
@@ -23509,13 +23524,13 @@ var aO = {
|
|
|
23509
23524
|
setup(e) {
|
|
23510
23525
|
return R("wyfe-ivue__UseElConfigProvider_key", e), (t, n) => {
|
|
23511
23526
|
let r = lv;
|
|
23512
|
-
return L(), l(r, { locale: e.language === "en" ? W(ud) : W(
|
|
23527
|
+
return L(), l(r, { locale: e.language === "en" ? W(ud) : W(ck) }, {
|
|
23513
23528
|
default: K(() => [V(t.$slots, "default")]),
|
|
23514
23529
|
_: 3
|
|
23515
23530
|
}, 8, ["locale"]);
|
|
23516
23531
|
};
|
|
23517
23532
|
}
|
|
23518
|
-
}),
|
|
23533
|
+
}), uk = {
|
|
23519
23534
|
title: {
|
|
23520
23535
|
type: String,
|
|
23521
23536
|
default: "欢迎使用wyfe-ivue对话框组件"
|
|
@@ -23606,7 +23621,7 @@ var aO = {
|
|
|
23606
23621
|
type: Function,
|
|
23607
23622
|
default: () => {}
|
|
23608
23623
|
}
|
|
23609
|
-
},
|
|
23624
|
+
}, dk = (e) => {
|
|
23610
23625
|
let t = B(null), n = s(() => t.value?.handleClose), r = B(!1), i = s(() => r.value ? km : Mm), a = () => {
|
|
23611
23626
|
r.value = !r.value;
|
|
23612
23627
|
}, o = !1;
|
|
@@ -23641,16 +23656,16 @@ var aO = {
|
|
|
23641
23656
|
o = !0, e?.();
|
|
23642
23657
|
}
|
|
23643
23658
|
};
|
|
23644
|
-
},
|
|
23659
|
+
}, fk = { key: 1 }, pk = /* @__PURE__ */ g({
|
|
23645
23660
|
__name: "index",
|
|
23646
|
-
props:
|
|
23661
|
+
props: uk,
|
|
23647
23662
|
setup(e, { expose: n }) {
|
|
23648
|
-
let r = e, i = _e(), { edRef: a, handleClose: o, isFullScreen: s, iconComponent: c, handleFullScreen: f, handleClosed: m, handleClick: g } =
|
|
23663
|
+
let r = e, i = _e(), { edRef: a, handleClose: o, isFullScreen: s, iconComponent: c, handleFullScreen: f, handleClosed: m, handleClick: g } = dk(r);
|
|
23649
23664
|
return n({
|
|
23650
23665
|
edRef: a,
|
|
23651
23666
|
handleClose: o
|
|
23652
23667
|
}), (e, n) => {
|
|
23653
|
-
let r = Q, o = Q_, _ =
|
|
23668
|
+
let r = Q, o = Q_, _ = sk, v = WC;
|
|
23654
23669
|
return L(), l(v, {
|
|
23655
23670
|
ref_key: "edRef",
|
|
23656
23671
|
ref: a,
|
|
@@ -23664,7 +23679,7 @@ var aO = {
|
|
|
23664
23679
|
"destroy-on-close": e.destroyOnClose,
|
|
23665
23680
|
onClosed: W(m)
|
|
23666
23681
|
}, p({
|
|
23667
|
-
header: K(() => [W(i).header ? V(e.$slots, "header", { key: 0 }) : (L(), d("span",
|
|
23682
|
+
header: K(() => [W(i).header ? V(e.$slots, "header", { key: 0 }) : (L(), d("span", fk, U(e.title), 1)), e.showFullScreenIcon ? (L(), l(r, {
|
|
23668
23683
|
key: 2,
|
|
23669
23684
|
class: "wyfe-ivue__full-screen",
|
|
23670
23685
|
onClick: W(f)
|
|
@@ -23704,7 +23719,7 @@ var aO = {
|
|
|
23704
23719
|
]);
|
|
23705
23720
|
};
|
|
23706
23721
|
}
|
|
23707
|
-
}),
|
|
23722
|
+
}), mk = {
|
|
23708
23723
|
title: {
|
|
23709
23724
|
type: String,
|
|
23710
23725
|
default: "欢迎使用wyfe-ivue抽屉组件"
|
|
@@ -23784,7 +23799,7 @@ var aO = {
|
|
|
23784
23799
|
type: Function,
|
|
23785
23800
|
default: () => {}
|
|
23786
23801
|
}
|
|
23787
|
-
},
|
|
23802
|
+
}, hk = (e) => {
|
|
23788
23803
|
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 = () => {
|
|
23789
23804
|
r.value = !r.value;
|
|
23790
23805
|
}, c = !1;
|
|
@@ -23811,16 +23826,16 @@ var aO = {
|
|
|
23811
23826
|
c = !0, e?.();
|
|
23812
23827
|
}
|
|
23813
23828
|
};
|
|
23814
|
-
},
|
|
23829
|
+
}, gk = { class: "wyfe-ivue__header" }, _k = /* @__PURE__ */ g({
|
|
23815
23830
|
__name: "index",
|
|
23816
|
-
props:
|
|
23831
|
+
props: mk,
|
|
23817
23832
|
setup(e, { expose: n }) {
|
|
23818
|
-
let { edRef: r, handleClose: i, drawerSize: a, iconComponent: o, handleFullScreen: s, handleClosed: c, handleClick: m } =
|
|
23833
|
+
let { edRef: r, handleClose: i, drawerSize: a, iconComponent: o, handleFullScreen: s, handleClosed: c, handleClick: m } = hk(e);
|
|
23819
23834
|
return n({
|
|
23820
23835
|
edRef: r,
|
|
23821
23836
|
handleClose: i
|
|
23822
23837
|
}), (e, n) => {
|
|
23823
|
-
let i = Q, g = Q_, _ =
|
|
23838
|
+
let i = Q, g = Q_, _ = sk, v = QC;
|
|
23824
23839
|
return L(), l(v, {
|
|
23825
23840
|
ref_key: "edRef",
|
|
23826
23841
|
ref: r,
|
|
@@ -23833,7 +23848,7 @@ var aO = {
|
|
|
23833
23848
|
"close-on-click-modal": e.closeOnClickModal,
|
|
23834
23849
|
onClosed: W(c)
|
|
23835
23850
|
}, p({
|
|
23836
|
-
header: K(() => [f("div",
|
|
23851
|
+
header: K(() => [f("div", gk, [V(e.$slots, "header")]), e.showFullScreenIcon ? (L(), l(i, {
|
|
23837
23852
|
key: 0,
|
|
23838
23853
|
class: "wyfe-ivue__full-screen",
|
|
23839
23854
|
onClick: W(s)
|
|
@@ -23869,7 +23884,7 @@ var aO = {
|
|
|
23869
23884
|
]);
|
|
23870
23885
|
};
|
|
23871
23886
|
}
|
|
23872
|
-
}),
|
|
23887
|
+
}), vk = {
|
|
23873
23888
|
modelValue: {
|
|
23874
23889
|
type: [
|
|
23875
23890
|
String,
|
|
@@ -23905,7 +23920,7 @@ var aO = {
|
|
|
23905
23920
|
value: "value"
|
|
23906
23921
|
})
|
|
23907
23922
|
}
|
|
23908
|
-
},
|
|
23923
|
+
}, yk = ({ props: e, emits: t }) => {
|
|
23909
23924
|
let n = s(() => {
|
|
23910
23925
|
let t = e.options?.[0];
|
|
23911
23926
|
if (!t) return "string";
|
|
@@ -23922,12 +23937,12 @@ var aO = {
|
|
|
23922
23937
|
t("update:modelValue", s), t("update:label", l);
|
|
23923
23938
|
}
|
|
23924
23939
|
};
|
|
23925
|
-
},
|
|
23940
|
+
}, bk = /* @__PURE__ */ g({
|
|
23926
23941
|
__name: "index",
|
|
23927
|
-
props:
|
|
23942
|
+
props: vk,
|
|
23928
23943
|
emits: ["update:modelValue", "update:label"],
|
|
23929
23944
|
setup(e, { emit: n }) {
|
|
23930
|
-
let { modelValue: r, handleSelectChange: i } =
|
|
23945
|
+
let { modelValue: r, handleSelectChange: i } = yk({
|
|
23931
23946
|
props: e,
|
|
23932
23947
|
emits: n
|
|
23933
23948
|
});
|
|
@@ -23967,11 +23982,71 @@ var aO = {
|
|
|
23967
23982
|
]));
|
|
23968
23983
|
};
|
|
23969
23984
|
}
|
|
23970
|
-
}),
|
|
23985
|
+
}), xk = {
|
|
23986
|
+
title: {
|
|
23987
|
+
type: String,
|
|
23988
|
+
required: !0
|
|
23989
|
+
},
|
|
23990
|
+
fontSize: {
|
|
23991
|
+
type: String,
|
|
23992
|
+
default: "18px"
|
|
23993
|
+
},
|
|
23994
|
+
color: {
|
|
23995
|
+
type: String,
|
|
23996
|
+
default: ""
|
|
23997
|
+
},
|
|
23998
|
+
lineColor: {
|
|
23999
|
+
type: String,
|
|
24000
|
+
default: "var(--theme-color)"
|
|
24001
|
+
},
|
|
24002
|
+
linePosition: {
|
|
24003
|
+
type: String,
|
|
24004
|
+
default: "left",
|
|
24005
|
+
validator: (e) => [
|
|
24006
|
+
"left",
|
|
24007
|
+
"bottom",
|
|
24008
|
+
"between"
|
|
24009
|
+
].includes(e)
|
|
24010
|
+
},
|
|
24011
|
+
lineWidth: {
|
|
24012
|
+
type: String,
|
|
24013
|
+
default: "6px"
|
|
24014
|
+
},
|
|
24015
|
+
lineHeight: {
|
|
24016
|
+
type: String,
|
|
24017
|
+
default: "2px"
|
|
24018
|
+
},
|
|
24019
|
+
className: {
|
|
24020
|
+
type: String,
|
|
24021
|
+
default: ""
|
|
24022
|
+
},
|
|
24023
|
+
marginBottom: {
|
|
24024
|
+
type: String,
|
|
24025
|
+
default: "10px"
|
|
24026
|
+
}
|
|
24027
|
+
}, Sk = { class: "wyfe-ivue__use-line-title" }, Ck = ["innerHTML"], wk = /* @__PURE__ */ kO(/* @__PURE__ */ g({
|
|
24028
|
+
__name: "index",
|
|
24029
|
+
props: xk,
|
|
24030
|
+
setup(e) {
|
|
24031
|
+
return ge((e) => ({
|
|
24032
|
+
v72c96550: e.lineWidth,
|
|
24033
|
+
v74f76216: e.lineColor,
|
|
24034
|
+
v1a013856: e.lineHeight
|
|
24035
|
+
})), (e, t) => (L(), d("div", Sk, [f("div", {
|
|
24036
|
+
class: O(["content", [e.className, e.linePosition]]),
|
|
24037
|
+
style: A({
|
|
24038
|
+
fontSize: e.fontSize,
|
|
24039
|
+
marginBottom: e.marginBottom,
|
|
24040
|
+
color: e.color
|
|
24041
|
+
}),
|
|
24042
|
+
innerHTML: e.title
|
|
24043
|
+
}, null, 14, Ck)]));
|
|
24044
|
+
}
|
|
24045
|
+
}), [["__scopeId", "data-v-afe78fed"]]), Tk = (e) => {
|
|
23971
24046
|
let t = e.match(/^(-?\d*\.?\d+)(\D+)?$/);
|
|
23972
24047
|
if (!t) throw Error("size不合法");
|
|
23973
24048
|
return [parseFloat(t[1]), t[2]?.trim() || "px"];
|
|
23974
|
-
},
|
|
24049
|
+
}, Ek = ([, e]) => {
|
|
23975
24050
|
let t = [
|
|
23976
24051
|
"px",
|
|
23977
24052
|
"rem",
|
|
@@ -23981,7 +24056,7 @@ var aO = {
|
|
|
23981
24056
|
], n = t.includes(e);
|
|
23982
24057
|
if (!n) throw Error(`size单位不合法,合法单位:${t.join("、")}`);
|
|
23983
24058
|
return n;
|
|
23984
|
-
},
|
|
24059
|
+
}, Dk = {
|
|
23985
24060
|
name: {
|
|
23986
24061
|
type: String,
|
|
23987
24062
|
required: !0
|
|
@@ -23990,7 +24065,7 @@ var aO = {
|
|
|
23990
24065
|
type: [Number, String],
|
|
23991
24066
|
default: 28,
|
|
23992
24067
|
validator(e) {
|
|
23993
|
-
return (typeof e == "number" ||
|
|
24068
|
+
return (typeof e == "number" || Ek(Tk(e))) && e;
|
|
23994
24069
|
}
|
|
23995
24070
|
},
|
|
23996
24071
|
color: {
|
|
@@ -24008,9 +24083,9 @@ var aO = {
|
|
|
24008
24083
|
default: !1
|
|
24009
24084
|
},
|
|
24010
24085
|
hoverClass: { type: String }
|
|
24011
|
-
},
|
|
24086
|
+
}, Ok = ["href", "fill"], kk = /* @__PURE__ */ kO(/* @__PURE__ */ g({
|
|
24012
24087
|
__name: "index",
|
|
24013
|
-
props:
|
|
24088
|
+
props: Dk,
|
|
24014
24089
|
setup(e) {
|
|
24015
24090
|
ge((e) => ({
|
|
24016
24091
|
v94c66d84: i.value,
|
|
@@ -24030,13 +24105,13 @@ var aO = {
|
|
|
24030
24105
|
class: O([a.value ? "fillClass" : "", e.hoverClass]),
|
|
24031
24106
|
href: r.value,
|
|
24032
24107
|
fill: i.value
|
|
24033
|
-
}, null, 10,
|
|
24108
|
+
}, null, 10, Ok)], 4));
|
|
24034
24109
|
}
|
|
24035
|
-
}), [["__scopeId", "data-v-b69be9a5"]]),
|
|
24036
|
-
Object.entries(
|
|
24110
|
+
}), [["__scopeId", "data-v-b69be9a5"]]), Ak = /* @__PURE__ */ Object.assign({}), jk = {};
|
|
24111
|
+
Object.entries(Ak).forEach(([e, t]) => {
|
|
24037
24112
|
typeof t != "object" || !t || Object.entries(t).forEach(([t, n]) => {
|
|
24038
|
-
Reflect.has(
|
|
24113
|
+
Reflect.has(jk, t) && console.warn(`[iVueUtils] 工具函数 ${t} 重复定义,已覆盖(来源:${e})`), jk[t] = n;
|
|
24039
24114
|
});
|
|
24040
24115
|
});
|
|
24041
24116
|
//#endregion
|
|
24042
|
-
export {
|
|
24117
|
+
export { rk as UseCrudTable, sk as UseElButton, lk as UseElConfigProvider, pk as UseElDialog, _k as UseElDrawer, QO as UseElForm, UO as UseElInput, bk as UseElSelect, IO as UseElTable, wk as UseLineTitle, BO as UseRender, kk as UseSvgIcon, jk as iVueUtils };
|