@web-utils/form-ui 1.0.0-beta83 → 1.0.0-beta84
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/chunks/{BiY3yiiP2.mjs → 3nLaRSbR2.mjs} +1 -1
- package/chunks/{DpspbJVm2.mjs → 61ccpSFj2.mjs} +9 -9
- package/chunks/{BtNMd8g52.mjs → 8zYlq-t92.mjs} +3 -3
- package/chunks/{LivIWUWt.mjs → BIy6bO4j.mjs} +1 -1
- package/chunks/{BOHHK03q2.mjs → BMei9UHN2.mjs} +9 -9
- package/chunks/BhHMGhJ8.mjs +109 -0
- package/chunks/{DNaB9zOb2.mjs → BxcsELcB2.mjs} +2 -2
- package/chunks/BxuM-fgJ.mjs +61 -0
- package/chunks/{B9JhKxrE2.mjs → By-W0XXn2.mjs} +1 -1
- package/chunks/{CrFP0Lhs.mjs → C28bnMcw.mjs} +1 -1
- package/chunks/{fh36J3y1.mjs → CCpKg0cM.mjs} +2 -2
- package/chunks/{D3SYExuc.mjs → CET31mBi.mjs} +1 -1
- package/chunks/{ZCIAKVNm2.mjs → CTFV8OFH2.mjs} +2 -2
- package/chunks/{CI0pkCeM.mjs → CjCNtCWd.mjs} +1 -1
- package/chunks/{DLOrxYRD2.mjs → CkHQY4ME2.mjs} +1 -1
- package/chunks/{CvncYLo32.mjs → DFn9vkrz2.mjs} +1 -1
- package/chunks/{CaY7oZQ3.mjs → DJlgX5ty.mjs} +1 -1
- package/chunks/{D3xCUp_E.mjs → DVF9q3oX.mjs} +2 -2
- package/chunks/{CDZvVLNL.mjs → Dst9_BmZ.mjs} +2 -2
- package/chunks/{CnkvV3PU2.mjs → GgLE1MYX2.mjs} +1 -1
- package/chunks/{B7vR8-_Y2.mjs → SWO35fS42.mjs} +1 -1
- package/chunks/{DIMxdcyy2.mjs → Tq3_dajC2.mjs} +1 -1
- package/chunks/{mm9J6HEd2.mjs → XQwnPkab2.mjs} +1 -1
- package/chunks/{DzCIClcZ.mjs → b0ve2YgF.mjs} +1 -1
- package/chunks/{BK88Er_k.mjs → ofu8wJKp.mjs} +1 -1
- package/chunks/{BXnK2ccC.mjs → saZ_qJOT.mjs} +1 -1
- package/chunks/{CHdaMU5-.mjs → vHsAJZRT.mjs} +2 -2
- package/chunks/{BQ7zKN-6.mjs → vebd58-O.mjs} +1 -1
- package/chunks/{DK4GzYEk2.mjs → y1Q66LEa2.mjs} +1 -1
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.mjs +1 -1
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.mjs +1 -1
- package/form-image/index.mjs +1 -1
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.mjs +1 -1
- package/form-item/index.mjs +1 -1
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.mjs +1 -1
- package/form-select/index.mjs +1 -1
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.mjs +1 -1
- package/form-table/index.mjs +1 -1
- package/form-table-plus/index.mjs +1 -1
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.mjs +1 -1
- package/form-time-select/index.mjs +1 -1
- package/form-tree-select/index.mjs +1 -1
- package/form-tree-select-multiple/index.mjs +1 -1
- package/helper/input.mjs +1 -1
- package/index.mjs +29 -29
- package/package.json +1 -1
- package/resolver/components.d.ts +2 -0
- package/resolver/components.mjs +2 -2
- package/resolver/vite-optimize-deps-plugin.d.ts +9 -0
- package/resolver/vite-optimize-deps-plugin.mjs +13 -0
- package/sub-table/index.mjs +1 -1
- package/sub-table-plus/index.mjs +1 -1
- package/table-view/index.mjs +1 -1
- package/web-types.json +1 -1
- package/chunks/Bsu6--Di.mjs +0 -63
- package/chunks/CumZF9e-.mjs +0 -111
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./b0ve2YgF.mjs";
|
|
2
2
|
import { useDictionary as n } from "../hook/useDictionary.mjs";
|
|
3
3
|
import { allProps as r, predicate as i } from "../props/select.mjs";
|
|
4
4
|
import { ElOption as a, ElSelect as o } from "element-plus/es";
|
|
@@ -2,16 +2,16 @@ import { t as e } from "./B1MSrc6f.mjs";
|
|
|
2
2
|
import { t } from "./SLYmepqR.mjs";
|
|
3
3
|
import { t as n } from "./mnqSaATq.mjs";
|
|
4
4
|
import { t as r } from "./tzjUpVIj.mjs";
|
|
5
|
-
import { n as i } from "./
|
|
6
|
-
import { t as a } from "./
|
|
7
|
-
import { t as o } from "./
|
|
8
|
-
import { t as s } from "./
|
|
9
|
-
import { t as c } from "./
|
|
10
|
-
import { t as l } from "./
|
|
11
|
-
import { t as u } from "./
|
|
12
|
-
import { t as d } from "./
|
|
5
|
+
import { n as i } from "./b0ve2YgF.mjs";
|
|
6
|
+
import { t as a } from "./CjCNtCWd.mjs";
|
|
7
|
+
import { t as o } from "./C28bnMcw.mjs";
|
|
8
|
+
import { t as s } from "./Dst9_BmZ.mjs";
|
|
9
|
+
import { t as c } from "./BxuM-fgJ.mjs";
|
|
10
|
+
import { t as l } from "./vebd58-O.mjs";
|
|
11
|
+
import { t as u } from "./CCpKg0cM.mjs";
|
|
12
|
+
import { t as d } from "./3nLaRSbR2.mjs";
|
|
13
13
|
import f from "../table-column-def/index.mjs";
|
|
14
|
-
import { t as p } from "./
|
|
14
|
+
import { t as p } from "./BxcsELcB2.mjs";
|
|
15
15
|
import { ElMessage as m, formContextKey as h, formItemContextKey as g } from "element-plus/es";
|
|
16
16
|
import "element-plus/es/components/base/style/css";
|
|
17
17
|
import { Fragment as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as S, createTextVNode as C, createVNode as w, mergeProps as T, openBlock as E, renderList as D, renderSlot as O, resolveComponent as k, toDisplayString as A, withCtx as j, withModifiers as M } from "vue";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as e } from "./ClVh1Lek.mjs";
|
|
2
2
|
import { commonAutoBindProps as t, commonManualBindProps as n } from "../props/common.mjs";
|
|
3
|
-
import { n as r, o as i } from "./
|
|
4
|
-
import { n as a } from "./
|
|
5
|
-
import { n as o, t as s } from "./
|
|
3
|
+
import { n as r, o as i } from "./b0ve2YgF.mjs";
|
|
4
|
+
import { n as a } from "./C28bnMcw.mjs";
|
|
5
|
+
import { n as o, t as s } from "./BMei9UHN2.mjs";
|
|
6
6
|
import { computed as c, createVNode as l, getCurrentInstance as u, mergeProps as d, useModel as f, useTemplateRef as p } from "vue";
|
|
7
7
|
import { isArray as m, isString as h, trace as g, warning as _ } from "@web-utils/core";
|
|
8
8
|
import { useEventBus as v } from "@web-utils/vue/hooks/useEventBus";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./b0ve2YgF.mjs";
|
|
2
2
|
import { t as n } from "./tVHVSu5h.mjs";
|
|
3
3
|
import { allProps as r, predicate as i } from "../props/input-cron.mjs";
|
|
4
4
|
import { ElInput as a, ElPopover as o } from "element-plus/es";
|
|
@@ -4,15 +4,15 @@ import { t as n } from "./SLYmepqR.mjs";
|
|
|
4
4
|
import { cellClickHandlerContextKey as r } from "../constants/index.mjs";
|
|
5
5
|
import { t as i } from "./mnqSaATq.mjs";
|
|
6
6
|
import { t as a } from "./tzjUpVIj.mjs";
|
|
7
|
-
import { n as o } from "./
|
|
8
|
-
import { t as s } from "./
|
|
9
|
-
import { t as c } from "./
|
|
10
|
-
import { t as l } from "./
|
|
11
|
-
import { t as u } from "./
|
|
12
|
-
import { t as d } from "./
|
|
13
|
-
import { t as f } from "./
|
|
14
|
-
import { t as p } from "./
|
|
15
|
-
import { t as m } from "./
|
|
7
|
+
import { n as o } from "./b0ve2YgF.mjs";
|
|
8
|
+
import { t as s } from "./CjCNtCWd.mjs";
|
|
9
|
+
import { t as c } from "./saZ_qJOT.mjs";
|
|
10
|
+
import { t as l } from "./C28bnMcw.mjs";
|
|
11
|
+
import { t as u } from "./Dst9_BmZ.mjs";
|
|
12
|
+
import { t as d } from "./BxuM-fgJ.mjs";
|
|
13
|
+
import { t as f } from "./vebd58-O.mjs";
|
|
14
|
+
import { t as p } from "./CCpKg0cM.mjs";
|
|
15
|
+
import { t as m } from "./3nLaRSbR2.mjs";
|
|
16
16
|
import ee from "../table-column-def/index.mjs";
|
|
17
17
|
import { ElMessage as h, formContextKey as g, formItemContextKey as _ } from "element-plus/es";
|
|
18
18
|
import "element-plus/es/components/base/style/css";
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { m as e } from "./ClVh1Lek.mjs";
|
|
2
|
+
import { formHolderContextKey as t, formViewContextKey as n } from "../constants/index.mjs";
|
|
3
|
+
import { allProps as r, predicate as i } from "../props/form.mjs";
|
|
4
|
+
import a from "../form-advice/index.mjs";
|
|
5
|
+
import o from "../form-red-table/index.mjs";
|
|
6
|
+
import { ElForm as s, ElRow as c } from "element-plus/es";
|
|
7
|
+
import "element-plus/es/components/base/style/css";
|
|
8
|
+
import { computed as l, createVNode as u, inject as d, mergeProps as f, nextTick as p, provide as m, reactive as h, toRef as g, useTemplateRef as _ } from "vue";
|
|
9
|
+
import { animate as v } from "@web-utils/core";
|
|
10
|
+
import "element-plus/es/components/row/style/css";
|
|
11
|
+
import "element-plus/es/components/form/style/css";
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/form/FormHolder.vue
|
|
14
|
+
var y = {
|
|
15
|
+
name: "FormHolder",
|
|
16
|
+
inheritAttrs: !1,
|
|
17
|
+
props: { ...r },
|
|
18
|
+
emits: {},
|
|
19
|
+
setup(r, { slots: y, expose: b, attrs: x }) {
|
|
20
|
+
let { autoBindProps: S, listeners: C } = e(r, { predicate: i }), w = d(n, null), T = _("form"), E = l(() => r.notTableForm === void 0 ? (w == null ? void 0 : w.tableForm) === void 0 ? !1 : w == null ? void 0 : w.tableForm : !r.notTableForm), D = l(() => E.value ? !1 : r.showMessage), O = l(() => {
|
|
21
|
+
let e = {};
|
|
22
|
+
return r.disabledFields && r.disabledFields.forEach((t) => {
|
|
23
|
+
e[t] = !0;
|
|
24
|
+
}), e;
|
|
25
|
+
}), k = l(() => {
|
|
26
|
+
let e = {};
|
|
27
|
+
return r.enabledFields && r.enabledFields.length && r.enabledFields.forEach((t) => {
|
|
28
|
+
e[t] = !0;
|
|
29
|
+
}), e;
|
|
30
|
+
}), A = l(() => {
|
|
31
|
+
let e = {};
|
|
32
|
+
return r.requiredFields && r.requiredFields.length && r.requiredFields.forEach((t) => {
|
|
33
|
+
e[t] = !0;
|
|
34
|
+
}), e;
|
|
35
|
+
}), j = l(() => r.disabled === !0 ? !0 : r.disabled), M = g(() => r.enabledFields), N = g(() => r.requiredFields), P = g(() => r.disabledFields), F = async () => {
|
|
36
|
+
await p();
|
|
37
|
+
let e = T.value.$el.querySelector(".el-form-item.is-error");
|
|
38
|
+
e && e.scrollIntoView({
|
|
39
|
+
block: "center",
|
|
40
|
+
inline: "center",
|
|
41
|
+
behavior: "smooth"
|
|
42
|
+
});
|
|
43
|
+
}, I = h({
|
|
44
|
+
tableForm: E,
|
|
45
|
+
disabled: j,
|
|
46
|
+
enabledFields: M,
|
|
47
|
+
requiredFields: N,
|
|
48
|
+
enabledFieldsMap: k,
|
|
49
|
+
disabledFieldsMap: O,
|
|
50
|
+
requiredFieldsMap: A,
|
|
51
|
+
disabledFields: P,
|
|
52
|
+
scrollIntoRequiredField: F,
|
|
53
|
+
formRef: T,
|
|
54
|
+
validate: async () => {
|
|
55
|
+
try {
|
|
56
|
+
return await T.value.validate();
|
|
57
|
+
} catch {
|
|
58
|
+
throw await F(), T.value.$el.querySelectorAll(".el-form-item.is-error .el-form-item__content > :first-child").forEach((e) => {
|
|
59
|
+
v(e, "breathe-animation");
|
|
60
|
+
}), Error("表单验证不通过!");
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
validateField: (e) => T.value.validateField(e),
|
|
64
|
+
resetFields: (e) => T.value.resetFields(e),
|
|
65
|
+
scrollToField: (e) => T.value.scrollToField(e),
|
|
66
|
+
clearValidate: (e) => T.value.clearValidate(e),
|
|
67
|
+
getField: () => T.value.getField(),
|
|
68
|
+
setInitialValues: (e) => T.value.setInitialValues(e),
|
|
69
|
+
getFields: () => T.value.fields
|
|
70
|
+
});
|
|
71
|
+
return m(t, I), b(I), () => u(s, f(C.value, S.value, x, {
|
|
72
|
+
ref: "form",
|
|
73
|
+
class: [
|
|
74
|
+
"form-holder",
|
|
75
|
+
"clear-fix",
|
|
76
|
+
{ "red-form": E }
|
|
77
|
+
],
|
|
78
|
+
"show-message": D.value
|
|
79
|
+
}), { default: () => {
|
|
80
|
+
if (E.value) {
|
|
81
|
+
var e, t, n;
|
|
82
|
+
return [
|
|
83
|
+
(e = y.top) == null ? void 0 : e.call(y),
|
|
84
|
+
u(o, {
|
|
85
|
+
class: { "hide-error-message": E.value },
|
|
86
|
+
columns: r.columns,
|
|
87
|
+
"col-count": r.colCount
|
|
88
|
+
}, { default: () => {
|
|
89
|
+
var e;
|
|
90
|
+
return [(e = y.default) == null ? void 0 : e.call(y), r.showAdvice ? u(a, {
|
|
91
|
+
"label-colspan": r.commentLabelColspan,
|
|
92
|
+
"value-colspan": r.commentValueColspan
|
|
93
|
+
}, null) : null];
|
|
94
|
+
} }),
|
|
95
|
+
(t = y.bottom) == null ? void 0 : t.call(y),
|
|
96
|
+
u("div", { class: "red-form-footer" }, [(n = y.footer) == null ? void 0 : n.call(y)])
|
|
97
|
+
];
|
|
98
|
+
} else {
|
|
99
|
+
var i;
|
|
100
|
+
return r.wrapRow ? u(c, null, { default: () => {
|
|
101
|
+
var e;
|
|
102
|
+
return [(e = y.default) == null ? void 0 : e.call(y)];
|
|
103
|
+
} }) : (i = y.default) == null ? void 0 : i.call(y);
|
|
104
|
+
}
|
|
105
|
+
} });
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
//#endregion
|
|
109
|
+
export { y as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import { t } from "./
|
|
1
|
+
import { n as e } from "./b0ve2YgF.mjs";
|
|
2
|
+
import { t } from "./C28bnMcw.mjs";
|
|
3
3
|
import { allProps as n } from "../props/textarea.mjs";
|
|
4
4
|
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
5
5
|
//#region src/components/form/FormTextarea.vue?vue&type=script&lang.jsx
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { allProps as e, predicate as t } from "../props/date.mjs";
|
|
2
|
+
import { n, o as r } from "./b0ve2YgF.mjs";
|
|
3
|
+
import { ElDatePicker as i } from "element-plus/es";
|
|
4
|
+
import "element-plus/es/components/base/style/css";
|
|
5
|
+
import { computed as a, createVNode as o, mergeProps as s } from "vue";
|
|
6
|
+
import "element-plus/es/components/date-picker/style/css";
|
|
7
|
+
import { toDate as c } from "@web-utils/integrations/dayjs";
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/components/form/FormDatePicker.vue
|
|
10
|
+
var l = {
|
|
11
|
+
name: "FormDatePicker",
|
|
12
|
+
inheritAttrs: !1,
|
|
13
|
+
props: { ...e },
|
|
14
|
+
emits: {
|
|
15
|
+
...n,
|
|
16
|
+
"update:startDate": null,
|
|
17
|
+
"update:endDate": null
|
|
18
|
+
},
|
|
19
|
+
setup(e, { emit: n, slots: l, attrs: u }) {
|
|
20
|
+
let { emitInput: d, render: f, placeholder: p, disabled: m, listeners: h, inputProps: g } = r(e, {
|
|
21
|
+
emit: n,
|
|
22
|
+
slots: l,
|
|
23
|
+
attrs: u,
|
|
24
|
+
predicate: t,
|
|
25
|
+
messagePrefix: "请选择"
|
|
26
|
+
}), _ = a(() => e.dateTimeRange || e.dateRange || e.monthRange), v = a(() => e.year ? "YYYY" : e.month || e.monthRange ? "YYYY-MM" : e.week ? "YYYY 第 WW 周" : e.dateTime || e.dateTimeRange ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD"), y = a(() => e.year ? "year" : e.month ? "month" : e.dates ? "dates" : e.week ? "week" : e.dateTime ? "datetime" : e.dateTimeRange ? "datetimerange" : e.dateRange ? "daterange" : e.monthRange ? "monthrange" : "date"), b = a(() => {
|
|
27
|
+
if (e.miniDate) {
|
|
28
|
+
let t = c(e.miniDate);
|
|
29
|
+
return t.setDate(t.getDate() - 1), t;
|
|
30
|
+
} else return null;
|
|
31
|
+
}), x = a(() => e.maxDate ? c(e.maxDate) : null), S = (e) => {
|
|
32
|
+
if (!b.value && !x.value) return !1;
|
|
33
|
+
let t = e.getTime();
|
|
34
|
+
return b.value && !x.value ? t <= b.value.getTime() : !b.value && x.value ? t >= x.value.getTime() : b.value && x.value ? !(t > b.value.getTime() && t <= x.value.getTime()) : !1;
|
|
35
|
+
}, C = (e, t) => {
|
|
36
|
+
n("update:startDate", e), n("update:endDate", t);
|
|
37
|
+
}, w = (t) => {
|
|
38
|
+
_.value && e.split ? t ? C(t[0], t[1]) : C(null, null) : d(t);
|
|
39
|
+
}, T = a(() => _.value && e.split ? [e.startDate, e.endDate] : e.modelValue), E = a(() => e.week ? "YYYY-MM-DD" : e.valueFormat || v.value), D = a(() => e.format || v.value);
|
|
40
|
+
return () => f({ vNodes: o(i, s(h.value, g.value, {
|
|
41
|
+
style: "width: 100%",
|
|
42
|
+
type: y.value,
|
|
43
|
+
modelValue: T.value,
|
|
44
|
+
disabled: m.value,
|
|
45
|
+
placeholder: p.value,
|
|
46
|
+
format: D.value,
|
|
47
|
+
disabledDate: S,
|
|
48
|
+
"value-format": E.value,
|
|
49
|
+
"onUpdate:modelValue": w
|
|
50
|
+
}), {
|
|
51
|
+
default: l.default,
|
|
52
|
+
"range-separator": l["range-separator"],
|
|
53
|
+
"pre-month": l["pre-month"],
|
|
54
|
+
"next-month": l["next-month"],
|
|
55
|
+
"pre-year": l["pre-year"],
|
|
56
|
+
"next-year": l["next-year"]
|
|
57
|
+
}) });
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
//#endregion
|
|
61
|
+
export { l as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./b0ve2YgF.mjs";
|
|
2
2
|
import { useDictionary as n } from "../hook/useDictionary.mjs";
|
|
3
3
|
import { allProps as r, predicate as i } from "../props/radio-group.mjs";
|
|
4
4
|
import { ElRadio as a, ElRadioButton as o, ElRadioGroup as s } from "element-plus/es";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t, t as n } from "./
|
|
1
|
+
import { n as e, o as t, t as n } from "./b0ve2YgF.mjs";
|
|
2
2
|
import { allProps as r, predicate as i } from "../props/input.mjs";
|
|
3
3
|
import { ElInput as a } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import { t } from "./
|
|
1
|
+
import { n as e } from "./b0ve2YgF.mjs";
|
|
2
|
+
import { t } from "./C28bnMcw.mjs";
|
|
3
3
|
import { allProps as n } from "../props/input.mjs";
|
|
4
4
|
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
5
5
|
//#region src/components/form/FormInputPhoneNumber.vue?vue&type=script&lang.jsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./b0ve2YgF.mjs";
|
|
2
2
|
import { allProps as n, predicate as r } from "../props/time.mjs";
|
|
3
3
|
import { ElTimePicker as i } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { commonAutoBindProps as e, commonManualBindProps as t } from "../props/common.mjs";
|
|
2
|
-
import { n, o as r } from "./
|
|
3
|
-
import { n as i, t as a } from "./
|
|
2
|
+
import { n, o as r } from "./b0ve2YgF.mjs";
|
|
3
|
+
import { n as i, t as a } from "./61ccpSFj2.mjs";
|
|
4
4
|
import { createVNode as o, mergeProps as s, ref as c, useModel as l } from "vue";
|
|
5
5
|
//#region src/components/table/form-table.ts
|
|
6
6
|
var u = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { allProps as e, predicate as t } from "../props/cascader.mjs";
|
|
2
|
-
import { n, o as r } from "./
|
|
2
|
+
import { n, o as r } from "./b0ve2YgF.mjs";
|
|
3
3
|
import { useDictionary as i } from "../hook/useDictionary.mjs";
|
|
4
4
|
import { ElCascader as a } from "element-plus/es";
|
|
5
5
|
import "element-plus/es/components/base/style/css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./b0ve2YgF.mjs";
|
|
2
2
|
import { t as n } from "./FZqu01np2.mjs";
|
|
3
3
|
import { allProps as r, predicate as i } from "../props/tree-select.mjs";
|
|
4
4
|
import { createVNode as a, mergeProps as o } from "vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as e } from "./ClVh1Lek.mjs";
|
|
2
2
|
import { useFormItemProps as t } from "../helper/form-item.mjs";
|
|
3
|
-
import { r as n } from "./
|
|
3
|
+
import { r as n } from "./b0ve2YgF.mjs";
|
|
4
4
|
import { allProps as r, predicate as i } from "../props/image.mjs";
|
|
5
5
|
import { ElImage as a } from "element-plus/es";
|
|
6
6
|
import "element-plus/es/components/base/style/css";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import { t } from "./
|
|
1
|
+
import { n as e } from "./b0ve2YgF.mjs";
|
|
2
|
+
import { t } from "./C28bnMcw.mjs";
|
|
3
3
|
import { allProps as n } from "../props/input.mjs";
|
|
4
4
|
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
5
5
|
//#region src/components/form/FormInputEmail.vue?vue&type=script&lang.jsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { allProps as e, predicate as t } from "../props/checkbox-group.mjs";
|
|
2
|
-
import { n, o as r } from "./
|
|
2
|
+
import { n, o as r } from "./b0ve2YgF.mjs";
|
|
3
3
|
import { useDictionary as i } from "../hook/useDictionary.mjs";
|
|
4
|
-
import { t as a } from "./
|
|
4
|
+
import { t as a } from "./C28bnMcw.mjs";
|
|
5
5
|
import { ElCheckbox as o, ElCheckboxButton as s, ElCheckboxGroup as c } from "element-plus/es";
|
|
6
6
|
import "element-plus/es/components/base/style/css";
|
|
7
7
|
import { computed as l, createVNode as u, defineComponent as d, isVNode as f, mergeProps as p, useModel as m } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./b0ve2YgF.mjs";
|
|
2
2
|
import { t as n } from "./FZqu01np2.mjs";
|
|
3
3
|
import { allProps as r, predicate as i } from "../props/tree-select-multiple.mjs";
|
|
4
4
|
import { createVNode as a, mergeProps as o } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./b0ve2YgF.mjs";
|
|
2
2
|
import { allProps as n, predicate as r } from "../props/time-select.mjs";
|
|
3
3
|
import { ElTimeSelect as i } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as e } from "./ClVh1Lek.mjs";
|
|
2
2
|
import { useFormItemProps as t } from "../helper/form-item.mjs";
|
|
3
|
-
import { r as n } from "./
|
|
3
|
+
import { r as n } from "./b0ve2YgF.mjs";
|
|
4
4
|
import { allProps as r, predicate as i } from "../props/text.mjs";
|
|
5
5
|
import { ElText as a } from "element-plus/es";
|
|
6
6
|
import "element-plus/es/components/base/style/css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./b0ve2YgF.mjs";
|
|
2
2
|
import { allProps as n, predicate as r } from "../props/switch.mjs";
|
|
3
3
|
import { ElSwitch as i } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
|
@@ -123,7 +123,7 @@ var E = {
|
|
|
123
123
|
tips: r.tips,
|
|
124
124
|
below: r.below
|
|
125
125
|
}) : t, M = (r, { emit: i, slots: a, events: o, predicate: s, removeOn: c = !1, attrs: l, block: u, class: d, rules: m, messagePrefix: g = "请输入", extraFormItemProps: _ }) => {
|
|
126
|
-
let v = O(r), b = S(f, null), C = y(() => v.value || r.placeholder === !1 ? "" : r.placeholder === !0 ? `${g}${r.label}` : r.placeholder || `${g}${r.label}`), E = p(r, {
|
|
126
|
+
let v = O(r), b = S(f, null), C = y(() => v.value || r.placeholder === !1 ? "" : r.placeholder === !0 ? `${g}${r.label}` : r.placeholder || `${g ?? ""}${r.label ?? ""}`), E = p(r, {
|
|
127
127
|
rules: m,
|
|
128
128
|
block: w(() => u === void 0 ? r.type === "textarea" && r.block === void 0 ? !0 : r.block : u),
|
|
129
129
|
attrs: l,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./b0ve2YgF.mjs";
|
|
2
2
|
import n from "../x-input-tag/index.mjs";
|
|
3
3
|
import { allProps as r, predicate as i } from "../props/input-tag.mjs";
|
|
4
4
|
import { createVNode as a, mergeProps as o } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { allProps as e, predicate as t } from "../props/checkbox.mjs";
|
|
2
|
-
import { n, o as r } from "./
|
|
2
|
+
import { n, o as r } from "./b0ve2YgF.mjs";
|
|
3
3
|
import { ElCheckbox as i } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
|
5
5
|
import { createVNode as a, mergeProps as o, useModel as s } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import { t } from "./
|
|
1
|
+
import { n as e } from "./b0ve2YgF.mjs";
|
|
2
|
+
import { t } from "./C28bnMcw.mjs";
|
|
3
3
|
import { allProps as n } from "../props/input.mjs";
|
|
4
4
|
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
5
5
|
//#region src/components/form/FormInputIdCard.vue?vue&type=script&lang.jsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./b0ve2YgF.mjs";
|
|
2
2
|
import { allProps as n, predicate as r } from "../props/input-number.mjs";
|
|
3
3
|
import { ElInputNumber as i } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./b0ve2YgF.mjs";
|
|
2
2
|
import { allProps as n, predicate as r } from "../props/slide.mjs";
|
|
3
3
|
import { ElSlider as i } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
package/form-cascader/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/CjCNtCWd.mjs";
|
|
2
2
|
export { e as default };
|
package/form-checkbox/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/saZ_qJOT.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/Dst9_BmZ.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/BxuM-fgJ.mjs";
|
|
2
2
|
export { e as default };
|
package/form-holder/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/BhHMGhJ8.mjs";
|
|
2
2
|
export { e as default };
|
package/form-image/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/DJlgX5ty.mjs";
|
|
2
2
|
export { e as default };
|
package/form-input/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/C28bnMcw.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/BIy6bO4j.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/DVF9q3oX.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/vHsAJZRT.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/vebd58-O.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/CCpKg0cM.mjs";
|
|
2
2
|
export { e as default };
|
package/form-input-tag/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/ofu8wJKp.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/CET31mBi.mjs";
|
|
2
2
|
export { e as default };
|
package/form-item/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { s as e } from "../chunks/
|
|
1
|
+
import { s as e } from "../chunks/b0ve2YgF.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/By-W0XXn2.mjs";
|
|
2
2
|
export { e as default };
|
package/form-rate/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/CkHQY4ME2.mjs";
|
|
2
2
|
export { e as default };
|
package/form-select/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/3nLaRSbR2.mjs";
|
|
2
2
|
export { e as default };
|
package/form-slider/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/y1Q66LEa2.mjs";
|
|
2
2
|
export { e as default };
|
package/form-switch/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/XQwnPkab2.mjs";
|
|
2
2
|
export { e as default };
|
package/form-table/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/CTFV8OFH2.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/8zYlq-t92.mjs";
|
|
2
2
|
export { e as default };
|
package/form-text/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/Tq3_dajC2.mjs";
|
|
2
2
|
export { e as default };
|
package/form-textarea/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/BxcsELcB2.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/SWO35fS42.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/DFn9vkrz2.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/GgLE1MYX2.mjs";
|
|
2
2
|
export { e as default };
|
package/helper/input.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, t as a } from "../chunks/
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "../chunks/b0ve2YgF.mjs";
|
|
2
2
|
export { a as FontIcon, n as inputEmits, i as renderFormItem, t as updateModelValue, e as useDisabled, r as useInput };
|