@web-utils/form-ui 1.0.0-beta17 → 1.0.0-beta19
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/{CrWDXTno.mjs → 8ORg8rrN.mjs} +2 -2
- package/chunks/{CqgD2b0r.mjs → B3DY36vM.mjs} +2 -2
- package/chunks/{Du6wl65y.mjs → B7fKv2-x.mjs} +2 -2
- package/chunks/{D0EeP-eB.mjs → B9-9iYg8.mjs} +4 -3
- package/chunks/{DsBWDK1-.mjs → BAm_wcwz.mjs} +8 -4
- package/chunks/{Lnj54GAG.mjs → BJObhbQz.mjs} +2 -2
- package/chunks/{CH_v7XkN.mjs → BSriw1Qr.mjs} +3 -3
- package/chunks/{uWRsKwOO.mjs → BVzpe2oN.mjs} +2 -2
- package/chunks/{3ItTydl6.mjs → Be_E_4G0.mjs} +18 -12
- package/chunks/{1BaFmq0z.mjs → Bk3PtIYo.mjs} +13 -10
- package/chunks/{CEWLi7G1.mjs → C1DlzLpD.mjs} +56 -56
- package/chunks/{DX4Wq2Fb.mjs → CJeq96R0.mjs} +2 -2
- package/chunks/CNtf2MHr.mjs +106 -0
- package/chunks/{DQDBsEel.mjs → CPE8fqJc.mjs} +3 -3
- package/chunks/{Do5h5GzH.mjs → D7hrSVVl.mjs} +2 -2
- package/chunks/{CbGBSOlX.mjs → DAS1h_Ei.mjs} +3 -3
- package/chunks/{f-CM5UVD.mjs → D_Xobj10.mjs} +3 -3
- package/chunks/{DUBc-1s4.mjs → DgCwGit4.mjs} +3 -3
- package/chunks/{DFuF0u2g.mjs → DgbDpRQg.mjs} +2 -2
- package/chunks/{CQTt0Oq1.mjs → DynLjTwi.mjs} +1 -1
- package/chunks/nJ1-P9vh.mjs +189 -0
- package/constants.d.ts +26 -10
- package/constants.mjs +2 -2
- package/form-check-box-group/index.mjs +1 -1
- package/form-checkbox/index.mjs +1 -1
- package/form-date-picker/index.d.ts +7 -7
- 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-item-config-provider/index.mjs +6 -6
- package/form-item-group/index.d.ts +91 -17
- package/form-item-group/index.mjs +2 -78
- package/form-item-group/style.css +1 -1
- package/form-item-x/index.mjs +1 -1
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.mjs +1 -1
- package/form-row/index.mjs +1 -1
- package/form-select/index.mjs +1 -1
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +18 -4
- package/form-switch/index.mjs +1 -1
- package/form-text/index.d.ts +2 -0
- package/form-text/index.mjs +1 -1
- package/index.mjs +20 -20
- package/package.json +1 -1
- package/web-types.json +1 -1
- package/chunks/DCKxvrCR.mjs +0 -189
- /package/chunks/{98bTmBOR.mjs → DdDv8RSI.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./C1DlzLpD.mjs";
|
|
2
|
+
import { n } from "./DynLjTwi.mjs";
|
|
3
3
|
import { ElCheckbox as r, ElCheckboxButton as i, ElCheckboxGroup as a } from "element-plus/es";
|
|
4
4
|
import { computed as o, createVNode as s, isVNode as c, mergeProps as l } from "vue";
|
|
5
5
|
//#region src/components/form/props/checkbox-group.js
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, t } from "./
|
|
1
|
+
import { n as e, t } from "./DynLjTwi.mjs";
|
|
2
2
|
//#region src/components/form/props/input.js
|
|
3
3
|
var n = {
|
|
4
4
|
...e,
|
|
@@ -22,7 +22,7 @@ var n = {
|
|
|
22
22
|
placeholder: String,
|
|
23
23
|
clearable: {
|
|
24
24
|
type: Boolean,
|
|
25
|
-
default: !
|
|
25
|
+
default: !0
|
|
26
26
|
},
|
|
27
27
|
clearIcon: [String, Object],
|
|
28
28
|
formatter: Function,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./C1DlzLpD.mjs";
|
|
2
|
+
import { n } from "./DynLjTwi.mjs";
|
|
3
3
|
import { ElRate as r } from "element-plus/es";
|
|
4
4
|
import { createVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
5
5
|
//#region src/components/form/props/rate.js
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./Bh_CMUlo.mjs";
|
|
2
|
-
import { o as t, r as n } from "./
|
|
3
|
-
import { n as r } from "./
|
|
2
|
+
import { o as t, r as n } from "./C1DlzLpD.mjs";
|
|
3
|
+
import { n as r } from "./DynLjTwi.mjs";
|
|
4
4
|
import { ElText as i } from "element-plus/es";
|
|
5
5
|
import { createVNode as a, mergeProps as o } from "vue";
|
|
6
6
|
//#region src/components/form/props/text.js
|
|
@@ -19,7 +19,8 @@ var s = {
|
|
|
19
19
|
tag: {
|
|
20
20
|
type: String,
|
|
21
21
|
default: "span"
|
|
22
|
-
}
|
|
22
|
+
},
|
|
23
|
+
text: String
|
|
23
24
|
}, c = { modelValue: !0 }, l = ["change"], u = (e) => r[e] === void 0 && c[e] !== !0, d = {
|
|
24
25
|
name: "FormText",
|
|
25
26
|
inheritAttrs: !1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./C1DlzLpD.mjs";
|
|
2
|
+
import { n } from "./DynLjTwi.mjs";
|
|
3
3
|
import { ElOption as r, ElSelect as i } from "element-plus/es";
|
|
4
4
|
import { createVNode as a, mergeProps as o, useModel as s } from "vue";
|
|
5
5
|
//#region src/components/form/props/select.js
|
|
@@ -25,7 +25,7 @@ var c = {
|
|
|
25
25
|
size: String,
|
|
26
26
|
clearable: {
|
|
27
27
|
type: Boolean,
|
|
28
|
-
default: !
|
|
28
|
+
default: !0
|
|
29
29
|
},
|
|
30
30
|
collapseTags: {
|
|
31
31
|
type: Boolean,
|
|
@@ -169,7 +169,11 @@ var c = {
|
|
|
169
169
|
default: !0
|
|
170
170
|
},
|
|
171
171
|
tabindex: [String, Number]
|
|
172
|
-
}, l = {
|
|
172
|
+
}, l = {
|
|
173
|
+
modelValue: !0,
|
|
174
|
+
emptyValues: !0,
|
|
175
|
+
valueOnClear: !0
|
|
176
|
+
}, u = [
|
|
173
177
|
"change",
|
|
174
178
|
"visible-change",
|
|
175
179
|
"remove-tag",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./C1DlzLpD.mjs";
|
|
2
|
+
import { n } from "./DynLjTwi.mjs";
|
|
3
3
|
import { ElSlider as r } from "element-plus/es";
|
|
4
4
|
import { createVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
5
5
|
//#region src/components/form/props/slide.js
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n, t as r } from "./
|
|
3
|
-
import { n as i, r as a } from "./
|
|
1
|
+
import { i as e, n as t } from "./C1DlzLpD.mjs";
|
|
2
|
+
import { n, t as r } from "./DynLjTwi.mjs";
|
|
3
|
+
import { n as i, r as a } from "./B3DY36vM.mjs";
|
|
4
4
|
import { t as o } from "./wfL1FAwc.mjs";
|
|
5
5
|
import { ElInput as s, ElPopover as c } from "element-plus/es";
|
|
6
6
|
import { createVNode as l, mergeProps as u, ref as d } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./C1DlzLpD.mjs";
|
|
2
|
+
import { n } from "./DynLjTwi.mjs";
|
|
3
3
|
import { ElCheckbox as r } from "element-plus/es";
|
|
4
4
|
import { createVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
5
5
|
//#region src/components/form/props/checkbox.js
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./C1DlzLpD.mjs";
|
|
2
|
+
import { n } from "./DynLjTwi.mjs";
|
|
3
3
|
import { ElSwitch as r } from "element-plus/es";
|
|
4
4
|
import { createVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
5
5
|
//#region src/components/form/props/switch.js
|
|
@@ -35,16 +35,22 @@ var s = {
|
|
|
35
35
|
type: String,
|
|
36
36
|
default: ""
|
|
37
37
|
},
|
|
38
|
-
activeValue:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
38
|
+
activeValue: {
|
|
39
|
+
type: [
|
|
40
|
+
Boolean,
|
|
41
|
+
String,
|
|
42
|
+
Number
|
|
43
|
+
],
|
|
44
|
+
default: !0
|
|
45
|
+
},
|
|
46
|
+
inactiveValue: {
|
|
47
|
+
type: [
|
|
48
|
+
Boolean,
|
|
49
|
+
String,
|
|
50
|
+
Number
|
|
51
|
+
],
|
|
52
|
+
default: !1
|
|
53
|
+
},
|
|
48
54
|
name: {
|
|
49
55
|
type: String,
|
|
50
56
|
default: ""
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./C1DlzLpD.mjs";
|
|
2
|
+
import { n } from "./DynLjTwi.mjs";
|
|
3
3
|
import { ElDatePicker as r } from "element-plus/es";
|
|
4
4
|
import { computed as i, createVNode as a, mergeProps as o } from "vue";
|
|
5
5
|
//#region src/components/form/props/date.js
|
|
@@ -111,16 +111,19 @@ var s = {
|
|
|
111
111
|
automaticDropdown: {
|
|
112
112
|
type: Boolean,
|
|
113
113
|
default: !0
|
|
114
|
-
}
|
|
115
|
-
|
|
114
|
+
},
|
|
115
|
+
split: Boolean,
|
|
116
|
+
startDate: String,
|
|
117
|
+
endDate: String
|
|
118
|
+
}, c = {
|
|
119
|
+
modelValue: !0,
|
|
120
|
+
name: !0,
|
|
121
|
+
emptyValues: !0,
|
|
122
|
+
valueOnClear: !0
|
|
123
|
+
}, l = ["change"], u = (e) => n[e] === void 0 && c[e] !== !0, d = {
|
|
116
124
|
name: "FormDatePicker",
|
|
117
125
|
inheritAttrs: !1,
|
|
118
|
-
props: {
|
|
119
|
-
...s,
|
|
120
|
-
split: Boolean,
|
|
121
|
-
startDate: String,
|
|
122
|
-
endDate: String
|
|
123
|
-
},
|
|
126
|
+
props: { ...s },
|
|
124
127
|
emits: {
|
|
125
128
|
...t,
|
|
126
129
|
"update:startDate": null,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { formHolderContextKey as e, formItemConfigProviderContextKey as t } from "../constants.mjs";
|
|
2
|
-
import { t as
|
|
3
|
-
import { ElCol as
|
|
4
|
-
import { computed as
|
|
5
|
-
import { ElCol as
|
|
1
|
+
import { formHolderContextKey as e, formItemConfigProviderContextKey as t, formItemGroupContextKey as n } from "../constants.mjs";
|
|
2
|
+
import { t as r } from "./Bh_CMUlo.mjs";
|
|
3
|
+
import { ElCol as i, ElFormItem as a, ElTooltip as o } from "element-plus/es";
|
|
4
|
+
import { computed as s, createVNode as c, h as l, inject as u, mergeProps as d, nextTick as f, unref as p, useTemplateRef as m } from "vue";
|
|
5
|
+
import { ElCol as h, rowContextKey as g } from "element-plus";
|
|
6
6
|
//#region src/components/form/props/form-item.js
|
|
7
|
-
var
|
|
7
|
+
var _ = {
|
|
8
8
|
prop: [String, Array],
|
|
9
9
|
label: String,
|
|
10
10
|
labelPosition: {
|
|
@@ -50,7 +50,7 @@ var g = {
|
|
|
50
50
|
inputColspan: [Number, String],
|
|
51
51
|
labelRowspan: [Number, String],
|
|
52
52
|
inputRowspan: [Number, String]
|
|
53
|
-
},
|
|
53
|
+
}, v = {
|
|
54
54
|
required: !0,
|
|
55
55
|
rules: !0,
|
|
56
56
|
messagePrefix: !0,
|
|
@@ -68,7 +68,7 @@ var g = {
|
|
|
68
68
|
inputColspan: !0,
|
|
69
69
|
labelRowspan: !0,
|
|
70
70
|
inputRowspan: !0
|
|
71
|
-
},
|
|
71
|
+
}, y = (e) => _[e] !== void 0 && v[e] !== !0, b = (e, { emit: t, events: n, predicate: i }) => s(() => r(e, i, n, t)), x = {
|
|
72
72
|
span: {
|
|
73
73
|
type: Number,
|
|
74
74
|
default: 12
|
|
@@ -94,31 +94,31 @@ var g = {
|
|
|
94
94
|
type: String,
|
|
95
95
|
default: "div"
|
|
96
96
|
}
|
|
97
|
-
},
|
|
98
|
-
let n =
|
|
99
|
-
return
|
|
100
|
-
},
|
|
101
|
-
let a =
|
|
102
|
-
return
|
|
103
|
-
let o = { message: i }, s =
|
|
97
|
+
}, S = { span: !0 }, C = (e) => x[e] !== void 0 && S[e] !== !0, w = (e, { emit: t, events: n, predicate: i }) => s(() => r(e, i, n, t)), T = (t) => {
|
|
98
|
+
let n = u(e, null);
|
|
99
|
+
return s(() => t.required === !0 ? !0 : (n == null ? void 0 : n.requiredFieldsMap[t.prop]) === !0);
|
|
100
|
+
}, E = (e, { rules: t, attrs: n, messagePrefix: r, message: i } = {}) => {
|
|
101
|
+
let a = T(e);
|
|
102
|
+
return s(() => {
|
|
103
|
+
let o = { message: i }, s = p(t);
|
|
104
104
|
return Object.keys({
|
|
105
|
-
...
|
|
106
|
-
...
|
|
105
|
+
..._,
|
|
106
|
+
...x
|
|
107
107
|
}).forEach((t) => {
|
|
108
108
|
t === "rules" ? e[t] && s ? o[t] = [...e[t], ...s] : e[t] ? o[t] = e[t] : s && (o[t] = s) : t === "messagePrefix" ? o[t] = e.messagePrefix || r : o[t] = e[t];
|
|
109
109
|
}), o.required = a.value, o.class = n == null ? void 0 : n.class, o.style = n == null ? void 0 : n.style, o;
|
|
110
110
|
});
|
|
111
|
-
},
|
|
111
|
+
}, D = {
|
|
112
112
|
name: "FormItemX",
|
|
113
113
|
inheritAttrs: !1,
|
|
114
114
|
props: {
|
|
115
|
-
...
|
|
116
|
-
...
|
|
115
|
+
..._,
|
|
116
|
+
...x
|
|
117
117
|
},
|
|
118
|
-
setup(n, { attrs:
|
|
119
|
-
let
|
|
118
|
+
setup(n, { attrs: r, slots: l, expose: p }) {
|
|
119
|
+
let h = u(g, null), _ = u(t, null), v = u(e, null), x = r.embed ? s(() => r.disabled) : k(n), S = b(n, { predicate: y }), E = w(n, { predicate: C }), D = s(() => (_ == null ? void 0 : _.reactive) === !0 && _.block === !1 && n.fixedSpan === void 0 && !n.half), O = T(n), A = m("formItem"), j = s(() => (_ == null ? void 0 : _.wrapCol) === !1 ? !1 : !!h && n.wrapCol), M = s(() => v != null && v.tableForm ? "" : _ != null && _.block ? "100%" : n.half && j.value ? `calc(50% - ${h.gutter.value / 2}px)` : ""), N = s(() => (_ == null ? void 0 : _.block) === !0 || n.block || n.half ? 24 : n.span), P = s(() => {
|
|
120
120
|
if (x.value) return [];
|
|
121
|
-
if (
|
|
121
|
+
if (O.value) {
|
|
122
122
|
let e = {
|
|
123
123
|
required: !0,
|
|
124
124
|
message: n.message || `${n.messagePrefix || "请输入"}${n.label}`
|
|
@@ -127,25 +127,25 @@ var g = {
|
|
|
127
127
|
}
|
|
128
128
|
return n.rules;
|
|
129
129
|
});
|
|
130
|
-
return
|
|
130
|
+
return p({
|
|
131
131
|
clearValidate: async () => {
|
|
132
132
|
var e;
|
|
133
|
-
await
|
|
133
|
+
await f(), (e = A.value) == null || e.clearValidate();
|
|
134
134
|
},
|
|
135
135
|
validate: async () => {
|
|
136
136
|
var e;
|
|
137
|
-
await
|
|
137
|
+
await f(), (e = A.value) == null || e.validate();
|
|
138
138
|
}
|
|
139
139
|
}), () => {
|
|
140
140
|
var e;
|
|
141
|
-
let t =
|
|
141
|
+
let t = l.tips || n.tips, r = t ? c(o, {
|
|
142
142
|
effect: "light",
|
|
143
143
|
content: n.tips,
|
|
144
144
|
offset: 4
|
|
145
145
|
}, {
|
|
146
|
-
default: () =>
|
|
147
|
-
content:
|
|
148
|
-
}) : null,
|
|
146
|
+
default: () => c("i", { class: "el-icon-info form-item-input-info" }, null),
|
|
147
|
+
content: l.tips ? l.tips : null
|
|
148
|
+
}) : null, s = c(a, d(S.value, {
|
|
149
149
|
ref: "formItem",
|
|
150
150
|
style: { width: M.value },
|
|
151
151
|
class: [
|
|
@@ -154,41 +154,41 @@ var g = {
|
|
|
154
154
|
{
|
|
155
155
|
"form-item-hide-label": n.hideLabel,
|
|
156
156
|
"with-tips": !n.tipsAfterLabel && t,
|
|
157
|
-
required: x.value === !1 &&
|
|
157
|
+
required: x.value === !1 && O.value
|
|
158
158
|
}
|
|
159
159
|
],
|
|
160
160
|
rules: P.value
|
|
161
161
|
}), {
|
|
162
|
-
...
|
|
162
|
+
...l,
|
|
163
163
|
default: () => {
|
|
164
164
|
var e;
|
|
165
|
-
return [(e =
|
|
165
|
+
return [(e = l.default) == null ? void 0 : e.call(l, {
|
|
166
166
|
disabled: x.value,
|
|
167
|
-
required:
|
|
168
|
-
}), t && !n.tipsAfterLabel ?
|
|
167
|
+
required: O.value
|
|
168
|
+
}), t && !n.tipsAfterLabel ? r : null];
|
|
169
169
|
},
|
|
170
|
-
label: () => [
|
|
171
|
-
}),
|
|
172
|
-
return n.unwrap ?
|
|
170
|
+
label: () => [l.label ? l.label() : n.label, n.tipsAfterLabel ? r : null]
|
|
171
|
+
}), u = [s, (e = l.below) == null ? void 0 : e.call(l)];
|
|
172
|
+
return n.unwrap ? u : j.value ? c(i, d(E.value, D.value ? {
|
|
173
173
|
xs: 24,
|
|
174
174
|
sm: 12,
|
|
175
175
|
md: 12,
|
|
176
176
|
lg: 8,
|
|
177
177
|
xl: 6
|
|
178
|
-
} : {}, { span: N.value }), { default: () =>
|
|
178
|
+
} : {}, { span: N.value }), { default: () => u }) : s;
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
},
|
|
182
|
-
let
|
|
183
|
-
return
|
|
181
|
+
}, O = "update:modelValue", k = (t) => {
|
|
182
|
+
let r = u(e, null), i = u(n, null);
|
|
183
|
+
return s(() => {
|
|
184
184
|
if (t.disabled !== void 0) return t.disabled;
|
|
185
|
-
if (
|
|
186
|
-
if (
|
|
187
|
-
if (
|
|
185
|
+
if (r) {
|
|
186
|
+
if (r.requiredFieldsMap[t.prop] === !0 || r.enabledFieldsMap[t.prop] === !0) return !1;
|
|
187
|
+
if (r.disabledFieldsMap[t.prop] === !0) return !0;
|
|
188
188
|
}
|
|
189
|
-
return (
|
|
189
|
+
return (i == null ? void 0 : i.enabled) === !0 ? !1 : (i == null ? void 0 : i.disabled) === !0 ? !0 : (r == null ? void 0 : r.disabled) === !0;
|
|
190
190
|
});
|
|
191
|
-
},
|
|
191
|
+
}, A = { [O]: null }, j = (e, t) => e(O, t), M = (e, { vNodes: t, formItemProps: n, slots: r, disabled: i }) => e.wrapFormItem ? l(D, {
|
|
192
192
|
...n.value,
|
|
193
193
|
embed: !0,
|
|
194
194
|
disabled: i == null ? void 0 : i.value
|
|
@@ -198,25 +198,25 @@ var g = {
|
|
|
198
198
|
error: r.error,
|
|
199
199
|
tips: r.tips,
|
|
200
200
|
below: r.below
|
|
201
|
-
}) : t,
|
|
202
|
-
let d =
|
|
201
|
+
}) : t, N = (e, { emit: t, slots: n, attrs: i, rules: a, events: o, predicate: c, messagePrefix: u = "请输入" }) => {
|
|
202
|
+
let d = k(e), f = s(() => d.value ? "" : `${u}${e.label}`), p = E(e, {
|
|
203
203
|
rules: a,
|
|
204
204
|
attrs: i,
|
|
205
205
|
message: f.value
|
|
206
|
-
}),
|
|
206
|
+
}), m = (e) => j(t, e), g = (t) => e.col ? l(h, { span: e.block ? 24 : e.span }, { default: () => t }) : t;
|
|
207
207
|
return {
|
|
208
|
-
emitInput:
|
|
209
|
-
render: ({ vNodes: t }) =>
|
|
208
|
+
emitInput: m,
|
|
209
|
+
render: ({ vNodes: t }) => M(e, {
|
|
210
210
|
vNodes: g(t),
|
|
211
211
|
formItemProps: p,
|
|
212
|
-
slots:
|
|
212
|
+
slots: n,
|
|
213
213
|
disabled: d
|
|
214
214
|
}),
|
|
215
215
|
placeholder: f,
|
|
216
216
|
disabled: d,
|
|
217
217
|
formItemProps: p,
|
|
218
|
-
autoBind:
|
|
218
|
+
autoBind: s(() => r(e, c, o, t))
|
|
219
219
|
};
|
|
220
|
-
},
|
|
220
|
+
}, P = (e) => e.icon ? l("i", { class: e.icon }) : null;
|
|
221
221
|
//#endregion
|
|
222
|
-
export {
|
|
222
|
+
export { D as a, _ as c, N as i, A as n, E as o, M as r, x as s, P as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t, t as n } from "./
|
|
2
|
-
import { n as r, r as i, t as a } from "./
|
|
1
|
+
import { i as e, n as t, t as n } from "./C1DlzLpD.mjs";
|
|
2
|
+
import { n as r, r as i, t as a } from "./B3DY36vM.mjs";
|
|
3
3
|
import { ElInput as o } from "element-plus/es";
|
|
4
4
|
import { computed as s, createVNode as c, mergeProps as l, useModel as u } from "vue";
|
|
5
5
|
import { validatePhoneNum as d } from "@web-utils/core";
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { formItemGroupContextKey as e } from "../constants.mjs";
|
|
2
|
+
import t from "../empty-view/index.mjs";
|
|
3
|
+
import { ElRow as n } from "element-plus/es";
|
|
4
|
+
import { Fragment as r, computed as i, createTextVNode as a, createVNode as o, h as s, inject as c, isVNode as l, onBeforeUnmount as u, onMounted as d, provide as f, reactive as p, ref as m, toRef as h, vShow as g, watchEffect as _, withDirectives as v } from "vue";
|
|
5
|
+
import { ElCol as y, ElCollapseTransition as b } from "element-plus";
|
|
6
|
+
//#region src/components/form/FormItemGroup.vue?vue&type=script&lang.jsx
|
|
7
|
+
function x(e) {
|
|
8
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !l(e);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/form/FormItemGroup.vue
|
|
12
|
+
var S = {
|
|
13
|
+
name: "FormItemGroup",
|
|
14
|
+
props: {
|
|
15
|
+
blockTitle: String,
|
|
16
|
+
size: String,
|
|
17
|
+
tips: String,
|
|
18
|
+
active: Boolean,
|
|
19
|
+
enabled: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: void 0
|
|
22
|
+
},
|
|
23
|
+
disabled: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: void 0
|
|
26
|
+
},
|
|
27
|
+
tag: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: "ElCol"
|
|
30
|
+
},
|
|
31
|
+
span: {
|
|
32
|
+
type: Number,
|
|
33
|
+
default: 24
|
|
34
|
+
},
|
|
35
|
+
block: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: !0
|
|
38
|
+
},
|
|
39
|
+
wrapRow: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: !0
|
|
42
|
+
},
|
|
43
|
+
gutter: {
|
|
44
|
+
type: Number,
|
|
45
|
+
default: 20
|
|
46
|
+
},
|
|
47
|
+
collapse: Boolean,
|
|
48
|
+
showTitle: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: !0
|
|
51
|
+
},
|
|
52
|
+
notDispatch: Boolean
|
|
53
|
+
},
|
|
54
|
+
setup(l, { expose: S, slots: C }) {
|
|
55
|
+
let w = c("formView", null), T = m(!0), E = h(() => l.enabled), D = h(() => l.disabled), O = i(() => l.enabled === !0 ? !1 : l.disabled === !0), k = () => T.value = !T.value, A = p({
|
|
56
|
+
disabled: D,
|
|
57
|
+
enabled: E,
|
|
58
|
+
isDisabled: O,
|
|
59
|
+
size: h(() => l.size)
|
|
60
|
+
});
|
|
61
|
+
return _(() => {
|
|
62
|
+
T.value = !l.collapse;
|
|
63
|
+
}), f(e, A), d(() => {
|
|
64
|
+
if (!l.notDispatch) {
|
|
65
|
+
var e;
|
|
66
|
+
w == null || (e = w.addGroup) == null || e.call(w, this);
|
|
67
|
+
}
|
|
68
|
+
}), u(() => {
|
|
69
|
+
if (!l.notDispatch) {
|
|
70
|
+
var e;
|
|
71
|
+
w == null || (e = w.removeGroup) == null || e.call(w, this);
|
|
72
|
+
}
|
|
73
|
+
}), S(A), () => {
|
|
74
|
+
let e = () => {
|
|
75
|
+
var e;
|
|
76
|
+
return o(r, null, [v(o("div", {
|
|
77
|
+
class: "form-item-group-title",
|
|
78
|
+
onClick: k
|
|
79
|
+
}, [o("span", {
|
|
80
|
+
class: "flex-item",
|
|
81
|
+
style: "flex: 1"
|
|
82
|
+
}, [
|
|
83
|
+
C.title ? C.title() : l.blockTitle,
|
|
84
|
+
C.tips || l.tips ? o("span", { style: "color: #ff0000; font-size: 14px" }, [
|
|
85
|
+
a("("),
|
|
86
|
+
C.tips ? C.tips() : l.tips,
|
|
87
|
+
a(")")
|
|
88
|
+
]) : null,
|
|
89
|
+
(e = C["title-right"]) == null ? void 0 : e.call(C)
|
|
90
|
+
]), o("i", { class: T.value ? "el-icon-arrow-down" : "el-icon-arrow-right" }, null)]), [[g, l.showTitle]]), o(b, null, { default: () => {
|
|
91
|
+
let e;
|
|
92
|
+
return C.default ? l.wrapRow ? v(o(n, { gutter: l.gutter }, x(e = C.default()) ? e : { default: () => [e] }), [[g, T.value]]) : v(o("div", null, [C.default()]), [[g, T.value]]) : v(o(t, {
|
|
93
|
+
"font-size": "14px",
|
|
94
|
+
"empty-tips": "暂无信息"
|
|
95
|
+
}, null), [[g, T.value]]);
|
|
96
|
+
} })]);
|
|
97
|
+
}, i = { class: ["form-item-group", {
|
|
98
|
+
"default-active": l.active,
|
|
99
|
+
"is-disabled": O.value
|
|
100
|
+
}] };
|
|
101
|
+
return l.tag !== "div" && (i.span = l.block ? 24 : l.span), s(l.tag === "div" ? "div" : y, i, e);
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
//#endregion
|
|
106
|
+
export { S as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as n } from "./
|
|
1
|
+
import { n as e } from "./C1DlzLpD.mjs";
|
|
2
|
+
import { t } from "./CJeq96R0.mjs";
|
|
3
|
+
import { t as n } from "./B3DY36vM.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
|
|
6
6
|
function s(e) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./C1DlzLpD.mjs";
|
|
2
|
+
import { n } from "./DynLjTwi.mjs";
|
|
3
3
|
import { ElRadio as r, ElRadioButton as i, ElRadioGroup as a } from "element-plus/es";
|
|
4
4
|
import { createVNode as o, isVNode as s, mergeProps as c, useModel as l } from "vue";
|
|
5
5
|
//#region src/components/form/props/radio-group.js
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as n } from "./
|
|
1
|
+
import { n as e } from "./C1DlzLpD.mjs";
|
|
2
|
+
import { t } from "./CJeq96R0.mjs";
|
|
3
|
+
import { t as n } from "./B3DY36vM.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
|
|
6
6
|
function s(e) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as n } from "./
|
|
1
|
+
import { n as e } from "./C1DlzLpD.mjs";
|
|
2
|
+
import { t } from "./CJeq96R0.mjs";
|
|
3
|
+
import { t as n } from "./B3DY36vM.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
|
|
6
6
|
function s(e) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n, t as r } from "./
|
|
1
|
+
import { i as e, n as t } from "./C1DlzLpD.mjs";
|
|
2
|
+
import { n, t as r } from "./DynLjTwi.mjs";
|
|
3
3
|
import { ElInputNumber as i } from "element-plus/es";
|
|
4
4
|
import { computed as a, createVNode as o, mergeProps as s } from "vue";
|
|
5
5
|
import { isString as c } from "@web-utils/core";
|
|
@@ -35,7 +35,7 @@ var l = {
|
|
|
35
35
|
},
|
|
36
36
|
controls: {
|
|
37
37
|
type: Boolean,
|
|
38
|
-
default: !
|
|
38
|
+
default: !1
|
|
39
39
|
},
|
|
40
40
|
controlsPosition: String,
|
|
41
41
|
name: String,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./Bh_CMUlo.mjs";
|
|
2
|
-
import { o as t, r as n } from "./
|
|
3
|
-
import { n as r } from "./
|
|
2
|
+
import { o as t, r as n } from "./C1DlzLpD.mjs";
|
|
3
|
+
import { n as r } from "./DynLjTwi.mjs";
|
|
4
4
|
import { ElImage as i } from "element-plus/es";
|
|
5
5
|
import { createVNode as a, isVNode as o, mergeProps as s } from "vue";
|
|
6
6
|
//#region src/components/form/props/image.js
|