sinosoft-common-form 1.4.1 → 1.4.3
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 +175 -158
- 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 W, shallowRef as Q, h as P, computed as Z, onMounted as G, watch as J, toRefs as X, nextTick as $, resolveComponent as
|
|
1
|
+
import { ref as q, reactive as W, shallowRef as Q, h as P, computed as Z, onMounted as G, watch as J, toRefs as X, nextTick as $, resolveComponent as M, openBlock as n, createBlock as y, mergeProps as ll, withModifiers as el, withCtx as s, createVNode as i, createElementBlock as r, Fragment as x, renderList as w, withDirectives as ol, createElementVNode as k, normalizeStyle as f, toDisplayString as c, createTextVNode as g, createCommentVNode as _, renderSlot as C, normalizeClass as N, withKeys as v, createSlots as al, vShow as nl, pushScopeId as dl, popScopeId as sl } from "vue";
|
|
2
2
|
const rl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==", ul = {
|
|
3
3
|
props: {
|
|
4
4
|
fieldList: {
|
|
@@ -8,8 +8,8 @@ const rl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
8
8
|
model: Object,
|
|
9
9
|
options: Object
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
11
|
+
setup(t, { emit: h }) {
|
|
12
|
+
const A = q(!0), e = W({
|
|
13
13
|
model: {}
|
|
14
14
|
}), D = q(null), Y = Q({
|
|
15
15
|
render() {
|
|
@@ -17,10 +17,10 @@ const rl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
17
17
|
src: rl
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
}), p = Z(() => Object.assign([],
|
|
21
|
-
e.model =
|
|
22
|
-
},
|
|
23
|
-
D.value && (a ? (
|
|
20
|
+
}), p = Z(() => Object.assign([], t.options)), I = () => {
|
|
21
|
+
e.model = t.model;
|
|
22
|
+
}, O = (d, a, u) => {
|
|
23
|
+
D.value && (a ? (A.value = !1, $(() => {
|
|
24
24
|
D.value.validate((b) => {
|
|
25
25
|
if (b)
|
|
26
26
|
h(u || "submit", e.model, d);
|
|
@@ -28,7 +28,7 @@ const rl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
28
28
|
return !1;
|
|
29
29
|
});
|
|
30
30
|
})) : u === "reset" ? D.value.resetFields() : h(u || "submit", e.model, d));
|
|
31
|
-
},
|
|
31
|
+
}, V = (d, a) => {
|
|
32
32
|
h("selectChange", d, a);
|
|
33
33
|
}, F = (d, a) => {
|
|
34
34
|
h("radioChange", d, a);
|
|
@@ -36,12 +36,16 @@ const rl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
36
36
|
h("checkChange", d, a);
|
|
37
37
|
}, U = (d, a) => {
|
|
38
38
|
const u = e.model[a].length;
|
|
39
|
-
|
|
39
|
+
if (u === 1) {
|
|
40
|
+
h("checkChange", d, a);
|
|
41
|
+
return;
|
|
42
|
+
} else
|
|
43
|
+
u > 1 && (e.model[a].shift(), h("checkChange", d, a));
|
|
40
44
|
}, R = (d, a, u) => {
|
|
41
|
-
|
|
42
|
-
}, L = (d, a) => {
|
|
43
|
-
d && (a == null ? void 0 : a.key) === "Enter" && V(void 0, !0, "submit");
|
|
45
|
+
O(d, a, u);
|
|
44
46
|
}, T = (d, a) => {
|
|
47
|
+
d && (a == null ? void 0 : a.key) === "Enter" && O(void 0, !0, "submit");
|
|
48
|
+
}, L = (d, a) => {
|
|
45
49
|
h("dateChange", d, a);
|
|
46
50
|
}, S = (d, a) => {
|
|
47
51
|
console.log(D.value), h("inputBlur", d, a);
|
|
@@ -57,42 +61,42 @@ const rl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
57
61
|
D.value.clearValidate(d);
|
|
58
62
|
};
|
|
59
63
|
return G(() => {
|
|
60
|
-
|
|
64
|
+
I(), D.value.resetFields();
|
|
61
65
|
}), J(
|
|
62
|
-
() =>
|
|
66
|
+
() => t.fieldList,
|
|
63
67
|
(d, a) => {
|
|
64
|
-
d !== a &&
|
|
68
|
+
d !== a && I();
|
|
65
69
|
}
|
|
66
70
|
), {
|
|
67
71
|
...X(e),
|
|
68
72
|
formRef: D,
|
|
69
73
|
states: e,
|
|
70
74
|
formOptions: p,
|
|
71
|
-
onSubmit:
|
|
72
|
-
selectChange:
|
|
75
|
+
onSubmit: O,
|
|
76
|
+
selectChange: V,
|
|
73
77
|
radioChange: F,
|
|
74
78
|
checkChange: z,
|
|
75
79
|
handleCheckedChange: U,
|
|
76
80
|
prefixIcon: Y,
|
|
77
81
|
handleClick: R,
|
|
78
|
-
handleKeyUp:
|
|
82
|
+
handleKeyUp: T,
|
|
79
83
|
resetFieldsTest: j,
|
|
80
84
|
clearValidateTest: o,
|
|
81
|
-
dateChange:
|
|
85
|
+
dateChange: L,
|
|
82
86
|
inputBlur: S,
|
|
83
87
|
inputFocus: E,
|
|
84
88
|
inputChange: m,
|
|
85
89
|
inputInput: l,
|
|
86
|
-
noFormRule:
|
|
90
|
+
noFormRule: A
|
|
87
91
|
};
|
|
88
92
|
}
|
|
89
93
|
};
|
|
90
|
-
const
|
|
91
|
-
const
|
|
94
|
+
const tl = (t, h) => {
|
|
95
|
+
const A = t.__vccOpts || t;
|
|
92
96
|
for (const [e, D] of h)
|
|
93
|
-
|
|
94
|
-
return
|
|
95
|
-
}, B = (
|
|
97
|
+
A[e] = D;
|
|
98
|
+
return A;
|
|
99
|
+
}, B = (t) => (dl("data-v-5e54a282"), t = t(), sl(), t), yl = { class: "header-title" }, cl = { class: "title-content" }, il = {
|
|
96
100
|
key: 0,
|
|
97
101
|
class: "custom-required"
|
|
98
102
|
}, pl = {
|
|
@@ -101,10 +105,10 @@ const yl = (y, h) => {
|
|
|
101
105
|
}, bl = ["src"], fl = {
|
|
102
106
|
key: 0,
|
|
103
107
|
class: "custom-required"
|
|
104
|
-
}, hl = { class: "lable" }, gl = { class: "lable_note" },
|
|
108
|
+
}, hl = { class: "lable" }, gl = { class: "lable_note" }, _l = {
|
|
105
109
|
key: 0,
|
|
106
110
|
class: "custom-required"
|
|
107
|
-
},
|
|
111
|
+
}, Ml = {
|
|
108
112
|
key: 0,
|
|
109
113
|
class: "custom-required"
|
|
110
114
|
}, Cl = {
|
|
@@ -119,29 +123,29 @@ const yl = (y, h) => {
|
|
|
119
123
|
}, Dl = {
|
|
120
124
|
key: 0,
|
|
121
125
|
class: "date_to"
|
|
122
|
-
},
|
|
126
|
+
}, xl = {
|
|
123
127
|
key: 0,
|
|
124
128
|
class: "custom-required"
|
|
125
|
-
},
|
|
129
|
+
}, wl = {
|
|
126
130
|
key: 0,
|
|
127
131
|
class: "custom-required"
|
|
128
|
-
},
|
|
132
|
+
}, Al = {
|
|
129
133
|
key: 0,
|
|
130
134
|
class: "custom-required"
|
|
131
|
-
},
|
|
135
|
+
}, Il = { class: "phone_item_content" }, Ol = /* @__PURE__ */ B(() => /* @__PURE__ */ k("div", { class: "line_middle" }, " - ", -1)), Vl = /* @__PURE__ */ B(() => /* @__PURE__ */ k("div", { class: "line_middle" }, " - ", -1)), Ul = /* @__PURE__ */ B(() => /* @__PURE__ */ k("div", {
|
|
132
136
|
class: "line",
|
|
133
137
|
style: { "border-top": "1px solid #e8e8e8", width: "100%", height: "0px", margin: "39px 0" }
|
|
134
138
|
}, null, -1)), Rl = {
|
|
135
139
|
key: 0,
|
|
136
140
|
class: "custom-required"
|
|
137
141
|
};
|
|
138
|
-
function jl(
|
|
139
|
-
const p =
|
|
140
|
-
return n(),
|
|
142
|
+
function jl(t, h, A, e, D, Y) {
|
|
143
|
+
const p = M("el-form-item"), I = M("el-input"), O = M("el-radio"), V = M("el-radio-group"), F = M("el-checkbox"), z = M("el-checkbox-group"), U = M("el-option"), R = M("el-select"), T = M("el-date-picker"), L = M("el-col"), S = M("el-row"), E = M("sinosoft-common-button"), m = M("el-form");
|
|
144
|
+
return n(), y(m, ll({
|
|
141
145
|
"hide-required-asterisk": "",
|
|
142
146
|
onSubmit: h[0] || (h[0] = el(() => {
|
|
143
147
|
}, ["prevent"])),
|
|
144
|
-
model:
|
|
148
|
+
model: A.model
|
|
145
149
|
}, e.formOptions, {
|
|
146
150
|
"label-position": e.formOptions.labelPosition,
|
|
147
151
|
ref: "formRef"
|
|
@@ -149,7 +153,7 @@ function jl(y, h, x, e, D, Y) {
|
|
|
149
153
|
default: s(() => [
|
|
150
154
|
i(S, { gutter: 20 }, {
|
|
151
155
|
default: s(() => [
|
|
152
|
-
(n(!0), r(
|
|
156
|
+
(n(!0), r(x, null, w(A.fieldList, (l, j) => ol((n(), y(L, {
|
|
153
157
|
xs: l.xs ? l.xs : 24,
|
|
154
158
|
sm: l.sm ? l.sm : 24,
|
|
155
159
|
md: l.md ? l.md : 8,
|
|
@@ -159,28 +163,28 @@ function jl(y, h, x, e, D, Y) {
|
|
|
159
163
|
}, {
|
|
160
164
|
default: s(() => [
|
|
161
165
|
k("div", {
|
|
162
|
-
style:
|
|
166
|
+
style: f(l.style)
|
|
163
167
|
}, [
|
|
164
|
-
l.type === "title" ? (n(),
|
|
168
|
+
l.type === "title" ? (n(), y(p, { key: 0 }, {
|
|
165
169
|
default: s(() => [
|
|
166
|
-
k("div",
|
|
167
|
-
k("span",
|
|
170
|
+
k("div", yl, [
|
|
171
|
+
k("span", cl, c(l.title), 1)
|
|
168
172
|
])
|
|
169
173
|
]),
|
|
170
174
|
_: 2
|
|
171
|
-
}, 1024)) : l.type === "name" ? (n(),
|
|
175
|
+
}, 1024)) : l.type === "name" ? (n(), y(p, {
|
|
172
176
|
key: 1,
|
|
173
177
|
label: l.label,
|
|
174
178
|
disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
|
|
175
179
|
class: "container_name"
|
|
176
180
|
}, {
|
|
177
181
|
label: s(() => [
|
|
178
|
-
l.slotLabelName ? C(
|
|
182
|
+
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
179
183
|
key: 0,
|
|
180
|
-
style:
|
|
184
|
+
style: f(l.labelStyle)
|
|
181
185
|
}, [
|
|
182
|
-
|
|
183
|
-
l.required ? (n(), r("span", il, "*")) :
|
|
186
|
+
g(c(l.label) + " ", 1),
|
|
187
|
+
l.required ? (n(), r("span", il, "*")) : _("", !0)
|
|
184
188
|
], 4))
|
|
185
189
|
]),
|
|
186
190
|
default: s(() => [
|
|
@@ -190,7 +194,7 @@ function jl(y, h, x, e, D, Y) {
|
|
|
190
194
|
class: "item-name"
|
|
191
195
|
}, {
|
|
192
196
|
default: s(() => [
|
|
193
|
-
i(
|
|
197
|
+
i(I, {
|
|
194
198
|
onBlur: (o) => e.inputBlur(o, l.field.nameEnFamily),
|
|
195
199
|
onFocus: (o) => e.inputFocus(o, l.field.nameEnFamily),
|
|
196
200
|
onChange: (o) => e.inputChange(o, l.field.nameEnFamily),
|
|
@@ -214,7 +218,7 @@ function jl(y, h, x, e, D, Y) {
|
|
|
214
218
|
class: "item-name-right"
|
|
215
219
|
}, {
|
|
216
220
|
default: s(() => [
|
|
217
|
-
i(
|
|
221
|
+
i(I, {
|
|
218
222
|
onBlur: (o) => e.inputBlur(o, l.field.nameEn),
|
|
219
223
|
onFocus: (o) => e.inputFocus(o, l.field.nameEn),
|
|
220
224
|
onChange: (o) => e.inputChange(o, l.field.nameEn),
|
|
@@ -238,7 +242,7 @@ function jl(y, h, x, e, D, Y) {
|
|
|
238
242
|
class: "item-name item-name-bottom"
|
|
239
243
|
}, {
|
|
240
244
|
default: s(() => [
|
|
241
|
-
i(
|
|
245
|
+
i(I, {
|
|
242
246
|
onBlur: (o) => e.inputBlur(o, l.field.nameChFamily),
|
|
243
247
|
onFocus: (o) => e.inputFocus(o, l.field.nameChFamily),
|
|
244
248
|
onChange: (o) => e.inputChange(o, l.field.nameChFamily),
|
|
@@ -262,7 +266,7 @@ function jl(y, h, x, e, D, Y) {
|
|
|
262
266
|
class: "item-name-right item-name-bottom"
|
|
263
267
|
}, {
|
|
264
268
|
default: s(() => [
|
|
265
|
-
i(
|
|
269
|
+
i(I, {
|
|
266
270
|
onBlur: (o) => e.inputBlur(o, l.field.nameCh),
|
|
267
271
|
onFocus: (o) => e.inputFocus(o, l.field.nameCh),
|
|
268
272
|
onChange: (o) => e.inputChange(o, l.field.nameCh),
|
|
@@ -282,23 +286,23 @@ function jl(y, h, x, e, D, Y) {
|
|
|
282
286
|
}, 1032, ["rules", "prop"])
|
|
283
287
|
]),
|
|
284
288
|
_: 2
|
|
285
|
-
}, 1032, ["label", "disabled"])) : l.type === "gender" ? (n(),
|
|
289
|
+
}, 1032, ["label", "disabled"])) : l.type === "gender" ? (n(), y(p, {
|
|
286
290
|
key: 2,
|
|
287
291
|
label: l.label,
|
|
288
292
|
rules: l.isHide || e.noFormRule ? [] : l.rules,
|
|
289
293
|
prop: l.field
|
|
290
294
|
}, {
|
|
291
295
|
label: s(() => [
|
|
292
|
-
l.slotLabelName ? C(
|
|
296
|
+
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
293
297
|
key: 0,
|
|
294
|
-
style:
|
|
298
|
+
style: f(l.labelStyle)
|
|
295
299
|
}, [
|
|
296
|
-
|
|
297
|
-
l.required ? (n(), r("span", pl, "*")) :
|
|
300
|
+
g(c(l.label) + " ", 1),
|
|
301
|
+
l.required ? (n(), r("span", pl, "*")) : _("", !0)
|
|
298
302
|
], 4))
|
|
299
303
|
]),
|
|
300
304
|
default: s(() => [
|
|
301
|
-
i(
|
|
305
|
+
i(V, {
|
|
302
306
|
modelValue: e.states.model[l.field],
|
|
303
307
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
304
308
|
disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
|
|
@@ -307,9 +311,9 @@ function jl(y, h, x, e, D, Y) {
|
|
|
307
311
|
default: s(() => {
|
|
308
312
|
var o;
|
|
309
313
|
return [
|
|
310
|
-
(n(!0), r(
|
|
314
|
+
(n(!0), r(x, null, w((o = l.options) == null ? void 0 : o.data, (d) => {
|
|
311
315
|
var a, u;
|
|
312
|
-
return n(),
|
|
316
|
+
return n(), y(O, {
|
|
313
317
|
label: d[((a = l.options) == null ? void 0 : a.valueKey) || "code"],
|
|
314
318
|
size: "large",
|
|
315
319
|
key: d[((u = l.options) == null ? void 0 : u.valueKey) || "code"]
|
|
@@ -330,7 +334,7 @@ function jl(y, h, x, e, D, Y) {
|
|
|
330
334
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
|
|
331
335
|
]),
|
|
332
336
|
_: 2
|
|
333
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "radio" ? (n(),
|
|
337
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "radio" ? (n(), y(p, {
|
|
334
338
|
key: 3,
|
|
335
339
|
label: l.label,
|
|
336
340
|
rules: l.isHide || e.noFormRule ? [] : l.rules,
|
|
@@ -338,27 +342,30 @@ function jl(y, h, x, e, D, Y) {
|
|
|
338
342
|
class: N([l.labelNode ? "radio_Note" : "rule_err"])
|
|
339
343
|
}, {
|
|
340
344
|
label: s(() => [
|
|
341
|
-
l.slotLabelName ? C(
|
|
345
|
+
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
342
346
|
key: 0,
|
|
343
|
-
style:
|
|
347
|
+
style: f(l.labelStyle)
|
|
344
348
|
}, [
|
|
345
|
-
|
|
346
|
-
l.required ? (n(), r("span", fl, "*")) :
|
|
349
|
+
g(c(l.label) + " ", 1),
|
|
350
|
+
l.required ? (n(), r("span", fl, "*")) : _("", !0)
|
|
347
351
|
], 4))
|
|
348
352
|
]),
|
|
349
353
|
default: s(() => [
|
|
350
|
-
i(
|
|
354
|
+
i(V, {
|
|
351
355
|
modelValue: e.states.model[l.field],
|
|
352
356
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
353
357
|
disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
|
|
354
|
-
onChange: (o) => e.radioChange(o, l.field)
|
|
358
|
+
onChange: (o) => e.radioChange(o, l.field),
|
|
359
|
+
style: f(
|
|
360
|
+
l.ways === "column" ? "display: flex; align-items: flex-start;flex-flow: column nowrap; " : "display: flex; align-items: flex-start;flex-flow: row nowrap; "
|
|
361
|
+
)
|
|
355
362
|
}, {
|
|
356
363
|
default: s(() => {
|
|
357
364
|
var o;
|
|
358
365
|
return [
|
|
359
|
-
(n(!0), r(
|
|
366
|
+
(n(!0), r(x, null, w((o = l.options) == null ? void 0 : o.data, (d) => {
|
|
360
367
|
var a, u;
|
|
361
|
-
return n(),
|
|
368
|
+
return n(), y(O, {
|
|
362
369
|
size: "large",
|
|
363
370
|
label: d[((a = l.options) == null ? void 0 : a.valueKey) || "code"],
|
|
364
371
|
key: d[((u = l.options) == null ? void 0 : u.valueKey) || "code"]
|
|
@@ -366,7 +373,7 @@ function jl(y, h, x, e, D, Y) {
|
|
|
366
373
|
default: s(() => {
|
|
367
374
|
var b;
|
|
368
375
|
return [
|
|
369
|
-
|
|
376
|
+
g(c(d[((b = l.options) == null ? void 0 : b.labelkey) || "name"]), 1)
|
|
370
377
|
];
|
|
371
378
|
}),
|
|
372
379
|
_: 2
|
|
@@ -375,10 +382,10 @@ function jl(y, h, x, e, D, Y) {
|
|
|
375
382
|
];
|
|
376
383
|
}),
|
|
377
384
|
_: 2
|
|
378
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
|
|
385
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange", "style"])
|
|
379
386
|
]),
|
|
380
387
|
_: 2
|
|
381
|
-
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "radioNote" ? (n(),
|
|
388
|
+
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "radioNote" ? (n(), y(p, {
|
|
382
389
|
key: 4,
|
|
383
390
|
label: l.label,
|
|
384
391
|
rules: l.isHide || e.noFormRule ? [] : l.rules,
|
|
@@ -387,22 +394,25 @@ function jl(y, h, x, e, D, Y) {
|
|
|
387
394
|
}, {
|
|
388
395
|
default: s(() => [
|
|
389
396
|
k("div", null, [
|
|
390
|
-
k("span", hl,
|
|
391
|
-
k("span", gl,
|
|
392
|
-
l.required ? (n(), r("span",
|
|
397
|
+
k("span", hl, c(l.labelBefore), 1),
|
|
398
|
+
k("span", gl, c(l.labelNode), 1),
|
|
399
|
+
l.required ? (n(), r("span", _l, "*")) : _("", !0)
|
|
393
400
|
]),
|
|
394
|
-
i(
|
|
401
|
+
i(V, {
|
|
395
402
|
modelValue: e.states.model[l.field],
|
|
396
403
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
397
404
|
disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
|
|
398
|
-
onChange: (o) => e.radioChange(o, l.field)
|
|
405
|
+
onChange: (o) => e.radioChange(o, l.field),
|
|
406
|
+
style: f(
|
|
407
|
+
l.ways === "column" ? "display: flex; align-items: flex-start;flex-flow: column nowrap; " : "display: flex; align-items: flex-start;flex-flow: row nowrap; "
|
|
408
|
+
)
|
|
399
409
|
}, {
|
|
400
410
|
default: s(() => {
|
|
401
411
|
var o;
|
|
402
412
|
return [
|
|
403
|
-
(n(!0), r(
|
|
413
|
+
(n(!0), r(x, null, w((o = l.options) == null ? void 0 : o.data, (d) => {
|
|
404
414
|
var a, u;
|
|
405
|
-
return n(),
|
|
415
|
+
return n(), y(O, {
|
|
406
416
|
size: "large",
|
|
407
417
|
label: d[((a = l.options) == null ? void 0 : a.valueKey) || "code"],
|
|
408
418
|
key: d[((u = l.options) == null ? void 0 : u.valueKey) || "code"]
|
|
@@ -410,7 +420,7 @@ function jl(y, h, x, e, D, Y) {
|
|
|
410
420
|
default: s(() => {
|
|
411
421
|
var b;
|
|
412
422
|
return [
|
|
413
|
-
|
|
423
|
+
g(c(d[((b = l.options) == null ? void 0 : b.labelkey) || "name"]), 1)
|
|
414
424
|
];
|
|
415
425
|
}),
|
|
416
426
|
_: 2
|
|
@@ -419,22 +429,22 @@ function jl(y, h, x, e, D, Y) {
|
|
|
419
429
|
];
|
|
420
430
|
}),
|
|
421
431
|
_: 2
|
|
422
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
|
|
432
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange", "style"])
|
|
423
433
|
]),
|
|
424
434
|
_: 2
|
|
425
|
-
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "checkbox" ? (n(),
|
|
435
|
+
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "checkbox" ? (n(), y(p, {
|
|
426
436
|
key: 5,
|
|
427
437
|
label: l.label,
|
|
428
438
|
rules: l.isHide || e.noFormRule ? [] : l.rules,
|
|
429
439
|
prop: l.field
|
|
430
440
|
}, {
|
|
431
441
|
label: s(() => [
|
|
432
|
-
l.slotLabelName ? C(
|
|
442
|
+
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
433
443
|
key: 0,
|
|
434
|
-
style:
|
|
444
|
+
style: f(l.labelStyle)
|
|
435
445
|
}, [
|
|
436
|
-
|
|
437
|
-
l.required ? (n(), r("span",
|
|
446
|
+
g(c(l.label) + " ", 1),
|
|
447
|
+
l.required ? (n(), r("span", Ml, "*")) : _("", !0)
|
|
438
448
|
], 4))
|
|
439
449
|
]),
|
|
440
450
|
default: s(() => [
|
|
@@ -443,23 +453,23 @@ function jl(y, h, x, e, D, Y) {
|
|
|
443
453
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
444
454
|
onChange: (o) => e.checkChange(o, l.field),
|
|
445
455
|
disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
|
|
446
|
-
style:
|
|
456
|
+
style: f(
|
|
447
457
|
l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
|
|
448
458
|
)
|
|
449
459
|
}, {
|
|
450
460
|
default: s(() => {
|
|
451
461
|
var o;
|
|
452
462
|
return [
|
|
453
|
-
(n(!0), r(
|
|
463
|
+
(n(!0), r(x, null, w((o = l.options) == null ? void 0 : o.data, (d) => {
|
|
454
464
|
var a, u;
|
|
455
|
-
return n(),
|
|
465
|
+
return n(), y(F, {
|
|
456
466
|
key: d[((a = l.options) == null ? void 0 : a.valueKey) || "code"],
|
|
457
467
|
label: d[((u = l.options) == null ? void 0 : u.valueKey) || "code"]
|
|
458
468
|
}, {
|
|
459
469
|
default: s(() => {
|
|
460
470
|
var b;
|
|
461
471
|
return [
|
|
462
|
-
|
|
472
|
+
g(c(d[((b = l.options) == null ? void 0 : b.labelkey) || "name"]), 1)
|
|
463
473
|
];
|
|
464
474
|
}),
|
|
465
475
|
_: 2
|
|
@@ -471,19 +481,19 @@ function jl(y, h, x, e, D, Y) {
|
|
|
471
481
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
|
|
472
482
|
]),
|
|
473
483
|
_: 2
|
|
474
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "checkboxRadio" ? (n(),
|
|
484
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "checkboxRadio" ? (n(), y(p, {
|
|
475
485
|
key: 6,
|
|
476
486
|
label: l.label,
|
|
477
487
|
rules: l.isHide || e.noFormRule ? [] : l.rules,
|
|
478
488
|
prop: l.field
|
|
479
489
|
}, {
|
|
480
490
|
label: s(() => [
|
|
481
|
-
l.slotLabelName ? C(
|
|
491
|
+
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
482
492
|
key: 0,
|
|
483
|
-
style:
|
|
493
|
+
style: f(l.labelStyle)
|
|
484
494
|
}, [
|
|
485
|
-
|
|
486
|
-
l.required ? (n(), r("span", Cl, "*")) :
|
|
495
|
+
g(c(l.label) + " ", 1),
|
|
496
|
+
l.required ? (n(), r("span", Cl, "*")) : _("", !0)
|
|
487
497
|
], 4))
|
|
488
498
|
]),
|
|
489
499
|
default: s(() => [
|
|
@@ -492,23 +502,23 @@ function jl(y, h, x, e, D, Y) {
|
|
|
492
502
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
493
503
|
onChange: (o) => e.handleCheckedChange(o, l.field),
|
|
494
504
|
disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
|
|
495
|
-
style:
|
|
505
|
+
style: f(
|
|
496
506
|
l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
|
|
497
507
|
)
|
|
498
508
|
}, {
|
|
499
509
|
default: s(() => {
|
|
500
510
|
var o;
|
|
501
511
|
return [
|
|
502
|
-
(n(!0), r(
|
|
512
|
+
(n(!0), r(x, null, w((o = l.options) == null ? void 0 : o.data, (d) => {
|
|
503
513
|
var a, u;
|
|
504
|
-
return n(),
|
|
514
|
+
return n(), y(F, {
|
|
505
515
|
key: d[((a = l.options) == null ? void 0 : a.valueKey) || "code"],
|
|
506
516
|
label: d[((u = l.options) == null ? void 0 : u.valueKey) || "code"]
|
|
507
517
|
}, {
|
|
508
518
|
default: s(() => {
|
|
509
519
|
var b;
|
|
510
520
|
return [
|
|
511
|
-
|
|
521
|
+
g(c(d[((b = l.options) == null ? void 0 : b.labelkey) || "name"]), 1)
|
|
512
522
|
];
|
|
513
523
|
}),
|
|
514
524
|
_: 2
|
|
@@ -520,7 +530,7 @@ function jl(y, h, x, e, D, Y) {
|
|
|
520
530
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
|
|
521
531
|
]),
|
|
522
532
|
_: 2
|
|
523
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "select" ? (n(),
|
|
533
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "select" ? (n(), y(p, {
|
|
524
534
|
key: 7,
|
|
525
535
|
label: l.label,
|
|
526
536
|
rules: l.isHide || e.noFormRule ? [] : l.rules,
|
|
@@ -528,16 +538,17 @@ function jl(y, h, x, e, D, Y) {
|
|
|
528
538
|
prop: l.field
|
|
529
539
|
}, {
|
|
530
540
|
label: s(() => [
|
|
531
|
-
l.slotLabelName ? C(
|
|
541
|
+
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
532
542
|
key: 0,
|
|
533
|
-
style:
|
|
543
|
+
style: f(l.labelStyle)
|
|
534
544
|
}, [
|
|
535
|
-
|
|
536
|
-
l.required ? (n(), r("span", Nl, "*")) :
|
|
545
|
+
g(c(l.label) + " ", 1),
|
|
546
|
+
l.required ? (n(), r("span", Nl, "*")) : _("", !0)
|
|
537
547
|
], 4))
|
|
538
548
|
]),
|
|
539
549
|
default: s(() => [
|
|
540
550
|
i(R, {
|
|
551
|
+
"popper-class": "selectTriangles",
|
|
541
552
|
onChange: (o) => e.selectChange(o, l.field),
|
|
542
553
|
modelValue: e.states.model[l.field],
|
|
543
554
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
@@ -549,9 +560,9 @@ function jl(y, h, x, e, D, Y) {
|
|
|
549
560
|
default: s(() => {
|
|
550
561
|
var o;
|
|
551
562
|
return [
|
|
552
|
-
(n(!0), r(
|
|
563
|
+
(n(!0), r(x, null, w((o = l.options) == null ? void 0 : o.data, (d) => {
|
|
553
564
|
var a, u, b;
|
|
554
|
-
return n(),
|
|
565
|
+
return n(), y(U, {
|
|
555
566
|
key: d[((a = l.options) == null ? void 0 : a.valueKey) || "code"],
|
|
556
567
|
label: d[((u = l.options) == null ? void 0 : u.labelkey) || "name"],
|
|
557
568
|
value: d[((b = l.options) == null ? void 0 : b.valueKey) || "code"]
|
|
@@ -563,11 +574,11 @@ function jl(y, h, x, e, D, Y) {
|
|
|
563
574
|
}, 1032, ["onChange", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "clearable"]),
|
|
564
575
|
k("div", {
|
|
565
576
|
class: "item_tips_blow",
|
|
566
|
-
style:
|
|
567
|
-
},
|
|
577
|
+
style: f(l.tipsBlowStyle)
|
|
578
|
+
}, c(l.tipsBlow), 5)
|
|
568
579
|
]),
|
|
569
580
|
_: 2
|
|
570
|
-
}, 1032, ["label", "rules", "disabled", "prop"])) : l.type === "date" ? (n(),
|
|
581
|
+
}, 1032, ["label", "rules", "disabled", "prop"])) : l.type === "date" ? (n(), y(p, {
|
|
571
582
|
key: 8,
|
|
572
583
|
label: l.label,
|
|
573
584
|
rules: l.isHide || e.noFormRule ? [] : l.rules,
|
|
@@ -575,16 +586,17 @@ function jl(y, h, x, e, D, Y) {
|
|
|
575
586
|
class: "date_item"
|
|
576
587
|
}, {
|
|
577
588
|
label: s(() => [
|
|
578
|
-
l.slotLabelName ? C(
|
|
589
|
+
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
579
590
|
key: 0,
|
|
580
|
-
style:
|
|
591
|
+
style: f(l.labelStyle)
|
|
581
592
|
}, [
|
|
582
|
-
|
|
583
|
-
l.required ? (n(), r("span", kl, "*")) :
|
|
593
|
+
g(c(l.label) + " ", 1),
|
|
594
|
+
l.required ? (n(), r("span", kl, "*")) : _("", !0)
|
|
584
595
|
], 4))
|
|
585
596
|
]),
|
|
586
597
|
default: s(() => [
|
|
587
|
-
i(
|
|
598
|
+
i(T, {
|
|
599
|
+
"popper-class": "selectTriangles",
|
|
588
600
|
format: "DD/MM/YYYY",
|
|
589
601
|
"value-format": "DD/MM/YYYY",
|
|
590
602
|
"disabled-date": l.disabledDate,
|
|
@@ -597,26 +609,27 @@ function jl(y, h, x, e, D, Y) {
|
|
|
597
609
|
type: l.type,
|
|
598
610
|
placeholder: l.placeholder || l.label
|
|
599
611
|
}, null, 8, ["disabled-date", "onChange", "prefix-icon", "modelValue", "onUpdate:modelValue", "disabled", "readonly", "type", "placeholder"]),
|
|
600
|
-
l.showTo ? (n(), r("span", Dl,
|
|
612
|
+
l.showTo ? (n(), r("span", Dl, c(l.showTo), 1)) : _("", !0)
|
|
601
613
|
]),
|
|
602
614
|
_: 2
|
|
603
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "daterange" ? (n(),
|
|
615
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "daterange" ? (n(), y(p, {
|
|
604
616
|
key: 9,
|
|
605
617
|
label: l.label,
|
|
606
618
|
rules: l.isHide || e.noFormRule ? [] : l.rules,
|
|
607
619
|
prop: l.field
|
|
608
620
|
}, {
|
|
609
621
|
label: s(() => [
|
|
610
|
-
l.slotLabelName ? C(
|
|
622
|
+
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
611
623
|
key: 0,
|
|
612
|
-
style:
|
|
624
|
+
style: f(l.labelStyle)
|
|
613
625
|
}, [
|
|
614
|
-
|
|
615
|
-
l.required ? (n(), r("span",
|
|
626
|
+
g(c(l.label) + " ", 1),
|
|
627
|
+
l.required ? (n(), r("span", xl, "*")) : _("", !0)
|
|
616
628
|
], 4))
|
|
617
629
|
]),
|
|
618
630
|
default: s(() => [
|
|
619
|
-
i(
|
|
631
|
+
i(T, {
|
|
632
|
+
"popper-class": "selectTriangles",
|
|
620
633
|
format: "DD/MM/YYYY",
|
|
621
634
|
"value-format": "DD/MM/YYYY",
|
|
622
635
|
"disabled-date": l.disabledDate,
|
|
@@ -632,7 +645,7 @@ function jl(y, h, x, e, D, Y) {
|
|
|
632
645
|
}, null, 8, ["disabled-date", "onChange", "modelValue", "onUpdate:modelValue", "prefix-icon", "start-placeholder", "end-placeholder"])
|
|
633
646
|
]),
|
|
634
647
|
_: 2
|
|
635
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "slotItem" ? (n(),
|
|
648
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "slotItem" ? (n(), y(p, {
|
|
636
649
|
key: 10,
|
|
637
650
|
label: l.label,
|
|
638
651
|
rules: l.isHide || e.noFormRule ? [] : l.rules,
|
|
@@ -640,19 +653,19 @@ function jl(y, h, x, e, D, Y) {
|
|
|
640
653
|
class: "rule_err"
|
|
641
654
|
}, {
|
|
642
655
|
label: s(() => [
|
|
643
|
-
l.slotLabelName ? C(
|
|
656
|
+
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
644
657
|
key: 0,
|
|
645
|
-
style:
|
|
658
|
+
style: f(l.labelStyle)
|
|
646
659
|
}, [
|
|
647
|
-
|
|
648
|
-
l.required ? (n(), r("span",
|
|
660
|
+
g(c(l.label) + " ", 1),
|
|
661
|
+
l.required ? (n(), r("span", wl, "*")) : _("", !0)
|
|
649
662
|
], 4))
|
|
650
663
|
]),
|
|
651
664
|
default: s(() => [
|
|
652
|
-
C(
|
|
665
|
+
C(t.$slots, l.slotItemName, {}, void 0, !0)
|
|
653
666
|
]),
|
|
654
667
|
_: 2
|
|
655
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "phone" ? (n(),
|
|
668
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "phone" ? (n(), y(p, {
|
|
656
669
|
key: 11,
|
|
657
670
|
label: l.label,
|
|
658
671
|
rules: l.isHide || e.noFormRule ? [] : l.rules.phoneNumber,
|
|
@@ -660,29 +673,31 @@ function jl(y, h, x, e, D, Y) {
|
|
|
660
673
|
class: "phone_item"
|
|
661
674
|
}, {
|
|
662
675
|
label: s(() => [
|
|
663
|
-
l.slotLabelName ? C(
|
|
676
|
+
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
664
677
|
key: 0,
|
|
665
|
-
style:
|
|
678
|
+
style: f(l.labelStyle)
|
|
666
679
|
}, [
|
|
667
|
-
|
|
668
|
-
l.required ? (n(), r("span",
|
|
680
|
+
g(c(l.label) + " ", 1),
|
|
681
|
+
l.required ? (n(), r("span", Al, "*")) : _("", !0)
|
|
669
682
|
], 4))
|
|
670
683
|
]),
|
|
671
684
|
default: s(() => {
|
|
672
685
|
var o, d;
|
|
673
686
|
return [
|
|
674
|
-
k("div",
|
|
687
|
+
k("div", Il, [
|
|
675
688
|
i(R, {
|
|
689
|
+
"popper-class": "selectTriangles",
|
|
676
690
|
disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
|
|
677
691
|
modelValue: e.states.model[l.field.nationCode],
|
|
678
692
|
"onUpdate:modelValue": (a) => e.states.model[l.field.nationCode] = a,
|
|
679
693
|
placeholder: ((o = l.nationOptions) == null ? void 0 : o.placeholder) || "",
|
|
680
|
-
class: N(l.isReadonly || e.formOptions.isAllReadonly ? "selectreadonly" : "")
|
|
694
|
+
class: N(l.isReadonly || e.formOptions.isAllReadonly ? "selectreadonly" : ""),
|
|
695
|
+
style: f("width:" + l.widthNation)
|
|
681
696
|
}, {
|
|
682
697
|
default: s(() => {
|
|
683
698
|
var a;
|
|
684
699
|
return [
|
|
685
|
-
(n(!0), r(
|
|
700
|
+
(n(!0), r(x, null, w((a = l.nationOptions) == null ? void 0 : a.data, (u, b) => (n(), y(U, {
|
|
686
701
|
label: u.name,
|
|
687
702
|
value: u.code,
|
|
688
703
|
key: b
|
|
@@ -690,19 +705,21 @@ function jl(y, h, x, e, D, Y) {
|
|
|
690
705
|
];
|
|
691
706
|
}),
|
|
692
707
|
_: 2
|
|
693
|
-
}, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class"]),
|
|
694
|
-
|
|
708
|
+
}, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class", "style"]),
|
|
709
|
+
Ol,
|
|
695
710
|
i(R, {
|
|
711
|
+
"popper-class": "selectTriangles",
|
|
696
712
|
disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
|
|
697
713
|
modelValue: e.states.model[l.field.areaCode],
|
|
698
714
|
"onUpdate:modelValue": (a) => e.states.model[l.field.areaCode] = a,
|
|
699
715
|
placeholder: ((d = l.areaOptions) == null ? void 0 : d.placeholder) || "",
|
|
700
|
-
class: N(l.isReadonly || e.formOptions.isAllReadonly ? "selectreadonly" : "")
|
|
716
|
+
class: N(l.isReadonly || e.formOptions.isAllReadonly ? "selectreadonly" : "areaCode_select"),
|
|
717
|
+
style: f("width:" + l.widthArea)
|
|
701
718
|
}, {
|
|
702
719
|
default: s(() => {
|
|
703
720
|
var a;
|
|
704
721
|
return [
|
|
705
|
-
(n(!0), r(
|
|
722
|
+
(n(!0), r(x, null, w((a = l.areaOptions) == null ? void 0 : a.data, (u, b) => (n(), y(U, {
|
|
706
723
|
label: u.name,
|
|
707
724
|
value: u.code,
|
|
708
725
|
key: b
|
|
@@ -710,9 +727,9 @@ function jl(y, h, x, e, D, Y) {
|
|
|
710
727
|
];
|
|
711
728
|
}),
|
|
712
729
|
_: 2
|
|
713
|
-
}, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class"]),
|
|
714
|
-
|
|
715
|
-
i(
|
|
730
|
+
}, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class", "style"]),
|
|
731
|
+
Vl,
|
|
732
|
+
i(I, {
|
|
716
733
|
onBlur: (a) => e.inputBlur(a, l.field),
|
|
717
734
|
onFocus: (a) => e.inputFocus(a, l.field),
|
|
718
735
|
onChange: (a) => e.inputChange(a, l.field),
|
|
@@ -729,7 +746,7 @@ function jl(y, h, x, e, D, Y) {
|
|
|
729
746
|
];
|
|
730
747
|
}),
|
|
731
748
|
_: 2
|
|
732
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "line" ? (n(),
|
|
749
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "line" ? (n(), y(p, {
|
|
733
750
|
key: 12,
|
|
734
751
|
label: l.label
|
|
735
752
|
}, {
|
|
@@ -737,23 +754,23 @@ function jl(y, h, x, e, D, Y) {
|
|
|
737
754
|
Ul
|
|
738
755
|
]),
|
|
739
756
|
_: 2
|
|
740
|
-
}, 1032, ["label"])) : (n(),
|
|
757
|
+
}, 1032, ["label"])) : (n(), y(p, {
|
|
741
758
|
key: 13,
|
|
742
759
|
rules: l.isHide || e.noFormRule ? [] : l.rules,
|
|
743
760
|
prop: l.field,
|
|
744
761
|
class: N(l.prepend ? "input-item" : "")
|
|
745
762
|
}, {
|
|
746
763
|
label: s(() => [
|
|
747
|
-
l.slotLabelName ? C(
|
|
764
|
+
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
748
765
|
key: 0,
|
|
749
|
-
style:
|
|
766
|
+
style: f(l.labelStyle)
|
|
750
767
|
}, [
|
|
751
|
-
|
|
752
|
-
l.required ? (n(), r("span", Rl, "*")) :
|
|
768
|
+
g(c(l.label) + " ", 1),
|
|
769
|
+
l.required ? (n(), r("span", Rl, "*")) : _("", !0)
|
|
753
770
|
], 4))
|
|
754
771
|
]),
|
|
755
772
|
default: s(() => [
|
|
756
|
-
i(
|
|
773
|
+
i(I, {
|
|
757
774
|
onBlur: (o) => e.inputBlur(o, l.field),
|
|
758
775
|
onFocus: (o) => e.inputFocus(o, l.field),
|
|
759
776
|
onChange: (o) => e.inputChange(o, l.field),
|
|
@@ -774,14 +791,14 @@ function jl(y, h, x, e, D, Y) {
|
|
|
774
791
|
l.prepend ? {
|
|
775
792
|
name: "prepend",
|
|
776
793
|
fn: s(() => [
|
|
777
|
-
|
|
794
|
+
g(c(l.prepend), 1)
|
|
778
795
|
]),
|
|
779
796
|
key: "0"
|
|
780
797
|
} : void 0,
|
|
781
798
|
l.append ? {
|
|
782
799
|
name: "append",
|
|
783
800
|
fn: s(() => [
|
|
784
|
-
|
|
801
|
+
g(c(l.append), 1)
|
|
785
802
|
]),
|
|
786
803
|
key: "1"
|
|
787
804
|
} : void 0
|
|
@@ -800,12 +817,12 @@ function jl(y, h, x, e, D, Y) {
|
|
|
800
817
|
}),
|
|
801
818
|
i(p, { class: "btnsItem" }, {
|
|
802
819
|
default: s(() => [
|
|
803
|
-
C(
|
|
804
|
-
model:
|
|
820
|
+
C(t.$slots, "buttons", {
|
|
821
|
+
model: A.model,
|
|
805
822
|
onBtnClick: e.onSubmit
|
|
806
823
|
}, () => [
|
|
807
|
-
(n(!0), r(
|
|
808
|
-
l.isShow ? (n(),
|
|
824
|
+
(n(!0), r(x, null, w(e.formOptions.btnConfig, (l, j) => (n(), r("div", { key: j }, [
|
|
825
|
+
l.isShow ? (n(), y(E, {
|
|
809
826
|
key: 0,
|
|
810
827
|
btnCode: l.btnCode,
|
|
811
828
|
plain: l.plain,
|
|
@@ -828,15 +845,15 @@ function jl(y, h, x, e, D, Y) {
|
|
|
828
845
|
size: l.size,
|
|
829
846
|
fontSize: l.fontSize,
|
|
830
847
|
fontWeight: l.fontWeight,
|
|
831
|
-
style:
|
|
848
|
+
style: f(l.style),
|
|
832
849
|
class: N(l.class),
|
|
833
850
|
onHandleClick: (o) => e.handleClick(o, l.isRule, l.emitName)
|
|
834
851
|
}, {
|
|
835
852
|
default: s(() => [
|
|
836
|
-
|
|
853
|
+
g(c(l.name), 1)
|
|
837
854
|
]),
|
|
838
855
|
_: 2
|
|
839
|
-
}, 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"])) :
|
|
856
|
+
}, 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"])) : _("", !0)
|
|
840
857
|
]))), 128))
|
|
841
858
|
], !0)
|
|
842
859
|
]),
|
|
@@ -846,9 +863,9 @@ function jl(y, h, x, e, D, Y) {
|
|
|
846
863
|
_: 3
|
|
847
864
|
}, 16, ["model", "label-position"]);
|
|
848
865
|
}
|
|
849
|
-
const H = /* @__PURE__ */
|
|
850
|
-
function K(
|
|
851
|
-
K.installed || (K.installed = !0,
|
|
866
|
+
const H = /* @__PURE__ */ tl(ul, [["render", jl], ["__scopeId", "data-v-5e54a282"]]);
|
|
867
|
+
function K(t, h = {}) {
|
|
868
|
+
K.installed || (K.installed = !0, t.component("common-el-form", H));
|
|
852
869
|
}
|
|
853
870
|
H.install = K;
|
|
854
871
|
export {
|
package/common-form.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,f){typeof exports=="object"&&typeof module<"u"?module.exports=f(require("vue")):typeof define=="function"&&define.amd?define(["vue"],f):(e=typeof globalThis<"u"?globalThis:e||self,e.Form=f(e.Vue))})(this,function(e){"use strict";const f="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==",E={props:{fieldList:{type:Array,required:!0},model:Object,options:Object},setup(s,{emit:i}){const y=e.ref(!0),o=e.reactive({model:{}}),p=e.ref(null),I=e.shallowRef({render(){return e.h("img",{src:f})}}),t=e.computed(()=>Object.assign([],s.options)),h=()=>{o.model=s.model},b=(d,n,r)=>{p.value&&(n?(y.value=!1,e.nextTick(()=>{p.value.validate(c=>{if(c)i(r||"submit",o.model,d);else return!1})})):r==="reset"?p.value.resetFields():i(r||"submit",o.model,d))},k=(d,n)=>{i("selectChange",d,n)},m=(d,n)=>{i("radioChange",d,n)},x=(d,n)=>{i("checkChange",d,n)},C=(d,n)=>{const r=o.model[n].length;r!==1&&(r>1&&o.model[n].shift(),i("checkChange",d,n))},g=(d,n,r)=>{b(d,n,r)},M=(d,n)=>{d&&(n==null?void 0:n.key)==="Enter"&&b(void 0,!0,"submit")},D=(d,n)=>{i("dateChange",d,n)},w=(d,n)=>{console.log(p.value),i("inputBlur",d,n)},S=(d,n)=>{i("inputFocus",d,n)},A=(d,n)=>{i("inputChange",d,n)},l=(d,n)=>{i("inputInput",d,n)},N=d=>{p.value.resetFields(d)},a=d=>{p.value.clearValidate(d)};return e.onMounted(()=>{h(),p.value.resetFields()}),e.watch(()=>s.fieldList,(d,n)=>{d!==n&&h()}),{...e.toRefs(o),formRef:p,states:o,formOptions:t,onSubmit:b,selectChange:k,radioChange:m,checkChange:x,handleCheckedChange:C,prefixIcon:I,handleClick:g,handleKeyUp:M,resetFieldsTest:N,clearValidateTest:a,dateChange:D,inputBlur:w,inputFocus:S,inputChange:A,inputInput:l,noFormRule:y}}},ol="",O=(s,i)=>{const y=s.__vccOpts||s;for(const[o,p]of i)y[o]=p;return y},_=s=>(e.pushScopeId("data-v-18a469d0"),s=s(),e.popScopeId(),s),z={class:"header-title"},U={class:"title-content"},R={key:0,class:"custom-required"},j={key:0,class:"custom-required"},F=["src"],T={key:0,class:"custom-required"},L={class:"lable"},K={class:"lable_note"},Y={key:0,class:"custom-required"},q={key:0,class:"custom-required"},u={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={class:"phone_item_content"},X=_(()=>e.createElementVNode("div",{class:"line_middle"}," - ",-1)),$=_(()=>e.createElementVNode("div",{class:"line_middle"}," - ",-1)),v=_(()=>e.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"39px 0"}},null,-1)),ll={key:0,class:"custom-required"};function el(s,i,y,o,p,I){const t=e.resolveComponent("el-form-item"),h=e.resolveComponent("el-input"),b=e.resolveComponent("el-radio"),k=e.resolveComponent("el-radio-group"),m=e.resolveComponent("el-checkbox"),x=e.resolveComponent("el-checkbox-group"),C=e.resolveComponent("el-option"),g=e.resolveComponent("el-select"),M=e.resolveComponent("el-date-picker"),D=e.resolveComponent("el-col"),w=e.resolveComponent("el-row"),S=e.resolveComponent("sinosoft-common-button"),A=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(A,e.mergeProps({"hide-required-asterisk":"",onSubmit:i[0]||(i[0]=e.withModifiers(()=>{},["prevent"])),model:y.model},o.formOptions,{"label-position":o.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,N)=>e.withDirectives((e.openBlock(),e.createBlock(D,{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:N},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(l.style)},[l.type==="title"?(e.openBlock(),e.createBlock(t,{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",z,[e.createElementVNode("span",U,e.toDisplayString(l.title),1)])]),_:2},1024)):l.type==="name"?(e.openBlock(),e.createBlock(t,{key:1,label:l.label,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,class:"container_name"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$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(t,{rules:l.isHide||o.noFormRule?[]:l.rules.nameEnFamily,prop:l.field.nameEnFamily,class:"item-name"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field.nameEnFamily),onFocus:a=>o.inputFocus(a,l.field.nameEnFamily),onChange:a=>o.inputChange(a,l.field.nameEnFamily),onInput:a=>o.inputInput(a,l.field.nameEnFamily),class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),maxlength:l.maxlengthNameEnFamily,modelValue:o.states.model[l.field.nameEnFamily],"onUpdate:modelValue":a=>o.states.model[l.field.nameEnFamily]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEnFamily,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","class","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(t,{rules:l.isHide||o.noFormRule?[]:l.rules.nameEn,prop:l.field.nameEn,class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field.nameEn),onFocus:a=>o.inputFocus(a,l.field.nameEn),onChange:a=>o.inputChange(a,l.field.nameEn),onInput:a=>o.inputInput(a,l.field.nameEn),maxlength:l.maxlengthNameEn,modelValue:o.states.model[l.field.nameEn],"onUpdate:modelValue":a=>o.states.model[l.field.nameEn]=a,class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEn,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","class","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(t,{rules:l.isHide||o.noFormRule?[]:l.rules.nameChFamily,prop:l.field.nameChFamily,class:"item-name item-name-bottom"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field.nameChFamily),onFocus:a=>o.inputFocus(a,l.field.nameChFamily),onChange:a=>o.inputChange(a,l.field.nameChFamily),onInput:a=>o.inputInput(a,l.field.nameChFamily),maxlength:l.maxlengthNameChFamily,class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),modelValue:o.states.model[l.field.nameChFamily],"onUpdate:modelValue":a=>o.states.model[l.field.nameChFamily]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameChFamily,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","class","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(t,{rules:l.isHide||o.noFormRule?[]:l.rules.nameCh,prop:l.field.nameCh,class:"item-name-right item-name-bottom"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field.nameCh),onFocus:a=>o.inputFocus(a,l.field.nameCh),onChange:a=>o.inputChange(a,l.field.nameCh),onInput:a=>o.inputInput(a,l.field.nameCh),class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),maxlength:l.maxlengthNameCh,modelValue:o.states.model[l.field.nameCh],"onUpdate:modelValue":a=>o.states.model[l.field.nameCh]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameCh,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","class","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label","disabled"])):l.type==="gender"?(e.openBlock(),e.createBlock(t,{key:2,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$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",j,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(k,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onChange:a=>o.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(b,{label:d[((n=l.options)==null?void 0:n.valueKey)||"code"],size:"large",key:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>[e.createElementVNode("img",{src:d.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,F)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])):l.type==="radio"?(e.openBlock(),e.createBlock(t,{key:3,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$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(k,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onChange:a=>o.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(b,{size:"large",label:d[((n=l.options)==null?void 0:n.valueKey)||"code"],key:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(d[((c=l.options)==null?void 0:c.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(t,{key:4,label:l.label,rules:l.isHide||o.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",L,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(k,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onChange:a=>o.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(b,{size:"large",label:d[((n=l.options)==null?void 0:n.valueKey)||"code"],key:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(d[((c=l.options)==null?void 0:c.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(t,{key:5,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$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(x,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,onChange:a=>o.checkChange(a,l.field),disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,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 a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(m,{key:d[((n=l.options)==null?void 0:n.valueKey)||"code"],label:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(d[((c=l.options)==null?void 0:c.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(t,{key:6,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$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",u,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(x,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,onChange:a=>o.handleCheckedChange(a,l.field),disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,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 a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(m,{key:d[((n=l.options)==null?void 0:n.valueKey)||"code"],label:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(d[((c=l.options)==null?void 0:c.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(t,{key:7,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$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(g,{onChange:a=>o.selectChange(a,l.field),modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,placeholder:l.placeholder,class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"selectreadonly":""),clearable:l.clearable},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r,c;return e.openBlock(),e.createBlock(C,{key:d[((n=l.options)==null?void 0:n.valueKey)||"code"],label:d[((r=l.options)==null?void 0:r.labelkey)||"name"],value:d[((c=l.options)==null?void 0:c.valueKey)||"code"]},null,8,["label","value"])}),128))]}),_:2},1032,["onChange","modelValue","onUpdate:modelValue","disabled","placeholder","class","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(t,{key:8,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:"date_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$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(M,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:a=>o.dateChange(a,l.field),"prefix-icon":o.prefixIcon,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,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(t,{key:9,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$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(M,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:a=>o.dateChange(a,l.field),modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,"prefix-icon":o.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(t,{key:10,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:"rule_err"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$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(s.$slots,l.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])):l.type==="phone"?(e.openBlock(),e.createBlock(t,{key:11,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules.phoneNumber,prop:l.field.phoneNumber,class:"phone_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$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(()=>{var a,d;return[e.createElementVNode("div",J,[e.createVNode(g,{disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,modelValue:o.states.model[l.field.nationCode],"onUpdate:modelValue":n=>o.states.model[l.field.nationCode]=n,placeholder:((a=l.nationOptions)==null?void 0:a.placeholder)||"",class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"selectreadonly":"")},{default:e.withCtx(()=>{var n;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((n=l.nationOptions)==null?void 0:n.data,(r,c)=>(e.openBlock(),e.createBlock(C,{label:r.name,value:r.code,key:c},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder","class"]),X,e.createVNode(g,{disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,modelValue:o.states.model[l.field.areaCode],"onUpdate:modelValue":n=>o.states.model[l.field.areaCode]=n,placeholder:((d=l.areaOptions)==null?void 0:d.placeholder)||"",class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"selectreadonly":"")},{default:e.withCtx(()=>{var n;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((n=l.areaOptions)==null?void 0:n.data,(r,c)=>(e.openBlock(),e.createBlock(C,{label:r.name,value:r.code,key:c},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder","class"]),$,e.createVNode(h,{onBlur:n=>o.inputBlur(n,l.field),onFocus:n=>o.inputFocus(n,l.field),onChange:n=>o.inputChange(n,l.field),onInput:n=>o.inputInput(n,l.field),maxlength:l.maxlength,modelValue:o.states.model[l.field.phoneNumber],"onUpdate:modelValue":n=>o.states.model[l.field.phoneNumber]=n,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,placeholder:l.placeholder||"",class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),clearable:l.clearable},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","disabled","placeholder","class","clearable"])])]}),_:2},1032,["label","rules","prop"])):l.type==="line"?(e.openBlock(),e.createBlock(t,{key:12,label:l.label},{default:e.withCtx(()=>[v]),_:2},1032,["label"])):(e.openBlock(),e.createBlock(t,{key:13,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass(l.prepend?"input-item":"")},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$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",ll,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field),onFocus:a=>o.inputFocus(a,l.field),onChange:a=>o.inputChange(a,l.field),onInput:a=>o.inputInput(a,l.field),maxlength:l.maxlength,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,"show-word-limit":l.showWordLimit,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholder||l.label,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,showPassword:l.showPassword,clearable:l.clearable,class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),onKeyup:e.withKeys(a=>o.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","class","onKeyup"])]),_:2},1032,["rules","prop","class"]))],4)]),_:2},1032,["xs","sm","md","lg","xl"])),[[e.vShow,!l.isHide]])),128))]),_:3}),e.createVNode(t,{class:"btnsItem"},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"buttons",{model:y.model,onBtnClick:o.onSubmit},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.formOptions.btnConfig,(l,N)=>(e.openBlock(),e.createElementBlock("div",{key:N},[l.isShow?(e.openBlock(),e.createBlock(S,{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:a=>o.handleClick(a,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 V=O(E,[["render",el],["__scopeId","data-v-18a469d0"]]);function B(s,i={}){B.installed||(B.installed=!0,s.component("common-el-form",V))}return V.install=B,V});
|
|
1
|
+
(function(e,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("vue")):typeof define=="function"&&define.amd?define(["vue"],b):(e=typeof globalThis<"u"?globalThis:e||self,e.Form=b(e.Vue))})(this,function(e){"use strict";const b="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==",z={props:{fieldList:{type:Array,required:!0},model:Object,options:Object},setup(s,{emit:i}){const y=e.ref(!0),o=e.reactive({model:{}}),p=e.ref(null),I=e.shallowRef({render(){return e.h("img",{src:b})}}),t=e.computed(()=>Object.assign([],s.options)),h=()=>{o.model=s.model},f=(d,n,r)=>{p.value&&(n?(y.value=!1,e.nextTick(()=>{p.value.validate(c=>{if(c)i(r||"submit",o.model,d);else return!1})})):r==="reset"?p.value.resetFields():i(r||"submit",o.model,d))},k=(d,n)=>{i("selectChange",d,n)},x=(d,n)=>{i("radioChange",d,n)},m=(d,n)=>{i("checkChange",d,n)},g=(d,n)=>{const r=o.model[n].length;if(r===1){i("checkChange",d,n);return}else r>1&&(o.model[n].shift(),i("checkChange",d,n))},C=(d,n,r)=>{f(d,n,r)},_=(d,n)=>{d&&(n==null?void 0:n.key)==="Enter"&&f(void 0,!0,"submit")},B=(d,n)=>{i("dateChange",d,n)},D=(d,n)=>{console.log(p.value),i("inputBlur",d,n)},S=(d,n)=>{i("inputFocus",d,n)},A=(d,n)=>{i("inputChange",d,n)},l=(d,n)=>{i("inputInput",d,n)},N=d=>{p.value.resetFields(d)},a=d=>{p.value.clearValidate(d)};return e.onMounted(()=>{h(),p.value.resetFields()}),e.watch(()=>s.fieldList,(d,n)=>{d!==n&&h()}),{...e.toRefs(o),formRef:p,states:o,formOptions:t,onSubmit:f,selectChange:k,radioChange:x,checkChange:m,handleCheckedChange:g,prefixIcon:I,handleClick:C,handleKeyUp:_,resetFieldsTest:N,clearValidateTest:a,dateChange:B,inputBlur:D,inputFocus:S,inputChange:A,inputInput:l,noFormRule:y}}},ol="",al="",E=(s,i)=>{const y=s.__vccOpts||s;for(const[o,p]of i)y[o]=p;return y},M=s=>(e.pushScopeId("data-v-5e54a282"),s=s(),e.popScopeId(),s),O={class:"header-title"},U={class:"title-content"},T={key:0,class:"custom-required"},R={key:0,class:"custom-required"},j=["src"],F={key:0,class:"custom-required"},L={class:"lable"},K={class:"lable_note"},Y={key:0,class:"custom-required"},q={key:0,class:"custom-required"},u={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={class:"phone_item_content"},X=M(()=>e.createElementVNode("div",{class:"line_middle"}," - ",-1)),$=M(()=>e.createElementVNode("div",{class:"line_middle"}," - ",-1)),v=M(()=>e.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"39px 0"}},null,-1)),ll={key:0,class:"custom-required"};function el(s,i,y,o,p,I){const t=e.resolveComponent("el-form-item"),h=e.resolveComponent("el-input"),f=e.resolveComponent("el-radio"),k=e.resolveComponent("el-radio-group"),x=e.resolveComponent("el-checkbox"),m=e.resolveComponent("el-checkbox-group"),g=e.resolveComponent("el-option"),C=e.resolveComponent("el-select"),_=e.resolveComponent("el-date-picker"),B=e.resolveComponent("el-col"),D=e.resolveComponent("el-row"),S=e.resolveComponent("sinosoft-common-button"),A=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(A,e.mergeProps({"hide-required-asterisk":"",onSubmit:i[0]||(i[0]=e.withModifiers(()=>{},["prevent"])),model:y.model},o.formOptions,{"label-position":o.formOptions.labelPosition,ref:"formRef"}),{default:e.withCtx(()=>[e.createVNode(D,{gutter:20},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.fieldList,(l,N)=>e.withDirectives((e.openBlock(),e.createBlock(B,{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:N},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(l.style)},[l.type==="title"?(e.openBlock(),e.createBlock(t,{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",O,[e.createElementVNode("span",U,e.toDisplayString(l.title),1)])]),_:2},1024)):l.type==="name"?(e.openBlock(),e.createBlock(t,{key:1,label:l.label,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,class:"container_name"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$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(t,{rules:l.isHide||o.noFormRule?[]:l.rules.nameEnFamily,prop:l.field.nameEnFamily,class:"item-name"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field.nameEnFamily),onFocus:a=>o.inputFocus(a,l.field.nameEnFamily),onChange:a=>o.inputChange(a,l.field.nameEnFamily),onInput:a=>o.inputInput(a,l.field.nameEnFamily),class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),maxlength:l.maxlengthNameEnFamily,modelValue:o.states.model[l.field.nameEnFamily],"onUpdate:modelValue":a=>o.states.model[l.field.nameEnFamily]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEnFamily,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","class","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(t,{rules:l.isHide||o.noFormRule?[]:l.rules.nameEn,prop:l.field.nameEn,class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field.nameEn),onFocus:a=>o.inputFocus(a,l.field.nameEn),onChange:a=>o.inputChange(a,l.field.nameEn),onInput:a=>o.inputInput(a,l.field.nameEn),maxlength:l.maxlengthNameEn,modelValue:o.states.model[l.field.nameEn],"onUpdate:modelValue":a=>o.states.model[l.field.nameEn]=a,class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEn,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","class","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(t,{rules:l.isHide||o.noFormRule?[]:l.rules.nameChFamily,prop:l.field.nameChFamily,class:"item-name item-name-bottom"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field.nameChFamily),onFocus:a=>o.inputFocus(a,l.field.nameChFamily),onChange:a=>o.inputChange(a,l.field.nameChFamily),onInput:a=>o.inputInput(a,l.field.nameChFamily),maxlength:l.maxlengthNameChFamily,class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),modelValue:o.states.model[l.field.nameChFamily],"onUpdate:modelValue":a=>o.states.model[l.field.nameChFamily]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameChFamily,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","class","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(t,{rules:l.isHide||o.noFormRule?[]:l.rules.nameCh,prop:l.field.nameCh,class:"item-name-right item-name-bottom"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field.nameCh),onFocus:a=>o.inputFocus(a,l.field.nameCh),onChange:a=>o.inputChange(a,l.field.nameCh),onInput:a=>o.inputInput(a,l.field.nameCh),class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),maxlength:l.maxlengthNameCh,modelValue:o.states.model[l.field.nameCh],"onUpdate:modelValue":a=>o.states.model[l.field.nameCh]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameCh,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","class","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label","disabled"])):l.type==="gender"?(e.openBlock(),e.createBlock(t,{key:2,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$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(k,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onChange:a=>o.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(f,{label:d[((n=l.options)==null?void 0:n.valueKey)||"code"],size:"large",key:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>[e.createElementVNode("img",{src:d.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,j)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])):l.type==="radio"?(e.openBlock(),e.createBlock(t,{key:3,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$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",F,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(k,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onChange:a=>o.radioChange(a,l.field),style:e.normalizeStyle(l.ways==="column"?"display: flex; align-items: flex-start;flex-flow: column nowrap; ":"display: flex; align-items: flex-start;flex-flow: row nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(f,{size:"large",label:d[((n=l.options)==null?void 0:n.valueKey)||"code"],key:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(d[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange","style"])]),_:2},1032,["label","rules","prop","class"])):l.type==="radioNote"?(e.openBlock(),e.createBlock(t,{key:4,label:l.label,rules:l.isHide||o.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",L,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(k,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onChange:a=>o.radioChange(a,l.field),style:e.normalizeStyle(l.ways==="column"?"display: flex; align-items: flex-start;flex-flow: column nowrap; ":"display: flex; align-items: flex-start;flex-flow: row nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(f,{size:"large",label:d[((n=l.options)==null?void 0:n.valueKey)||"code"],key:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(d[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange","style"])]),_:2},1032,["label","rules","prop","class"])):l.type==="checkbox"?(e.openBlock(),e.createBlock(t,{key:5,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$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(m,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,onChange:a=>o.checkChange(a,l.field),disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,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 a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(x,{key:d[((n=l.options)==null?void 0:n.valueKey)||"code"],label:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(d[((c=l.options)==null?void 0:c.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(t,{key:6,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$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",u,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(m,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,onChange:a=>o.handleCheckedChange(a,l.field),disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,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 a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(x,{key:d[((n=l.options)==null?void 0:n.valueKey)||"code"],label:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(d[((c=l.options)==null?void 0:c.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(t,{key:7,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$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(C,{"popper-class":"selectTriangles",onChange:a=>o.selectChange(a,l.field),modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,placeholder:l.placeholder,class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"selectreadonly":""),clearable:l.clearable},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r,c;return e.openBlock(),e.createBlock(g,{key:d[((n=l.options)==null?void 0:n.valueKey)||"code"],label:d[((r=l.options)==null?void 0:r.labelkey)||"name"],value:d[((c=l.options)==null?void 0:c.valueKey)||"code"]},null,8,["label","value"])}),128))]}),_:2},1032,["onChange","modelValue","onUpdate:modelValue","disabled","placeholder","class","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(t,{key:8,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:"date_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$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(_,{"popper-class":"selectTriangles",format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:a=>o.dateChange(a,l.field),"prefix-icon":o.prefixIcon,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,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(t,{key:9,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$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(_,{"popper-class":"selectTriangles",format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:a=>o.dateChange(a,l.field),modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,"prefix-icon":o.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(t,{key:10,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:"rule_err"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$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(s.$slots,l.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])):l.type==="phone"?(e.openBlock(),e.createBlock(t,{key:11,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules.phoneNumber,prop:l.field.phoneNumber,class:"phone_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$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(()=>{var a,d;return[e.createElementVNode("div",J,[e.createVNode(C,{"popper-class":"selectTriangles",disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,modelValue:o.states.model[l.field.nationCode],"onUpdate:modelValue":n=>o.states.model[l.field.nationCode]=n,placeholder:((a=l.nationOptions)==null?void 0:a.placeholder)||"",class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"selectreadonly":""),style:e.normalizeStyle("width:"+l.widthNation)},{default:e.withCtx(()=>{var n;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((n=l.nationOptions)==null?void 0:n.data,(r,c)=>(e.openBlock(),e.createBlock(g,{label:r.name,value:r.code,key:c},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder","class","style"]),X,e.createVNode(C,{"popper-class":"selectTriangles",disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,modelValue:o.states.model[l.field.areaCode],"onUpdate:modelValue":n=>o.states.model[l.field.areaCode]=n,placeholder:((d=l.areaOptions)==null?void 0:d.placeholder)||"",class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"selectreadonly":"areaCode_select"),style:e.normalizeStyle("width:"+l.widthArea)},{default:e.withCtx(()=>{var n;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((n=l.areaOptions)==null?void 0:n.data,(r,c)=>(e.openBlock(),e.createBlock(g,{label:r.name,value:r.code,key:c},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder","class","style"]),$,e.createVNode(h,{onBlur:n=>o.inputBlur(n,l.field),onFocus:n=>o.inputFocus(n,l.field),onChange:n=>o.inputChange(n,l.field),onInput:n=>o.inputInput(n,l.field),maxlength:l.maxlength,modelValue:o.states.model[l.field.phoneNumber],"onUpdate:modelValue":n=>o.states.model[l.field.phoneNumber]=n,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,placeholder:l.placeholder||"",class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),clearable:l.clearable},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","disabled","placeholder","class","clearable"])])]}),_:2},1032,["label","rules","prop"])):l.type==="line"?(e.openBlock(),e.createBlock(t,{key:12,label:l.label},{default:e.withCtx(()=>[v]),_:2},1032,["label"])):(e.openBlock(),e.createBlock(t,{key:13,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass(l.prepend?"input-item":"")},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$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",ll,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field),onFocus:a=>o.inputFocus(a,l.field),onChange:a=>o.inputChange(a,l.field),onInput:a=>o.inputInput(a,l.field),maxlength:l.maxlength,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,"show-word-limit":l.showWordLimit,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholder||l.label,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,showPassword:l.showPassword,clearable:l.clearable,class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),onKeyup:e.withKeys(a=>o.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","class","onKeyup"])]),_:2},1032,["rules","prop","class"]))],4)]),_:2},1032,["xs","sm","md","lg","xl"])),[[e.vShow,!l.isHide]])),128))]),_:3}),e.createVNode(t,{class:"btnsItem"},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"buttons",{model:y.model,onBtnClick:o.onSubmit},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.formOptions.btnConfig,(l,N)=>(e.openBlock(),e.createElementBlock("div",{key:N},[l.isShow?(e.openBlock(),e.createBlock(S,{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:a=>o.handleClick(a,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 w=E(z,[["render",el],["__scopeId","data-v-5e54a282"]]);function V(s,i={}){V.installed||(V.installed=!0,s.component("common-el-form",w))}return w.install=V,w});
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";[data-v-
|
|
1
|
+
@charset "UTF-8";[data-v-5e54a282] .el-date-editor{height:60px!important;width:100%!important}[data-v-5e54a282] .el-form-item{margin-bottom:12px}[data-v-5e54a282] .el-input__inner{height:42px;color:#1d1d1d}[data-v-5e54a282] .el-card__body{padding:0}[data-v-5e54a282] .el-form-item__label{height:auto!important;margin-bottom:4px!important}.form-item-title[data-v-5e54a282]{width:100%}[data-v-5e54a282] .el-checkbox-group .el-checkbox{display:flex}.rule_err[data-v-5e54a282] .el-form-item__content,.radio_Note[data-v-5e54a282] .el-form-item__content{display:block}.radio_Note .lable[data-v-5e54a282]{font-size:16px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Regular}.radio_Note .lable_note[data-v-5e54a282]{font-size:16px;line-height:22px;color:#6e6e73;font-weight:400;font-family:Roboto Regular}.container_name[data-v-5e54a282] .el-form-item__content{align-items:start}.container_name[data-v-5e54a282] .el-form-item{margin-bottom:0}.container_name .item-name[data-v-5e54a282]{width:51%;padding-right:20px;padding-bottom:12px;box-sizing:border-box}.container_name .item-name-right[data-v-5e54a282]{width:49%;padding-bottom:12px;padding-right:0}.container_name .item-name-bottom[data-v-5e54a282]{padding-bottom:0}[data-v-5e54a282] .el-form-item__error{position:relative}.btnsItem[data-v-5e54a282]{width:100%;margin:0 auto;justify-content:right}.btnsItem[data-v-5e54a282] .el-form-item__content{justify-content:right}label[data-v-5e54a282]{display:block}.title-content[data-v-5e54a282]{font-size:22px;line-height:30px;color:#1d1d1d;font-weight:300;font-family:Roboto light}[data-v-5e54a282] .el-input__wrapper{height:58px;border-radius:8px;padding:1px 16px}.date_item[data-v-5e54a282] .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;top:18px}.phone_item[data-v-5e54a282] .el-form-item__content{display:flex}.phone_item[data-v-5e54a282] .el-form-item__content .el-select{width:180.03px}.phone_item[data-v-5e54a282] .el-form-item__content .line_middle{margin:0 4px}.phone_item[data-v-5e54a282] .el-input__suffix-inner{width:14px;padding-right:3px}.phone_item .phone_item_content[data-v-5e54a282]{display:flex;flex-wrap:nowrap;align-items:center;width:100%}.phone_item .phone_item_content[data-v-5e54a282] .readonly .el-input__wrapper{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #c7c8ca inset}.phone_item .phone_item_content[data-v-5e54a282] .readonly .el-input__wrapper .el-input__inner{background-color:#f3f3f3!important;font-size:14px;line-height:22px;color:#0b0b0b;font-weight:400;font-family:Roboto Regular;-webkit-text-fill-color:#0B0B0B!important}.phone_item .phone_item_content[data-v-5e54a282] .selectreadonly .el-input__wrapper{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #c7c8ca inset}.phone_item .phone_item_content[data-v-5e54a282] .selectreadonly .el-input__wrapper .el-input__inner{background-color:#f3f3f3!important;font-size:14px;line-height:22px;color:#0b0b0b;font-weight:400;font-family:Roboto Regular;-webkit-text-fill-color:#0B0B0B!important}.phone_item .phone_item_content[data-v-5e54a282] .selectreadonly :deep(.el-input.is-disabled .el-input__inner){-webkit-text-fill-color:#0B0B0B!important}.input-item[data-v-5e54a282] .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-5e54a282] .el-input__wrapper{border-left:0px!important;border-right:0px!important;border-radius:0!important}.input-item[data-v-5e54a282] .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-5e54a282] .is-error .areaCode_select .el-input__wrapper{box-shadow:none!important;border:1px solid #C7C8CA!important}[data-v-5e54a282] .el-select{width:100%}.custom-required[data-v-5e54a282]{content:"*";color:#e2a650;margin-left:4px}.item_tips_blow[data-v-5e54a282]{font-size:14px;line-height:22px;color:#00000073;font-weight:400;font-family:Roboto Regular;width:100%;word-wrap:break-word;white-space:normal}[data-v-5e54a282] .readonly .el-input-group__prepend,[data-v-5e54a282] .readonly .el-input-group__append{background-color:#f3f3f3!important}[data-v-5e54a282] .readonly .el-input__wrapper,[data-v-5e54a282] .readonly .el-textarea{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #c7c8ca inset}[data-v-5e54a282] .readonly .el-input__wrapper .el-input__inner,[data-v-5e54a282] .readonly .el-input__wrapper .el-textarea__inner,[data-v-5e54a282] .readonly .el-textarea .el-input__inner,[data-v-5e54a282] .readonly .el-textarea .el-textarea__inner,[data-v-5e54a282] .readonly .el-textarea__inner{background-color:#f3f3f3!important;font-size:14px;line-height:22px;color:#0b0b0b;font-weight:400;font-family:Roboto Regular;-webkit-text-fill-color:#0B0B0B!important}[data-v-5e54a282] .selectreadonly .el-input__wrapper{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #c7c8ca inset}[data-v-5e54a282] .selectreadonly .el-input__wrapper .el-input__inner{background-color:#f3f3f3!important;font-size:14px;line-height:22px;color:#0b0b0b;font-weight:400;font-family:Roboto Regular;-webkit-text-fill-color:#0B0B0B!important}[data-v-5e54a282] .selectreadonly :deep(.el-input.is-disabled .el-input__inner){-webkit-text-fill-color:#0B0B0B!important}[data-v-5e54a282] .el-input.is-disabled .el-input__wrapper{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #d9d9d9 inset}.el-input__wrapper[data-v-5e54a282]{border:1px solid #C7C8CA;box-shadow:none!important}.selectTriangles .el-popper__arrow:before{display:none!important}.el-popper.is-light{border:none!important}.selectTriangles .el-select-dropdown__list{margin:0!important;border-radius:2px;border:none!important}.selectTriangles .el-select-dropdown__item{height:40px!important}
|