sinosoft-common-form 1.3.7 → 1.3.8
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/common-form.es.js +123 -123
- package/common-form.umd.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
package/common-form.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as q, reactive as H, shallowRef as W, h as Q, computed as P, onMounted as Z, watch as G, toRefs as J, nextTick as X, resolveComponent as _, openBlock as
|
|
1
|
+
import { ref as q, reactive as H, shallowRef as W, h as Q, computed as P, onMounted as Z, watch as G, toRefs as J, nextTick as X, resolveComponent as _, openBlock as d, createBlock as c, mergeProps as $, withModifiers as ee, withCtx as s, createVNode as b, createElementBlock as r, Fragment as I, renderList as x, withDirectives as le, createElementVNode as w, normalizeStyle as g, toDisplayString as p, createTextVNode as i, createCommentVNode as M, renderSlot as C, withKeys as v, normalizeClass as A, createSlots as oe, vShow as ae, pushScopeId as de, popScopeId as ne } from "vue";
|
|
2
2
|
const se = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==", re = {
|
|
3
3
|
props: {
|
|
4
4
|
fieldList: {
|
|
@@ -11,7 +11,7 @@ const se = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
11
11
|
setup(t, { emit: h }) {
|
|
12
12
|
const k = q(!0), o = H({
|
|
13
13
|
model: {}
|
|
14
|
-
}), N = q(null),
|
|
14
|
+
}), N = q(null), Y = W({
|
|
15
15
|
render() {
|
|
16
16
|
return Q("img", {
|
|
17
17
|
src: se
|
|
@@ -19,8 +19,8 @@ const se = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
19
19
|
}
|
|
20
20
|
}), y = P(() => Object.assign([], t.options)), D = () => {
|
|
21
21
|
o.model = t.model;
|
|
22
|
-
},
|
|
23
|
-
N.value && (
|
|
22
|
+
}, V = (a, n, u) => {
|
|
23
|
+
N.value && (n ? (k.value = !1, X(() => {
|
|
24
24
|
N.value.validate((f) => {
|
|
25
25
|
if (f)
|
|
26
26
|
h(u || "submit", o.model, a);
|
|
@@ -28,29 +28,29 @@ const se = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
28
28
|
return !1;
|
|
29
29
|
});
|
|
30
30
|
})) : u === "reset" ? N.value.resetFields() : h(u || "submit", o.model, a));
|
|
31
|
-
}, U = (a,
|
|
32
|
-
h("selectChange", a,
|
|
33
|
-
}, F = (a,
|
|
34
|
-
h("radioChange", a,
|
|
35
|
-
}, z = (a,
|
|
36
|
-
h("checkChange", a,
|
|
37
|
-
}, O = (a,
|
|
38
|
-
const u = o.model[
|
|
39
|
-
u !== 1 && (u > 1 && o.model[
|
|
40
|
-
}, L = (a,
|
|
41
|
-
|
|
42
|
-
}, T = (a,
|
|
43
|
-
a && (
|
|
44
|
-
}, S = (a,
|
|
45
|
-
h("dateChange", a,
|
|
46
|
-
}, E = (a,
|
|
47
|
-
console.log(N.value), h("inputBlur", a,
|
|
48
|
-
},
|
|
49
|
-
h("inputFocus", a,
|
|
50
|
-
},
|
|
51
|
-
h("inputChange", a,
|
|
52
|
-
}, e = (a,
|
|
53
|
-
h("inputInput", a,
|
|
31
|
+
}, U = (a, n) => {
|
|
32
|
+
h("selectChange", a, n);
|
|
33
|
+
}, F = (a, n) => {
|
|
34
|
+
h("radioChange", a, n);
|
|
35
|
+
}, z = (a, n) => {
|
|
36
|
+
h("checkChange", a, n);
|
|
37
|
+
}, O = (a, n) => {
|
|
38
|
+
const u = o.model[n].length;
|
|
39
|
+
u !== 1 && (u > 1 && o.model[n].shift(), h("checkChange", a, n));
|
|
40
|
+
}, L = (a, n, u) => {
|
|
41
|
+
V(a, n, u);
|
|
42
|
+
}, T = (a, n) => {
|
|
43
|
+
a && (n == null ? void 0 : n.key) === "Enter" && V(void 0, !0, "submit");
|
|
44
|
+
}, S = (a, n) => {
|
|
45
|
+
h("dateChange", a, n);
|
|
46
|
+
}, E = (a, n) => {
|
|
47
|
+
console.log(N.value), h("inputBlur", a, n);
|
|
48
|
+
}, m = (a, n) => {
|
|
49
|
+
h("inputFocus", a, n);
|
|
50
|
+
}, B = (a, n) => {
|
|
51
|
+
h("inputChange", a, n);
|
|
52
|
+
}, e = (a, n) => {
|
|
53
|
+
h("inputInput", a, n);
|
|
54
54
|
}, j = (a) => {
|
|
55
55
|
N.value.resetFields(a);
|
|
56
56
|
}, l = (a) => {
|
|
@@ -60,28 +60,28 @@ const se = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
60
60
|
D(), N.value.resetFields();
|
|
61
61
|
}), G(
|
|
62
62
|
() => t.fieldList,
|
|
63
|
-
(a,
|
|
64
|
-
a !==
|
|
63
|
+
(a, n) => {
|
|
64
|
+
a !== n && D();
|
|
65
65
|
}
|
|
66
66
|
), {
|
|
67
67
|
...J(o),
|
|
68
68
|
formRef: N,
|
|
69
69
|
states: o,
|
|
70
70
|
formOptions: y,
|
|
71
|
-
onSubmit:
|
|
71
|
+
onSubmit: V,
|
|
72
72
|
selectChange: U,
|
|
73
73
|
radioChange: F,
|
|
74
74
|
checkChange: z,
|
|
75
75
|
handleCheckedChange: O,
|
|
76
|
-
prefixIcon:
|
|
76
|
+
prefixIcon: Y,
|
|
77
77
|
handleClick: L,
|
|
78
78
|
handleKeyUp: T,
|
|
79
79
|
resetFieldsTest: j,
|
|
80
80
|
clearValidateTest: l,
|
|
81
81
|
dateChange: S,
|
|
82
82
|
inputBlur: E,
|
|
83
|
-
inputFocus:
|
|
84
|
-
inputChange:
|
|
83
|
+
inputFocus: m,
|
|
84
|
+
inputChange: B,
|
|
85
85
|
inputInput: e,
|
|
86
86
|
noFormRule: k
|
|
87
87
|
};
|
|
@@ -92,7 +92,7 @@ const ue = (t, h) => {
|
|
|
92
92
|
for (const [o, N] of h)
|
|
93
93
|
k[o] = N;
|
|
94
94
|
return k;
|
|
95
|
-
}, te = (t) => (
|
|
95
|
+
}, te = (t) => (de("data-v-614d29dc"), t = t(), ne(), t), ce = { class: "header-title" }, pe = { class: "title-content" }, ye = {
|
|
96
96
|
key: 0,
|
|
97
97
|
class: "custom-required"
|
|
98
98
|
}, be = {
|
|
@@ -125,19 +125,19 @@ const ue = (t, h) => {
|
|
|
125
125
|
}, xe = {
|
|
126
126
|
key: 0,
|
|
127
127
|
class: "custom-required"
|
|
128
|
-
},
|
|
128
|
+
}, we = {
|
|
129
129
|
key: 0,
|
|
130
130
|
class: "custom-required"
|
|
131
|
-
},
|
|
131
|
+
}, Ve = /* @__PURE__ */ te(() => /* @__PURE__ */ w("div", {
|
|
132
132
|
class: "line",
|
|
133
|
-
style: { "border-top": "1px solid #e8e8e8", width: "100%", height: "0px", margin: "
|
|
133
|
+
style: { "border-top": "1px solid #e8e8e8", width: "100%", height: "0px", margin: "39px 0" }
|
|
134
134
|
}, null, -1)), Ue = {
|
|
135
135
|
key: 0,
|
|
136
136
|
class: "custom-required"
|
|
137
137
|
};
|
|
138
|
-
function je(t, h, k, o, N,
|
|
139
|
-
const y = _("el-form-item"), D = _("el-input"),
|
|
140
|
-
return
|
|
138
|
+
function je(t, h, k, o, N, Y) {
|
|
139
|
+
const y = _("el-form-item"), D = _("el-input"), V = _("el-radio"), U = _("el-radio-group"), F = _("el-checkbox"), z = _("el-checkbox-group"), O = _("el-option"), L = _("el-select"), T = _("el-date-picker"), S = _("el-col"), E = _("el-row"), m = _("sinosoft-common-button"), B = _("el-form");
|
|
140
|
+
return d(), c(B, $({
|
|
141
141
|
"hide-required-asterisk": "",
|
|
142
142
|
onSubmit: h[0] || (h[0] = ee(() => {
|
|
143
143
|
}, ["prevent"])),
|
|
@@ -149,7 +149,7 @@ function je(t, h, k, o, N, m) {
|
|
|
149
149
|
default: s(() => [
|
|
150
150
|
b(E, { gutter: 20 }, {
|
|
151
151
|
default: s(() => [
|
|
152
|
-
(
|
|
152
|
+
(d(!0), r(I, null, x(k.fieldList, (e, j) => le((d(), c(S, {
|
|
153
153
|
xs: e.xs ? e.xs : 24,
|
|
154
154
|
sm: e.sm ? e.sm : 24,
|
|
155
155
|
md: e.md ? e.md : 8,
|
|
@@ -158,29 +158,29 @@ function je(t, h, k, o, N, m) {
|
|
|
158
158
|
key: j
|
|
159
159
|
}, {
|
|
160
160
|
default: s(() => [
|
|
161
|
-
|
|
161
|
+
w("div", {
|
|
162
162
|
style: g(e.style)
|
|
163
163
|
}, [
|
|
164
|
-
e.type === "title" ? (
|
|
164
|
+
e.type === "title" ? (d(), c(y, { key: 0 }, {
|
|
165
165
|
default: s(() => [
|
|
166
|
-
|
|
167
|
-
|
|
166
|
+
w("div", ce, [
|
|
167
|
+
w("span", pe, p(e.title), 1)
|
|
168
168
|
])
|
|
169
169
|
]),
|
|
170
170
|
_: 2
|
|
171
|
-
}, 1024)) : e.type === "name" ? (
|
|
171
|
+
}, 1024)) : e.type === "name" ? (d(), c(y, {
|
|
172
172
|
key: 1,
|
|
173
173
|
label: e.label,
|
|
174
174
|
disabled: e.disabled || o.formOptions.isDisabled,
|
|
175
175
|
class: "container_name"
|
|
176
176
|
}, {
|
|
177
177
|
label: s(() => [
|
|
178
|
-
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (
|
|
178
|
+
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
|
|
179
179
|
key: 0,
|
|
180
180
|
style: g(e.labelStyle)
|
|
181
181
|
}, [
|
|
182
182
|
i(p(e.label) + " ", 1),
|
|
183
|
-
e.required ? (
|
|
183
|
+
e.required ? (d(), r("span", ye, "*")) : M("", !0)
|
|
184
184
|
], 4))
|
|
185
185
|
]),
|
|
186
186
|
default: s(() => [
|
|
@@ -233,7 +233,7 @@ function je(t, h, k, o, N, m) {
|
|
|
233
233
|
b(y, {
|
|
234
234
|
rules: e.isHide || o.noFormRule ? [] : e.rules.nameChFamily,
|
|
235
235
|
prop: e.field.nameChFamily,
|
|
236
|
-
class: "item-name"
|
|
236
|
+
class: "item-name item-name-bottom"
|
|
237
237
|
}, {
|
|
238
238
|
default: s(() => [
|
|
239
239
|
b(D, {
|
|
@@ -256,7 +256,7 @@ function je(t, h, k, o, N, m) {
|
|
|
256
256
|
b(y, {
|
|
257
257
|
rules: e.isHide || o.noFormRule ? [] : e.rules.nameCh,
|
|
258
258
|
prop: e.field.nameCh,
|
|
259
|
-
class: "item-name-right"
|
|
259
|
+
class: "item-name-right item-name-bottom"
|
|
260
260
|
}, {
|
|
261
261
|
default: s(() => [
|
|
262
262
|
b(D, {
|
|
@@ -278,19 +278,19 @@ function je(t, h, k, o, N, m) {
|
|
|
278
278
|
}, 1032, ["rules", "prop"])
|
|
279
279
|
]),
|
|
280
280
|
_: 2
|
|
281
|
-
}, 1032, ["label", "disabled"])) : e.type === "gender" ? (
|
|
281
|
+
}, 1032, ["label", "disabled"])) : e.type === "gender" ? (d(), c(y, {
|
|
282
282
|
key: 2,
|
|
283
283
|
label: e.label,
|
|
284
284
|
rules: e.isHide || o.noFormRule ? [] : e.rules,
|
|
285
285
|
prop: e.field
|
|
286
286
|
}, {
|
|
287
287
|
label: s(() => [
|
|
288
|
-
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (
|
|
288
|
+
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
|
|
289
289
|
key: 0,
|
|
290
290
|
style: g(e.labelStyle)
|
|
291
291
|
}, [
|
|
292
292
|
i(p(e.label) + " ", 1),
|
|
293
|
-
e.required ? (
|
|
293
|
+
e.required ? (d(), r("span", be, "*")) : M("", !0)
|
|
294
294
|
], 4))
|
|
295
295
|
]),
|
|
296
296
|
default: s(() => [
|
|
@@ -303,15 +303,15 @@ function je(t, h, k, o, N, m) {
|
|
|
303
303
|
default: s(() => {
|
|
304
304
|
var l;
|
|
305
305
|
return [
|
|
306
|
-
(
|
|
307
|
-
var
|
|
308
|
-
return
|
|
309
|
-
label: a[((
|
|
306
|
+
(d(!0), r(I, null, x((l = e.options) == null ? void 0 : l.data, (a) => {
|
|
307
|
+
var n, u;
|
|
308
|
+
return d(), c(V, {
|
|
309
|
+
label: a[((n = e.options) == null ? void 0 : n.valueKey) || "code"],
|
|
310
310
|
size: "large",
|
|
311
311
|
key: a[((u = e.options) == null ? void 0 : u.valueKey) || "code"]
|
|
312
312
|
}, {
|
|
313
313
|
default: s(() => [
|
|
314
|
-
|
|
314
|
+
w("img", {
|
|
315
315
|
src: a.code === "M" ? "http://192.168.5.200:9000/test/sex_img_M.png" : "http://192.168.5.200:9000/test/sex_img_F.png",
|
|
316
316
|
style: { width: "44px", height: "44px", "margin-bottom": "-15px", "margin-left": "4px" },
|
|
317
317
|
alt: ""
|
|
@@ -326,7 +326,7 @@ function je(t, h, k, o, N, m) {
|
|
|
326
326
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
|
|
327
327
|
]),
|
|
328
328
|
_: 2
|
|
329
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "radio" ? (
|
|
329
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "radio" ? (d(), c(y, {
|
|
330
330
|
key: 3,
|
|
331
331
|
label: e.label,
|
|
332
332
|
rules: e.isHide || o.noFormRule ? [] : e.rules,
|
|
@@ -334,12 +334,12 @@ function je(t, h, k, o, N, m) {
|
|
|
334
334
|
class: A([e.labelNode ? "radio_Note" : "rule_err"])
|
|
335
335
|
}, {
|
|
336
336
|
label: s(() => [
|
|
337
|
-
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (
|
|
337
|
+
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
|
|
338
338
|
key: 0,
|
|
339
339
|
style: g(e.labelStyle)
|
|
340
340
|
}, [
|
|
341
341
|
i(p(e.label) + " ", 1),
|
|
342
|
-
e.required ? (
|
|
342
|
+
e.required ? (d(), r("span", he, "*")) : M("", !0)
|
|
343
343
|
], 4))
|
|
344
344
|
]),
|
|
345
345
|
default: s(() => [
|
|
@@ -352,11 +352,11 @@ function je(t, h, k, o, N, m) {
|
|
|
352
352
|
default: s(() => {
|
|
353
353
|
var l;
|
|
354
354
|
return [
|
|
355
|
-
(
|
|
356
|
-
var
|
|
357
|
-
return
|
|
355
|
+
(d(!0), r(I, null, x((l = e.options) == null ? void 0 : l.data, (a) => {
|
|
356
|
+
var n, u;
|
|
357
|
+
return d(), c(V, {
|
|
358
358
|
size: "large",
|
|
359
|
-
label: a[((
|
|
359
|
+
label: a[((n = e.options) == null ? void 0 : n.valueKey) || "code"],
|
|
360
360
|
key: a[((u = e.options) == null ? void 0 : u.valueKey) || "code"]
|
|
361
361
|
}, {
|
|
362
362
|
default: s(() => {
|
|
@@ -374,7 +374,7 @@ function je(t, h, k, o, N, m) {
|
|
|
374
374
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
|
|
375
375
|
]),
|
|
376
376
|
_: 2
|
|
377
|
-
}, 1032, ["label", "rules", "prop", "class"])) : e.type === "radioNote" ? (
|
|
377
|
+
}, 1032, ["label", "rules", "prop", "class"])) : e.type === "radioNote" ? (d(), c(y, {
|
|
378
378
|
key: 4,
|
|
379
379
|
label: e.label,
|
|
380
380
|
rules: e.isHide || o.noFormRule ? [] : e.rules,
|
|
@@ -382,10 +382,10 @@ function je(t, h, k, o, N, m) {
|
|
|
382
382
|
class: A([e.labelNode ? "radio_Note" : "rule_err"])
|
|
383
383
|
}, {
|
|
384
384
|
default: s(() => [
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
e.required ? (
|
|
385
|
+
w("div", null, [
|
|
386
|
+
w("span", fe, p(e.labelBefore), 1),
|
|
387
|
+
w("span", ge, p(e.labelNode), 1),
|
|
388
|
+
e.required ? (d(), r("span", Me, "*")) : M("", !0)
|
|
389
389
|
]),
|
|
390
390
|
b(U, {
|
|
391
391
|
modelValue: o.states.model[e.field],
|
|
@@ -396,11 +396,11 @@ function je(t, h, k, o, N, m) {
|
|
|
396
396
|
default: s(() => {
|
|
397
397
|
var l;
|
|
398
398
|
return [
|
|
399
|
-
(
|
|
400
|
-
var
|
|
401
|
-
return
|
|
399
|
+
(d(!0), r(I, null, x((l = e.options) == null ? void 0 : l.data, (a) => {
|
|
400
|
+
var n, u;
|
|
401
|
+
return d(), c(V, {
|
|
402
402
|
size: "large",
|
|
403
|
-
label: a[((
|
|
403
|
+
label: a[((n = e.options) == null ? void 0 : n.valueKey) || "code"],
|
|
404
404
|
key: a[((u = e.options) == null ? void 0 : u.valueKey) || "code"]
|
|
405
405
|
}, {
|
|
406
406
|
default: s(() => {
|
|
@@ -418,19 +418,19 @@ function je(t, h, k, o, N, m) {
|
|
|
418
418
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
|
|
419
419
|
]),
|
|
420
420
|
_: 2
|
|
421
|
-
}, 1032, ["label", "rules", "prop", "class"])) : e.type === "checkbox" ? (
|
|
421
|
+
}, 1032, ["label", "rules", "prop", "class"])) : e.type === "checkbox" ? (d(), c(y, {
|
|
422
422
|
key: 5,
|
|
423
423
|
label: e.label,
|
|
424
424
|
rules: e.isHide || o.noFormRule ? [] : e.rules,
|
|
425
425
|
prop: e.field
|
|
426
426
|
}, {
|
|
427
427
|
label: s(() => [
|
|
428
|
-
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (
|
|
428
|
+
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
|
|
429
429
|
key: 0,
|
|
430
430
|
style: g(e.labelStyle)
|
|
431
431
|
}, [
|
|
432
432
|
i(p(e.label) + " ", 1),
|
|
433
|
-
e.required ? (
|
|
433
|
+
e.required ? (d(), r("span", _e, "*")) : M("", !0)
|
|
434
434
|
], 4))
|
|
435
435
|
]),
|
|
436
436
|
default: s(() => [
|
|
@@ -446,10 +446,10 @@ function je(t, h, k, o, N, m) {
|
|
|
446
446
|
default: s(() => {
|
|
447
447
|
var l;
|
|
448
448
|
return [
|
|
449
|
-
(
|
|
450
|
-
var
|
|
451
|
-
return
|
|
452
|
-
key: a[((
|
|
449
|
+
(d(!0), r(I, null, x((l = e.options) == null ? void 0 : l.data, (a) => {
|
|
450
|
+
var n, u;
|
|
451
|
+
return d(), c(F, {
|
|
452
|
+
key: a[((n = e.options) == null ? void 0 : n.valueKey) || "code"],
|
|
453
453
|
label: a[((u = e.options) == null ? void 0 : u.valueKey) || "code"]
|
|
454
454
|
}, {
|
|
455
455
|
default: s(() => {
|
|
@@ -467,19 +467,19 @@ function je(t, h, k, o, N, m) {
|
|
|
467
467
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
|
|
468
468
|
]),
|
|
469
469
|
_: 2
|
|
470
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "checkboxRadio" ? (
|
|
470
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "checkboxRadio" ? (d(), c(y, {
|
|
471
471
|
key: 6,
|
|
472
472
|
label: e.label,
|
|
473
473
|
rules: e.isHide || o.noFormRule ? [] : e.rules,
|
|
474
474
|
prop: e.field
|
|
475
475
|
}, {
|
|
476
476
|
label: s(() => [
|
|
477
|
-
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (
|
|
477
|
+
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
|
|
478
478
|
key: 0,
|
|
479
479
|
style: g(e.labelStyle)
|
|
480
480
|
}, [
|
|
481
481
|
i(p(e.label) + " ", 1),
|
|
482
|
-
e.required ? (
|
|
482
|
+
e.required ? (d(), r("span", Ce, "*")) : M("", !0)
|
|
483
483
|
], 4))
|
|
484
484
|
]),
|
|
485
485
|
default: s(() => [
|
|
@@ -495,10 +495,10 @@ function je(t, h, k, o, N, m) {
|
|
|
495
495
|
default: s(() => {
|
|
496
496
|
var l;
|
|
497
497
|
return [
|
|
498
|
-
(
|
|
499
|
-
var
|
|
500
|
-
return
|
|
501
|
-
key: a[((
|
|
498
|
+
(d(!0), r(I, null, x((l = e.options) == null ? void 0 : l.data, (a) => {
|
|
499
|
+
var n, u;
|
|
500
|
+
return d(), c(F, {
|
|
501
|
+
key: a[((n = e.options) == null ? void 0 : n.valueKey) || "code"],
|
|
502
502
|
label: a[((u = e.options) == null ? void 0 : u.valueKey) || "code"]
|
|
503
503
|
}, {
|
|
504
504
|
default: s(() => {
|
|
@@ -516,7 +516,7 @@ function je(t, h, k, o, N, m) {
|
|
|
516
516
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
|
|
517
517
|
]),
|
|
518
518
|
_: 2
|
|
519
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "select" ? (
|
|
519
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "select" ? (d(), c(y, {
|
|
520
520
|
key: 7,
|
|
521
521
|
label: e.label,
|
|
522
522
|
rules: e.isHide || o.noFormRule ? [] : e.rules,
|
|
@@ -524,12 +524,12 @@ function je(t, h, k, o, N, m) {
|
|
|
524
524
|
prop: e.field
|
|
525
525
|
}, {
|
|
526
526
|
label: s(() => [
|
|
527
|
-
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (
|
|
527
|
+
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
|
|
528
528
|
key: 0,
|
|
529
529
|
style: g(e.labelStyle)
|
|
530
530
|
}, [
|
|
531
531
|
i(p(e.label) + " ", 1),
|
|
532
|
-
e.required ? (
|
|
532
|
+
e.required ? (d(), r("span", Ne, "*")) : M("", !0)
|
|
533
533
|
], 4))
|
|
534
534
|
]),
|
|
535
535
|
default: s(() => [
|
|
@@ -544,10 +544,10 @@ function je(t, h, k, o, N, m) {
|
|
|
544
544
|
default: s(() => {
|
|
545
545
|
var l;
|
|
546
546
|
return [
|
|
547
|
-
(
|
|
548
|
-
var
|
|
549
|
-
return
|
|
550
|
-
key: a[((
|
|
547
|
+
(d(!0), r(I, null, x((l = e.options) == null ? void 0 : l.data, (a) => {
|
|
548
|
+
var n, u, f;
|
|
549
|
+
return d(), c(O, {
|
|
550
|
+
key: a[((n = e.options) == null ? void 0 : n.valueKey) || "code"],
|
|
551
551
|
label: a[((u = e.options) == null ? void 0 : u.labelkey) || "name"],
|
|
552
552
|
value: a[((f = e.options) == null ? void 0 : f.valueKey) || "code"]
|
|
553
553
|
}, null, 8, ["label", "value"]);
|
|
@@ -556,13 +556,13 @@ function je(t, h, k, o, N, m) {
|
|
|
556
556
|
}),
|
|
557
557
|
_: 2
|
|
558
558
|
}, 1032, ["onChange", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "clearable"]),
|
|
559
|
-
|
|
559
|
+
w("div", {
|
|
560
560
|
class: "item_tips_blow",
|
|
561
561
|
style: g(e.tipsBlowStyle)
|
|
562
562
|
}, p(e.tipsBlow), 5)
|
|
563
563
|
]),
|
|
564
564
|
_: 2
|
|
565
|
-
}, 1032, ["label", "rules", "disabled", "prop"])) : e.type === "date" ? (
|
|
565
|
+
}, 1032, ["label", "rules", "disabled", "prop"])) : e.type === "date" ? (d(), c(y, {
|
|
566
566
|
key: 8,
|
|
567
567
|
label: e.label,
|
|
568
568
|
rules: e.isHide || o.noFormRule ? [] : e.rules,
|
|
@@ -570,12 +570,12 @@ function je(t, h, k, o, N, m) {
|
|
|
570
570
|
class: "date_item"
|
|
571
571
|
}, {
|
|
572
572
|
label: s(() => [
|
|
573
|
-
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (
|
|
573
|
+
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
|
|
574
574
|
key: 0,
|
|
575
575
|
style: g(e.labelStyle)
|
|
576
576
|
}, [
|
|
577
577
|
i(p(e.label) + " ", 1),
|
|
578
|
-
e.required ? (
|
|
578
|
+
e.required ? (d(), r("span", ke, "*")) : M("", !0)
|
|
579
579
|
], 4))
|
|
580
580
|
]),
|
|
581
581
|
default: s(() => [
|
|
@@ -592,22 +592,22 @@ function je(t, h, k, o, N, m) {
|
|
|
592
592
|
type: e.type,
|
|
593
593
|
placeholder: e.placeholder || e.label
|
|
594
594
|
}, null, 8, ["disabled-date", "onChange", "prefix-icon", "modelValue", "onUpdate:modelValue", "disabled", "readonly", "type", "placeholder"]),
|
|
595
|
-
e.showTo ? (
|
|
595
|
+
e.showTo ? (d(), r("span", De, p(e.showTo), 1)) : M("", !0)
|
|
596
596
|
]),
|
|
597
597
|
_: 2
|
|
598
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "daterange" ? (
|
|
598
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "daterange" ? (d(), c(y, {
|
|
599
599
|
key: 9,
|
|
600
600
|
label: e.label,
|
|
601
601
|
rules: e.isHide || o.noFormRule ? [] : e.rules,
|
|
602
602
|
prop: e.field
|
|
603
603
|
}, {
|
|
604
604
|
label: s(() => [
|
|
605
|
-
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (
|
|
605
|
+
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
|
|
606
606
|
key: 0,
|
|
607
607
|
style: g(e.labelStyle)
|
|
608
608
|
}, [
|
|
609
609
|
i(p(e.label) + " ", 1),
|
|
610
|
-
e.required ? (
|
|
610
|
+
e.required ? (d(), r("span", Ie, "*")) : M("", !0)
|
|
611
611
|
], 4))
|
|
612
612
|
]),
|
|
613
613
|
default: s(() => [
|
|
@@ -627,7 +627,7 @@ function je(t, h, k, o, N, m) {
|
|
|
627
627
|
}, null, 8, ["disabled-date", "onChange", "modelValue", "onUpdate:modelValue", "prefix-icon", "start-placeholder", "end-placeholder"])
|
|
628
628
|
]),
|
|
629
629
|
_: 2
|
|
630
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "slotItem" ? (
|
|
630
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "slotItem" ? (d(), c(y, {
|
|
631
631
|
key: 10,
|
|
632
632
|
label: e.label,
|
|
633
633
|
rules: e.isHide || o.noFormRule ? [] : e.rules,
|
|
@@ -635,19 +635,19 @@ function je(t, h, k, o, N, m) {
|
|
|
635
635
|
class: "rule_err"
|
|
636
636
|
}, {
|
|
637
637
|
label: s(() => [
|
|
638
|
-
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (
|
|
638
|
+
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
|
|
639
639
|
key: 0,
|
|
640
640
|
style: g(e.labelStyle)
|
|
641
641
|
}, [
|
|
642
642
|
i(p(e.label) + " ", 1),
|
|
643
|
-
e.required ? (
|
|
643
|
+
e.required ? (d(), r("span", xe, "*")) : M("", !0)
|
|
644
644
|
], 4))
|
|
645
645
|
]),
|
|
646
646
|
default: s(() => [
|
|
647
647
|
C(t.$slots, e.slotItemName, {}, void 0, !0)
|
|
648
648
|
]),
|
|
649
649
|
_: 2
|
|
650
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "phone" ? (
|
|
650
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "phone" ? (d(), c(y, {
|
|
651
651
|
key: 11,
|
|
652
652
|
label: e.label,
|
|
653
653
|
rules: e.isHide || o.noFormRule ? [] : e.rules.phoneNumber,
|
|
@@ -655,12 +655,12 @@ function je(t, h, k, o, N, m) {
|
|
|
655
655
|
class: "phone_item"
|
|
656
656
|
}, {
|
|
657
657
|
label: s(() => [
|
|
658
|
-
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (
|
|
658
|
+
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
|
|
659
659
|
key: 0,
|
|
660
660
|
style: g(e.labelStyle)
|
|
661
661
|
}, [
|
|
662
662
|
i(p(e.label) + " ", 1),
|
|
663
|
-
e.required ? (
|
|
663
|
+
e.required ? (d(), r("span", we, "*")) : M("", !0)
|
|
664
664
|
], 4))
|
|
665
665
|
]),
|
|
666
666
|
default: s(() => [
|
|
@@ -689,9 +689,9 @@ function je(t, h, k, o, N, m) {
|
|
|
689
689
|
default: s(() => {
|
|
690
690
|
var a;
|
|
691
691
|
return [
|
|
692
|
-
(
|
|
693
|
-
label:
|
|
694
|
-
value:
|
|
692
|
+
(d(!0), r(I, null, x((a = e.options) == null ? void 0 : a.data, (n, u) => (d(), c(O, {
|
|
693
|
+
label: n.name,
|
|
694
|
+
value: n.code,
|
|
695
695
|
key: u
|
|
696
696
|
}, null, 8, ["label", "value"]))), 128))
|
|
697
697
|
];
|
|
@@ -704,27 +704,27 @@ function je(t, h, k, o, N, m) {
|
|
|
704
704
|
}, 1032, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "clearable"])
|
|
705
705
|
]),
|
|
706
706
|
_: 2
|
|
707
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "line" ? (
|
|
707
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "line" ? (d(), c(y, {
|
|
708
708
|
key: 12,
|
|
709
709
|
label: e.label
|
|
710
710
|
}, {
|
|
711
711
|
default: s(() => [
|
|
712
|
-
|
|
712
|
+
Ve
|
|
713
713
|
]),
|
|
714
714
|
_: 2
|
|
715
|
-
}, 1032, ["label"])) : (
|
|
715
|
+
}, 1032, ["label"])) : (d(), c(y, {
|
|
716
716
|
key: 13,
|
|
717
717
|
rules: e.isHide || o.noFormRule ? [] : e.rules,
|
|
718
718
|
prop: e.field,
|
|
719
719
|
class: A(e.prepend ? "input-item" : "")
|
|
720
720
|
}, {
|
|
721
721
|
label: s(() => [
|
|
722
|
-
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (
|
|
722
|
+
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
|
|
723
723
|
key: 0,
|
|
724
724
|
style: g(e.labelStyle)
|
|
725
725
|
}, [
|
|
726
726
|
i(p(e.label) + " ", 1),
|
|
727
|
-
e.required ? (
|
|
727
|
+
e.required ? (d(), r("span", Ue, "*")) : M("", !0)
|
|
728
728
|
], 4))
|
|
729
729
|
]),
|
|
730
730
|
default: s(() => [
|
|
@@ -778,8 +778,8 @@ function je(t, h, k, o, N, m) {
|
|
|
778
778
|
model: k.model,
|
|
779
779
|
onBtnClick: o.onSubmit
|
|
780
780
|
}, () => [
|
|
781
|
-
(
|
|
782
|
-
e.isShow ? (
|
|
781
|
+
(d(!0), r(I, null, x(o.formOptions.btnConfig, (e, j) => (d(), r("div", { key: j }, [
|
|
782
|
+
e.isShow ? (d(), c(m, {
|
|
783
783
|
key: 0,
|
|
784
784
|
btnCode: e.btnCode,
|
|
785
785
|
plain: e.plain,
|
|
@@ -820,11 +820,11 @@ function je(t, h, k, o, N, m) {
|
|
|
820
820
|
_: 3
|
|
821
821
|
}, 16, ["model", "label-position"]);
|
|
822
822
|
}
|
|
823
|
-
const R = /* @__PURE__ */ ue(re, [["render", je], ["__scopeId", "data-v-
|
|
824
|
-
function
|
|
825
|
-
|
|
823
|
+
const R = /* @__PURE__ */ ue(re, [["render", je], ["__scopeId", "data-v-614d29dc"]]);
|
|
824
|
+
function K(t, h = {}) {
|
|
825
|
+
K.installed || (K.installed = !0, t.component("common-el-form", R));
|
|
826
826
|
}
|
|
827
|
-
R.install =
|
|
827
|
+
R.install = K;
|
|
828
828
|
export {
|
|
829
829
|
R as default
|
|
830
830
|
};
|
package/common-form.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,k){typeof exports=="object"&&typeof module<"u"?module.exports=k(require("vue")):typeof define=="function"&&define.amd?define(["vue"],k):(e=typeof globalThis<"u"?globalThis:e||self,e.Form=k(e.Vue))})(this,function(e){"use strict";const k="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==",E={props:{fieldList:{type:Array,required:!0},model:Object,options:Object},setup(t,{emit:c}){const y=e.ref(!0),a=e.reactive({model:{}}),i=e.ref(null),I=e.shallowRef({render(){return e.h("img",{src:k})}}),s=e.computed(()=>Object.assign([],t.options)),h=()=>{a.model=t.model},b=(n,d,r)=>{i.value&&(d?(y.value=!1,e.nextTick(()=>{i.value.validate(p=>{if(p)c(r||"submit",a.model,n);else return!1})})):r==="reset"?i.value.resetFields():c(r||"submit",a.model,n))},f=(n,d)=>{c("selectChange",n,d)},C=(n,d)=>{c("radioChange",n,d)},N=(n,d)=>{c("checkChange",n,d)},x=(n,d)=>{const r=a.model[d].length;r!==1&&(r>1&&a.model[d].shift(),c("checkChange",n,d))},M=(n,d,r)=>{b(n,d,r)},B=(n,d)=>{n&&(d==null?void 0:d.key)==="Enter"&&b(void 0,!0,"submit")},m=(n,d)=>{c("dateChange",n,d)},w=(n,d)=>{console.log(i.value),c("inputBlur",n,d)},D=(n,d)=>{c("inputFocus",n,d)},S=(n,d)=>{c("inputChange",n,d)},l=(n,d)=>{c("inputInput",n,d)},g=n=>{i.value.resetFields(n)},o=n=>{i.value.clearValidate(n)};return e.onMounted(()=>{h(),i.value.resetFields()}),e.watch(()=>t.fieldList,(n,d)=>{n!==d&&h()}),{...e.toRefs(a),formRef:i,states:a,formOptions:s,onSubmit:b,selectChange:f,radioChange:C,checkChange:N,handleCheckedChange:x,prefixIcon:I,handleClick:M,handleKeyUp:B,resetFieldsTest:g,clearValidateTest:o,dateChange:m,inputBlur:w,inputFocus:D,inputChange:S,inputInput:l,noFormRule:y}}},v="",z=(t,c)=>{const y=t.__vccOpts||t;for(const[a,i]of c)y[a]=i;return y},U=t=>(e.pushScopeId("data-v-63e07588"),t=t(),e.popScopeId(),t),j={class:"header-title"},F={class:"title-content"},T={key:0,class:"custom-required"},L={key:0,class:"custom-required"},u=["src"],O={key:0,class:"custom-required"},A={class:"lable"},K={class:"lable_note"},Y={key:0,class:"custom-required"},q={key:0,class:"custom-required"},R={key:0,class:"custom-required"},H={key:0,class:"custom-required"},W={key:0,class:"custom-required"},Q={key:0,class:"date_to"},P={key:0,class:"custom-required"},Z={key:0,class:"custom-required"},G={key:0,class:"custom-required"},J=U(()=>e.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"20px 0"}},null,-1)),X={key:0,class:"custom-required"};function $(t,c,y,a,i,I){const s=e.resolveComponent("el-form-item"),h=e.resolveComponent("el-input"),b=e.resolveComponent("el-radio"),f=e.resolveComponent("el-radio-group"),C=e.resolveComponent("el-checkbox"),N=e.resolveComponent("el-checkbox-group"),x=e.resolveComponent("el-option"),M=e.resolveComponent("el-select"),B=e.resolveComponent("el-date-picker"),m=e.resolveComponent("el-col"),w=e.resolveComponent("el-row"),D=e.resolveComponent("sinosoft-common-button"),S=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(S,e.mergeProps({"hide-required-asterisk":"",onSubmit:c[0]||(c[0]=e.withModifiers(()=>{},["prevent"])),model:y.model},a.formOptions,{"label-position":a.formOptions.labelPosition,ref:"formRef"}),{default:e.withCtx(()=>[e.createVNode(w,{gutter:20},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.fieldList,(l,g)=>e.withDirectives((e.openBlock(),e.createBlock(m,{xs:l.xs?l.xs:24,sm:l.sm?l.sm:24,md:l.md?l.md:8,lg:l.lg?l.lg:8,xl:l.xl?l.xl:8,key:g},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(l.style)},[l.type==="title"?(e.openBlock(),e.createBlock(s,{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",j,[e.createElementVNode("span",F,e.toDisplayString(l.title),1)])]),_:2},1024)):l.type==="name"?(e.openBlock(),e.createBlock(s,{key:1,label:l.label,disabled:l.disabled||a.formOptions.isDisabled,class:"container_name"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",T,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(s,{rules:l.isHide||a.noFormRule?[]:l.rules.nameEnFamily,prop:l.field.nameEnFamily,class:"item-name"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:o=>a.inputBlur(o,l.field.nameEnFamily),onFocus:o=>a.inputFocus(o,l.field.nameEnFamily),onChange:o=>a.inputChange(o,l.field.nameEnFamily),onInput:o=>a.inputInput(o,l.field.nameEnFamily),maxlength:l.maxlengthNameEnFamily,modelValue:a.states.model[l.field.nameEnFamily],"onUpdate:modelValue":o=>a.states.model[l.field.nameEnFamily]=o,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEnFamily,disabled:l.disabled||a.formOptions.isDisabled,onKeyup:e.withKeys(o=>a.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.isHide||a.noFormRule?[]:l.rules.nameEn,prop:l.field.nameEn,class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:o=>a.inputBlur(o,l.field.nameEn),onFocus:o=>a.inputFocus(o,l.field.nameEn),onChange:o=>a.inputChange(o,l.field.nameEn),onInput:o=>a.inputInput(o,l.field.nameEn),maxlength:l.maxlengthNameEn,modelValue:a.states.model[l.field.nameEn],"onUpdate:modelValue":o=>a.states.model[l.field.nameEn]=o,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEn,disabled:l.disabled||a.formOptions.isDisabled,onKeyup:e.withKeys(o=>a.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.isHide||a.noFormRule?[]:l.rules.nameChFamily,prop:l.field.nameChFamily,class:"item-name"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:o=>a.inputBlur(o,l.field.nameChFamily),onFocus:o=>a.inputFocus(o,l.field.nameChFamily),onChange:o=>a.inputChange(o,l.field.nameChFamily),onInput:o=>a.inputInput(o,l.field.nameChFamily),maxlength:l.maxlengthNameChFamily,modelValue:a.states.model[l.field.nameChFamily],"onUpdate:modelValue":o=>a.states.model[l.field.nameChFamily]=o,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameChFamily,disabled:l.disabled||a.formOptions.isDisabled,onKeyup:e.withKeys(o=>a.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.isHide||a.noFormRule?[]:l.rules.nameCh,prop:l.field.nameCh,class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:o=>a.inputBlur(o,l.field.nameCh),onFocus:o=>a.inputFocus(o,l.field.nameCh),onChange:o=>a.inputChange(o,l.field.nameCh),onInput:o=>a.inputInput(o,l.field.nameCh),maxlength:l.maxlengthNameCh,modelValue:a.states.model[l.field.nameCh],"onUpdate:modelValue":o=>a.states.model[l.field.nameCh]=o,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameCh,disabled:l.disabled||a.formOptions.isDisabled,onKeyup:e.withKeys(o=>a.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label","disabled"])):l.type==="gender"?(e.openBlock(),e.createBlock(s,{key:2,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",L,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(f,{modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,disabled:l.disabled||a.formOptions.isDisabled,onChange:o=>a.radioChange(o,l.field)},{default:e.withCtx(()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((o=l.options)==null?void 0:o.data,n=>{var d,r;return e.openBlock(),e.createBlock(b,{label:n[((d=l.options)==null?void 0:d.valueKey)||"code"],size:"large",key:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>[e.createElementVNode("img",{src:n.code==="M"?"http://192.168.5.200:9000/test/sex_img_M.png":"http://192.168.5.200:9000/test/sex_img_F.png",style:{width:"44px",height:"44px","margin-bottom":"-15px","margin-left":"4px"},alt:""},null,8,u)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])):l.type==="radio"?(e.openBlock(),e.createBlock(s,{key:3,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",O,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(f,{modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,disabled:l.disabled||a.formOptions.isDisabled,onChange:o=>a.radioChange(o,l.field)},{default:e.withCtx(()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((o=l.options)==null?void 0:o.data,n=>{var d,r;return e.openBlock(),e.createBlock(b,{size:"large",label:n[((d=l.options)==null?void 0:d.valueKey)||"code"],key:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var p;return[e.createTextVNode(e.toDisplayString(n[((p=l.options)==null?void 0:p.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])):l.type==="radioNote"?(e.openBlock(),e.createBlock(s,{key:4,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",A,e.toDisplayString(l.labelBefore),1),e.createElementVNode("span",K,e.toDisplayString(l.labelNode),1),l.required?(e.openBlock(),e.createElementBlock("span",Y,"*")):e.createCommentVNode("",!0)]),e.createVNode(f,{modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,disabled:l.disabled||a.formOptions.isDisabled,onChange:o=>a.radioChange(o,l.field)},{default:e.withCtx(()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((o=l.options)==null?void 0:o.data,n=>{var d,r;return e.openBlock(),e.createBlock(b,{size:"large",label:n[((d=l.options)==null?void 0:d.valueKey)||"code"],key:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var p;return[e.createTextVNode(e.toDisplayString(n[((p=l.options)==null?void 0:p.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])):l.type==="checkbox"?(e.openBlock(),e.createBlock(s,{key:5,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",q,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(N,{modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,onChange:o=>a.checkChange(o,l.field),disabled:l.disabled||a.formOptions.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((o=l.options)==null?void 0:o.data,n=>{var d,r;return e.openBlock(),e.createBlock(C,{key:n[((d=l.options)==null?void 0:d.valueKey)||"code"],label:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var p;return[e.createTextVNode(e.toDisplayString(n[((p=l.options)==null?void 0:p.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])):l.type==="checkboxRadio"?(e.openBlock(),e.createBlock(s,{key:6,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",R,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(N,{modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,onChange:o=>a.handleCheckedChange(o,l.field),disabled:l.disabled||a.formOptions.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((o=l.options)==null?void 0:o.data,n=>{var d,r;return e.openBlock(),e.createBlock(C,{key:n[((d=l.options)==null?void 0:d.valueKey)||"code"],label:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var p;return[e.createTextVNode(e.toDisplayString(n[((p=l.options)==null?void 0:p.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])):l.type==="select"?(e.openBlock(),e.createBlock(s,{key:7,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,disabled:l.disabled||a.formOptions.isDisabled,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",H,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(M,{onChange:o=>a.selectChange(o,l.field),modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,disabled:l.disabled||a.formOptions.isDisabled,placeholder:l.placeholder,clearable:l.clearable},{default:e.withCtx(()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((o=l.options)==null?void 0:o.data,n=>{var d,r,p;return e.openBlock(),e.createBlock(x,{key:n[((d=l.options)==null?void 0:d.valueKey)||"code"],label:n[((r=l.options)==null?void 0:r.labelkey)||"name"],value:n[((p=l.options)==null?void 0:p.valueKey)||"code"]},null,8,["label","value"])}),128))]}),_:2},1032,["onChange","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"]),e.createElementVNode("div",{class:"item_tips_blow",style:e.normalizeStyle(l.tipsBlowStyle)},e.toDisplayString(l.tipsBlow),5)]),_:2},1032,["label","rules","disabled","prop"])):l.type==="date"?(e.openBlock(),e.createBlock(s,{key:8,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field,class:"date_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",W,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(B,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:o=>a.dateChange(o,l.field),"prefix-icon":a.prefixIcon,modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,disabled:l.disabled||a.formOptions.isDisabled,readonly:l.readonly,type:l.type,placeholder:l.placeholder||l.label},null,8,["disabled-date","onChange","prefix-icon","modelValue","onUpdate:modelValue","disabled","readonly","type","placeholder"]),l.showTo?(e.openBlock(),e.createElementBlock("span",Q,"to")):e.createCommentVNode("",!0)]),_:2},1032,["label","rules","prop"])):l.type==="daterange"?(e.openBlock(),e.createBlock(s,{key:9,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",P,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(B,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:o=>a.dateChange(o,l.field),modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,"prefix-icon":a.prefixIcon,type:"daterange","range-separator":"To","start-placeholder":l.startPlaceholder,"end-placeholder":l.endPlaceholder,size:"large"},null,8,["disabled-date","onChange","modelValue","onUpdate:modelValue","prefix-icon","start-placeholder","end-placeholder"])]),_:2},1032,["label","rules","prop"])):l.type==="slotItem"?(e.openBlock(),e.createBlock(s,{key:10,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field,class:"rule_err"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",Z,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.renderSlot(t.$slots,l.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])):l.type==="phone"?(e.openBlock(),e.createBlock(s,{key:11,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules.phoneNumber,prop:l.field.phoneNumber,class:"phone_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",G,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(h,{onBlur:o=>a.inputBlur(o,l.field),onFocus:o=>a.inputFocus(o,l.field),onChange:o=>a.inputChange(o,l.field),onInput:o=>a.inputInput(o,l.field),maxlength:l.maxlength,modelValue:a.states.model[l.field.phoneNumber],"onUpdate:modelValue":o=>a.states.model[l.field.phoneNumber]=o,disabled:l.disabled||a.formOptions.isDisabled,placeholder:l.placeholder||"请选择",clearable:l.clearable},{prepend:e.withCtx(()=>{var o;return[e.createVNode(M,{disabled:l.disabled||a.formOptions.isDisabled,modelValue:a.states.model[l.field.areaCode],"onUpdate:modelValue":n=>a.states.model[l.field.areaCode]=n,placeholder:((o=l.options)==null?void 0:o.placeholder)||"请选择",style:{width:"75px"}},{default:e.withCtx(()=>{var n;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((n=l.options)==null?void 0:n.data,(d,r)=>(e.openBlock(),e.createBlock(x,{label:d.name,value:d.code,key:r},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder"])]}),_:2},1032,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"])]),_:2},1032,["label","rules","prop"])):l.type==="line"?(e.openBlock(),e.createBlock(s,{key:12,label:l.label},{default:e.withCtx(()=>[J]),_:2},1032,["label"])):(e.openBlock(),e.createBlock(s,{key:13,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass(l.prepend?"input-item":"")},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",X,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(h,{onBlur:o=>a.inputBlur(o,l.field),onFocus:o=>a.inputFocus(o,l.field),onChange:o=>a.inputChange(o,l.field),onInput:o=>a.inputInput(o,l.field),maxlength:l.maxlength,modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,"show-word-limit":l.showWordLimit,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholder||l.label,disabled:l.disabled||a.formOptions.isDisabled,showPassword:l.showPassword,clearable:l.clearable,onKeyup:e.withKeys(o=>a.handleKeyUp(l.enterable),["enter"])},e.createSlots({_:2},[l.prepend?{name:"prepend",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.prepend),1)]),key:"0"}:void 0,l.append?{name:"append",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.append),1)]),key:"1"}:void 0]),1032,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","show-word-limit","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop","class"]))],4)]),_:2},1032,["xs","sm","md","lg","xl"])),[[e.vShow,!l.isHide]])),128))]),_:3}),e.createVNode(s,{class:"btnsItem"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"buttons",{model:y.model,onBtnClick:a.onSubmit},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.formOptions.btnConfig,(l,g)=>(e.openBlock(),e.createElementBlock("div",{key:g},[l.isShow?(e.openBlock(),e.createBlock(D,{key:0,btnCode:l.btnCode,plain:l.plain,primary:l.primary,info:l.info,text:l.text,debounced:l.debounced?l.debounced:!1,link:l.link,loading:l.loading,loadingColor:l.loadingColor,width:l.width,height:l.height,circle:l.circle,color:l.color,bgColor:l.bgColor,borderColor:l.borderColor,borderStyle:l.borderStyle,borderWidth:l.borderWidth,icon:l.icon,size:l.size,fontSize:l.fontSize,fontWeight:l.fontWeight,style:e.normalizeStyle(l.style),class:e.normalizeClass(l.class),onHandleClick:o=>a.handleClick(o,l.isRule,l.emitName)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.name),1)]),_:2},1032,["btnCode","plain","primary","info","text","debounced","link","loading","loadingColor","width","height","circle","color","bgColor","borderColor","borderStyle","borderWidth","icon","size","fontSize","fontWeight","style","class","onHandleClick"])):e.createCommentVNode("",!0)]))),128))],!0)]),_:3})]),_:3},16,["model","label-position"])}const _=z(E,[["render",$],["__scopeId","data-v-63e07588"]]);function V(t,c={}){V.installed||(V.installed=!0,t.component("common-el-form",_))}return _.install=V,_});
|
|
1
|
+
(function(e,k){typeof exports=="object"&&typeof module<"u"?module.exports=k(require("vue")):typeof define=="function"&&define.amd?define(["vue"],k):(e=typeof globalThis<"u"?globalThis:e||self,e.Form=k(e.Vue))})(this,function(e){"use strict";const k="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==",E={props:{fieldList:{type:Array,required:!0},model:Object,options:Object},setup(t,{emit:c}){const y=e.ref(!0),a=e.reactive({model:{}}),i=e.ref(null),I=e.shallowRef({render(){return e.h("img",{src:k})}}),s=e.computed(()=>Object.assign([],t.options)),h=()=>{a.model=t.model},b=(n,d,r)=>{i.value&&(d?(y.value=!1,e.nextTick(()=>{i.value.validate(p=>{if(p)c(r||"submit",a.model,n);else return!1})})):r==="reset"?i.value.resetFields():c(r||"submit",a.model,n))},f=(n,d)=>{c("selectChange",n,d)},C=(n,d)=>{c("radioChange",n,d)},N=(n,d)=>{c("checkChange",n,d)},x=(n,d)=>{const r=a.model[d].length;r!==1&&(r>1&&a.model[d].shift(),c("checkChange",n,d))},M=(n,d,r)=>{b(n,d,r)},B=(n,d)=>{n&&(d==null?void 0:d.key)==="Enter"&&b(void 0,!0,"submit")},m=(n,d)=>{c("dateChange",n,d)},w=(n,d)=>{console.log(i.value),c("inputBlur",n,d)},D=(n,d)=>{c("inputFocus",n,d)},S=(n,d)=>{c("inputChange",n,d)},l=(n,d)=>{c("inputInput",n,d)},g=n=>{i.value.resetFields(n)},o=n=>{i.value.clearValidate(n)};return e.onMounted(()=>{h(),i.value.resetFields()}),e.watch(()=>t.fieldList,(n,d)=>{n!==d&&h()}),{...e.toRefs(a),formRef:i,states:a,formOptions:s,onSubmit:b,selectChange:f,radioChange:C,checkChange:N,handleCheckedChange:x,prefixIcon:I,handleClick:M,handleKeyUp:B,resetFieldsTest:g,clearValidateTest:o,dateChange:m,inputBlur:w,inputFocus:D,inputChange:S,inputInput:l,noFormRule:y}}},v="",z=(t,c)=>{const y=t.__vccOpts||t;for(const[a,i]of c)y[a]=i;return y},U=t=>(e.pushScopeId("data-v-614d29dc"),t=t(),e.popScopeId(),t),j={class:"header-title"},F={class:"title-content"},T={key:0,class:"custom-required"},L={key:0,class:"custom-required"},u=["src"],O={key:0,class:"custom-required"},A={class:"lable"},K={class:"lable_note"},Y={key:0,class:"custom-required"},q={key:0,class:"custom-required"},R={key:0,class:"custom-required"},H={key:0,class:"custom-required"},W={key:0,class:"custom-required"},Q={key:0,class:"date_to"},P={key:0,class:"custom-required"},Z={key:0,class:"custom-required"},G={key:0,class:"custom-required"},J=U(()=>e.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"39px 0"}},null,-1)),X={key:0,class:"custom-required"};function $(t,c,y,a,i,I){const s=e.resolveComponent("el-form-item"),h=e.resolveComponent("el-input"),b=e.resolveComponent("el-radio"),f=e.resolveComponent("el-radio-group"),C=e.resolveComponent("el-checkbox"),N=e.resolveComponent("el-checkbox-group"),x=e.resolveComponent("el-option"),M=e.resolveComponent("el-select"),B=e.resolveComponent("el-date-picker"),m=e.resolveComponent("el-col"),w=e.resolveComponent("el-row"),D=e.resolveComponent("sinosoft-common-button"),S=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(S,e.mergeProps({"hide-required-asterisk":"",onSubmit:c[0]||(c[0]=e.withModifiers(()=>{},["prevent"])),model:y.model},a.formOptions,{"label-position":a.formOptions.labelPosition,ref:"formRef"}),{default:e.withCtx(()=>[e.createVNode(w,{gutter:20},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.fieldList,(l,g)=>e.withDirectives((e.openBlock(),e.createBlock(m,{xs:l.xs?l.xs:24,sm:l.sm?l.sm:24,md:l.md?l.md:8,lg:l.lg?l.lg:8,xl:l.xl?l.xl:8,key:g},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(l.style)},[l.type==="title"?(e.openBlock(),e.createBlock(s,{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",j,[e.createElementVNode("span",F,e.toDisplayString(l.title),1)])]),_:2},1024)):l.type==="name"?(e.openBlock(),e.createBlock(s,{key:1,label:l.label,disabled:l.disabled||a.formOptions.isDisabled,class:"container_name"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",T,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(s,{rules:l.isHide||a.noFormRule?[]:l.rules.nameEnFamily,prop:l.field.nameEnFamily,class:"item-name"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:o=>a.inputBlur(o,l.field.nameEnFamily),onFocus:o=>a.inputFocus(o,l.field.nameEnFamily),onChange:o=>a.inputChange(o,l.field.nameEnFamily),onInput:o=>a.inputInput(o,l.field.nameEnFamily),maxlength:l.maxlengthNameEnFamily,modelValue:a.states.model[l.field.nameEnFamily],"onUpdate:modelValue":o=>a.states.model[l.field.nameEnFamily]=o,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEnFamily,disabled:l.disabled||a.formOptions.isDisabled,onKeyup:e.withKeys(o=>a.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.isHide||a.noFormRule?[]:l.rules.nameEn,prop:l.field.nameEn,class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:o=>a.inputBlur(o,l.field.nameEn),onFocus:o=>a.inputFocus(o,l.field.nameEn),onChange:o=>a.inputChange(o,l.field.nameEn),onInput:o=>a.inputInput(o,l.field.nameEn),maxlength:l.maxlengthNameEn,modelValue:a.states.model[l.field.nameEn],"onUpdate:modelValue":o=>a.states.model[l.field.nameEn]=o,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEn,disabled:l.disabled||a.formOptions.isDisabled,onKeyup:e.withKeys(o=>a.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.isHide||a.noFormRule?[]:l.rules.nameChFamily,prop:l.field.nameChFamily,class:"item-name item-name-bottom"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:o=>a.inputBlur(o,l.field.nameChFamily),onFocus:o=>a.inputFocus(o,l.field.nameChFamily),onChange:o=>a.inputChange(o,l.field.nameChFamily),onInput:o=>a.inputInput(o,l.field.nameChFamily),maxlength:l.maxlengthNameChFamily,modelValue:a.states.model[l.field.nameChFamily],"onUpdate:modelValue":o=>a.states.model[l.field.nameChFamily]=o,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameChFamily,disabled:l.disabled||a.formOptions.isDisabled,onKeyup:e.withKeys(o=>a.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.isHide||a.noFormRule?[]:l.rules.nameCh,prop:l.field.nameCh,class:"item-name-right item-name-bottom"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:o=>a.inputBlur(o,l.field.nameCh),onFocus:o=>a.inputFocus(o,l.field.nameCh),onChange:o=>a.inputChange(o,l.field.nameCh),onInput:o=>a.inputInput(o,l.field.nameCh),maxlength:l.maxlengthNameCh,modelValue:a.states.model[l.field.nameCh],"onUpdate:modelValue":o=>a.states.model[l.field.nameCh]=o,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameCh,disabled:l.disabled||a.formOptions.isDisabled,onKeyup:e.withKeys(o=>a.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label","disabled"])):l.type==="gender"?(e.openBlock(),e.createBlock(s,{key:2,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",L,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(f,{modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,disabled:l.disabled||a.formOptions.isDisabled,onChange:o=>a.radioChange(o,l.field)},{default:e.withCtx(()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((o=l.options)==null?void 0:o.data,n=>{var d,r;return e.openBlock(),e.createBlock(b,{label:n[((d=l.options)==null?void 0:d.valueKey)||"code"],size:"large",key:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>[e.createElementVNode("img",{src:n.code==="M"?"http://192.168.5.200:9000/test/sex_img_M.png":"http://192.168.5.200:9000/test/sex_img_F.png",style:{width:"44px",height:"44px","margin-bottom":"-15px","margin-left":"4px"},alt:""},null,8,u)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])):l.type==="radio"?(e.openBlock(),e.createBlock(s,{key:3,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",O,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(f,{modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,disabled:l.disabled||a.formOptions.isDisabled,onChange:o=>a.radioChange(o,l.field)},{default:e.withCtx(()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((o=l.options)==null?void 0:o.data,n=>{var d,r;return e.openBlock(),e.createBlock(b,{size:"large",label:n[((d=l.options)==null?void 0:d.valueKey)||"code"],key:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var p;return[e.createTextVNode(e.toDisplayString(n[((p=l.options)==null?void 0:p.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])):l.type==="radioNote"?(e.openBlock(),e.createBlock(s,{key:4,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",A,e.toDisplayString(l.labelBefore),1),e.createElementVNode("span",K,e.toDisplayString(l.labelNode),1),l.required?(e.openBlock(),e.createElementBlock("span",Y,"*")):e.createCommentVNode("",!0)]),e.createVNode(f,{modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,disabled:l.disabled||a.formOptions.isDisabled,onChange:o=>a.radioChange(o,l.field)},{default:e.withCtx(()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((o=l.options)==null?void 0:o.data,n=>{var d,r;return e.openBlock(),e.createBlock(b,{size:"large",label:n[((d=l.options)==null?void 0:d.valueKey)||"code"],key:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var p;return[e.createTextVNode(e.toDisplayString(n[((p=l.options)==null?void 0:p.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])):l.type==="checkbox"?(e.openBlock(),e.createBlock(s,{key:5,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",q,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(N,{modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,onChange:o=>a.checkChange(o,l.field),disabled:l.disabled||a.formOptions.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((o=l.options)==null?void 0:o.data,n=>{var d,r;return e.openBlock(),e.createBlock(C,{key:n[((d=l.options)==null?void 0:d.valueKey)||"code"],label:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var p;return[e.createTextVNode(e.toDisplayString(n[((p=l.options)==null?void 0:p.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])):l.type==="checkboxRadio"?(e.openBlock(),e.createBlock(s,{key:6,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",R,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(N,{modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,onChange:o=>a.handleCheckedChange(o,l.field),disabled:l.disabled||a.formOptions.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((o=l.options)==null?void 0:o.data,n=>{var d,r;return e.openBlock(),e.createBlock(C,{key:n[((d=l.options)==null?void 0:d.valueKey)||"code"],label:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var p;return[e.createTextVNode(e.toDisplayString(n[((p=l.options)==null?void 0:p.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])):l.type==="select"?(e.openBlock(),e.createBlock(s,{key:7,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,disabled:l.disabled||a.formOptions.isDisabled,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",H,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(M,{onChange:o=>a.selectChange(o,l.field),modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,disabled:l.disabled||a.formOptions.isDisabled,placeholder:l.placeholder,clearable:l.clearable},{default:e.withCtx(()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((o=l.options)==null?void 0:o.data,n=>{var d,r,p;return e.openBlock(),e.createBlock(x,{key:n[((d=l.options)==null?void 0:d.valueKey)||"code"],label:n[((r=l.options)==null?void 0:r.labelkey)||"name"],value:n[((p=l.options)==null?void 0:p.valueKey)||"code"]},null,8,["label","value"])}),128))]}),_:2},1032,["onChange","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"]),e.createElementVNode("div",{class:"item_tips_blow",style:e.normalizeStyle(l.tipsBlowStyle)},e.toDisplayString(l.tipsBlow),5)]),_:2},1032,["label","rules","disabled","prop"])):l.type==="date"?(e.openBlock(),e.createBlock(s,{key:8,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field,class:"date_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",W,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(B,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:o=>a.dateChange(o,l.field),"prefix-icon":a.prefixIcon,modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,disabled:l.disabled||a.formOptions.isDisabled,readonly:l.readonly,type:l.type,placeholder:l.placeholder||l.label},null,8,["disabled-date","onChange","prefix-icon","modelValue","onUpdate:modelValue","disabled","readonly","type","placeholder"]),l.showTo?(e.openBlock(),e.createElementBlock("span",Q,e.toDisplayString(l.showTo),1)):e.createCommentVNode("",!0)]),_:2},1032,["label","rules","prop"])):l.type==="daterange"?(e.openBlock(),e.createBlock(s,{key:9,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",P,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(B,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:o=>a.dateChange(o,l.field),modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,"prefix-icon":a.prefixIcon,type:"daterange","range-separator":"To","start-placeholder":l.startPlaceholder,"end-placeholder":l.endPlaceholder,size:"large"},null,8,["disabled-date","onChange","modelValue","onUpdate:modelValue","prefix-icon","start-placeholder","end-placeholder"])]),_:2},1032,["label","rules","prop"])):l.type==="slotItem"?(e.openBlock(),e.createBlock(s,{key:10,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field,class:"rule_err"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",Z,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.renderSlot(t.$slots,l.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])):l.type==="phone"?(e.openBlock(),e.createBlock(s,{key:11,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules.phoneNumber,prop:l.field.phoneNumber,class:"phone_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",G,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(h,{onBlur:o=>a.inputBlur(o,l.field),onFocus:o=>a.inputFocus(o,l.field),onChange:o=>a.inputChange(o,l.field),onInput:o=>a.inputInput(o,l.field),maxlength:l.maxlength,modelValue:a.states.model[l.field.phoneNumber],"onUpdate:modelValue":o=>a.states.model[l.field.phoneNumber]=o,disabled:l.disabled||a.formOptions.isDisabled,placeholder:l.placeholder||"请选择",clearable:l.clearable},{prepend:e.withCtx(()=>{var o;return[e.createVNode(M,{disabled:l.disabled||a.formOptions.isDisabled,modelValue:a.states.model[l.field.areaCode],"onUpdate:modelValue":n=>a.states.model[l.field.areaCode]=n,placeholder:((o=l.options)==null?void 0:o.placeholder)||"请选择",style:{width:"75px"}},{default:e.withCtx(()=>{var n;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((n=l.options)==null?void 0:n.data,(d,r)=>(e.openBlock(),e.createBlock(x,{label:d.name,value:d.code,key:r},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder"])]}),_:2},1032,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"])]),_:2},1032,["label","rules","prop"])):l.type==="line"?(e.openBlock(),e.createBlock(s,{key:12,label:l.label},{default:e.withCtx(()=>[J]),_:2},1032,["label"])):(e.openBlock(),e.createBlock(s,{key:13,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass(l.prepend?"input-item":"")},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",X,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(h,{onBlur:o=>a.inputBlur(o,l.field),onFocus:o=>a.inputFocus(o,l.field),onChange:o=>a.inputChange(o,l.field),onInput:o=>a.inputInput(o,l.field),maxlength:l.maxlength,modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,"show-word-limit":l.showWordLimit,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholder||l.label,disabled:l.disabled||a.formOptions.isDisabled,showPassword:l.showPassword,clearable:l.clearable,onKeyup:e.withKeys(o=>a.handleKeyUp(l.enterable),["enter"])},e.createSlots({_:2},[l.prepend?{name:"prepend",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.prepend),1)]),key:"0"}:void 0,l.append?{name:"append",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.append),1)]),key:"1"}:void 0]),1032,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","show-word-limit","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop","class"]))],4)]),_:2},1032,["xs","sm","md","lg","xl"])),[[e.vShow,!l.isHide]])),128))]),_:3}),e.createVNode(s,{class:"btnsItem"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"buttons",{model:y.model,onBtnClick:a.onSubmit},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.formOptions.btnConfig,(l,g)=>(e.openBlock(),e.createElementBlock("div",{key:g},[l.isShow?(e.openBlock(),e.createBlock(D,{key:0,btnCode:l.btnCode,plain:l.plain,primary:l.primary,info:l.info,text:l.text,debounced:l.debounced?l.debounced:!1,link:l.link,loading:l.loading,loadingColor:l.loadingColor,width:l.width,height:l.height,circle:l.circle,color:l.color,bgColor:l.bgColor,borderColor:l.borderColor,borderStyle:l.borderStyle,borderWidth:l.borderWidth,icon:l.icon,size:l.size,fontSize:l.fontSize,fontWeight:l.fontWeight,style:e.normalizeStyle(l.style),class:e.normalizeClass(l.class),onHandleClick:o=>a.handleClick(o,l.isRule,l.emitName)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.name),1)]),_:2},1032,["btnCode","plain","primary","info","text","debounced","link","loading","loadingColor","width","height","circle","color","bgColor","borderColor","borderStyle","borderWidth","icon","size","fontSize","fontWeight","style","class","onHandleClick"])):e.createCommentVNode("",!0)]))),128))],!0)]),_:3})]),_:3},16,["model","label-position"])}const _=z(E,[["render",$],["__scopeId","data-v-614d29dc"]]);function V(t,c={}){V.installed||(V.installed=!0,t.component("common-el-form",_))}return _.install=V,_});
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";[data-v-
|
|
1
|
+
@charset "UTF-8";[data-v-614d29dc] .el-date-editor{height:60px!important;width:100%!important}[data-v-614d29dc] .el-form-item{margin-bottom:12px}[data-v-614d29dc] .el-input__inner{height:42px;color:#1d1d1d}[data-v-614d29dc] .el-card__body{padding:0}[data-v-614d29dc] .el-input__inner::placeholder{font-family:Roboto;font-size:14px;font-weight:400;line-height:22px;letter-spacing:0em;text-align:left;color:#6e6e73}[data-v-614d29dc] .el-form-item__label{font-size:16px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Regular;height:auto!important}.form-item-title[data-v-614d29dc]{width:100%}[data-v-614d29dc] .el-checkbox-group .el-checkbox{display:flex}[data-v-614d29dc] .el-radio-group{height:62px;line-height:62px}[data-v-614d29dc] .el-radio-group .el-radio{height:auto}.rule_err[data-v-614d29dc] .el-form-item__content,.radio_Note[data-v-614d29dc] .el-form-item__content{display:block}.radio_Note .lable[data-v-614d29dc]{font-size:16px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Regular}.radio_Note .lable_note[data-v-614d29dc]{font-size:16px;line-height:22px;color:#6e6e73;font-weight:400;font-family:Roboto Regular}.container_name[data-v-614d29dc] .el-form-item__content{align-items:start}[data-v-614d29dc] .el-form-item__error{position:relative}.item-name[data-v-614d29dc]{width:51%;padding-right:20px;padding-bottom:12px;box-sizing:border-box}.item-name-right[data-v-614d29dc]{width:49%;padding-bottom:12px;padding-right:0}.item-name-bottom[data-v-614d29dc]{padding-bottom:0}.btnsItem[data-v-614d29dc]{width:100%;margin:0 auto;justify-content:right}.btnsItem[data-v-614d29dc] .el-form-item__content{justify-content:right}label[data-v-614d29dc]{display:block}.title-content[data-v-614d29dc]{font-size:22px;line-height:30px;color:#1d1d1d;font-weight:300;font-family:Roboto light}[data-v-614d29dc] .el-input__wrapper{height:60px;border-radius:8px}.date_item[data-v-614d29dc] .el-form-item__content .date_to{font-size:14px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Regular;position:absolute;right:-17.5px}.phone_item[data-v-614d29dc] .el-input__wrapper{border-left:0px!important;border-top-left-radius:0!important;border-bottom-left-radius:0!important;border:1px solid #c7c8ca;box-shadow:none!important}.phone_item[data-v-614d29dc] .el-input-group__prepend{box-shadow:none!important;background-color:unset!important}.phone_item[data-v-614d29dc] .el-input-group__prepend .el-input__wrapper{height:60px;border-radius:8px;border:1px solid #c7c8ca!important;padding-left:16px;padding-right:16px;border-right:0px!important;box-shadow:none!important;border-radius:8px 0 0 8px/8px 0px 0px 8px!important}.phone_item[data-v-614d29dc] .el-input-group__prepend .el-input__wrapper .el-input__suffix{display:none;width:0!important}.phone_item[data-v-614d29dc] .el-input-group__prepend:hover{box-shadow:none!important;background-color:unset!important}.phone_item[data-v-614d29dc] .el-input-group__prepend:hover .el-input__wrapper:hover{border:none;border-right:0px!important;box-shadow:none!important;padding-left:16px;padding-right:16px}.phone_item[data-v-614d29dc] .el-input-group__prepend:hover .el-input__wrapper:hover .el-input__suffix{display:none;width:0!important}.input-item[data-v-614d29dc] .el-input-group__prepend{border:1px solid #c7c8ca!important;border-top-left-radius:8px;border-bottom-left-radius:8px;border-right:0px!important;box-shadow:none!important;background-color:unset!important;padding:0 16px;font-size:14px;line-height:22px;color:#0b0b0b;font-weight:400;font-family:Roboto Regular}.input-item[data-v-614d29dc] .el-input__wrapper{border-left:0px!important;border-right:0px!important;border-radius:0!important}.input-item[data-v-614d29dc] .el-input-group__append{border:1px solid #c7c8ca!important;border-top-right-radius:8px;border-bottom-right-radius:8px;border-left:0px!important;box-shadow:none!important;background-color:unset!important;padding:0 16px;font-size:14px;line-height:22px;color:#0b0b0b;font-weight:400;font-family:Roboto Regular}[data-v-614d29dc] .el-select{width:100%}.custom-required[data-v-614d29dc]{content:"*";color:#e2a650;margin-left:4px}.item_tips_blow[data-v-614d29dc]{font-size:14px;line-height:22px;color:#00000073;font-weight:400;font-family:Roboto Regular;width:100%;word-wrap:break-word;white-space:normal}
|