sinosoft-common-form 1.5.2 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common-form.es.js +123 -120
- 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 G, shallowRef as J, h as X, computed as $, onMounted as ll, onBeforeUnmount as el, watch as ol, toRefs as al, nextTick as
|
|
1
|
+
import { ref as q, reactive as G, shallowRef as J, h as X, computed as $, onMounted as ll, onBeforeUnmount as el, watch as ol, toRefs as al, nextTick as dl, resolveComponent as M, openBlock as a, createBlock as i, mergeProps as nl, withModifiers as sl, withCtx as n, createVNode as h, createElementBlock as r, Fragment as N, renderList as A, withDirectives as rl, createElementVNode as O, normalizeStyle as u, toDisplayString as t, createTextVNode as D, createCommentVNode as c, renderSlot as C, normalizeClass as _, withKeys as L, createSlots as il, vShow as yl, pushScopeId as pl, popScopeId as cl } from "vue";
|
|
2
2
|
const tl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==", fl = {
|
|
3
3
|
props: {
|
|
4
4
|
fieldList: {
|
|
@@ -32,9 +32,9 @@ const tl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
32
32
|
}
|
|
33
33
|
}), b = $(() => Object.assign([], p.options)), x = () => {
|
|
34
34
|
e.model = p.model;
|
|
35
|
-
}, I = (s,
|
|
35
|
+
}, I = (s, d, f) => {
|
|
36
36
|
var R;
|
|
37
|
-
|
|
37
|
+
d ? (w.value = !1, dl(() => {
|
|
38
38
|
var Q;
|
|
39
39
|
(Q = k.value) == null || Q.validate((Z) => {
|
|
40
40
|
if (Z)
|
|
@@ -43,39 +43,39 @@ const tl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
43
43
|
return !1;
|
|
44
44
|
});
|
|
45
45
|
})) : (f === "reset" && ((R = k.value) == null || R.resetFields()), g(f || "submit", e.model, s));
|
|
46
|
-
}, j = (s,
|
|
47
|
-
g("selectChange", s,
|
|
48
|
-
}, v = (s,
|
|
49
|
-
g("radioChange", s,
|
|
50
|
-
}, F = (s,
|
|
51
|
-
g("checkChange", s,
|
|
52
|
-
}, E = (s,
|
|
53
|
-
const f = e.model[
|
|
46
|
+
}, j = (s, d) => {
|
|
47
|
+
g("selectChange", s, d);
|
|
48
|
+
}, v = (s, d) => {
|
|
49
|
+
g("radioChange", s, d);
|
|
50
|
+
}, F = (s, d) => {
|
|
51
|
+
g("checkChange", s, d);
|
|
52
|
+
}, E = (s, d) => {
|
|
53
|
+
const f = e.model[d].length;
|
|
54
54
|
if (f === 1) {
|
|
55
|
-
g("checkChange", s,
|
|
55
|
+
g("checkChange", s, d);
|
|
56
56
|
return;
|
|
57
57
|
} else
|
|
58
|
-
f > 1 ? (e.model[
|
|
59
|
-
}, S = (s,
|
|
60
|
-
I(s,
|
|
61
|
-
}, V = (s,
|
|
62
|
-
s && (
|
|
63
|
-
}, U = (s,
|
|
64
|
-
g("dateChange", s,
|
|
65
|
-
}, m = (s,
|
|
66
|
-
console.log(k.value), g("inputBlur", s,
|
|
67
|
-
}, B = (s,
|
|
68
|
-
g("inputFocus", s,
|
|
69
|
-
}, Y = (s,
|
|
70
|
-
g("inputChange", s,
|
|
71
|
-
}, l = (s,
|
|
72
|
-
g("inputInput", s,
|
|
58
|
+
f > 1 ? (e.model[d].shift(), g("checkChange", s, d)) : f < 1 && g("checkChange", s, d);
|
|
59
|
+
}, S = (s, d, f) => {
|
|
60
|
+
I(s, d, f);
|
|
61
|
+
}, V = (s, d) => {
|
|
62
|
+
s && (d == null ? void 0 : d.key) === "Enter" && I(void 0, !0, "submit");
|
|
63
|
+
}, U = (s, d) => {
|
|
64
|
+
g("dateChange", s, d);
|
|
65
|
+
}, m = (s, d) => {
|
|
66
|
+
console.log(k.value), g("inputBlur", s, d);
|
|
67
|
+
}, B = (s, d) => {
|
|
68
|
+
g("inputFocus", s, d);
|
|
69
|
+
}, Y = (s, d) => {
|
|
70
|
+
g("inputChange", s, d);
|
|
71
|
+
}, l = (s, d) => {
|
|
72
|
+
g("inputInput", s, d);
|
|
73
73
|
}, z = (s) => {
|
|
74
|
-
var
|
|
75
|
-
(
|
|
74
|
+
var d;
|
|
75
|
+
(d = k.value) == null || d.resetFields(s);
|
|
76
76
|
}, o = (s) => {
|
|
77
|
-
var
|
|
78
|
-
(
|
|
77
|
+
var d;
|
|
78
|
+
(d = k.value) == null || d.clearValidate(s);
|
|
79
79
|
}, y = q(!1), T = () => {
|
|
80
80
|
window.innerWidth < 768 ? (console.log("屏幕宽度小于768px"), y.value = !0) : y.value = !1;
|
|
81
81
|
};
|
|
@@ -86,8 +86,8 @@ const tl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
86
86
|
window.removeEventListener("resize", T);
|
|
87
87
|
}), ol(
|
|
88
88
|
() => p.fieldList,
|
|
89
|
-
(s,
|
|
90
|
-
s !==
|
|
89
|
+
(s, d) => {
|
|
90
|
+
s !== d && x();
|
|
91
91
|
}
|
|
92
92
|
), {
|
|
93
93
|
...al(e),
|
|
@@ -120,7 +120,7 @@ const ul = (p, g) => {
|
|
|
120
120
|
for (const [e, k] of g)
|
|
121
121
|
w[e] = k;
|
|
122
122
|
return w;
|
|
123
|
-
}, H = (p) => (pl("data-v-
|
|
123
|
+
}, H = (p) => (pl("data-v-59132be2"), p = p(), cl(), p), bl = { class: "header-title" }, hl = { class: "title-content" }, gl = {
|
|
124
124
|
key: 0,
|
|
125
125
|
class: "custom-required"
|
|
126
126
|
}, _l = {
|
|
@@ -174,7 +174,7 @@ const ul = (p, g) => {
|
|
|
174
174
|
};
|
|
175
175
|
function Sl(p, g, w, e, k, K) {
|
|
176
176
|
const b = M("el-form-item"), x = M("el-input"), I = M("el-col"), j = M("el-row"), v = M("el-radio"), F = M("el-radio-group"), E = M("el-checkbox"), S = M("el-checkbox-group"), V = M("el-option"), U = M("el-select"), m = M("el-date-picker"), B = M("sinosoft-common-button"), Y = M("el-form");
|
|
177
|
-
return a(), i(Y,
|
|
177
|
+
return a(), i(Y, nl({
|
|
178
178
|
"hide-required-asterisk": "",
|
|
179
179
|
onSubmit: g[0] || (g[0] = sl(() => {
|
|
180
180
|
}, ["prevent"])),
|
|
@@ -183,9 +183,9 @@ function Sl(p, g, w, e, k, K) {
|
|
|
183
183
|
"label-position": e.formOptions.labelPosition,
|
|
184
184
|
ref: "formRef"
|
|
185
185
|
}), {
|
|
186
|
-
default:
|
|
186
|
+
default: n(() => [
|
|
187
187
|
h(j, { gutter: 20 }, {
|
|
188
|
-
default:
|
|
188
|
+
default: n(() => [
|
|
189
189
|
(a(!0), r(N, null, A(w.fieldList, (l, z) => rl((a(), i(I, {
|
|
190
190
|
xs: l.xs ? l.xs : 24,
|
|
191
191
|
sm: l.sm ? l.sm : 24,
|
|
@@ -194,12 +194,12 @@ function Sl(p, g, w, e, k, K) {
|
|
|
194
194
|
xl: l.xl ? l.xl : 8,
|
|
195
195
|
key: z
|
|
196
196
|
}, {
|
|
197
|
-
default:
|
|
197
|
+
default: n(() => [
|
|
198
198
|
O("div", {
|
|
199
199
|
style: u(l.style)
|
|
200
200
|
}, [
|
|
201
201
|
l.type === "title" ? (a(), i(b, { key: 0 }, {
|
|
202
|
-
default:
|
|
202
|
+
default: n(() => [
|
|
203
203
|
O("div", bl, [
|
|
204
204
|
O("span", hl, t(l.title), 1)
|
|
205
205
|
])
|
|
@@ -211,7 +211,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
211
211
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
212
212
|
class: "container_name"
|
|
213
213
|
}, {
|
|
214
|
-
label:
|
|
214
|
+
label: n(() => [
|
|
215
215
|
l.slotLabelName ? C(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), r("div", {
|
|
216
216
|
key: 0,
|
|
217
217
|
style: u(l.labelStyle)
|
|
@@ -220,9 +220,9 @@ function Sl(p, g, w, e, k, K) {
|
|
|
220
220
|
l.required ? (a(), r("span", gl, "*")) : c("", !0)
|
|
221
221
|
], 4))
|
|
222
222
|
]),
|
|
223
|
-
default:
|
|
223
|
+
default: n(() => [
|
|
224
224
|
h(j, { gutter: 20 }, {
|
|
225
|
-
default:
|
|
225
|
+
default: n(() => [
|
|
226
226
|
h(I, {
|
|
227
227
|
xs: 24,
|
|
228
228
|
sm: 12,
|
|
@@ -230,14 +230,14 @@ function Sl(p, g, w, e, k, K) {
|
|
|
230
230
|
lg: 12,
|
|
231
231
|
xl: 12
|
|
232
232
|
}, {
|
|
233
|
-
default:
|
|
233
|
+
default: n(() => [
|
|
234
234
|
l.field.nameEnFamily ? (a(), i(b, {
|
|
235
235
|
key: 0,
|
|
236
236
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.nameEnFamily,
|
|
237
237
|
prop: l.field.nameEnFamily,
|
|
238
238
|
class: "item-name item-name-top"
|
|
239
239
|
}, {
|
|
240
|
-
default:
|
|
240
|
+
default: n(() => [
|
|
241
241
|
h(x, {
|
|
242
242
|
onBlur: (o) => e.inputBlur(o, l.field.nameEnFamily),
|
|
243
243
|
onFocus: (o) => e.inputFocus(o, l.field.nameEnFamily),
|
|
@@ -268,14 +268,14 @@ function Sl(p, g, w, e, k, K) {
|
|
|
268
268
|
lg: 12,
|
|
269
269
|
xl: 12
|
|
270
270
|
}, {
|
|
271
|
-
default:
|
|
271
|
+
default: n(() => [
|
|
272
272
|
l.field.nameEn ? (a(), i(b, {
|
|
273
273
|
key: 0,
|
|
274
274
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.nameEn,
|
|
275
275
|
prop: l.field.nameEn,
|
|
276
276
|
class: "item-name item-name-top"
|
|
277
277
|
}, {
|
|
278
|
-
default:
|
|
278
|
+
default: n(() => [
|
|
279
279
|
h(x, {
|
|
280
280
|
onBlur: (o) => e.inputBlur(o, l.field.nameEn),
|
|
281
281
|
onFocus: (o) => e.inputFocus(o, l.field.nameEn),
|
|
@@ -303,7 +303,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
303
303
|
_: 2
|
|
304
304
|
}, 1024),
|
|
305
305
|
h(j, { gutter: 20 }, {
|
|
306
|
-
default:
|
|
306
|
+
default: n(() => [
|
|
307
307
|
h(I, {
|
|
308
308
|
xs: 24,
|
|
309
309
|
sm: 12,
|
|
@@ -311,14 +311,14 @@ function Sl(p, g, w, e, k, K) {
|
|
|
311
311
|
lg: 12,
|
|
312
312
|
xl: 12
|
|
313
313
|
}, {
|
|
314
|
-
default:
|
|
314
|
+
default: n(() => [
|
|
315
315
|
l.field.nameChFamily ? (a(), i(b, {
|
|
316
316
|
key: 0,
|
|
317
317
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.nameChFamily,
|
|
318
318
|
prop: l.field.nameChFamily,
|
|
319
319
|
class: "item-name item-name-bottom"
|
|
320
320
|
}, {
|
|
321
|
-
default:
|
|
321
|
+
default: n(() => [
|
|
322
322
|
h(x, {
|
|
323
323
|
onBlur: (o) => e.inputBlur(o, l.field.nameChFamily),
|
|
324
324
|
onFocus: (o) => e.inputFocus(o, l.field.nameChFamily),
|
|
@@ -352,14 +352,14 @@ function Sl(p, g, w, e, k, K) {
|
|
|
352
352
|
lg: 12,
|
|
353
353
|
xl: 12
|
|
354
354
|
}, {
|
|
355
|
-
default:
|
|
355
|
+
default: n(() => [
|
|
356
356
|
l.field.nameCh ? (a(), i(b, {
|
|
357
357
|
key: 0,
|
|
358
358
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.nameCh,
|
|
359
359
|
prop: l.field.nameCh,
|
|
360
360
|
class: "item-name item-name-bottom"
|
|
361
361
|
}, {
|
|
362
|
-
default:
|
|
362
|
+
default: n(() => [
|
|
363
363
|
h(x, {
|
|
364
364
|
onBlur: (o) => e.inputBlur(o, l.field.nameCh),
|
|
365
365
|
onFocus: (o) => e.inputFocus(o, l.field.nameCh),
|
|
@@ -395,7 +395,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
395
395
|
prop: l.field,
|
|
396
396
|
class: "radio_row"
|
|
397
397
|
}, {
|
|
398
|
-
label:
|
|
398
|
+
label: n(() => [
|
|
399
399
|
l.slotLabelName ? C(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), r("div", {
|
|
400
400
|
key: 0,
|
|
401
401
|
style: u(l.labelStyle)
|
|
@@ -404,14 +404,14 @@ function Sl(p, g, w, e, k, K) {
|
|
|
404
404
|
l.required ? (a(), r("span", _l, "*")) : c("", !0)
|
|
405
405
|
], 4))
|
|
406
406
|
]),
|
|
407
|
-
default:
|
|
407
|
+
default: n(() => [
|
|
408
408
|
h(F, {
|
|
409
409
|
modelValue: e.states.model[l.field],
|
|
410
410
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
411
411
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
412
412
|
onChange: (o) => e.radioChange(o, l.field)
|
|
413
413
|
}, {
|
|
414
|
-
default:
|
|
414
|
+
default: n(() => {
|
|
415
415
|
var o;
|
|
416
416
|
return [
|
|
417
417
|
(a(!0), r(N, null, A((o = l.options) == null ? void 0 : o.data, (y) => (a(), i(v, {
|
|
@@ -419,7 +419,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
419
419
|
size: "large",
|
|
420
420
|
key: y.code
|
|
421
421
|
}, {
|
|
422
|
-
default:
|
|
422
|
+
default: n(() => [
|
|
423
423
|
O("img", {
|
|
424
424
|
src: y.code === "M" ? "http://192.168.5.200:9000/test/sex_img_M.png" : "http://192.168.5.200:9000/test/sex_img_F.png",
|
|
425
425
|
style: { width: "44px", height: "44px", "margin-bottom": "-15px", "margin-left": "4px" },
|
|
@@ -441,7 +441,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
441
441
|
prop: l.field,
|
|
442
442
|
class: _([l.labelNode ? "radio_Note" : "rule_err"])
|
|
443
443
|
}, {
|
|
444
|
-
label:
|
|
444
|
+
label: n(() => [
|
|
445
445
|
l.slotLabelName ? C(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), r("div", {
|
|
446
446
|
key: 0,
|
|
447
447
|
style: u(l.labelStyle)
|
|
@@ -450,7 +450,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
450
450
|
l.required ? (a(), r("span", Ml, "*")) : c("", !0)
|
|
451
451
|
], 4))
|
|
452
452
|
]),
|
|
453
|
-
default:
|
|
453
|
+
default: n(() => [
|
|
454
454
|
h(F, {
|
|
455
455
|
modelValue: e.states.model[l.field],
|
|
456
456
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
@@ -461,19 +461,20 @@ function Sl(p, g, w, e, k, K) {
|
|
|
461
461
|
),
|
|
462
462
|
class: _(l.ways !== "column" ? "radio_row" : "")
|
|
463
463
|
}, {
|
|
464
|
-
default:
|
|
464
|
+
default: n(() => {
|
|
465
465
|
var o;
|
|
466
466
|
return [
|
|
467
467
|
(a(!0), r(N, null, A((o = l.options) == null ? void 0 : o.data, (y) => (a(), i(v, {
|
|
468
468
|
size: "large",
|
|
469
469
|
label: y.code,
|
|
470
|
-
key: y.code
|
|
470
|
+
key: y.code,
|
|
471
|
+
disabled: y.isDisabled
|
|
471
472
|
}, {
|
|
472
|
-
default:
|
|
473
|
+
default: n(() => [
|
|
473
474
|
D(t(y.name), 1)
|
|
474
475
|
]),
|
|
475
476
|
_: 2
|
|
476
|
-
}, 1032, ["label"]))), 128))
|
|
477
|
+
}, 1032, ["label", "disabled"]))), 128))
|
|
477
478
|
];
|
|
478
479
|
}),
|
|
479
480
|
_: 2
|
|
@@ -487,7 +488,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
487
488
|
prop: l.field,
|
|
488
489
|
class: _([l.labelNode ? "radio_Note" : "rule_err"])
|
|
489
490
|
}, {
|
|
490
|
-
default:
|
|
491
|
+
default: n(() => [
|
|
491
492
|
O("div", null, [
|
|
492
493
|
O("span", Cl, t(l.labelBefore), 1),
|
|
493
494
|
O("span", Nl, t(l.labelNode), 1),
|
|
@@ -503,7 +504,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
503
504
|
),
|
|
504
505
|
class: _(l.ways !== "column" ? "radio_row" : "")
|
|
505
506
|
}, {
|
|
506
|
-
default:
|
|
507
|
+
default: n(() => {
|
|
507
508
|
var o;
|
|
508
509
|
return [
|
|
509
510
|
(a(!0), r(N, null, A((o = l.options) == null ? void 0 : o.data, (y) => (a(), i(v, {
|
|
@@ -511,7 +512,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
511
512
|
label: y.code,
|
|
512
513
|
key: y.code
|
|
513
514
|
}, {
|
|
514
|
-
default:
|
|
515
|
+
default: n(() => [
|
|
515
516
|
D(t(y.name), 1)
|
|
516
517
|
]),
|
|
517
518
|
_: 2
|
|
@@ -528,7 +529,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
528
529
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
529
530
|
prop: l.field
|
|
530
531
|
}, {
|
|
531
|
-
label:
|
|
532
|
+
label: n(() => [
|
|
532
533
|
l.slotLabelName ? C(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), r("div", {
|
|
533
534
|
key: 0,
|
|
534
535
|
style: u(l.labelStyle)
|
|
@@ -537,7 +538,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
537
538
|
l.required ? (a(), r("span", Ol, "*")) : c("", !0)
|
|
538
539
|
], 4))
|
|
539
540
|
]),
|
|
540
|
-
default:
|
|
541
|
+
default: n(() => [
|
|
541
542
|
h(S, {
|
|
542
543
|
modelValue: e.states.model[l.field],
|
|
543
544
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
@@ -547,18 +548,19 @@ function Sl(p, g, w, e, k, K) {
|
|
|
547
548
|
l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
|
|
548
549
|
)
|
|
549
550
|
}, {
|
|
550
|
-
default:
|
|
551
|
+
default: n(() => {
|
|
551
552
|
var o;
|
|
552
553
|
return [
|
|
553
554
|
(a(!0), r(N, null, A((o = l.options) == null ? void 0 : o.data, (y) => (a(), i(E, {
|
|
554
555
|
key: y.code,
|
|
555
|
-
label: y.code
|
|
556
|
+
label: y.code,
|
|
557
|
+
disabled: y.isDisabled
|
|
556
558
|
}, {
|
|
557
|
-
default:
|
|
559
|
+
default: n(() => [
|
|
558
560
|
D(t(y.name), 1)
|
|
559
561
|
]),
|
|
560
562
|
_: 2
|
|
561
|
-
}, 1032, ["label"]))), 128))
|
|
563
|
+
}, 1032, ["label", "disabled"]))), 128))
|
|
562
564
|
];
|
|
563
565
|
}),
|
|
564
566
|
_: 2
|
|
@@ -571,7 +573,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
571
573
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
572
574
|
prop: l.field
|
|
573
575
|
}, {
|
|
574
|
-
label:
|
|
576
|
+
label: n(() => [
|
|
575
577
|
l.slotLabelName ? C(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), r("div", {
|
|
576
578
|
key: 0,
|
|
577
579
|
style: u(l.labelStyle)
|
|
@@ -580,7 +582,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
580
582
|
l.required ? (a(), r("span", kl, "*")) : c("", !0)
|
|
581
583
|
], 4))
|
|
582
584
|
]),
|
|
583
|
-
default:
|
|
585
|
+
default: n(() => [
|
|
584
586
|
h(S, {
|
|
585
587
|
modelValue: e.states.model[l.field],
|
|
586
588
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
@@ -590,18 +592,19 @@ function Sl(p, g, w, e, k, K) {
|
|
|
590
592
|
l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
|
|
591
593
|
)
|
|
592
594
|
}, {
|
|
593
|
-
default:
|
|
595
|
+
default: n(() => {
|
|
594
596
|
var o;
|
|
595
597
|
return [
|
|
596
598
|
(a(!0), r(N, null, A((o = l.options) == null ? void 0 : o.data, (y) => (a(), i(E, {
|
|
597
599
|
key: y.code,
|
|
598
|
-
label: y.code
|
|
600
|
+
label: y.code,
|
|
601
|
+
disabled: y.isDisabled
|
|
599
602
|
}, {
|
|
600
|
-
default:
|
|
603
|
+
default: n(() => [
|
|
601
604
|
D(t(y.name), 1)
|
|
602
605
|
]),
|
|
603
606
|
_: 2
|
|
604
|
-
}, 1032, ["label"]))), 128))
|
|
607
|
+
}, 1032, ["label", "disabled"]))), 128))
|
|
605
608
|
];
|
|
606
609
|
}),
|
|
607
610
|
_: 2
|
|
@@ -615,7 +618,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
615
618
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
616
619
|
prop: l.field
|
|
617
620
|
}, {
|
|
618
|
-
label:
|
|
621
|
+
label: n(() => [
|
|
619
622
|
l.slotLabelName ? C(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), r("div", {
|
|
620
623
|
key: 0,
|
|
621
624
|
style: u(l.labelStyle)
|
|
@@ -624,7 +627,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
624
627
|
l.required ? (a(), r("span", Rl, "*")) : c("", !0)
|
|
625
628
|
], 4))
|
|
626
629
|
]),
|
|
627
|
-
default:
|
|
630
|
+
default: n(() => [
|
|
628
631
|
h(U, {
|
|
629
632
|
"popper-class": "selectTriangles",
|
|
630
633
|
teleported: !1,
|
|
@@ -639,7 +642,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
639
642
|
clearable: l.clearable,
|
|
640
643
|
"fit-input-width": !0
|
|
641
644
|
}, {
|
|
642
|
-
default:
|
|
645
|
+
default: n(() => {
|
|
643
646
|
var o;
|
|
644
647
|
return [
|
|
645
648
|
(a(!0), r(N, null, A((o = l.options) == null ? void 0 : o.data, (y) => (a(), i(V, {
|
|
@@ -664,7 +667,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
664
667
|
prop: l.field,
|
|
665
668
|
class: "date_item"
|
|
666
669
|
}, {
|
|
667
|
-
label:
|
|
670
|
+
label: n(() => [
|
|
668
671
|
l.slotLabelName ? C(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), r("div", {
|
|
669
672
|
key: 0,
|
|
670
673
|
style: u(l.labelStyle)
|
|
@@ -673,7 +676,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
673
676
|
l.required ? (a(), r("span", wl, "*")) : c("", !0)
|
|
674
677
|
], 4))
|
|
675
678
|
]),
|
|
676
|
-
default:
|
|
679
|
+
default: n(() => [
|
|
677
680
|
h(m, {
|
|
678
681
|
"popper-class": "selectTriangles",
|
|
679
682
|
teleported: !1,
|
|
@@ -704,7 +707,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
704
707
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
705
708
|
prop: l.field
|
|
706
709
|
}, {
|
|
707
|
-
label:
|
|
710
|
+
label: n(() => [
|
|
708
711
|
l.slotLabelName ? C(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), r("div", {
|
|
709
712
|
key: 0,
|
|
710
713
|
style: u(l.labelStyle)
|
|
@@ -713,7 +716,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
713
716
|
l.required ? (a(), r("span", Il, "*")) : c("", !0)
|
|
714
717
|
], 4))
|
|
715
718
|
]),
|
|
716
|
-
default:
|
|
719
|
+
default: n(() => [
|
|
717
720
|
h(m, {
|
|
718
721
|
"popper-class": "selectTriangles",
|
|
719
722
|
teleported: !1,
|
|
@@ -745,7 +748,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
745
748
|
prop: l.field,
|
|
746
749
|
class: "rule_err"
|
|
747
750
|
}, {
|
|
748
|
-
label:
|
|
751
|
+
label: n(() => [
|
|
749
752
|
l.slotLabelName ? C(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), r("div", {
|
|
750
753
|
key: 0,
|
|
751
754
|
style: u(l.labelStyle)
|
|
@@ -754,7 +757,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
754
757
|
l.required ? (a(), r("span", Vl, "*")) : c("", !0)
|
|
755
758
|
], 4))
|
|
756
759
|
]),
|
|
757
|
-
default:
|
|
760
|
+
default: n(() => [
|
|
758
761
|
C(p.$slots, l.slotItemName, {}, void 0, !0)
|
|
759
762
|
]),
|
|
760
763
|
_: 2
|
|
@@ -765,7 +768,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
765
768
|
prop: l.field.phoneNumber,
|
|
766
769
|
class: "phone_item"
|
|
767
770
|
}, {
|
|
768
|
-
label:
|
|
771
|
+
label: n(() => [
|
|
769
772
|
l.slotLabelName ? C(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), r("div", {
|
|
770
773
|
key: 0,
|
|
771
774
|
style: u(l.labelStyle)
|
|
@@ -774,7 +777,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
774
777
|
l.required ? (a(), r("span", Ul, "*")) : c("", !0)
|
|
775
778
|
], 4))
|
|
776
779
|
]),
|
|
777
|
-
default:
|
|
780
|
+
default: n(() => {
|
|
778
781
|
var o, y, T, s;
|
|
779
782
|
return [
|
|
780
783
|
O("div", {
|
|
@@ -787,7 +790,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
787
790
|
teleported: !1,
|
|
788
791
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNation) && !l.openDisabled,
|
|
789
792
|
modelValue: e.states.model[l.field.nationCode],
|
|
790
|
-
"onUpdate:modelValue": (
|
|
793
|
+
"onUpdate:modelValue": (d) => e.states.model[l.field.nationCode] = d,
|
|
791
794
|
placeholder: ((o = l.nationOptions) == null ? void 0 : o.placeholder) || "",
|
|
792
795
|
class: _(
|
|
793
796
|
(l.isReadonly || l.isReadonlyNation || e.formOptions.isAllReadonly) && !l.openDisabled ? "selectreadonly" : ""
|
|
@@ -795,10 +798,10 @@ function Sl(p, g, w, e, k, K) {
|
|
|
795
798
|
style: u("width:" + l.widthNation),
|
|
796
799
|
"fit-input-width": !0
|
|
797
800
|
}, {
|
|
798
|
-
default:
|
|
799
|
-
var
|
|
801
|
+
default: n(() => {
|
|
802
|
+
var d;
|
|
800
803
|
return [
|
|
801
|
-
(a(!0), r(N, null, A((
|
|
804
|
+
(a(!0), r(N, null, A((d = l.nationOptions) == null ? void 0 : d.data, (f, R) => (a(), i(V, {
|
|
802
805
|
label: f.name,
|
|
803
806
|
value: f.code,
|
|
804
807
|
key: R
|
|
@@ -814,7 +817,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
814
817
|
teleported: !1,
|
|
815
818
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyArea) && !l.openDisabled,
|
|
816
819
|
modelValue: e.states.model[l.field.areaCode],
|
|
817
|
-
"onUpdate:modelValue": (
|
|
820
|
+
"onUpdate:modelValue": (d) => e.states.model[l.field.areaCode] = d,
|
|
818
821
|
placeholder: ((y = l.areaOptions) == null ? void 0 : y.placeholder) || "",
|
|
819
822
|
class: _(
|
|
820
823
|
(l.isReadonly || l.isReadonlyArea || e.formOptions.isAllReadonly) && !l.openDisabled ? "selectreadonly" : "areaCode_select"
|
|
@@ -822,10 +825,10 @@ function Sl(p, g, w, e, k, K) {
|
|
|
822
825
|
style: u("width:" + l.widthArea),
|
|
823
826
|
"fit-input-width": !0
|
|
824
827
|
}, {
|
|
825
|
-
default:
|
|
826
|
-
var
|
|
828
|
+
default: n(() => {
|
|
829
|
+
var d;
|
|
827
830
|
return [
|
|
828
|
-
(a(!0), r(N, null, A((
|
|
831
|
+
(a(!0), r(N, null, A((d = l.areaOptions) == null ? void 0 : d.data, (f, R) => (a(), i(V, {
|
|
829
832
|
label: f.name,
|
|
830
833
|
value: f.code,
|
|
831
834
|
key: R
|
|
@@ -842,7 +845,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
842
845
|
teleported: !1,
|
|
843
846
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNation) && !l.openDisabled,
|
|
844
847
|
modelValue: e.states.model[l.field.nationCode],
|
|
845
|
-
"onUpdate:modelValue": (
|
|
848
|
+
"onUpdate:modelValue": (d) => e.states.model[l.field.nationCode] = d,
|
|
846
849
|
placeholder: ((T = l.nationOptions) == null ? void 0 : T.placeholder) || "",
|
|
847
850
|
class: _(
|
|
848
851
|
(l.isReadonly || l.isReadonlyNation || e.formOptions.isAllReadonly) && !l.openDisabled ? "selectreadonly" : ""
|
|
@@ -850,10 +853,10 @@ function Sl(p, g, w, e, k, K) {
|
|
|
850
853
|
style: u("width:" + l.widthNation),
|
|
851
854
|
"fit-input-width": !0
|
|
852
855
|
}, {
|
|
853
|
-
default:
|
|
854
|
-
var
|
|
856
|
+
default: n(() => {
|
|
857
|
+
var d;
|
|
855
858
|
return [
|
|
856
|
-
(a(!0), r(N, null, A((
|
|
859
|
+
(a(!0), r(N, null, A((d = l.nationOptions) == null ? void 0 : d.data, (f, R) => (a(), i(V, {
|
|
857
860
|
label: f.name,
|
|
858
861
|
value: f.code,
|
|
859
862
|
key: R
|
|
@@ -869,7 +872,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
869
872
|
teleported: !1,
|
|
870
873
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyArea) && !l.openDisabled,
|
|
871
874
|
modelValue: e.states.model[l.field.areaCode],
|
|
872
|
-
"onUpdate:modelValue": (
|
|
875
|
+
"onUpdate:modelValue": (d) => e.states.model[l.field.areaCode] = d,
|
|
873
876
|
placeholder: ((s = l.areaOptions) == null ? void 0 : s.placeholder) || "",
|
|
874
877
|
class: _(
|
|
875
878
|
(l.isReadonly || l.isReadonlyArea || e.formOptions.isAllReadonly) && !l.openDisabled ? "selectreadonly" : "areaCode_select"
|
|
@@ -877,10 +880,10 @@ function Sl(p, g, w, e, k, K) {
|
|
|
877
880
|
style: u("width:" + l.widthArea),
|
|
878
881
|
"fit-input-width": !0
|
|
879
882
|
}, {
|
|
880
|
-
default:
|
|
881
|
-
var
|
|
883
|
+
default: n(() => {
|
|
884
|
+
var d;
|
|
882
885
|
return [
|
|
883
|
-
(a(!0), r(N, null, A((
|
|
886
|
+
(a(!0), r(N, null, A((d = l.areaOptions) == null ? void 0 : d.data, (f, R) => (a(), i(V, {
|
|
884
887
|
label: f.name,
|
|
885
888
|
value: f.code,
|
|
886
889
|
key: R
|
|
@@ -892,25 +895,25 @@ function Sl(p, g, w, e, k, K) {
|
|
|
892
895
|
e.phoneWrap ? c("", !0) : (a(), r("div", Tl, "-")),
|
|
893
896
|
l.field.phoneNumber ? (a(), i(x, {
|
|
894
897
|
key: 5,
|
|
895
|
-
onBlur: (
|
|
896
|
-
|
|
898
|
+
onBlur: (d) => e.inputBlur(
|
|
899
|
+
d,
|
|
897
900
|
typeof l.field == "string" ? l.field : ""
|
|
898
901
|
),
|
|
899
|
-
onFocus: (
|
|
900
|
-
|
|
902
|
+
onFocus: (d) => e.inputFocus(
|
|
903
|
+
d,
|
|
901
904
|
typeof l.field == "string" ? l.field : ""
|
|
902
905
|
),
|
|
903
|
-
onChange: (
|
|
904
|
-
|
|
906
|
+
onChange: (d) => e.inputChange(
|
|
907
|
+
d,
|
|
905
908
|
typeof l.field == "string" ? l.field : ""
|
|
906
909
|
),
|
|
907
|
-
onInput: (
|
|
908
|
-
|
|
910
|
+
onInput: (d) => e.inputInput(
|
|
911
|
+
d,
|
|
909
912
|
typeof l.field == "string" ? l.field : ""
|
|
910
913
|
),
|
|
911
914
|
maxlength: l.maxlength,
|
|
912
915
|
modelValue: e.states.model[l.field.phoneNumber],
|
|
913
|
-
"onUpdate:modelValue": (
|
|
916
|
+
"onUpdate:modelValue": (d) => e.states.model[l.field.phoneNumber] = d,
|
|
914
917
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyPhoneNumber) && !l.openDisabled,
|
|
915
918
|
placeholder: l.placeholder || "",
|
|
916
919
|
class: _(
|
|
@@ -926,7 +929,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
926
929
|
key: 12,
|
|
927
930
|
label: l.label
|
|
928
931
|
}, {
|
|
929
|
-
default:
|
|
932
|
+
default: n(() => [
|
|
930
933
|
Ll
|
|
931
934
|
]),
|
|
932
935
|
_: 2
|
|
@@ -936,7 +939,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
936
939
|
prop: l.field,
|
|
937
940
|
class: _(l.prepend ? "input-item" : "")
|
|
938
941
|
}, {
|
|
939
|
-
label:
|
|
942
|
+
label: n(() => [
|
|
940
943
|
l.slotLabelName ? C(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), r("div", {
|
|
941
944
|
key: 0,
|
|
942
945
|
style: u(l.labelStyle)
|
|
@@ -945,7 +948,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
945
948
|
l.required ? (a(), r("span", El, "*")) : c("", !0)
|
|
946
949
|
], 4))
|
|
947
950
|
]),
|
|
948
|
-
default:
|
|
951
|
+
default: n(() => [
|
|
949
952
|
h(x, {
|
|
950
953
|
onBlur: (o) => e.inputBlur(
|
|
951
954
|
o,
|
|
@@ -980,14 +983,14 @@ function Sl(p, g, w, e, k, K) {
|
|
|
980
983
|
}, il({ _: 2 }, [
|
|
981
984
|
l.prepend ? {
|
|
982
985
|
name: "prepend",
|
|
983
|
-
fn:
|
|
986
|
+
fn: n(() => [
|
|
984
987
|
D(t(l.prepend), 1)
|
|
985
988
|
]),
|
|
986
989
|
key: "0"
|
|
987
990
|
} : void 0,
|
|
988
991
|
l.append ? {
|
|
989
992
|
name: "append",
|
|
990
|
-
fn:
|
|
993
|
+
fn: n(() => [
|
|
991
994
|
D(t(l.append), 1)
|
|
992
995
|
]),
|
|
993
996
|
key: "1"
|
|
@@ -1006,7 +1009,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
1006
1009
|
_: 3
|
|
1007
1010
|
}),
|
|
1008
1011
|
h(b, { class: "btnsItem" }, {
|
|
1009
|
-
default:
|
|
1012
|
+
default: n(() => [
|
|
1010
1013
|
C(p.$slots, "buttons", {
|
|
1011
1014
|
model: w.model,
|
|
1012
1015
|
onBtnClick: e.onSubmit
|
|
@@ -1039,7 +1042,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
1039
1042
|
class: _(l.class),
|
|
1040
1043
|
onHandleClick: (o) => e.handleClick(o, l.isRule, l.emitName)
|
|
1041
1044
|
}, {
|
|
1042
|
-
default:
|
|
1045
|
+
default: n(() => [
|
|
1043
1046
|
D(t(l.name), 1)
|
|
1044
1047
|
]),
|
|
1045
1048
|
_: 2
|
|
@@ -1053,7 +1056,7 @@ function Sl(p, g, w, e, k, K) {
|
|
|
1053
1056
|
_: 3
|
|
1054
1057
|
}, 16, ["model", "label-position"]);
|
|
1055
1058
|
}
|
|
1056
|
-
const P = /* @__PURE__ */ ul(fl, [["render", Sl], ["__scopeId", "data-v-
|
|
1059
|
+
const P = /* @__PURE__ */ ul(fl, [["render", Sl], ["__scopeId", "data-v-59132be2"]]);
|
|
1057
1060
|
function W(p, g = {}) {
|
|
1058
1061
|
W.installed || (W.installed = !0, p.component("common-el-form", P));
|
|
1059
1062
|
}
|
package/common-form.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,g){typeof exports=="object"&&typeof module<"u"?module.exports=g(require("vue")):typeof define=="function"&&define.amd?define(["vue"],g):(e=typeof globalThis<"u"?globalThis:e||self,e.Form=g(e.Vue))})(this,function(e){"use strict";const g="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==",I={props:{fieldList:{type:Array,required:!0,default:()=>({username:"",age:0,email:""})},model:{type:Object,required:!0,default:()=>({username:"",age:0,email:""})},options:Object},setup(r,{emit:i}){const f=e.ref(!0),o=e.reactive({model:{}}),p=e.ref(null),S=e.shallowRef({render(){return e.h("img",{src:g})}}),c=e.computed(()=>Object.assign([],r.options)),b=()=>{o.model=r.model},h=(d,n,t)=>{var y;n?(f.value=!1,e.nextTick(()=>{var z;(z=p.value)==null||z.validate(rl=>{if(rl)i(t||"submit",o.model,d);else return!1})})):(t==="reset"&&((y=p.value)==null||y.resetFields()),i(t||"submit",o.model,d))},N=(d,n)=>{i("selectChange",d,n)},m=(d,n)=>{i("radioChange",d,n)},x=(d,n)=>{i("checkChange",d,n)},B=(d,n)=>{const t=o.model[n].length;if(t===1){i("checkChange",d,n);return}else t>1?(o.model[n].shift(),i("checkChange",d,n)):t<1&&i("checkChange",d,n)},w=(d,n,t)=>{h(d,n,t)},k=(d,n)=>{d&&(n==null?void 0:n.key)==="Enter"&&h(void 0,!0,"submit")},C=(d,n)=>{i("dateChange",d,n)},V=(d,n)=>{console.log(p.value),i("inputBlur",d,n)},R=(d,n)=>{i("inputFocus",d,n)},E=(d,n)=>{i("inputChange",d,n)},l=(d,n)=>{i("inputInput",d,n)},_=d=>{var n;(n=p.value)==null||n.resetFields(d)},a=d=>{var n;(n=p.value)==null||n.clearValidate(d)},s=e.ref(!1),D=()=>{window.innerWidth<768?(console.log("屏幕宽度小于768px"),s.value=!0):s.value=!1};return e.onMounted(()=>{var d;b(),(d=p.value)==null||d.resetFields(),window.addEventListener("resize",D)}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",D)}),e.watch(()=>r.fieldList,(d,n)=>{d!==n&&b()}),{...e.toRefs(o),formRef:p,states:o,formOptions:c,onSubmit:h,selectChange:N,radioChange:m,checkChange:x,handleCheckedChange:B,prefixIcon:S,handleClick:w,handleKeyUp:k,resetFieldsTest:_,clearValidateTest:a,dateChange:C,inputBlur:V,inputFocus:R,inputChange:E,inputInput:l,noFormRule:f,phoneWrap:s}}},tl="",cl="",U=(r,i)=>{const f=r.__vccOpts||r;for(const[o,p]of i)f[o]=p;return f},M=r=>(e.pushScopeId("data-v-595279c2"),r=r(),e.popScopeId(),r),F={class:"header-title"},T={class:"title-content"},j={key:0,class:"custom-required"},L={key:0,class:"custom-required"},Y=["src"],q={key:0,class:"custom-required"},W={class:"lable"},H={class:"lable_note"},K={key:0,class:"custom-required"},Q={key:0,class:"custom-required"},P={key:0,class:"custom-required"},Z={key:0,class:"custom-required"},G={key:0,class:"custom-required"},J={key:0,class:"date_to"},X={key:0,class:"custom-required"},u={key:0,class:"custom-required"},$={key:0,class:"custom-required"},v={key:0,class:"phone_item_content_before"},ll=M(()=>e.createElementVNode("div",{class:"line_middle"},"-",-1)),el=M(()=>e.createElementVNode("div",{class:"line_middle"},"-",-1)),ol={key:2,class:"line_middle"},al={key:4,class:"line_middle"},nl=M(()=>e.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"39px 0"}},null,-1)),dl={key:0,class:"custom-required"};function sl(r,i,f,o,p,S){const c=e.resolveComponent("el-form-item"),b=e.resolveComponent("el-input"),h=e.resolveComponent("el-col"),N=e.resolveComponent("el-row"),m=e.resolveComponent("el-radio"),x=e.resolveComponent("el-radio-group"),B=e.resolveComponent("el-checkbox"),w=e.resolveComponent("el-checkbox-group"),k=e.resolveComponent("el-option"),C=e.resolveComponent("el-select"),V=e.resolveComponent("el-date-picker"),R=e.resolveComponent("sinosoft-common-button"),E=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(E,e.mergeProps({"hide-required-asterisk":"",onSubmit:i[0]||(i[0]=e.withModifiers(()=>{},["prevent"])),model:f.model},o.formOptions,{"label-position":o.formOptions.labelPosition,ref:"formRef"}),{default:e.withCtx(()=>[e.createVNode(N,{gutter:20},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.fieldList,(l,_)=>e.withDirectives((e.openBlock(),e.createBlock(h,{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:_},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(l.style)},[l.type==="title"?(e.openBlock(),e.createBlock(c,{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",F,[e.createElementVNode("span",T,e.toDisplayString(l.title),1)])]),_:2},1024)):l.type==="name"&&typeof l.field!="string"&&l.field&&"nameEnFamily"in l.field&&l.rules&&"nameEnFamily"in l.rules?(e.openBlock(),e.createBlock(c,{key:1,label:l.label,disabled:(l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly)&&!l.openDisabled,class:"container_name"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(r.$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(N,{gutter:20},{default:e.withCtx(()=>[e.createVNode(h,{xs:24,sm:12,md:12,lg:12,xl:12},{default:e.withCtx(()=>[l.field.nameEnFamily?(e.openBlock(),e.createBlock(c,{key:0,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules.nameEnFamily,prop:l.field.nameEnFamily,class:"item-name item-name-top"},{default:e.withCtx(()=>[e.createVNode(b,{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||l.isReadonlyNameEnFamily||o.formOptions.isAllReadonly)&&!l.openDisabled?"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||l.isReadonlyNameEnFamily)&&!l.openDisabled,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.createCommentVNode("",!0)]),_:2},1024),e.createVNode(h,{xs:24,sm:12,md:12,lg:12,xl:12},{default:e.withCtx(()=>[l.field.nameEn?(e.openBlock(),e.createBlock(c,{key:0,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules.nameEn,prop:l.field.nameEn,class:"item-name item-name-top"},{default:e.withCtx(()=>[e.createVNode(b,{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||l.isReadonlyNameEn||o.formOptions.isAllReadonly)&&!l.openDisabled?"readonly":""),readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEn,disabled:(l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly||l.isReadonlyNameEn)&&!l.openDisabled,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.createCommentVNode("",!0)]),_:2},1024)]),_:2},1024),e.createVNode(N,{gutter:20},{default:e.withCtx(()=>[e.createVNode(h,{xs:24,sm:12,md:12,lg:12,xl:12},{default:e.withCtx(()=>[l.field.nameChFamily?(e.openBlock(),e.createBlock(c,{key:0,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules.nameChFamily,prop:l.field.nameChFamily,class:"item-name item-name-bottom"},{default:e.withCtx(()=>[e.createVNode(b,{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,"nameChFamily"in l.field?l.field.nameCh:""),maxlength:l.maxlengthNameChFamily,class:e.normalizeClass((l.isReadonly||l.isReadonlyNameChFamily||o.formOptions.isAllReadonly)&&!l.openDisabled?"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||l.isReadonlyNameChFamily)&&!l.openDisabled,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.createCommentVNode("",!0)]),_:2},1024),e.createVNode(h,{xs:24,sm:12,md:12,lg:12,xl:12},{default:e.withCtx(()=>[l.field.nameCh?(e.openBlock(),e.createBlock(c,{key:0,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules.nameCh,prop:l.field.nameCh,class:"item-name item-name-bottom"},{default:e.withCtx(()=>[e.createVNode(b,{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||l.isReadonlyNameCh||o.formOptions.isAllReadonly)&&!l.openDisabled?"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||l.isReadonlyNameCh)&&!l.openDisabled,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.createCommentVNode("",!0)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","disabled"])):l.type==="gender"&&typeof l.field=="string"?(e.openBlock(),e.createBlock(c,{key:2,label:l.label,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules,prop:l.field,class:"radio_row"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(r.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",L,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(x,{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)&&!l.openDisabled,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,s=>(e.openBlock(),e.createBlock(m,{label:s.code,size:"large",key:s.code},{default:e.withCtx(()=>[e.createElementVNode("img",{src:s.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,Y)]),_:2},1032,["label"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])):l.type==="radio"&&typeof l.field=="string"?(e.openBlock(),e.createBlock(c,{key:3,label:l.label,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(r.$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,disabled:(l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly)&&!l.openDisabled,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; "),class:e.normalizeClass(l.ways!=="column"?"radio_row":"")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,s=>(e.openBlock(),e.createBlock(m,{size:"large",label:s.code,key:s.code},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.name),1)]),_:2},1032,["label"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange","style","class"])]),_:2},1032,["label","rules","prop","class"])):l.type==="radioNote"&&typeof l.field=="string"?(e.openBlock(),e.createBlock(c,{key:4,label:l.label,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",W,e.toDisplayString(l.labelBefore),1),e.createElementVNode("span",H,e.toDisplayString(l.labelNode),1),l.required?(e.openBlock(),e.createElementBlock("span",K,"*")):e.createCommentVNode("",!0)]),e.createVNode(x,{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)&&!l.openDisabled,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; "),class:e.normalizeClass(l.ways!=="column"?"radio_row":"")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,s=>(e.openBlock(),e.createBlock(m,{size:"large",label:s.code,key:s.code},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.name),1)]),_:2},1032,["label"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange","style","class"])]),_:2},1032,["label","rules","prop","class"])):l.type==="checkbox"&&typeof l.field=="string"?(e.openBlock(),e.createBlock(c,{key:5,label:l.label,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(r.$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(w,{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)&&!l.openDisabled,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,s=>(e.openBlock(),e.createBlock(B,{key:s.code,label:s.code},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.name),1)]),_:2},1032,["label"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])):l.type==="checkboxRadio"&&typeof l.field=="string"?(e.openBlock(),e.createBlock(c,{key:6,label:l.label,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(r.$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(w,{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)&&!l.openDisabled,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,s=>(e.openBlock(),e.createBlock(B,{key:s.code,label:s.code},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.name),1)]),_:2},1032,["label"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])):l.type==="select"&&typeof l.field=="string"?(e.openBlock(),e.createBlock(c,{key:7,label:l.label,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules,disabled:(l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly)&&!l.openDisabled,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(r.$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.createVNode(C,{"popper-class":"selectTriangles",teleported:!1,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,onChange:a=>o.selectChange(a,l.field),disabled:(l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly)&&!l.openDisabled,placeholder:l.placeholder,class:e.normalizeClass((l.isReadonly||o.formOptions.isAllReadonly)&&!l.openDisabled?"selectreadonly":""),clearable:l.clearable,"fit-input-width":!0},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,s=>(e.openBlock(),e.createBlock(k,{key:s.code,label:s.name,value:s.code},null,8,["label","value"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","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"&&typeof l.field=="string"?(e.openBlock(),e.createBlock(c,{key:8,label:l.label,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules,prop:l.field,class:"date_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(r.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",G,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(V,{"popper-class":"selectTriangles",teleported:!1,format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:a=>o.dateChange(a,typeof l.field=="string"?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)&&!l.openDisabled,readonly:l.readonly,type:l.type,placeholder:l.placeholder||l.label,class:e.normalizeClass((l.isReadonly||o.formOptions.isAllReadonly)&&!l.openDisabled?"readonly":"")},null,8,["disabled-date","onChange","prefix-icon","modelValue","onUpdate:modelValue","disabled","readonly","type","placeholder","class"]),l.showTo?(e.openBlock(),e.createElementBlock("span",J,e.toDisplayString(l.showTo),1)):e.createCommentVNode("",!0)]),_:2},1032,["label","rules","prop"])):l.type==="daterange"&&typeof l.field=="string"?(e.openBlock(),e.createBlock(c,{key:9,label:l.label,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(r.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",X,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(V,{"popper-class":"selectTriangles",teleported:!1,format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:a=>o.dateChange(a,typeof l.field=="string"?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",class:e.normalizeClass((l.isReadonly||o.formOptions.isAllReadonly)&&!l.openDisabled?"readonly":"")},null,8,["disabled-date","onChange","modelValue","onUpdate:modelValue","prefix-icon","start-placeholder","end-placeholder","class"])]),_:2},1032,["label","rules","prop"])):l.type==="slotItem"?(e.openBlock(),e.createBlock(c,{key:10,label:l.label,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules,prop:l.field,class:"rule_err"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(r.$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.renderSlot(r.$slots,l.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])):l.type==="phone"&&typeof l.field!="string"&&l.field&&"phoneNumber"in l.field&&l.rules&&l.field.phoneNumber&&"phoneNumber"in l.rules?(e.openBlock(),e.createBlock(c,{key:11,label:l.label,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules.phoneNumber,prop:l.field.phoneNumber,class:"phone_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(r.$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",$,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>{var a,s,D,d;return[e.createElementVNode("div",{class:e.normalizeClass(o.phoneWrap?["phone_item_content","phone_item_content_wrap"]:"phone_item_content")},[o.phoneWrap?(e.openBlock(),e.createElementBlock("div",v,[l.field.nationCode?(e.openBlock(),e.createBlock(C,{key:0,"popper-class":"selectTriangles",teleported:!1,disabled:(l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly||l.isReadonlyNation)&&!l.openDisabled,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||l.isReadonlyNation||o.formOptions.isAllReadonly)&&!l.openDisabled?"selectreadonly":""),style:e.normalizeStyle("width:"+l.widthNation),"fit-input-width":!0},{default:e.withCtx(()=>{var n;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((n=l.nationOptions)==null?void 0:n.data,(t,y)=>(e.openBlock(),e.createBlock(k,{label:t.name,value:t.code,key:y},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder","class","style"])):e.createCommentVNode("",!0),ll,l.field.areaCode?(e.openBlock(),e.createBlock(C,{key:1,"popper-class":"selectTriangles",teleported:!1,disabled:(l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly||l.isReadonlyArea)&&!l.openDisabled,modelValue:o.states.model[l.field.areaCode],"onUpdate:modelValue":n=>o.states.model[l.field.areaCode]=n,placeholder:((s=l.areaOptions)==null?void 0:s.placeholder)||"",class:e.normalizeClass((l.isReadonly||l.isReadonlyArea||o.formOptions.isAllReadonly)&&!l.openDisabled?"selectreadonly":"areaCode_select"),style:e.normalizeStyle("width:"+l.widthArea),"fit-input-width":!0},{default:e.withCtx(()=>{var n;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((n=l.areaOptions)==null?void 0:n.data,(t,y)=>(e.openBlock(),e.createBlock(k,{label:t.name,value:t.code,key:y},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder","class","style"])):e.createCommentVNode("",!0),el])):e.createCommentVNode("",!0),l.field.nationCode&&!o.phoneWrap?(e.openBlock(),e.createBlock(C,{key:1,"popper-class":"selectTriangles",teleported:!1,disabled:(l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly||l.isReadonlyNation)&&!l.openDisabled,modelValue:o.states.model[l.field.nationCode],"onUpdate:modelValue":n=>o.states.model[l.field.nationCode]=n,placeholder:((D=l.nationOptions)==null?void 0:D.placeholder)||"",class:e.normalizeClass((l.isReadonly||l.isReadonlyNation||o.formOptions.isAllReadonly)&&!l.openDisabled?"selectreadonly":""),style:e.normalizeStyle("width:"+l.widthNation),"fit-input-width":!0},{default:e.withCtx(()=>{var n;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((n=l.nationOptions)==null?void 0:n.data,(t,y)=>(e.openBlock(),e.createBlock(k,{label:t.name,value:t.code,key:y},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder","class","style"])):e.createCommentVNode("",!0),o.phoneWrap?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ol,"-")),l.field.areaCode&&!o.phoneWrap?(e.openBlock(),e.createBlock(C,{key:3,"popper-class":"selectTriangles",teleported:!1,disabled:(l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly||l.isReadonlyArea)&&!l.openDisabled,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||l.isReadonlyArea||o.formOptions.isAllReadonly)&&!l.openDisabled?"selectreadonly":"areaCode_select"),style:e.normalizeStyle("width:"+l.widthArea),"fit-input-width":!0},{default:e.withCtx(()=>{var n;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((n=l.areaOptions)==null?void 0:n.data,(t,y)=>(e.openBlock(),e.createBlock(k,{label:t.name,value:t.code,key:y},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder","class","style"])):e.createCommentVNode("",!0),o.phoneWrap?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",al,"-")),l.field.phoneNumber?(e.openBlock(),e.createBlock(b,{key:5,onBlur:n=>o.inputBlur(n,typeof l.field=="string"?l.field:""),onFocus:n=>o.inputFocus(n,typeof l.field=="string"?l.field:""),onChange:n=>o.inputChange(n,typeof l.field=="string"?l.field:""),onInput:n=>o.inputInput(n,typeof l.field=="string"?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||l.isReadonlyPhoneNumber)&&!l.openDisabled,placeholder:l.placeholder||"",class:e.normalizeClass((l.isReadonly||l.isReadonlyPhoneNumber||o.formOptions.isAllReadonly)&&!l.openDisabled?"readonly":""),clearable:l.clearable},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","disabled","placeholder","class","clearable"])):e.createCommentVNode("",!0)],2)]}),_:2},1032,["label","rules","prop"])):l.type==="line"?(e.openBlock(),e.createBlock(c,{key:12,label:l.label},{default:e.withCtx(()=>[nl]),_:2},1032,["label"])):(e.openBlock(),e.createBlock(c,{key:13,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules,prop:l.field,class:e.normalizeClass(l.prepend?"input-item":"")},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(r.$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",dl,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(b,{onBlur:a=>o.inputBlur(a,typeof l.field=="string"?l.field:""),onFocus:a=>o.inputFocus(a,typeof l.field=="string"?l.field:""),onChange:a=>o.inputChange(a,typeof l.field=="string"?l.field:""),onInput:a=>o.inputInput(a,typeof l.field=="string"?l.field:""),maxlength:l.maxlength,modelValue:o.states.model[typeof l.field=="string"?l.field:""],"onUpdate:modelValue":a=>o.states.model[typeof l.field=="string"?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)&&!l.openDisabled,showPassword:l.showPassword,clearable:l.clearable,class:e.normalizeClass((l.isReadonly||o.formOptions.isAllReadonly)&&!l.openDisabled?"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(c,{class:"btnsItem"},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"buttons",{model:f.model,onBtnClick:o.onSubmit},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.formOptions.btnConfig,(l,_)=>(e.openBlock(),e.createElementBlock("div",{key:_},[l.isShow?(e.openBlock(),e.createBlock(R,{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 A=U(I,[["render",sl],["__scopeId","data-v-595279c2"]]);function O(r,i={}){O.installed||(O.installed=!0,r.component("common-el-form",A))}return A.install=O,A});
|
|
1
|
+
(function(e,g){typeof exports=="object"&&typeof module<"u"?module.exports=g(require("vue")):typeof define=="function"&&define.amd?define(["vue"],g):(e=typeof globalThis<"u"?globalThis:e||self,e.Form=g(e.Vue))})(this,function(e){"use strict";const g="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==",I={props:{fieldList:{type:Array,required:!0,default:()=>({username:"",age:0,email:""})},model:{type:Object,required:!0,default:()=>({username:"",age:0,email:""})},options:Object},setup(r,{emit:c}){const f=e.ref(!0),o=e.reactive({model:{}}),p=e.ref(null),S=e.shallowRef({render(){return e.h("img",{src:g})}}),i=e.computed(()=>Object.assign([],r.options)),b=()=>{o.model=r.model},h=(d,n,t)=>{var y;n?(f.value=!1,e.nextTick(()=>{var z;(z=p.value)==null||z.validate(rl=>{if(rl)c(t||"submit",o.model,d);else return!1})})):(t==="reset"&&((y=p.value)==null||y.resetFields()),c(t||"submit",o.model,d))},N=(d,n)=>{c("selectChange",d,n)},m=(d,n)=>{c("radioChange",d,n)},x=(d,n)=>{c("checkChange",d,n)},B=(d,n)=>{const t=o.model[n].length;if(t===1){c("checkChange",d,n);return}else t>1?(o.model[n].shift(),c("checkChange",d,n)):t<1&&c("checkChange",d,n)},w=(d,n,t)=>{h(d,n,t)},k=(d,n)=>{d&&(n==null?void 0:n.key)==="Enter"&&h(void 0,!0,"submit")},C=(d,n)=>{c("dateChange",d,n)},V=(d,n)=>{console.log(p.value),c("inputBlur",d,n)},R=(d,n)=>{c("inputFocus",d,n)},E=(d,n)=>{c("inputChange",d,n)},l=(d,n)=>{c("inputInput",d,n)},D=d=>{var n;(n=p.value)==null||n.resetFields(d)},a=d=>{var n;(n=p.value)==null||n.clearValidate(d)},s=e.ref(!1),_=()=>{window.innerWidth<768?(console.log("屏幕宽度小于768px"),s.value=!0):s.value=!1};return e.onMounted(()=>{var d;b(),(d=p.value)==null||d.resetFields(),window.addEventListener("resize",_)}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",_)}),e.watch(()=>r.fieldList,(d,n)=>{d!==n&&b()}),{...e.toRefs(o),formRef:p,states:o,formOptions:i,onSubmit:h,selectChange:N,radioChange:m,checkChange:x,handleCheckedChange:B,prefixIcon:S,handleClick:w,handleKeyUp:k,resetFieldsTest:D,clearValidateTest:a,dateChange:C,inputBlur:V,inputFocus:R,inputChange:E,inputInput:l,noFormRule:f,phoneWrap:s}}},tl="",il="",U=(r,c)=>{const f=r.__vccOpts||r;for(const[o,p]of c)f[o]=p;return f},M=r=>(e.pushScopeId("data-v-59132be2"),r=r(),e.popScopeId(),r),F={class:"header-title"},T={class:"title-content"},j={key:0,class:"custom-required"},L={key:0,class:"custom-required"},Y=["src"],q={key:0,class:"custom-required"},W={class:"lable"},H={class:"lable_note"},K={key:0,class:"custom-required"},Q={key:0,class:"custom-required"},P={key:0,class:"custom-required"},Z={key:0,class:"custom-required"},G={key:0,class:"custom-required"},J={key:0,class:"date_to"},X={key:0,class:"custom-required"},u={key:0,class:"custom-required"},$={key:0,class:"custom-required"},v={key:0,class:"phone_item_content_before"},ll=M(()=>e.createElementVNode("div",{class:"line_middle"},"-",-1)),el=M(()=>e.createElementVNode("div",{class:"line_middle"},"-",-1)),ol={key:2,class:"line_middle"},al={key:4,class:"line_middle"},nl=M(()=>e.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"39px 0"}},null,-1)),dl={key:0,class:"custom-required"};function sl(r,c,f,o,p,S){const i=e.resolveComponent("el-form-item"),b=e.resolveComponent("el-input"),h=e.resolveComponent("el-col"),N=e.resolveComponent("el-row"),m=e.resolveComponent("el-radio"),x=e.resolveComponent("el-radio-group"),B=e.resolveComponent("el-checkbox"),w=e.resolveComponent("el-checkbox-group"),k=e.resolveComponent("el-option"),C=e.resolveComponent("el-select"),V=e.resolveComponent("el-date-picker"),R=e.resolveComponent("sinosoft-common-button"),E=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(E,e.mergeProps({"hide-required-asterisk":"",onSubmit:c[0]||(c[0]=e.withModifiers(()=>{},["prevent"])),model:f.model},o.formOptions,{"label-position":o.formOptions.labelPosition,ref:"formRef"}),{default:e.withCtx(()=>[e.createVNode(N,{gutter:20},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.fieldList,(l,D)=>e.withDirectives((e.openBlock(),e.createBlock(h,{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:D},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(l.style)},[l.type==="title"?(e.openBlock(),e.createBlock(i,{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",F,[e.createElementVNode("span",T,e.toDisplayString(l.title),1)])]),_:2},1024)):l.type==="name"&&typeof l.field!="string"&&l.field&&"nameEnFamily"in l.field&&l.rules&&"nameEnFamily"in l.rules?(e.openBlock(),e.createBlock(i,{key:1,label:l.label,disabled:(l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly)&&!l.openDisabled,class:"container_name"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(r.$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(N,{gutter:20},{default:e.withCtx(()=>[e.createVNode(h,{xs:24,sm:12,md:12,lg:12,xl:12},{default:e.withCtx(()=>[l.field.nameEnFamily?(e.openBlock(),e.createBlock(i,{key:0,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules.nameEnFamily,prop:l.field.nameEnFamily,class:"item-name item-name-top"},{default:e.withCtx(()=>[e.createVNode(b,{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||l.isReadonlyNameEnFamily||o.formOptions.isAllReadonly)&&!l.openDisabled?"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||l.isReadonlyNameEnFamily)&&!l.openDisabled,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.createCommentVNode("",!0)]),_:2},1024),e.createVNode(h,{xs:24,sm:12,md:12,lg:12,xl:12},{default:e.withCtx(()=>[l.field.nameEn?(e.openBlock(),e.createBlock(i,{key:0,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules.nameEn,prop:l.field.nameEn,class:"item-name item-name-top"},{default:e.withCtx(()=>[e.createVNode(b,{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||l.isReadonlyNameEn||o.formOptions.isAllReadonly)&&!l.openDisabled?"readonly":""),readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEn,disabled:(l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly||l.isReadonlyNameEn)&&!l.openDisabled,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.createCommentVNode("",!0)]),_:2},1024)]),_:2},1024),e.createVNode(N,{gutter:20},{default:e.withCtx(()=>[e.createVNode(h,{xs:24,sm:12,md:12,lg:12,xl:12},{default:e.withCtx(()=>[l.field.nameChFamily?(e.openBlock(),e.createBlock(i,{key:0,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules.nameChFamily,prop:l.field.nameChFamily,class:"item-name item-name-bottom"},{default:e.withCtx(()=>[e.createVNode(b,{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,"nameChFamily"in l.field?l.field.nameCh:""),maxlength:l.maxlengthNameChFamily,class:e.normalizeClass((l.isReadonly||l.isReadonlyNameChFamily||o.formOptions.isAllReadonly)&&!l.openDisabled?"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||l.isReadonlyNameChFamily)&&!l.openDisabled,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.createCommentVNode("",!0)]),_:2},1024),e.createVNode(h,{xs:24,sm:12,md:12,lg:12,xl:12},{default:e.withCtx(()=>[l.field.nameCh?(e.openBlock(),e.createBlock(i,{key:0,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules.nameCh,prop:l.field.nameCh,class:"item-name item-name-bottom"},{default:e.withCtx(()=>[e.createVNode(b,{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||l.isReadonlyNameCh||o.formOptions.isAllReadonly)&&!l.openDisabled?"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||l.isReadonlyNameCh)&&!l.openDisabled,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.createCommentVNode("",!0)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","disabled"])):l.type==="gender"&&typeof l.field=="string"?(e.openBlock(),e.createBlock(i,{key:2,label:l.label,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules,prop:l.field,class:"radio_row"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(r.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",L,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(x,{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)&&!l.openDisabled,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,s=>(e.openBlock(),e.createBlock(m,{label:s.code,size:"large",key:s.code},{default:e.withCtx(()=>[e.createElementVNode("img",{src:s.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,Y)]),_:2},1032,["label"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])):l.type==="radio"&&typeof l.field=="string"?(e.openBlock(),e.createBlock(i,{key:3,label:l.label,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(r.$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,disabled:(l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly)&&!l.openDisabled,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; "),class:e.normalizeClass(l.ways!=="column"?"radio_row":"")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,s=>(e.openBlock(),e.createBlock(m,{size:"large",label:s.code,key:s.code,disabled:s.isDisabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.name),1)]),_:2},1032,["label","disabled"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange","style","class"])]),_:2},1032,["label","rules","prop","class"])):l.type==="radioNote"&&typeof l.field=="string"?(e.openBlock(),e.createBlock(i,{key:4,label:l.label,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",W,e.toDisplayString(l.labelBefore),1),e.createElementVNode("span",H,e.toDisplayString(l.labelNode),1),l.required?(e.openBlock(),e.createElementBlock("span",K,"*")):e.createCommentVNode("",!0)]),e.createVNode(x,{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)&&!l.openDisabled,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; "),class:e.normalizeClass(l.ways!=="column"?"radio_row":"")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,s=>(e.openBlock(),e.createBlock(m,{size:"large",label:s.code,key:s.code},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.name),1)]),_:2},1032,["label"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange","style","class"])]),_:2},1032,["label","rules","prop","class"])):l.type==="checkbox"&&typeof l.field=="string"?(e.openBlock(),e.createBlock(i,{key:5,label:l.label,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(r.$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(w,{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)&&!l.openDisabled,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,s=>(e.openBlock(),e.createBlock(B,{key:s.code,label:s.code,disabled:s.isDisabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.name),1)]),_:2},1032,["label","disabled"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])):l.type==="checkboxRadio"&&typeof l.field=="string"?(e.openBlock(),e.createBlock(i,{key:6,label:l.label,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(r.$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(w,{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)&&!l.openDisabled,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,s=>(e.openBlock(),e.createBlock(B,{key:s.code,label:s.code,disabled:s.isDisabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.name),1)]),_:2},1032,["label","disabled"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])):l.type==="select"&&typeof l.field=="string"?(e.openBlock(),e.createBlock(i,{key:7,label:l.label,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules,disabled:(l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly)&&!l.openDisabled,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(r.$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.createVNode(C,{"popper-class":"selectTriangles",teleported:!1,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,onChange:a=>o.selectChange(a,l.field),disabled:(l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly)&&!l.openDisabled,placeholder:l.placeholder,class:e.normalizeClass((l.isReadonly||o.formOptions.isAllReadonly)&&!l.openDisabled?"selectreadonly":""),clearable:l.clearable,"fit-input-width":!0},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,s=>(e.openBlock(),e.createBlock(k,{key:s.code,label:s.name,value:s.code},null,8,["label","value"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","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"&&typeof l.field=="string"?(e.openBlock(),e.createBlock(i,{key:8,label:l.label,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules,prop:l.field,class:"date_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(r.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",G,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(V,{"popper-class":"selectTriangles",teleported:!1,format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:a=>o.dateChange(a,typeof l.field=="string"?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)&&!l.openDisabled,readonly:l.readonly,type:l.type,placeholder:l.placeholder||l.label,class:e.normalizeClass((l.isReadonly||o.formOptions.isAllReadonly)&&!l.openDisabled?"readonly":"")},null,8,["disabled-date","onChange","prefix-icon","modelValue","onUpdate:modelValue","disabled","readonly","type","placeholder","class"]),l.showTo?(e.openBlock(),e.createElementBlock("span",J,e.toDisplayString(l.showTo),1)):e.createCommentVNode("",!0)]),_:2},1032,["label","rules","prop"])):l.type==="daterange"&&typeof l.field=="string"?(e.openBlock(),e.createBlock(i,{key:9,label:l.label,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(r.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",X,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(V,{"popper-class":"selectTriangles",teleported:!1,format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:a=>o.dateChange(a,typeof l.field=="string"?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",class:e.normalizeClass((l.isReadonly||o.formOptions.isAllReadonly)&&!l.openDisabled?"readonly":"")},null,8,["disabled-date","onChange","modelValue","onUpdate:modelValue","prefix-icon","start-placeholder","end-placeholder","class"])]),_:2},1032,["label","rules","prop"])):l.type==="slotItem"?(e.openBlock(),e.createBlock(i,{key:10,label:l.label,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules,prop:l.field,class:"rule_err"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(r.$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.renderSlot(r.$slots,l.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])):l.type==="phone"&&typeof l.field!="string"&&l.field&&"phoneNumber"in l.field&&l.rules&&l.field.phoneNumber&&"phoneNumber"in l.rules?(e.openBlock(),e.createBlock(i,{key:11,label:l.label,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules.phoneNumber,prop:l.field.phoneNumber,class:"phone_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(r.$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",$,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>{var a,s,_,d;return[e.createElementVNode("div",{class:e.normalizeClass(o.phoneWrap?["phone_item_content","phone_item_content_wrap"]:"phone_item_content")},[o.phoneWrap?(e.openBlock(),e.createElementBlock("div",v,[l.field.nationCode?(e.openBlock(),e.createBlock(C,{key:0,"popper-class":"selectTriangles",teleported:!1,disabled:(l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly||l.isReadonlyNation)&&!l.openDisabled,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||l.isReadonlyNation||o.formOptions.isAllReadonly)&&!l.openDisabled?"selectreadonly":""),style:e.normalizeStyle("width:"+l.widthNation),"fit-input-width":!0},{default:e.withCtx(()=>{var n;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((n=l.nationOptions)==null?void 0:n.data,(t,y)=>(e.openBlock(),e.createBlock(k,{label:t.name,value:t.code,key:y},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder","class","style"])):e.createCommentVNode("",!0),ll,l.field.areaCode?(e.openBlock(),e.createBlock(C,{key:1,"popper-class":"selectTriangles",teleported:!1,disabled:(l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly||l.isReadonlyArea)&&!l.openDisabled,modelValue:o.states.model[l.field.areaCode],"onUpdate:modelValue":n=>o.states.model[l.field.areaCode]=n,placeholder:((s=l.areaOptions)==null?void 0:s.placeholder)||"",class:e.normalizeClass((l.isReadonly||l.isReadonlyArea||o.formOptions.isAllReadonly)&&!l.openDisabled?"selectreadonly":"areaCode_select"),style:e.normalizeStyle("width:"+l.widthArea),"fit-input-width":!0},{default:e.withCtx(()=>{var n;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((n=l.areaOptions)==null?void 0:n.data,(t,y)=>(e.openBlock(),e.createBlock(k,{label:t.name,value:t.code,key:y},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder","class","style"])):e.createCommentVNode("",!0),el])):e.createCommentVNode("",!0),l.field.nationCode&&!o.phoneWrap?(e.openBlock(),e.createBlock(C,{key:1,"popper-class":"selectTriangles",teleported:!1,disabled:(l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly||l.isReadonlyNation)&&!l.openDisabled,modelValue:o.states.model[l.field.nationCode],"onUpdate:modelValue":n=>o.states.model[l.field.nationCode]=n,placeholder:((_=l.nationOptions)==null?void 0:_.placeholder)||"",class:e.normalizeClass((l.isReadonly||l.isReadonlyNation||o.formOptions.isAllReadonly)&&!l.openDisabled?"selectreadonly":""),style:e.normalizeStyle("width:"+l.widthNation),"fit-input-width":!0},{default:e.withCtx(()=>{var n;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((n=l.nationOptions)==null?void 0:n.data,(t,y)=>(e.openBlock(),e.createBlock(k,{label:t.name,value:t.code,key:y},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder","class","style"])):e.createCommentVNode("",!0),o.phoneWrap?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ol,"-")),l.field.areaCode&&!o.phoneWrap?(e.openBlock(),e.createBlock(C,{key:3,"popper-class":"selectTriangles",teleported:!1,disabled:(l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly||l.isReadonlyArea)&&!l.openDisabled,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||l.isReadonlyArea||o.formOptions.isAllReadonly)&&!l.openDisabled?"selectreadonly":"areaCode_select"),style:e.normalizeStyle("width:"+l.widthArea),"fit-input-width":!0},{default:e.withCtx(()=>{var n;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((n=l.areaOptions)==null?void 0:n.data,(t,y)=>(e.openBlock(),e.createBlock(k,{label:t.name,value:t.code,key:y},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder","class","style"])):e.createCommentVNode("",!0),o.phoneWrap?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",al,"-")),l.field.phoneNumber?(e.openBlock(),e.createBlock(b,{key:5,onBlur:n=>o.inputBlur(n,typeof l.field=="string"?l.field:""),onFocus:n=>o.inputFocus(n,typeof l.field=="string"?l.field:""),onChange:n=>o.inputChange(n,typeof l.field=="string"?l.field:""),onInput:n=>o.inputInput(n,typeof l.field=="string"?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||l.isReadonlyPhoneNumber)&&!l.openDisabled,placeholder:l.placeholder||"",class:e.normalizeClass((l.isReadonly||l.isReadonlyPhoneNumber||o.formOptions.isAllReadonly)&&!l.openDisabled?"readonly":""),clearable:l.clearable},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","disabled","placeholder","class","clearable"])):e.createCommentVNode("",!0)],2)]}),_:2},1032,["label","rules","prop"])):l.type==="line"?(e.openBlock(),e.createBlock(i,{key:12,label:l.label},{default:e.withCtx(()=>[nl]),_:2},1032,["label"])):(e.openBlock(),e.createBlock(i,{key:13,rules:l.isHide||o.noFormRule||l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly?[]:l.rules,prop:l.field,class:e.normalizeClass(l.prepend?"input-item":"")},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(r.$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",dl,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(b,{onBlur:a=>o.inputBlur(a,typeof l.field=="string"?l.field:""),onFocus:a=>o.inputFocus(a,typeof l.field=="string"?l.field:""),onChange:a=>o.inputChange(a,typeof l.field=="string"?l.field:""),onInput:a=>o.inputInput(a,typeof l.field=="string"?l.field:""),maxlength:l.maxlength,modelValue:o.states.model[typeof l.field=="string"?l.field:""],"onUpdate:modelValue":a=>o.states.model[typeof l.field=="string"?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)&&!l.openDisabled,showPassword:l.showPassword,clearable:l.clearable,class:e.normalizeClass((l.isReadonly||o.formOptions.isAllReadonly)&&!l.openDisabled?"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(i,{class:"btnsItem"},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"buttons",{model:f.model,onBtnClick:o.onSubmit},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.formOptions.btnConfig,(l,D)=>(e.openBlock(),e.createElementBlock("div",{key:D},[l.isShow?(e.openBlock(),e.createBlock(R,{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 A=U(I,[["render",sl],["__scopeId","data-v-59132be2"]]);function O(r,c={}){O.installed||(O.installed=!0,r.component("common-el-form",A))}return A.install=O,A});
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";[data-v-
|
|
1
|
+
@charset "UTF-8";[data-v-59132be2] .el-date-editor{height:60px!important;width:100%!important}[data-v-59132be2] .el-form-item{margin-bottom:12px}[data-v-59132be2] .el-input__inner{height:42px;color:#1d1d1d}[data-v-59132be2] .el-card__body{padding:0}[data-v-59132be2] .el-form-item__label{height:auto!important;margin-bottom:4px!important}.form-item-title[data-v-59132be2]{width:100%}[data-v-59132be2] .el-checkbox-group .el-checkbox{display:flex}.rule_err[data-v-59132be2] .el-form-item__content,.radio_Note[data-v-59132be2] .el-form-item__content{display:block}.radio_Note .lable[data-v-59132be2]{font-size:16px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Regular}.radio_Note .lable_note[data-v-59132be2]{font-size:16px;line-height:22px;color:#6e6e73;font-weight:400;font-family:Roboto Regular}.container_name[data-v-59132be2]{margin-bottom:0}.container_name[data-v-59132be2] .el-form-item__content{width:calc(100% + 20px)}.container_name .el-row[data-v-59132be2],.container_name .el-row[data-v-59132be2] .el-form-item__content{width:100%}.container_name[data-v-59132be2] .el-form-item__content{align-items:start}.container_name[data-v-59132be2] .el-form-item{margin-bottom:0}.container_name .item-name[data-v-59132be2]{width:100%;box-sizing:border-box}.container_name .item-name-top[data-v-59132be2]{margin-bottom:12px;padding-right:0}.container_name .item-name-bottom[data-v-59132be2]{margin-bottom:12px}.container_name[data-v-59132be2] .is-error{margin-bottom:24px}.container_name[data-v-59132be2] .el-form-item__error{padding-top:4px!important;font-size:14px;line-height:1;color:#fd3d38;font-weight:400;font-family:Roboto Regular}.btnsItem[data-v-59132be2]{width:100%;margin:0 auto;justify-content:right}.btnsItem[data-v-59132be2] .el-form-item__content{justify-content:right}label[data-v-59132be2]{display:block}.title-content[data-v-59132be2]{font-size:22px;line-height:30px;color:#1d1d1d;font-weight:300;font-family:Roboto light}[data-v-59132be2] .el-input__wrapper{height:60px;border-radius:8px;padding:1px 16px}.date_item[data-v-59132be2] .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}.date_item[data-v-59132be2] .el-form-item__error{padding-top:8px!important}.phone_item[data-v-59132be2] .el-form-item__content{display:flex}.phone_item[data-v-59132be2] .el-form-item__content .el-select{width:180.03px}.phone_item[data-v-59132be2] .el-form-item__content .line_middle{margin:0 4px}.phone_item[data-v-59132be2] .el-input__suffix-inner{width:14px;padding-right:3px}.phone_item .phone_item_content[data-v-59132be2]{display:flex;flex-wrap:nowrap;align-items:center;width:100%}.phone_item .phone_item_content .phone_item_content_before[data-v-59132be2]{display:flex;flex-wrap:nowrap;align-items:center;width:100%;margin-bottom:12px}.phone_item .phone_item_content[data-v-59132be2] .readonly .el-input__wrapper{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #c7c8ca inset}.phone_item .phone_item_content[data-v-59132be2] .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-59132be2] .selectreadonly .el-input__wrapper{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #c7c8ca inset}.phone_item .phone_item_content[data-v-59132be2] .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-59132be2] .selectreadonly :deep(.el-input.is-disabled .el-input__inner){-webkit-text-fill-color:#0b0b0b!important}.phone_item .phone_item_content_wrap[data-v-59132be2]{flex-wrap:wrap}.input-item[data-v-59132be2] .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 0 0 16px;font-size:14px;line-height:22px;color:#0b0b0b;font-weight:400;font-family:Roboto Regular}.input-item[data-v-59132be2] .el-input__wrapper{border-left:0px!important;border-right:0px!important;box-shadow:none!important;border-radius:0!important;padding-left:8px;padding-right:8px;border-top:1px solid #c7c8ca;border-bottom:1px solid #c7c8ca}.input-item[data-v-59132be2] .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 0 0;font-size:14px;line-height:22px;color:#0b0b0b;font-weight:400;font-family:Roboto Regular}[data-v-59132be2] .is-error .areaCode_select .el-input__wrapper{box-shadow:none!important;border:1px solid #c7c8ca!important}[data-v-59132be2] .el-select{width:100%}[data-v-59132be2] .el-select .el-icon{height:15px}[data-v-59132be2] .el-select .el-icon svg{display:none}[data-v-59132be2] .el-select .el-icon:before{content:"";background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjA3MTYgNC4wMDAwMUgxMS4wNjcxQzEwLjk5ODggNC4wMDAwMSAxMC45MzQ1IDQuMDMzNDkgMTAuODk0NCA0LjA4ODRMNy4wODk0NSA5LjMzMzA0TDMuMjg0NTQgNC4wODg0QzMuMjQ0MzYgNC4wMzM0OSAzLjE4MDA3IDQuMDAwMDEgMy4xMTE3NyA0LjAwMDAxSDIuMTA3M0MyLjAyMDI1IDQuMDAwMDEgMS45NjkzNiA0LjA5OTExIDIuMDIwMjUgNC4xNzAxTDYuNzQyNTcgMTAuNjgwNEM2LjkxNCAxMC45MTYxIDcuMjY0ODkgMTAuOTE2MSA3LjQzNDk4IDEwLjY4MDRMMTIuMTU3MyA0LjE3MDFDMTIuMjA5NSA0LjA5OTExIDEyLjE1ODYgNC4wMDAwMSAxMi4wNzE2IDQuMDAwMDFWNC4wMDAwMVoiIGZpbGw9IiNDN0M4Q0EiLz4KPC9zdmc+Cg==) center center no-repeat;position:absolute;width:15px;height:15px}.custom-required[data-v-59132be2]{content:"*";color:#e2a650;margin-left:4px}.item_tips_blow[data-v-59132be2]{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-59132be2] .readonly .el-input-group__prepend,[data-v-59132be2] .readonly .el-input-group__append{background-color:#f3f3f3!important}[data-v-59132be2] .readonly .el-input__wrapper,[data-v-59132be2] .readonly .el-textarea{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #c7c8ca inset}[data-v-59132be2] .readonly .el-input__wrapper .el-input__inner,[data-v-59132be2] .readonly .el-input__wrapper .el-textarea__inner,[data-v-59132be2] .readonly .el-textarea .el-input__inner,[data-v-59132be2] .readonly .el-textarea .el-textarea__inner,[data-v-59132be2] .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-59132be2] .selectreadonly .el-input__wrapper{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #c7c8ca inset}[data-v-59132be2] .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-59132be2] .selectreadonly :deep(.el-input.is-disabled .el-input__inner){-webkit-text-fill-color:#0b0b0b!important}[data-v-59132be2] .el-input.is-disabled .el-input__wrapper{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #d9d9d9 inset}[data-v-59132be2] .el-input__wrapper{border:1px solid #c7c8ca;box-shadow:none!important}[data-v-59132be2] .is-error{margin-bottom:28px}[data-v-59132be2] .is-error .el-input__wrapper{border:1px solid #fd3d38;box-shadow:none!important}[data-v-59132be2] .is-error .el-input-group__prepend{border:1px solid #fd3d38!important;border-right:0px!important}[data-v-59132be2] .is-error .el-input-group__append{border:1px solid #fd3d38!important;border-left:0px!important}[data-v-59132be2] .el-form-item__error{padding-top:4px!important;font-size:14px;line-height:22px;color:#fd3d38;font-weight:400;font-family:Roboto Regular}[data-v-59132be2] .el-textarea__inner{border:1px solid #c7c8ca;box-shadow:none}.radio_row .el-radio.el-radio--large[data-v-59132be2]{height:64px;line-height:64px}.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{min-height:40px!important;line-height:40px;height:auto;white-space:initial}
|