sinosoft-common-form 1.4.5 → 1.4.6
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 +149 -146
- package/common-form.umd.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
package/common-form.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as q, reactive as W, shallowRef as Q, h as P, computed as Z, onMounted as G, watch as J, toRefs as X, nextTick as $, resolveComponent as M, openBlock as
|
|
1
|
+
import { ref as q, reactive as W, shallowRef as Q, h as P, computed as Z, onMounted as G, watch as J, toRefs as X, nextTick as $, resolveComponent as M, openBlock as d, createBlock as y, mergeProps as ll, withModifiers as el, withCtx as s, createVNode as i, createElementBlock as r, Fragment as x, renderList as w, withDirectives as ol, createElementVNode as k, normalizeStyle as f, toDisplayString as c, createTextVNode as g, createCommentVNode as _, renderSlot as C, normalizeClass as N, withKeys as v, createSlots as al, vShow as nl, pushScopeId as dl, popScopeId as sl } from "vue";
|
|
2
2
|
const rl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==", ul = {
|
|
3
3
|
props: {
|
|
4
4
|
fieldList: {
|
|
@@ -19,53 +19,53 @@ const rl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
19
19
|
}
|
|
20
20
|
}), p = Z(() => Object.assign([], t.options)), I = () => {
|
|
21
21
|
e.model = t.model;
|
|
22
|
-
}, O = (
|
|
22
|
+
}, O = (n, a, u) => {
|
|
23
23
|
D.value && (a ? (A.value = !1, $(() => {
|
|
24
24
|
D.value.validate((b) => {
|
|
25
25
|
if (b)
|
|
26
|
-
h(u || "submit", e.model,
|
|
26
|
+
h(u || "submit", e.model, n);
|
|
27
27
|
else
|
|
28
28
|
return !1;
|
|
29
29
|
});
|
|
30
|
-
})) : u === "reset" ? D.value.resetFields() : h(u || "submit", e.model,
|
|
31
|
-
}, V = (
|
|
32
|
-
h("selectChange",
|
|
33
|
-
}, F = (
|
|
34
|
-
h("radioChange",
|
|
35
|
-
}, z = (
|
|
36
|
-
h("checkChange",
|
|
37
|
-
},
|
|
30
|
+
})) : u === "reset" ? D.value.resetFields() : h(u || "submit", e.model, n));
|
|
31
|
+
}, V = (n, a) => {
|
|
32
|
+
h("selectChange", n, a);
|
|
33
|
+
}, F = (n, a) => {
|
|
34
|
+
h("radioChange", n, a);
|
|
35
|
+
}, z = (n, a) => {
|
|
36
|
+
h("checkChange", n, a);
|
|
37
|
+
}, R = (n, a) => {
|
|
38
38
|
const u = e.model[a].length;
|
|
39
39
|
if (u === 1) {
|
|
40
|
-
h("checkChange",
|
|
40
|
+
h("checkChange", n, a);
|
|
41
41
|
return;
|
|
42
42
|
} else
|
|
43
|
-
u > 1
|
|
44
|
-
},
|
|
45
|
-
O(
|
|
46
|
-
}, T = (
|
|
47
|
-
|
|
48
|
-
}, L = (
|
|
49
|
-
h("dateChange",
|
|
50
|
-
}, S = (
|
|
51
|
-
console.log(D.value), h("inputBlur",
|
|
52
|
-
}, E = (
|
|
53
|
-
h("inputFocus",
|
|
54
|
-
}, m = (
|
|
55
|
-
h("inputChange",
|
|
56
|
-
}, l = (
|
|
57
|
-
h("inputInput",
|
|
58
|
-
}, j = (
|
|
59
|
-
D.value.resetFields(
|
|
60
|
-
}, o = (
|
|
61
|
-
D.value.clearValidate(
|
|
43
|
+
u > 1 ? (e.model[a].shift(), h("checkChange", n, a)) : u < 1 && h("checkChange", n, a);
|
|
44
|
+
}, U = (n, a, u) => {
|
|
45
|
+
O(n, a, u);
|
|
46
|
+
}, T = (n, a) => {
|
|
47
|
+
n && (a == null ? void 0 : a.key) === "Enter" && O(void 0, !0, "submit");
|
|
48
|
+
}, L = (n, a) => {
|
|
49
|
+
h("dateChange", n, a);
|
|
50
|
+
}, S = (n, a) => {
|
|
51
|
+
console.log(D.value), h("inputBlur", n, a);
|
|
52
|
+
}, E = (n, a) => {
|
|
53
|
+
h("inputFocus", n, a);
|
|
54
|
+
}, m = (n, a) => {
|
|
55
|
+
h("inputChange", n, a);
|
|
56
|
+
}, l = (n, a) => {
|
|
57
|
+
h("inputInput", n, a);
|
|
58
|
+
}, j = (n) => {
|
|
59
|
+
D.value.resetFields(n);
|
|
60
|
+
}, o = (n) => {
|
|
61
|
+
D.value.clearValidate(n);
|
|
62
62
|
};
|
|
63
63
|
return G(() => {
|
|
64
64
|
I(), D.value.resetFields();
|
|
65
65
|
}), J(
|
|
66
66
|
() => t.fieldList,
|
|
67
|
-
(
|
|
68
|
-
|
|
67
|
+
(n, a) => {
|
|
68
|
+
n !== a && I();
|
|
69
69
|
}
|
|
70
70
|
), {
|
|
71
71
|
...X(e),
|
|
@@ -76,9 +76,9 @@ const rl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
76
76
|
selectChange: V,
|
|
77
77
|
radioChange: F,
|
|
78
78
|
checkChange: z,
|
|
79
|
-
handleCheckedChange:
|
|
79
|
+
handleCheckedChange: R,
|
|
80
80
|
prefixIcon: Y,
|
|
81
|
-
handleClick:
|
|
81
|
+
handleClick: U,
|
|
82
82
|
handleKeyUp: T,
|
|
83
83
|
resetFieldsTest: j,
|
|
84
84
|
clearValidateTest: o,
|
|
@@ -96,7 +96,7 @@ const tl = (t, h) => {
|
|
|
96
96
|
for (const [e, D] of h)
|
|
97
97
|
A[e] = D;
|
|
98
98
|
return A;
|
|
99
|
-
}, B = (t) => (dl("data-v-
|
|
99
|
+
}, B = (t) => (dl("data-v-95e2ae5a"), t = t(), sl(), t), yl = { class: "header-title" }, cl = { class: "title-content" }, il = {
|
|
100
100
|
key: 0,
|
|
101
101
|
class: "custom-required"
|
|
102
102
|
}, pl = {
|
|
@@ -132,16 +132,16 @@ const tl = (t, h) => {
|
|
|
132
132
|
}, Al = {
|
|
133
133
|
key: 0,
|
|
134
134
|
class: "custom-required"
|
|
135
|
-
}, Il = { class: "phone_item_content" }, Ol = /* @__PURE__ */ B(() => /* @__PURE__ */ k("div", { class: "line_middle" }, " - ", -1)), Vl = /* @__PURE__ */ B(() => /* @__PURE__ */ k("div", { class: "line_middle" }, " - ", -1)),
|
|
135
|
+
}, Il = { class: "phone_item_content" }, Ol = /* @__PURE__ */ B(() => /* @__PURE__ */ k("div", { class: "line_middle" }, " - ", -1)), Vl = /* @__PURE__ */ B(() => /* @__PURE__ */ k("div", { class: "line_middle" }, " - ", -1)), Rl = /* @__PURE__ */ B(() => /* @__PURE__ */ k("div", {
|
|
136
136
|
class: "line",
|
|
137
137
|
style: { "border-top": "1px solid #e8e8e8", width: "100%", height: "0px", margin: "39px 0" }
|
|
138
|
-
}, null, -1)),
|
|
138
|
+
}, null, -1)), Ul = {
|
|
139
139
|
key: 0,
|
|
140
140
|
class: "custom-required"
|
|
141
141
|
};
|
|
142
142
|
function jl(t, h, A, e, D, Y) {
|
|
143
|
-
const p = M("el-form-item"), I = M("el-input"), O = M("el-radio"), V = M("el-radio-group"), F = M("el-checkbox"), z = M("el-checkbox-group"),
|
|
144
|
-
return
|
|
143
|
+
const p = M("el-form-item"), I = M("el-input"), O = M("el-radio"), V = M("el-radio-group"), F = M("el-checkbox"), z = M("el-checkbox-group"), R = M("el-option"), U = M("el-select"), T = M("el-date-picker"), L = M("el-col"), S = M("el-row"), E = M("sinosoft-common-button"), m = M("el-form");
|
|
144
|
+
return d(), y(m, ll({
|
|
145
145
|
"hide-required-asterisk": "",
|
|
146
146
|
onSubmit: h[0] || (h[0] = el(() => {
|
|
147
147
|
}, ["prevent"])),
|
|
@@ -153,7 +153,7 @@ function jl(t, h, A, e, D, Y) {
|
|
|
153
153
|
default: s(() => [
|
|
154
154
|
i(S, { gutter: 20 }, {
|
|
155
155
|
default: s(() => [
|
|
156
|
-
(
|
|
156
|
+
(d(!0), r(x, null, w(A.fieldList, (l, j) => ol((d(), y(L, {
|
|
157
157
|
xs: l.xs ? l.xs : 24,
|
|
158
158
|
sm: l.sm ? l.sm : 24,
|
|
159
159
|
md: l.md ? l.md : 8,
|
|
@@ -165,26 +165,26 @@ function jl(t, h, A, e, D, Y) {
|
|
|
165
165
|
k("div", {
|
|
166
166
|
style: f(l.style)
|
|
167
167
|
}, [
|
|
168
|
-
l.type === "title" ? (
|
|
168
|
+
l.type === "title" ? (d(), y(p, { key: 0 }, {
|
|
169
169
|
default: s(() => [
|
|
170
|
-
k("div",
|
|
171
|
-
k("span",
|
|
170
|
+
k("div", yl, [
|
|
171
|
+
k("span", cl, c(l.title), 1)
|
|
172
172
|
])
|
|
173
173
|
]),
|
|
174
174
|
_: 2
|
|
175
|
-
}, 1024)) : l.type === "name" ? (
|
|
175
|
+
}, 1024)) : l.type === "name" ? (d(), y(p, {
|
|
176
176
|
key: 1,
|
|
177
177
|
label: l.label,
|
|
178
178
|
disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
|
|
179
179
|
class: "container_name"
|
|
180
180
|
}, {
|
|
181
181
|
label: s(() => [
|
|
182
|
-
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (
|
|
182
|
+
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
|
|
183
183
|
key: 0,
|
|
184
184
|
style: f(l.labelStyle)
|
|
185
185
|
}, [
|
|
186
|
-
g(
|
|
187
|
-
l.required ? (
|
|
186
|
+
g(c(l.label) + " ", 1),
|
|
187
|
+
l.required ? (d(), r("span", il, "*")) : _("", !0)
|
|
188
188
|
], 4))
|
|
189
189
|
]),
|
|
190
190
|
default: s(() => [
|
|
@@ -199,7 +199,7 @@ function jl(t, h, A, e, D, Y) {
|
|
|
199
199
|
onFocus: (o) => e.inputFocus(o, l.field.nameEnFamily),
|
|
200
200
|
onChange: (o) => e.inputChange(o, l.field.nameEnFamily),
|
|
201
201
|
onInput: (o) => e.inputInput(o, l.field.nameEnFamily),
|
|
202
|
-
class: N(l.isReadonly || e.formOptions.isAllReadonly ? "readonly" : ""),
|
|
202
|
+
class: N(l.isReadonly || l.isReadonlyNameEnFamily || e.formOptions.isAllReadonly ? "readonly" : ""),
|
|
203
203
|
maxlength: l.maxlengthNameEnFamily,
|
|
204
204
|
modelValue: e.states.model[l.field.nameEnFamily],
|
|
205
205
|
"onUpdate:modelValue": (o) => e.states.model[l.field.nameEnFamily] = o,
|
|
@@ -226,7 +226,7 @@ function jl(t, h, A, e, D, Y) {
|
|
|
226
226
|
maxlength: l.maxlengthNameEn,
|
|
227
227
|
modelValue: e.states.model[l.field.nameEn],
|
|
228
228
|
"onUpdate:modelValue": (o) => e.states.model[l.field.nameEn] = o,
|
|
229
|
-
class: N(l.isReadonly || e.formOptions.isAllReadonly ? "readonly" : ""),
|
|
229
|
+
class: N(l.isReadonly || l.isReadonlyNameEn || e.formOptions.isAllReadonly ? "readonly" : ""),
|
|
230
230
|
readonly: l.readonly,
|
|
231
231
|
type: l.type ? l.type : "text",
|
|
232
232
|
placeholder: l.placeholderNameEn,
|
|
@@ -248,7 +248,7 @@ function jl(t, h, A, e, D, Y) {
|
|
|
248
248
|
onChange: (o) => e.inputChange(o, l.field.nameChFamily),
|
|
249
249
|
onInput: (o) => e.inputInput(o, l.field.nameChFamily),
|
|
250
250
|
maxlength: l.maxlengthNameChFamily,
|
|
251
|
-
class: N(l.isReadonly || e.formOptions.isAllReadonly ? "readonly" : ""),
|
|
251
|
+
class: N(l.isReadonly || l.isReadonlyNameChFamily || e.formOptions.isAllReadonly ? "readonly" : ""),
|
|
252
252
|
modelValue: e.states.model[l.field.nameChFamily],
|
|
253
253
|
"onUpdate:modelValue": (o) => e.states.model[l.field.nameChFamily] = o,
|
|
254
254
|
readonly: l.readonly,
|
|
@@ -271,7 +271,7 @@ function jl(t, h, A, e, D, Y) {
|
|
|
271
271
|
onFocus: (o) => e.inputFocus(o, l.field.nameCh),
|
|
272
272
|
onChange: (o) => e.inputChange(o, l.field.nameCh),
|
|
273
273
|
onInput: (o) => e.inputInput(o, l.field.nameCh),
|
|
274
|
-
class: N(l.isReadonly || e.formOptions.isAllReadonly ? "readonly" : ""),
|
|
274
|
+
class: N(l.isReadonly || l.isReadonlyNameCh || e.formOptions.isAllReadonly ? "readonly" : ""),
|
|
275
275
|
maxlength: l.maxlengthNameCh,
|
|
276
276
|
modelValue: e.states.model[l.field.nameCh],
|
|
277
277
|
"onUpdate:modelValue": (o) => e.states.model[l.field.nameCh] = o,
|
|
@@ -286,19 +286,19 @@ function jl(t, h, A, e, D, Y) {
|
|
|
286
286
|
}, 1032, ["rules", "prop"])
|
|
287
287
|
]),
|
|
288
288
|
_: 2
|
|
289
|
-
}, 1032, ["label", "disabled"])) : l.type === "gender" ? (
|
|
289
|
+
}, 1032, ["label", "disabled"])) : l.type === "gender" ? (d(), y(p, {
|
|
290
290
|
key: 2,
|
|
291
291
|
label: l.label,
|
|
292
292
|
rules: l.isHide || e.noFormRule ? [] : l.rules,
|
|
293
293
|
prop: l.field
|
|
294
294
|
}, {
|
|
295
295
|
label: s(() => [
|
|
296
|
-
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (
|
|
296
|
+
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
|
|
297
297
|
key: 0,
|
|
298
298
|
style: f(l.labelStyle)
|
|
299
299
|
}, [
|
|
300
|
-
g(
|
|
301
|
-
l.required ? (
|
|
300
|
+
g(c(l.label) + " ", 1),
|
|
301
|
+
l.required ? (d(), r("span", pl, "*")) : _("", !0)
|
|
302
302
|
], 4))
|
|
303
303
|
]),
|
|
304
304
|
default: s(() => [
|
|
@@ -311,16 +311,16 @@ function jl(t, h, A, e, D, Y) {
|
|
|
311
311
|
default: s(() => {
|
|
312
312
|
var o;
|
|
313
313
|
return [
|
|
314
|
-
(
|
|
314
|
+
(d(!0), r(x, null, w((o = l.options) == null ? void 0 : o.data, (n) => {
|
|
315
315
|
var a, u;
|
|
316
|
-
return
|
|
317
|
-
label:
|
|
316
|
+
return d(), y(O, {
|
|
317
|
+
label: n[((a = l.options) == null ? void 0 : a.valueKey) || "code"],
|
|
318
318
|
size: "large",
|
|
319
|
-
key:
|
|
319
|
+
key: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"]
|
|
320
320
|
}, {
|
|
321
321
|
default: s(() => [
|
|
322
322
|
k("img", {
|
|
323
|
-
src:
|
|
323
|
+
src: n.code === "M" ? "http://192.168.5.200:9000/test/sex_img_M.png" : "http://192.168.5.200:9000/test/sex_img_F.png",
|
|
324
324
|
style: { width: "44px", height: "44px", "margin-bottom": "-15px", "margin-left": "4px" },
|
|
325
325
|
alt: ""
|
|
326
326
|
}, null, 8, bl)
|
|
@@ -334,7 +334,7 @@ function jl(t, h, A, e, D, Y) {
|
|
|
334
334
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
|
|
335
335
|
]),
|
|
336
336
|
_: 2
|
|
337
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "radio" ? (
|
|
337
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "radio" ? (d(), y(p, {
|
|
338
338
|
key: 3,
|
|
339
339
|
label: l.label,
|
|
340
340
|
rules: l.isHide || e.noFormRule ? [] : l.rules,
|
|
@@ -342,12 +342,12 @@ function jl(t, h, A, e, D, Y) {
|
|
|
342
342
|
class: N([l.labelNode ? "radio_Note" : "rule_err"])
|
|
343
343
|
}, {
|
|
344
344
|
label: s(() => [
|
|
345
|
-
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (
|
|
345
|
+
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
|
|
346
346
|
key: 0,
|
|
347
347
|
style: f(l.labelStyle)
|
|
348
348
|
}, [
|
|
349
|
-
g(
|
|
350
|
-
l.required ? (
|
|
349
|
+
g(c(l.label) + " ", 1),
|
|
350
|
+
l.required ? (d(), r("span", fl, "*")) : _("", !0)
|
|
351
351
|
], 4))
|
|
352
352
|
]),
|
|
353
353
|
default: s(() => [
|
|
@@ -363,17 +363,17 @@ function jl(t, h, A, e, D, Y) {
|
|
|
363
363
|
default: s(() => {
|
|
364
364
|
var o;
|
|
365
365
|
return [
|
|
366
|
-
(
|
|
366
|
+
(d(!0), r(x, null, w((o = l.options) == null ? void 0 : o.data, (n) => {
|
|
367
367
|
var a, u;
|
|
368
|
-
return
|
|
368
|
+
return d(), y(O, {
|
|
369
369
|
size: "large",
|
|
370
|
-
label:
|
|
371
|
-
key:
|
|
370
|
+
label: n[((a = l.options) == null ? void 0 : a.valueKey) || "code"],
|
|
371
|
+
key: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"]
|
|
372
372
|
}, {
|
|
373
373
|
default: s(() => {
|
|
374
374
|
var b;
|
|
375
375
|
return [
|
|
376
|
-
g(
|
|
376
|
+
g(c(n[((b = l.options) == null ? void 0 : b.labelkey) || "name"]), 1)
|
|
377
377
|
];
|
|
378
378
|
}),
|
|
379
379
|
_: 2
|
|
@@ -385,7 +385,7 @@ function jl(t, h, A, e, D, Y) {
|
|
|
385
385
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange", "style"])
|
|
386
386
|
]),
|
|
387
387
|
_: 2
|
|
388
|
-
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "radioNote" ? (
|
|
388
|
+
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "radioNote" ? (d(), y(p, {
|
|
389
389
|
key: 4,
|
|
390
390
|
label: l.label,
|
|
391
391
|
rules: l.isHide || e.noFormRule ? [] : l.rules,
|
|
@@ -394,9 +394,9 @@ function jl(t, h, A, e, D, Y) {
|
|
|
394
394
|
}, {
|
|
395
395
|
default: s(() => [
|
|
396
396
|
k("div", null, [
|
|
397
|
-
k("span", hl,
|
|
398
|
-
k("span", gl,
|
|
399
|
-
l.required ? (
|
|
397
|
+
k("span", hl, c(l.labelBefore), 1),
|
|
398
|
+
k("span", gl, c(l.labelNode), 1),
|
|
399
|
+
l.required ? (d(), r("span", _l, "*")) : _("", !0)
|
|
400
400
|
]),
|
|
401
401
|
i(V, {
|
|
402
402
|
modelValue: e.states.model[l.field],
|
|
@@ -410,17 +410,17 @@ function jl(t, h, A, e, D, Y) {
|
|
|
410
410
|
default: s(() => {
|
|
411
411
|
var o;
|
|
412
412
|
return [
|
|
413
|
-
(
|
|
413
|
+
(d(!0), r(x, null, w((o = l.options) == null ? void 0 : o.data, (n) => {
|
|
414
414
|
var a, u;
|
|
415
|
-
return
|
|
415
|
+
return d(), y(O, {
|
|
416
416
|
size: "large",
|
|
417
|
-
label:
|
|
418
|
-
key:
|
|
417
|
+
label: n[((a = l.options) == null ? void 0 : a.valueKey) || "code"],
|
|
418
|
+
key: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"]
|
|
419
419
|
}, {
|
|
420
420
|
default: s(() => {
|
|
421
421
|
var b;
|
|
422
422
|
return [
|
|
423
|
-
g(
|
|
423
|
+
g(c(n[((b = l.options) == null ? void 0 : b.labelkey) || "name"]), 1)
|
|
424
424
|
];
|
|
425
425
|
}),
|
|
426
426
|
_: 2
|
|
@@ -432,19 +432,19 @@ function jl(t, h, A, e, D, Y) {
|
|
|
432
432
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange", "style"])
|
|
433
433
|
]),
|
|
434
434
|
_: 2
|
|
435
|
-
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "checkbox" ? (
|
|
435
|
+
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "checkbox" ? (d(), y(p, {
|
|
436
436
|
key: 5,
|
|
437
437
|
label: l.label,
|
|
438
438
|
rules: l.isHide || e.noFormRule ? [] : l.rules,
|
|
439
439
|
prop: l.field
|
|
440
440
|
}, {
|
|
441
441
|
label: s(() => [
|
|
442
|
-
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (
|
|
442
|
+
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
|
|
443
443
|
key: 0,
|
|
444
444
|
style: f(l.labelStyle)
|
|
445
445
|
}, [
|
|
446
|
-
g(
|
|
447
|
-
l.required ? (
|
|
446
|
+
g(c(l.label) + " ", 1),
|
|
447
|
+
l.required ? (d(), r("span", Ml, "*")) : _("", !0)
|
|
448
448
|
], 4))
|
|
449
449
|
]),
|
|
450
450
|
default: s(() => [
|
|
@@ -460,16 +460,16 @@ function jl(t, h, A, e, D, Y) {
|
|
|
460
460
|
default: s(() => {
|
|
461
461
|
var o;
|
|
462
462
|
return [
|
|
463
|
-
(
|
|
463
|
+
(d(!0), r(x, null, w((o = l.options) == null ? void 0 : o.data, (n) => {
|
|
464
464
|
var a, u;
|
|
465
|
-
return
|
|
466
|
-
key:
|
|
467
|
-
label:
|
|
465
|
+
return d(), y(F, {
|
|
466
|
+
key: n[((a = l.options) == null ? void 0 : a.valueKey) || "code"],
|
|
467
|
+
label: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"]
|
|
468
468
|
}, {
|
|
469
469
|
default: s(() => {
|
|
470
470
|
var b;
|
|
471
471
|
return [
|
|
472
|
-
g(
|
|
472
|
+
g(c(n[((b = l.options) == null ? void 0 : b.labelkey) || "name"]), 1)
|
|
473
473
|
];
|
|
474
474
|
}),
|
|
475
475
|
_: 2
|
|
@@ -481,19 +481,19 @@ function jl(t, h, A, e, D, Y) {
|
|
|
481
481
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
|
|
482
482
|
]),
|
|
483
483
|
_: 2
|
|
484
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "checkboxRadio" ? (
|
|
484
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "checkboxRadio" ? (d(), y(p, {
|
|
485
485
|
key: 6,
|
|
486
486
|
label: l.label,
|
|
487
487
|
rules: l.isHide || e.noFormRule ? [] : l.rules,
|
|
488
488
|
prop: l.field
|
|
489
489
|
}, {
|
|
490
490
|
label: s(() => [
|
|
491
|
-
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (
|
|
491
|
+
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
|
|
492
492
|
key: 0,
|
|
493
493
|
style: f(l.labelStyle)
|
|
494
494
|
}, [
|
|
495
|
-
g(
|
|
496
|
-
l.required ? (
|
|
495
|
+
g(c(l.label) + " ", 1),
|
|
496
|
+
l.required ? (d(), r("span", Cl, "*")) : _("", !0)
|
|
497
497
|
], 4))
|
|
498
498
|
]),
|
|
499
499
|
default: s(() => [
|
|
@@ -509,16 +509,16 @@ function jl(t, h, A, e, D, Y) {
|
|
|
509
509
|
default: s(() => {
|
|
510
510
|
var o;
|
|
511
511
|
return [
|
|
512
|
-
(
|
|
512
|
+
(d(!0), r(x, null, w((o = l.options) == null ? void 0 : o.data, (n) => {
|
|
513
513
|
var a, u;
|
|
514
|
-
return
|
|
515
|
-
key:
|
|
516
|
-
label:
|
|
514
|
+
return d(), y(F, {
|
|
515
|
+
key: n[((a = l.options) == null ? void 0 : a.valueKey) || "code"],
|
|
516
|
+
label: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"]
|
|
517
517
|
}, {
|
|
518
518
|
default: s(() => {
|
|
519
519
|
var b;
|
|
520
520
|
return [
|
|
521
|
-
g(
|
|
521
|
+
g(c(n[((b = l.options) == null ? void 0 : b.labelkey) || "name"]), 1)
|
|
522
522
|
];
|
|
523
523
|
}),
|
|
524
524
|
_: 2
|
|
@@ -530,7 +530,7 @@ function jl(t, h, A, e, D, Y) {
|
|
|
530
530
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
|
|
531
531
|
]),
|
|
532
532
|
_: 2
|
|
533
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "select" ? (
|
|
533
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "select" ? (d(), y(p, {
|
|
534
534
|
key: 7,
|
|
535
535
|
label: l.label,
|
|
536
536
|
rules: l.isHide || e.noFormRule ? [] : l.rules,
|
|
@@ -538,17 +538,18 @@ function jl(t, h, A, e, D, Y) {
|
|
|
538
538
|
prop: l.field
|
|
539
539
|
}, {
|
|
540
540
|
label: s(() => [
|
|
541
|
-
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (
|
|
541
|
+
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
|
|
542
542
|
key: 0,
|
|
543
543
|
style: f(l.labelStyle)
|
|
544
544
|
}, [
|
|
545
|
-
g(
|
|
546
|
-
l.required ? (
|
|
545
|
+
g(c(l.label) + " ", 1),
|
|
546
|
+
l.required ? (d(), r("span", Nl, "*")) : _("", !0)
|
|
547
547
|
], 4))
|
|
548
548
|
]),
|
|
549
549
|
default: s(() => [
|
|
550
|
-
i(
|
|
550
|
+
i(U, {
|
|
551
551
|
"popper-class": "selectTriangles",
|
|
552
|
+
teleported: !1,
|
|
552
553
|
onChange: (o) => e.selectChange(o, l.field),
|
|
553
554
|
modelValue: e.states.model[l.field],
|
|
554
555
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
@@ -561,12 +562,12 @@ function jl(t, h, A, e, D, Y) {
|
|
|
561
562
|
default: s(() => {
|
|
562
563
|
var o;
|
|
563
564
|
return [
|
|
564
|
-
(
|
|
565
|
+
(d(!0), r(x, null, w((o = l.options) == null ? void 0 : o.data, (n) => {
|
|
565
566
|
var a, u, b;
|
|
566
|
-
return
|
|
567
|
-
key:
|
|
568
|
-
label:
|
|
569
|
-
value:
|
|
567
|
+
return d(), y(R, {
|
|
568
|
+
key: n[((a = l.options) == null ? void 0 : a.valueKey) || "code"],
|
|
569
|
+
label: n[((u = l.options) == null ? void 0 : u.labelkey) || "name"],
|
|
570
|
+
value: n[((b = l.options) == null ? void 0 : b.valueKey) || "code"]
|
|
570
571
|
}, null, 8, ["label", "value"]);
|
|
571
572
|
}), 128))
|
|
572
573
|
];
|
|
@@ -576,10 +577,10 @@ function jl(t, h, A, e, D, Y) {
|
|
|
576
577
|
k("div", {
|
|
577
578
|
class: "item_tips_blow",
|
|
578
579
|
style: f(l.tipsBlowStyle)
|
|
579
|
-
},
|
|
580
|
+
}, c(l.tipsBlow), 5)
|
|
580
581
|
]),
|
|
581
582
|
_: 2
|
|
582
|
-
}, 1032, ["label", "rules", "disabled", "prop"])) : l.type === "date" ? (
|
|
583
|
+
}, 1032, ["label", "rules", "disabled", "prop"])) : l.type === "date" ? (d(), y(p, {
|
|
583
584
|
key: 8,
|
|
584
585
|
label: l.label,
|
|
585
586
|
rules: l.isHide || e.noFormRule ? [] : l.rules,
|
|
@@ -587,12 +588,12 @@ function jl(t, h, A, e, D, Y) {
|
|
|
587
588
|
class: "date_item"
|
|
588
589
|
}, {
|
|
589
590
|
label: s(() => [
|
|
590
|
-
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (
|
|
591
|
+
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
|
|
591
592
|
key: 0,
|
|
592
593
|
style: f(l.labelStyle)
|
|
593
594
|
}, [
|
|
594
|
-
g(
|
|
595
|
-
l.required ? (
|
|
595
|
+
g(c(l.label) + " ", 1),
|
|
596
|
+
l.required ? (d(), r("span", kl, "*")) : _("", !0)
|
|
596
597
|
], 4))
|
|
597
598
|
]),
|
|
598
599
|
default: s(() => [
|
|
@@ -611,22 +612,22 @@ function jl(t, h, A, e, D, Y) {
|
|
|
611
612
|
type: l.type,
|
|
612
613
|
placeholder: l.placeholder || l.label
|
|
613
614
|
}, null, 8, ["disabled-date", "onChange", "prefix-icon", "modelValue", "onUpdate:modelValue", "disabled", "readonly", "type", "placeholder"]),
|
|
614
|
-
l.showTo ? (
|
|
615
|
+
l.showTo ? (d(), r("span", Dl, c(l.showTo), 1)) : _("", !0)
|
|
615
616
|
]),
|
|
616
617
|
_: 2
|
|
617
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "daterange" ? (
|
|
618
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "daterange" ? (d(), y(p, {
|
|
618
619
|
key: 9,
|
|
619
620
|
label: l.label,
|
|
620
621
|
rules: l.isHide || e.noFormRule ? [] : l.rules,
|
|
621
622
|
prop: l.field
|
|
622
623
|
}, {
|
|
623
624
|
label: s(() => [
|
|
624
|
-
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (
|
|
625
|
+
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
|
|
625
626
|
key: 0,
|
|
626
627
|
style: f(l.labelStyle)
|
|
627
628
|
}, [
|
|
628
|
-
g(
|
|
629
|
-
l.required ? (
|
|
629
|
+
g(c(l.label) + " ", 1),
|
|
630
|
+
l.required ? (d(), r("span", xl, "*")) : _("", !0)
|
|
630
631
|
], 4))
|
|
631
632
|
]),
|
|
632
633
|
default: s(() => [
|
|
@@ -648,7 +649,7 @@ function jl(t, h, A, e, D, Y) {
|
|
|
648
649
|
}, null, 8, ["disabled-date", "onChange", "modelValue", "onUpdate:modelValue", "prefix-icon", "start-placeholder", "end-placeholder"])
|
|
649
650
|
]),
|
|
650
651
|
_: 2
|
|
651
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "slotItem" ? (
|
|
652
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "slotItem" ? (d(), y(p, {
|
|
652
653
|
key: 10,
|
|
653
654
|
label: l.label,
|
|
654
655
|
rules: l.isHide || e.noFormRule ? [] : l.rules,
|
|
@@ -656,19 +657,19 @@ function jl(t, h, A, e, D, Y) {
|
|
|
656
657
|
class: "rule_err"
|
|
657
658
|
}, {
|
|
658
659
|
label: s(() => [
|
|
659
|
-
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (
|
|
660
|
+
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
|
|
660
661
|
key: 0,
|
|
661
662
|
style: f(l.labelStyle)
|
|
662
663
|
}, [
|
|
663
|
-
g(
|
|
664
|
-
l.required ? (
|
|
664
|
+
g(c(l.label) + " ", 1),
|
|
665
|
+
l.required ? (d(), r("span", wl, "*")) : _("", !0)
|
|
665
666
|
], 4))
|
|
666
667
|
]),
|
|
667
668
|
default: s(() => [
|
|
668
669
|
C(t.$slots, l.slotItemName, {}, void 0, !0)
|
|
669
670
|
]),
|
|
670
671
|
_: 2
|
|
671
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "phone" ? (
|
|
672
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "phone" ? (d(), y(p, {
|
|
672
673
|
key: 11,
|
|
673
674
|
label: l.label,
|
|
674
675
|
rules: l.isHide || e.noFormRule ? [] : l.rules.phoneNumber,
|
|
@@ -676,32 +677,33 @@ function jl(t, h, A, e, D, Y) {
|
|
|
676
677
|
class: "phone_item"
|
|
677
678
|
}, {
|
|
678
679
|
label: s(() => [
|
|
679
|
-
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (
|
|
680
|
+
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
|
|
680
681
|
key: 0,
|
|
681
682
|
style: f(l.labelStyle)
|
|
682
683
|
}, [
|
|
683
|
-
g(
|
|
684
|
-
l.required ? (
|
|
684
|
+
g(c(l.label) + " ", 1),
|
|
685
|
+
l.required ? (d(), r("span", Al, "*")) : _("", !0)
|
|
685
686
|
], 4))
|
|
686
687
|
]),
|
|
687
688
|
default: s(() => {
|
|
688
|
-
var o,
|
|
689
|
+
var o, n;
|
|
689
690
|
return [
|
|
690
691
|
k("div", Il, [
|
|
691
|
-
i(
|
|
692
|
+
i(U, {
|
|
692
693
|
"popper-class": "selectTriangles",
|
|
694
|
+
teleported: !1,
|
|
693
695
|
disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
|
|
694
696
|
modelValue: e.states.model[l.field.nationCode],
|
|
695
697
|
"onUpdate:modelValue": (a) => e.states.model[l.field.nationCode] = a,
|
|
696
698
|
placeholder: ((o = l.nationOptions) == null ? void 0 : o.placeholder) || "",
|
|
697
|
-
class: N(l.isReadonly || e.formOptions.isAllReadonly ? "selectreadonly" : ""),
|
|
699
|
+
class: N(l.isReadonly || l.isReadonlyNation || e.formOptions.isAllReadonly ? "selectreadonly" : ""),
|
|
698
700
|
style: f("width:" + l.widthNation),
|
|
699
701
|
"fit-input-width": !0
|
|
700
702
|
}, {
|
|
701
703
|
default: s(() => {
|
|
702
704
|
var a;
|
|
703
705
|
return [
|
|
704
|
-
(
|
|
706
|
+
(d(!0), r(x, null, w((a = l.nationOptions) == null ? void 0 : a.data, (u, b) => (d(), y(R, {
|
|
705
707
|
label: u.name,
|
|
706
708
|
value: u.code,
|
|
707
709
|
key: b
|
|
@@ -711,20 +713,21 @@ function jl(t, h, A, e, D, Y) {
|
|
|
711
713
|
_: 2
|
|
712
714
|
}, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class", "style"]),
|
|
713
715
|
Ol,
|
|
714
|
-
i(
|
|
716
|
+
i(U, {
|
|
715
717
|
"popper-class": "selectTriangles",
|
|
718
|
+
teleported: !1,
|
|
716
719
|
disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
|
|
717
720
|
modelValue: e.states.model[l.field.areaCode],
|
|
718
721
|
"onUpdate:modelValue": (a) => e.states.model[l.field.areaCode] = a,
|
|
719
|
-
placeholder: ((
|
|
720
|
-
class: N(l.isReadonly || e.formOptions.isAllReadonly ? "selectreadonly" : "areaCode_select"),
|
|
722
|
+
placeholder: ((n = l.areaOptions) == null ? void 0 : n.placeholder) || "",
|
|
723
|
+
class: N(l.isReadonly || l.isReadonlyNationArea || e.formOptions.isAllReadonly ? "selectreadonly" : "areaCode_select"),
|
|
721
724
|
style: f("width:" + l.widthArea),
|
|
722
725
|
"fit-input-width": !0
|
|
723
726
|
}, {
|
|
724
727
|
default: s(() => {
|
|
725
728
|
var a;
|
|
726
729
|
return [
|
|
727
|
-
(
|
|
730
|
+
(d(!0), r(x, null, w((a = l.areaOptions) == null ? void 0 : a.data, (u, b) => (d(), y(R, {
|
|
728
731
|
label: u.name,
|
|
729
732
|
value: u.code,
|
|
730
733
|
key: b
|
|
@@ -744,34 +747,34 @@ function jl(t, h, A, e, D, Y) {
|
|
|
744
747
|
"onUpdate:modelValue": (a) => e.states.model[l.field.phoneNumber] = a,
|
|
745
748
|
disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
|
|
746
749
|
placeholder: l.placeholder || "",
|
|
747
|
-
class: N(l.isReadonly || e.formOptions.isAllReadonly ? "readonly" : ""),
|
|
750
|
+
class: N(l.isReadonly || l.isReadonlyPhoneNumber || e.formOptions.isAllReadonly ? "readonly" : ""),
|
|
748
751
|
clearable: l.clearable
|
|
749
752
|
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "clearable"])
|
|
750
753
|
])
|
|
751
754
|
];
|
|
752
755
|
}),
|
|
753
756
|
_: 2
|
|
754
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "line" ? (
|
|
757
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "line" ? (d(), y(p, {
|
|
755
758
|
key: 12,
|
|
756
759
|
label: l.label
|
|
757
760
|
}, {
|
|
758
761
|
default: s(() => [
|
|
759
|
-
|
|
762
|
+
Rl
|
|
760
763
|
]),
|
|
761
764
|
_: 2
|
|
762
|
-
}, 1032, ["label"])) : (
|
|
765
|
+
}, 1032, ["label"])) : (d(), y(p, {
|
|
763
766
|
key: 13,
|
|
764
767
|
rules: l.isHide || e.noFormRule ? [] : l.rules,
|
|
765
768
|
prop: l.field,
|
|
766
769
|
class: N(l.prepend ? "input-item" : "")
|
|
767
770
|
}, {
|
|
768
771
|
label: s(() => [
|
|
769
|
-
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (
|
|
772
|
+
l.slotLabelName ? C(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
|
|
770
773
|
key: 0,
|
|
771
774
|
style: f(l.labelStyle)
|
|
772
775
|
}, [
|
|
773
|
-
g(
|
|
774
|
-
l.required ? (
|
|
776
|
+
g(c(l.label) + " ", 1),
|
|
777
|
+
l.required ? (d(), r("span", Ul, "*")) : _("", !0)
|
|
775
778
|
], 4))
|
|
776
779
|
]),
|
|
777
780
|
default: s(() => [
|
|
@@ -796,14 +799,14 @@ function jl(t, h, A, e, D, Y) {
|
|
|
796
799
|
l.prepend ? {
|
|
797
800
|
name: "prepend",
|
|
798
801
|
fn: s(() => [
|
|
799
|
-
g(
|
|
802
|
+
g(c(l.prepend), 1)
|
|
800
803
|
]),
|
|
801
804
|
key: "0"
|
|
802
805
|
} : void 0,
|
|
803
806
|
l.append ? {
|
|
804
807
|
name: "append",
|
|
805
808
|
fn: s(() => [
|
|
806
|
-
g(
|
|
809
|
+
g(c(l.append), 1)
|
|
807
810
|
]),
|
|
808
811
|
key: "1"
|
|
809
812
|
} : void 0
|
|
@@ -826,8 +829,8 @@ function jl(t, h, A, e, D, Y) {
|
|
|
826
829
|
model: A.model,
|
|
827
830
|
onBtnClick: e.onSubmit
|
|
828
831
|
}, () => [
|
|
829
|
-
(
|
|
830
|
-
l.isShow ? (
|
|
832
|
+
(d(!0), r(x, null, w(e.formOptions.btnConfig, (l, j) => (d(), r("div", { key: j }, [
|
|
833
|
+
l.isShow ? (d(), y(E, {
|
|
831
834
|
key: 0,
|
|
832
835
|
btnCode: l.btnCode,
|
|
833
836
|
plain: l.plain,
|
|
@@ -855,7 +858,7 @@ function jl(t, h, A, e, D, Y) {
|
|
|
855
858
|
onHandleClick: (o) => e.handleClick(o, l.isRule, l.emitName)
|
|
856
859
|
}, {
|
|
857
860
|
default: s(() => [
|
|
858
|
-
g(
|
|
861
|
+
g(c(l.name), 1)
|
|
859
862
|
]),
|
|
860
863
|
_: 2
|
|
861
864
|
}, 1032, ["btnCode", "plain", "primary", "info", "text", "debounced", "link", "loading", "loadingColor", "width", "height", "circle", "color", "bgColor", "borderColor", "borderStyle", "borderWidth", "icon", "size", "fontSize", "fontWeight", "style", "class", "onHandleClick"])) : _("", !0)
|
|
@@ -868,7 +871,7 @@ function jl(t, h, A, e, D, Y) {
|
|
|
868
871
|
_: 3
|
|
869
872
|
}, 16, ["model", "label-position"]);
|
|
870
873
|
}
|
|
871
|
-
const H = /* @__PURE__ */ tl(ul, [["render", jl], ["__scopeId", "data-v-
|
|
874
|
+
const H = /* @__PURE__ */ tl(ul, [["render", jl], ["__scopeId", "data-v-95e2ae5a"]]);
|
|
872
875
|
function K(t, h = {}) {
|
|
873
876
|
K.installed || (K.installed = !0, t.component("common-el-form", H));
|
|
874
877
|
}
|
package/common-form.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("vue")):typeof define=="function"&&define.amd?define(["vue"],b):(e=typeof globalThis<"u"?globalThis:e||self,e.Form=b(e.Vue))})(this,function(e){"use strict";const b="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==",z={props:{fieldList:{type:Array,required:!0},model:Object,options:Object},setup(s,{emit:i}){const y=e.ref(!0),o=e.reactive({model:{}}),p=e.ref(null),I=e.shallowRef({render(){return e.h("img",{src:b})}}),t=e.computed(()=>Object.assign([],s.options)),h=()=>{o.model=s.model},f=(d,n,r)=>{p.value&&(n?(y.value=!1,e.nextTick(()=>{p.value.validate(c=>{if(c)i(r||"submit",o.model,d);else return!1})})):r==="reset"?p.value.resetFields():i(r||"submit",o.model,d))},k=(d,n)=>{i("selectChange",d,n)},x=(d,n)=>{i("radioChange",d,n)},m=(d,n)=>{i("checkChange",d,n)},g=(d,n)=>{const r=o.model[n].length;if(r===1){i("checkChange",d,n);return}else r>1&&(o.model[n].shift(),i("checkChange",d,n))},C=(d,n,r)=>{f(d,n,r)},_=(d,n)=>{d&&(n==null?void 0:n.key)==="Enter"&&f(void 0,!0,"submit")},B=(d,n)=>{i("dateChange",d,n)},D=(d,n)=>{console.log(p.value),i("inputBlur",d,n)},S=(d,n)=>{i("inputFocus",d,n)},A=(d,n)=>{i("inputChange",d,n)},l=(d,n)=>{i("inputInput",d,n)},N=d=>{p.value.resetFields(d)},a=d=>{p.value.clearValidate(d)};return e.onMounted(()=>{h(),p.value.resetFields()}),e.watch(()=>s.fieldList,(d,n)=>{d!==n&&h()}),{...e.toRefs(o),formRef:p,states:o,formOptions:t,onSubmit:f,selectChange:k,radioChange:x,checkChange:m,handleCheckedChange:g,prefixIcon:I,handleClick:C,handleKeyUp:_,resetFieldsTest:N,clearValidateTest:a,dateChange:B,inputBlur:D,inputFocus:S,inputChange:A,inputInput:l,noFormRule:y}}},ol="",al="",E=(s,i)=>{const y=s.__vccOpts||s;for(const[o,p]of i)y[o]=p;return y},M=s=>(e.pushScopeId("data-v-4d6ba6c3"),s=s(),e.popScopeId(),s),O={class:"header-title"},U={class:"title-content"},T={key:0,class:"custom-required"},R={key:0,class:"custom-required"},j=["src"],F={key:0,class:"custom-required"},L={class:"lable"},K={class:"lable_note"},u={key:0,class:"custom-required"},Y={key:0,class:"custom-required"},q={key:0,class:"custom-required"},H={key:0,class:"custom-required"},W={key:0,class:"custom-required"},Q={key:0,class:"date_to"},P={key:0,class:"custom-required"},Z={key:0,class:"custom-required"},G={key:0,class:"custom-required"},J={class:"phone_item_content"},X=M(()=>e.createElementVNode("div",{class:"line_middle"}," - ",-1)),$=M(()=>e.createElementVNode("div",{class:"line_middle"}," - ",-1)),v=M(()=>e.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"39px 0"}},null,-1)),ll={key:0,class:"custom-required"};function el(s,i,y,o,p,I){const t=e.resolveComponent("el-form-item"),h=e.resolveComponent("el-input"),f=e.resolveComponent("el-radio"),k=e.resolveComponent("el-radio-group"),x=e.resolveComponent("el-checkbox"),m=e.resolveComponent("el-checkbox-group"),g=e.resolveComponent("el-option"),C=e.resolveComponent("el-select"),_=e.resolveComponent("el-date-picker"),B=e.resolveComponent("el-col"),D=e.resolveComponent("el-row"),S=e.resolveComponent("sinosoft-common-button"),A=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(A,e.mergeProps({"hide-required-asterisk":"",onSubmit:i[0]||(i[0]=e.withModifiers(()=>{},["prevent"])),model:y.model},o.formOptions,{"label-position":o.formOptions.labelPosition,ref:"formRef"}),{default:e.withCtx(()=>[e.createVNode(D,{gutter:20},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.fieldList,(l,N)=>e.withDirectives((e.openBlock(),e.createBlock(B,{xs:l.xs?l.xs:24,sm:l.sm?l.sm:24,md:l.md?l.md:8,lg:l.lg?l.lg:8,xl:l.xl?l.xl:8,key:N},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(l.style)},[l.type==="title"?(e.openBlock(),e.createBlock(t,{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",O,[e.createElementVNode("span",U,e.toDisplayString(l.title),1)])]),_:2},1024)):l.type==="name"?(e.openBlock(),e.createBlock(t,{key:1,label:l.label,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,class:"container_name"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",T,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(t,{rules:l.isHide||o.noFormRule?[]:l.rules.nameEnFamily,prop:l.field.nameEnFamily,class:"item-name"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field.nameEnFamily),onFocus:a=>o.inputFocus(a,l.field.nameEnFamily),onChange:a=>o.inputChange(a,l.field.nameEnFamily),onInput:a=>o.inputInput(a,l.field.nameEnFamily),class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),maxlength:l.maxlengthNameEnFamily,modelValue:o.states.model[l.field.nameEnFamily],"onUpdate:modelValue":a=>o.states.model[l.field.nameEnFamily]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEnFamily,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","class","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(t,{rules:l.isHide||o.noFormRule?[]:l.rules.nameEn,prop:l.field.nameEn,class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field.nameEn),onFocus:a=>o.inputFocus(a,l.field.nameEn),onChange:a=>o.inputChange(a,l.field.nameEn),onInput:a=>o.inputInput(a,l.field.nameEn),maxlength:l.maxlengthNameEn,modelValue:o.states.model[l.field.nameEn],"onUpdate:modelValue":a=>o.states.model[l.field.nameEn]=a,class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEn,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","class","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(t,{rules:l.isHide||o.noFormRule?[]:l.rules.nameChFamily,prop:l.field.nameChFamily,class:"item-name item-name-bottom"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field.nameChFamily),onFocus:a=>o.inputFocus(a,l.field.nameChFamily),onChange:a=>o.inputChange(a,l.field.nameChFamily),onInput:a=>o.inputInput(a,l.field.nameChFamily),maxlength:l.maxlengthNameChFamily,class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),modelValue:o.states.model[l.field.nameChFamily],"onUpdate:modelValue":a=>o.states.model[l.field.nameChFamily]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameChFamily,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","class","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(t,{rules:l.isHide||o.noFormRule?[]:l.rules.nameCh,prop:l.field.nameCh,class:"item-name-right item-name-bottom"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field.nameCh),onFocus:a=>o.inputFocus(a,l.field.nameCh),onChange:a=>o.inputChange(a,l.field.nameCh),onInput:a=>o.inputInput(a,l.field.nameCh),class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),maxlength:l.maxlengthNameCh,modelValue:o.states.model[l.field.nameCh],"onUpdate:modelValue":a=>o.states.model[l.field.nameCh]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameCh,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","class","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label","disabled"])):l.type==="gender"?(e.openBlock(),e.createBlock(t,{key:2,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",R,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(k,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onChange:a=>o.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(f,{label:d[((n=l.options)==null?void 0:n.valueKey)||"code"],size:"large",key:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>[e.createElementVNode("img",{src:d.code==="M"?"http://192.168.5.200:9000/test/sex_img_M.png":"http://192.168.5.200:9000/test/sex_img_F.png",style:{width:"44px",height:"44px","margin-bottom":"-15px","margin-left":"4px"},alt:""},null,8,j)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])):l.type==="radio"?(e.openBlock(),e.createBlock(t,{key:3,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",F,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(k,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onChange:a=>o.radioChange(a,l.field),style:e.normalizeStyle(l.ways==="column"?"display: flex; align-items: flex-start;flex-flow: column nowrap; ":"display: flex; align-items: flex-start;flex-flow: row nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(f,{size:"large",label:d[((n=l.options)==null?void 0:n.valueKey)||"code"],key:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(d[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange","style"])]),_:2},1032,["label","rules","prop","class"])):l.type==="radioNote"?(e.openBlock(),e.createBlock(t,{key:4,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",L,e.toDisplayString(l.labelBefore),1),e.createElementVNode("span",K,e.toDisplayString(l.labelNode),1),l.required?(e.openBlock(),e.createElementBlock("span",u,"*")):e.createCommentVNode("",!0)]),e.createVNode(k,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onChange:a=>o.radioChange(a,l.field),style:e.normalizeStyle(l.ways==="column"?"display: flex; align-items: flex-start;flex-flow: column nowrap; ":"display: flex; align-items: flex-start;flex-flow: row nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(f,{size:"large",label:d[((n=l.options)==null?void 0:n.valueKey)||"code"],key:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(d[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange","style"])]),_:2},1032,["label","rules","prop","class"])):l.type==="checkbox"?(e.openBlock(),e.createBlock(t,{key:5,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",Y,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(m,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,onChange:a=>o.checkChange(a,l.field),disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(x,{key:d[((n=l.options)==null?void 0:n.valueKey)||"code"],label:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(d[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])):l.type==="checkboxRadio"?(e.openBlock(),e.createBlock(t,{key:6,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",q,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(m,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,onChange:a=>o.handleCheckedChange(a,l.field),disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(x,{key:d[((n=l.options)==null?void 0:n.valueKey)||"code"],label:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(d[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])):l.type==="select"?(e.openBlock(),e.createBlock(t,{key:7,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",H,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(C,{"popper-class":"selectTriangles",onChange:a=>o.selectChange(a,l.field),modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,placeholder:l.placeholder,class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"selectreadonly":""),clearable:l.clearable,"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,d=>{var n,r,c;return e.openBlock(),e.createBlock(g,{key:d[((n=l.options)==null?void 0:n.valueKey)||"code"],label:d[((r=l.options)==null?void 0:r.labelkey)||"name"],value:d[((c=l.options)==null?void 0:c.valueKey)||"code"]},null,8,["label","value"])}),128))]}),_:2},1032,["onChange","modelValue","onUpdate:modelValue","disabled","placeholder","class","clearable"]),e.createElementVNode("div",{class:"item_tips_blow",style:e.normalizeStyle(l.tipsBlowStyle)},e.toDisplayString(l.tipsBlow),5)]),_:2},1032,["label","rules","disabled","prop"])):l.type==="date"?(e.openBlock(),e.createBlock(t,{key:8,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:"date_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",W,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(_,{"popper-class":"selectTriangles",teleported:!1,format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:a=>o.dateChange(a,l.field),"prefix-icon":o.prefixIcon,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,readonly:l.readonly,type:l.type,placeholder:l.placeholder||l.label},null,8,["disabled-date","onChange","prefix-icon","modelValue","onUpdate:modelValue","disabled","readonly","type","placeholder"]),l.showTo?(e.openBlock(),e.createElementBlock("span",Q,e.toDisplayString(l.showTo),1)):e.createCommentVNode("",!0)]),_:2},1032,["label","rules","prop"])):l.type==="daterange"?(e.openBlock(),e.createBlock(t,{key:9,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",P,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(_,{"popper-class":"selectTriangles",teleported:!1,format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:a=>o.dateChange(a,l.field),modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,"prefix-icon":o.prefixIcon,type:"daterange","range-separator":"To","start-placeholder":l.startPlaceholder,"end-placeholder":l.endPlaceholder,size:"large"},null,8,["disabled-date","onChange","modelValue","onUpdate:modelValue","prefix-icon","start-placeholder","end-placeholder"])]),_:2},1032,["label","rules","prop"])):l.type==="slotItem"?(e.openBlock(),e.createBlock(t,{key:10,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:"rule_err"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",Z,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.renderSlot(s.$slots,l.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])):l.type==="phone"?(e.openBlock(),e.createBlock(t,{key:11,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules.phoneNumber,prop:l.field.phoneNumber,class:"phone_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",G,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>{var a,d;return[e.createElementVNode("div",J,[e.createVNode(C,{"popper-class":"selectTriangles",disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,modelValue:o.states.model[l.field.nationCode],"onUpdate:modelValue":n=>o.states.model[l.field.nationCode]=n,placeholder:((a=l.nationOptions)==null?void 0:a.placeholder)||"",class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"selectreadonly":""),style:e.normalizeStyle("width:"+l.widthNation),"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,(r,c)=>(e.openBlock(),e.createBlock(g,{label:r.name,value:r.code,key:c},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder","class","style"]),X,e.createVNode(C,{"popper-class":"selectTriangles",disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,modelValue:o.states.model[l.field.areaCode],"onUpdate:modelValue":n=>o.states.model[l.field.areaCode]=n,placeholder:((d=l.areaOptions)==null?void 0:d.placeholder)||"",class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"selectreadonly":"areaCode_select"),style:e.normalizeStyle("width:"+l.widthArea),"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,(r,c)=>(e.openBlock(),e.createBlock(g,{label:r.name,value:r.code,key:c},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder","class","style"]),$,e.createVNode(h,{onBlur:n=>o.inputBlur(n,l.field),onFocus:n=>o.inputFocus(n,l.field),onChange:n=>o.inputChange(n,l.field),onInput:n=>o.inputInput(n,l.field),maxlength:l.maxlength,modelValue:o.states.model[l.field.phoneNumber],"onUpdate:modelValue":n=>o.states.model[l.field.phoneNumber]=n,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,placeholder:l.placeholder||"",class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),clearable:l.clearable},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","disabled","placeholder","class","clearable"])])]}),_:2},1032,["label","rules","prop"])):l.type==="line"?(e.openBlock(),e.createBlock(t,{key:12,label:l.label},{default:e.withCtx(()=>[v]),_:2},1032,["label"])):(e.openBlock(),e.createBlock(t,{key:13,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass(l.prepend?"input-item":"")},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",ll,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field),onFocus:a=>o.inputFocus(a,l.field),onChange:a=>o.inputChange(a,l.field),onInput:a=>o.inputInput(a,l.field),maxlength:l.maxlength,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,"show-word-limit":l.showWordLimit,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholder||l.label,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,showPassword:l.showPassword,clearable:l.clearable,class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},e.createSlots({_:2},[l.prepend?{name:"prepend",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.prepend),1)]),key:"0"}:void 0,l.append?{name:"append",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.append),1)]),key:"1"}:void 0]),1032,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","show-word-limit","readonly","type","placeholder","disabled","showPassword","clearable","class","onKeyup"])]),_:2},1032,["rules","prop","class"]))],4)]),_:2},1032,["xs","sm","md","lg","xl"])),[[e.vShow,!l.isHide]])),128))]),_:3}),e.createVNode(t,{class:"btnsItem"},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"buttons",{model:y.model,onBtnClick:o.onSubmit},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.formOptions.btnConfig,(l,N)=>(e.openBlock(),e.createElementBlock("div",{key:N},[l.isShow?(e.openBlock(),e.createBlock(S,{key:0,btnCode:l.btnCode,plain:l.plain,primary:l.primary,info:l.info,text:l.text,debounced:l.debounced?l.debounced:!1,link:l.link,loading:l.loading,loadingColor:l.loadingColor,width:l.width,height:l.height,circle:l.circle,color:l.color,bgColor:l.bgColor,borderColor:l.borderColor,borderStyle:l.borderStyle,borderWidth:l.borderWidth,icon:l.icon,size:l.size,fontSize:l.fontSize,fontWeight:l.fontWeight,style:e.normalizeStyle(l.style),class:e.normalizeClass(l.class),onHandleClick:a=>o.handleClick(a,l.isRule,l.emitName)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.name),1)]),_:2},1032,["btnCode","plain","primary","info","text","debounced","link","loading","loadingColor","width","height","circle","color","bgColor","borderColor","borderStyle","borderWidth","icon","size","fontSize","fontWeight","style","class","onHandleClick"])):e.createCommentVNode("",!0)]))),128))],!0)]),_:3})]),_:3},16,["model","label-position"])}const w=E(z,[["render",el],["__scopeId","data-v-4d6ba6c3"]]);function V(s,i={}){V.installed||(V.installed=!0,s.component("common-el-form",w))}return w.install=V,w});
|
|
1
|
+
(function(e,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("vue")):typeof define=="function"&&define.amd?define(["vue"],b):(e=typeof globalThis<"u"?globalThis:e||self,e.Form=b(e.Vue))})(this,function(e){"use strict";const b="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==",E={props:{fieldList:{type:Array,required:!0},model:Object,options:Object},setup(s,{emit:i}){const y=e.ref(!0),o=e.reactive({model:{}}),p=e.ref(null),I=e.shallowRef({render(){return e.h("img",{src:b})}}),t=e.computed(()=>Object.assign([],s.options)),h=()=>{o.model=s.model},f=(d,n,r)=>{p.value&&(n?(y.value=!1,e.nextTick(()=>{p.value.validate(c=>{if(c)i(r||"submit",o.model,d);else return!1})})):r==="reset"?p.value.resetFields():i(r||"submit",o.model,d))},k=(d,n)=>{i("selectChange",d,n)},x=(d,n)=>{i("radioChange",d,n)},m=(d,n)=>{i("checkChange",d,n)},C=(d,n)=>{const r=o.model[n].length;if(r===1){i("checkChange",d,n);return}else r>1?(o.model[n].shift(),i("checkChange",d,n)):r<1&&i("checkChange",d,n)},g=(d,n,r)=>{f(d,n,r)},_=(d,n)=>{d&&(n==null?void 0:n.key)==="Enter"&&f(void 0,!0,"submit")},B=(d,n)=>{i("dateChange",d,n)},D=(d,n)=>{console.log(p.value),i("inputBlur",d,n)},S=(d,n)=>{i("inputFocus",d,n)},A=(d,n)=>{i("inputChange",d,n)},l=(d,n)=>{i("inputInput",d,n)},N=d=>{p.value.resetFields(d)},a=d=>{p.value.clearValidate(d)};return e.onMounted(()=>{h(),p.value.resetFields()}),e.watch(()=>s.fieldList,(d,n)=>{d!==n&&h()}),{...e.toRefs(o),formRef:p,states:o,formOptions:t,onSubmit:f,selectChange:k,radioChange:x,checkChange:m,handleCheckedChange:C,prefixIcon:I,handleClick:g,handleKeyUp:_,resetFieldsTest:N,clearValidateTest:a,dateChange:B,inputBlur:D,inputFocus:S,inputChange:A,inputInput:l,noFormRule:y}}},ol="",al="",z=(s,i)=>{const y=s.__vccOpts||s;for(const[o,p]of i)y[o]=p;return y},M=s=>(e.pushScopeId("data-v-95e2ae5a"),s=s(),e.popScopeId(),s),O={class:"header-title"},R={class:"title-content"},U={key:0,class:"custom-required"},T={key:0,class:"custom-required"},F=["src"],j={key:0,class:"custom-required"},L={class:"lable"},K={class:"lable_note"},u={key:0,class:"custom-required"},Y={key:0,class:"custom-required"},q={key:0,class:"custom-required"},H={key:0,class:"custom-required"},W={key:0,class:"custom-required"},Q={key:0,class:"date_to"},P={key:0,class:"custom-required"},Z={key:0,class:"custom-required"},G={key:0,class:"custom-required"},J={class:"phone_item_content"},X=M(()=>e.createElementVNode("div",{class:"line_middle"}," - ",-1)),$=M(()=>e.createElementVNode("div",{class:"line_middle"}," - ",-1)),v=M(()=>e.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"39px 0"}},null,-1)),ll={key:0,class:"custom-required"};function el(s,i,y,o,p,I){const t=e.resolveComponent("el-form-item"),h=e.resolveComponent("el-input"),f=e.resolveComponent("el-radio"),k=e.resolveComponent("el-radio-group"),x=e.resolveComponent("el-checkbox"),m=e.resolveComponent("el-checkbox-group"),C=e.resolveComponent("el-option"),g=e.resolveComponent("el-select"),_=e.resolveComponent("el-date-picker"),B=e.resolveComponent("el-col"),D=e.resolveComponent("el-row"),S=e.resolveComponent("sinosoft-common-button"),A=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(A,e.mergeProps({"hide-required-asterisk":"",onSubmit:i[0]||(i[0]=e.withModifiers(()=>{},["prevent"])),model:y.model},o.formOptions,{"label-position":o.formOptions.labelPosition,ref:"formRef"}),{default:e.withCtx(()=>[e.createVNode(D,{gutter:20},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.fieldList,(l,N)=>e.withDirectives((e.openBlock(),e.createBlock(B,{xs:l.xs?l.xs:24,sm:l.sm?l.sm:24,md:l.md?l.md:8,lg:l.lg?l.lg:8,xl:l.xl?l.xl:8,key:N},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(l.style)},[l.type==="title"?(e.openBlock(),e.createBlock(t,{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",O,[e.createElementVNode("span",R,e.toDisplayString(l.title),1)])]),_:2},1024)):l.type==="name"?(e.openBlock(),e.createBlock(t,{key:1,label:l.label,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,class:"container_name"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",U,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(t,{rules:l.isHide||o.noFormRule?[]:l.rules.nameEnFamily,prop:l.field.nameEnFamily,class:"item-name"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field.nameEnFamily),onFocus:a=>o.inputFocus(a,l.field.nameEnFamily),onChange:a=>o.inputChange(a,l.field.nameEnFamily),onInput:a=>o.inputInput(a,l.field.nameEnFamily),class:e.normalizeClass(l.isReadonly||l.isReadonlyNameEnFamily||o.formOptions.isAllReadonly?"readonly":""),maxlength:l.maxlengthNameEnFamily,modelValue:o.states.model[l.field.nameEnFamily],"onUpdate:modelValue":a=>o.states.model[l.field.nameEnFamily]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEnFamily,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","class","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(t,{rules:l.isHide||o.noFormRule?[]:l.rules.nameEn,prop:l.field.nameEn,class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field.nameEn),onFocus:a=>o.inputFocus(a,l.field.nameEn),onChange:a=>o.inputChange(a,l.field.nameEn),onInput:a=>o.inputInput(a,l.field.nameEn),maxlength:l.maxlengthNameEn,modelValue:o.states.model[l.field.nameEn],"onUpdate:modelValue":a=>o.states.model[l.field.nameEn]=a,class:e.normalizeClass(l.isReadonly||l.isReadonlyNameEn||o.formOptions.isAllReadonly?"readonly":""),readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEn,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","class","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(t,{rules:l.isHide||o.noFormRule?[]:l.rules.nameChFamily,prop:l.field.nameChFamily,class:"item-name item-name-bottom"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field.nameChFamily),onFocus:a=>o.inputFocus(a,l.field.nameChFamily),onChange:a=>o.inputChange(a,l.field.nameChFamily),onInput:a=>o.inputInput(a,l.field.nameChFamily),maxlength:l.maxlengthNameChFamily,class:e.normalizeClass(l.isReadonly||l.isReadonlyNameChFamily||o.formOptions.isAllReadonly?"readonly":""),modelValue:o.states.model[l.field.nameChFamily],"onUpdate:modelValue":a=>o.states.model[l.field.nameChFamily]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameChFamily,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","class","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(t,{rules:l.isHide||o.noFormRule?[]:l.rules.nameCh,prop:l.field.nameCh,class:"item-name-right item-name-bottom"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field.nameCh),onFocus:a=>o.inputFocus(a,l.field.nameCh),onChange:a=>o.inputChange(a,l.field.nameCh),onInput:a=>o.inputInput(a,l.field.nameCh),class:e.normalizeClass(l.isReadonly||l.isReadonlyNameCh||o.formOptions.isAllReadonly?"readonly":""),maxlength:l.maxlengthNameCh,modelValue:o.states.model[l.field.nameCh],"onUpdate:modelValue":a=>o.states.model[l.field.nameCh]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameCh,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","class","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label","disabled"])):l.type==="gender"?(e.openBlock(),e.createBlock(t,{key:2,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",T,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(k,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onChange:a=>o.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(f,{label:d[((n=l.options)==null?void 0:n.valueKey)||"code"],size:"large",key:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>[e.createElementVNode("img",{src:d.code==="M"?"http://192.168.5.200:9000/test/sex_img_M.png":"http://192.168.5.200:9000/test/sex_img_F.png",style:{width:"44px",height:"44px","margin-bottom":"-15px","margin-left":"4px"},alt:""},null,8,F)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])):l.type==="radio"?(e.openBlock(),e.createBlock(t,{key:3,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",j,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(k,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onChange:a=>o.radioChange(a,l.field),style:e.normalizeStyle(l.ways==="column"?"display: flex; align-items: flex-start;flex-flow: column nowrap; ":"display: flex; align-items: flex-start;flex-flow: row nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(f,{size:"large",label:d[((n=l.options)==null?void 0:n.valueKey)||"code"],key:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(d[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange","style"])]),_:2},1032,["label","rules","prop","class"])):l.type==="radioNote"?(e.openBlock(),e.createBlock(t,{key:4,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",L,e.toDisplayString(l.labelBefore),1),e.createElementVNode("span",K,e.toDisplayString(l.labelNode),1),l.required?(e.openBlock(),e.createElementBlock("span",u,"*")):e.createCommentVNode("",!0)]),e.createVNode(k,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onChange:a=>o.radioChange(a,l.field),style:e.normalizeStyle(l.ways==="column"?"display: flex; align-items: flex-start;flex-flow: column nowrap; ":"display: flex; align-items: flex-start;flex-flow: row nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(f,{size:"large",label:d[((n=l.options)==null?void 0:n.valueKey)||"code"],key:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(d[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange","style"])]),_:2},1032,["label","rules","prop","class"])):l.type==="checkbox"?(e.openBlock(),e.createBlock(t,{key:5,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",Y,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(m,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,onChange:a=>o.checkChange(a,l.field),disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(x,{key:d[((n=l.options)==null?void 0:n.valueKey)||"code"],label:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(d[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])):l.type==="checkboxRadio"?(e.openBlock(),e.createBlock(t,{key:6,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",q,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(m,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,onChange:a=>o.handleCheckedChange(a,l.field),disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(x,{key:d[((n=l.options)==null?void 0:n.valueKey)||"code"],label:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(d[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])):l.type==="select"?(e.openBlock(),e.createBlock(t,{key:7,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",H,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(g,{"popper-class":"selectTriangles",teleported:!1,onChange:a=>o.selectChange(a,l.field),modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,placeholder:l.placeholder,class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"selectreadonly":""),clearable:l.clearable,"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,d=>{var n,r,c;return e.openBlock(),e.createBlock(C,{key:d[((n=l.options)==null?void 0:n.valueKey)||"code"],label:d[((r=l.options)==null?void 0:r.labelkey)||"name"],value:d[((c=l.options)==null?void 0:c.valueKey)||"code"]},null,8,["label","value"])}),128))]}),_:2},1032,["onChange","modelValue","onUpdate:modelValue","disabled","placeholder","class","clearable"]),e.createElementVNode("div",{class:"item_tips_blow",style:e.normalizeStyle(l.tipsBlowStyle)},e.toDisplayString(l.tipsBlow),5)]),_:2},1032,["label","rules","disabled","prop"])):l.type==="date"?(e.openBlock(),e.createBlock(t,{key:8,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:"date_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",W,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(_,{"popper-class":"selectTriangles",teleported:!1,format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:a=>o.dateChange(a,l.field),"prefix-icon":o.prefixIcon,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,readonly:l.readonly,type:l.type,placeholder:l.placeholder||l.label},null,8,["disabled-date","onChange","prefix-icon","modelValue","onUpdate:modelValue","disabled","readonly","type","placeholder"]),l.showTo?(e.openBlock(),e.createElementBlock("span",Q,e.toDisplayString(l.showTo),1)):e.createCommentVNode("",!0)]),_:2},1032,["label","rules","prop"])):l.type==="daterange"?(e.openBlock(),e.createBlock(t,{key:9,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",P,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(_,{"popper-class":"selectTriangles",teleported:!1,format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:a=>o.dateChange(a,l.field),modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,"prefix-icon":o.prefixIcon,type:"daterange","range-separator":"To","start-placeholder":l.startPlaceholder,"end-placeholder":l.endPlaceholder,size:"large"},null,8,["disabled-date","onChange","modelValue","onUpdate:modelValue","prefix-icon","start-placeholder","end-placeholder"])]),_:2},1032,["label","rules","prop"])):l.type==="slotItem"?(e.openBlock(),e.createBlock(t,{key:10,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:"rule_err"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",Z,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.renderSlot(s.$slots,l.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])):l.type==="phone"?(e.openBlock(),e.createBlock(t,{key:11,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules.phoneNumber,prop:l.field.phoneNumber,class:"phone_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",G,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>{var a,d;return[e.createElementVNode("div",J,[e.createVNode(g,{"popper-class":"selectTriangles",teleported:!1,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,modelValue:o.states.model[l.field.nationCode],"onUpdate:modelValue":n=>o.states.model[l.field.nationCode]=n,placeholder:((a=l.nationOptions)==null?void 0:a.placeholder)||"",class:e.normalizeClass(l.isReadonly||l.isReadonlyNation||o.formOptions.isAllReadonly?"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,(r,c)=>(e.openBlock(),e.createBlock(C,{label:r.name,value:r.code,key:c},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder","class","style"]),X,e.createVNode(g,{"popper-class":"selectTriangles",teleported:!1,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,modelValue:o.states.model[l.field.areaCode],"onUpdate:modelValue":n=>o.states.model[l.field.areaCode]=n,placeholder:((d=l.areaOptions)==null?void 0:d.placeholder)||"",class:e.normalizeClass(l.isReadonly||l.isReadonlyNationArea||o.formOptions.isAllReadonly?"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,(r,c)=>(e.openBlock(),e.createBlock(C,{label:r.name,value:r.code,key:c},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder","class","style"]),$,e.createVNode(h,{onBlur:n=>o.inputBlur(n,l.field),onFocus:n=>o.inputFocus(n,l.field),onChange:n=>o.inputChange(n,l.field),onInput:n=>o.inputInput(n,l.field),maxlength:l.maxlength,modelValue:o.states.model[l.field.phoneNumber],"onUpdate:modelValue":n=>o.states.model[l.field.phoneNumber]=n,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,placeholder:l.placeholder||"",class:e.normalizeClass(l.isReadonly||l.isReadonlyPhoneNumber||o.formOptions.isAllReadonly?"readonly":""),clearable:l.clearable},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","disabled","placeholder","class","clearable"])])]}),_:2},1032,["label","rules","prop"])):l.type==="line"?(e.openBlock(),e.createBlock(t,{key:12,label:l.label},{default:e.withCtx(()=>[v]),_:2},1032,["label"])):(e.openBlock(),e.createBlock(t,{key:13,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass(l.prepend?"input-item":"")},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",ll,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field),onFocus:a=>o.inputFocus(a,l.field),onChange:a=>o.inputChange(a,l.field),onInput:a=>o.inputInput(a,l.field),maxlength:l.maxlength,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,"show-word-limit":l.showWordLimit,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholder||l.label,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,showPassword:l.showPassword,clearable:l.clearable,class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},e.createSlots({_:2},[l.prepend?{name:"prepend",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.prepend),1)]),key:"0"}:void 0,l.append?{name:"append",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.append),1)]),key:"1"}:void 0]),1032,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","show-word-limit","readonly","type","placeholder","disabled","showPassword","clearable","class","onKeyup"])]),_:2},1032,["rules","prop","class"]))],4)]),_:2},1032,["xs","sm","md","lg","xl"])),[[e.vShow,!l.isHide]])),128))]),_:3}),e.createVNode(t,{class:"btnsItem"},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"buttons",{model:y.model,onBtnClick:o.onSubmit},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.formOptions.btnConfig,(l,N)=>(e.openBlock(),e.createElementBlock("div",{key:N},[l.isShow?(e.openBlock(),e.createBlock(S,{key:0,btnCode:l.btnCode,plain:l.plain,primary:l.primary,info:l.info,text:l.text,debounced:l.debounced?l.debounced:!1,link:l.link,loading:l.loading,loadingColor:l.loadingColor,width:l.width,height:l.height,circle:l.circle,color:l.color,bgColor:l.bgColor,borderColor:l.borderColor,borderStyle:l.borderStyle,borderWidth:l.borderWidth,icon:l.icon,size:l.size,fontSize:l.fontSize,fontWeight:l.fontWeight,style:e.normalizeStyle(l.style),class:e.normalizeClass(l.class),onHandleClick:a=>o.handleClick(a,l.isRule,l.emitName)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.name),1)]),_:2},1032,["btnCode","plain","primary","info","text","debounced","link","loading","loadingColor","width","height","circle","color","bgColor","borderColor","borderStyle","borderWidth","icon","size","fontSize","fontWeight","style","class","onHandleClick"])):e.createCommentVNode("",!0)]))),128))],!0)]),_:3})]),_:3},16,["model","label-position"])}const w=z(E,[["render",el],["__scopeId","data-v-95e2ae5a"]]);function V(s,i={}){V.installed||(V.installed=!0,s.component("common-el-form",w))}return w.install=V,w});
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";[data-v-
|
|
1
|
+
@charset "UTF-8";[data-v-95e2ae5a] .el-date-editor{height:60px!important;width:100%!important}[data-v-95e2ae5a] .el-form-item{margin-bottom:12px}[data-v-95e2ae5a] .el-input__inner{height:42px;color:#1d1d1d}[data-v-95e2ae5a] .el-card__body{padding:0}[data-v-95e2ae5a] .el-form-item__label{height:auto!important;margin-bottom:4px!important}.form-item-title[data-v-95e2ae5a]{width:100%}[data-v-95e2ae5a] .el-checkbox-group .el-checkbox{display:flex}.rule_err[data-v-95e2ae5a] .el-form-item__content,.radio_Note[data-v-95e2ae5a] .el-form-item__content{display:block}.radio_Note .lable[data-v-95e2ae5a]{font-size:16px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Regular}.radio_Note .lable_note[data-v-95e2ae5a]{font-size:16px;line-height:22px;color:#6e6e73;font-weight:400;font-family:Roboto Regular}.container_name[data-v-95e2ae5a] .el-form-item__content{align-items:start}.container_name[data-v-95e2ae5a] .el-form-item{margin-bottom:0}.container_name[data-v-95e2ae5a] .el-form-item__error{margin-top:-2.5px}.container_name .item-name[data-v-95e2ae5a]{width:51%;padding-right:20px;padding-bottom:12px;box-sizing:border-box}.container_name .item-name-right[data-v-95e2ae5a]{width:49%;padding-bottom:12px;padding-right:0}.container_name .item-name-bottom[data-v-95e2ae5a]{padding-bottom:0}.btnsItem[data-v-95e2ae5a]{width:100%;margin:0 auto;justify-content:right}.btnsItem[data-v-95e2ae5a] .el-form-item__content{justify-content:right}label[data-v-95e2ae5a]{display:block}.title-content[data-v-95e2ae5a]{font-size:22px;line-height:30px;color:#1d1d1d;font-weight:300;font-family:Roboto light}[data-v-95e2ae5a] .el-input__wrapper{height:60px;border-radius:8px;padding:1px 16px}.date_item[data-v-95e2ae5a] .el-form-item__content .date_to{font-size:14px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Regular;position:absolute;right:-17.5px;top:18px}.phone_item[data-v-95e2ae5a] .el-form-item__content{display:flex}.phone_item[data-v-95e2ae5a] .el-form-item__content .el-select{width:180.03px}.phone_item[data-v-95e2ae5a] .el-form-item__content .line_middle{margin:0 4px}.phone_item[data-v-95e2ae5a] .el-input__suffix-inner{width:14px;padding-right:3px}.phone_item .phone_item_content[data-v-95e2ae5a]{display:flex;flex-wrap:nowrap;align-items:center;width:100%}.phone_item .phone_item_content[data-v-95e2ae5a] .readonly .el-input__wrapper{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #c7c8ca inset}.phone_item .phone_item_content[data-v-95e2ae5a] .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-95e2ae5a] .selectreadonly .el-input__wrapper{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #c7c8ca inset}.phone_item .phone_item_content[data-v-95e2ae5a] .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-95e2ae5a] .selectreadonly :deep(.el-input.is-disabled .el-input__inner){-webkit-text-fill-color:#0B0B0B!important}.input-item[data-v-95e2ae5a] .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-95e2ae5a] .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-95e2ae5a] .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-95e2ae5a] .is-error .areaCode_select .el-input__wrapper{box-shadow:none!important;border:1px solid #C7C8CA!important}[data-v-95e2ae5a] .el-select{width:100%}[data-v-95e2ae5a] .el-select .el-icon{height:15px}[data-v-95e2ae5a] .el-select .el-icon svg{display:none}[data-v-95e2ae5a] .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-95e2ae5a]{content:"*";color:#e2a650;margin-left:4px}.item_tips_blow[data-v-95e2ae5a]{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-95e2ae5a] .readonly .el-input-group__prepend,[data-v-95e2ae5a] .readonly .el-input-group__append{background-color:#f3f3f3!important}[data-v-95e2ae5a] .readonly .el-input__wrapper,[data-v-95e2ae5a] .readonly .el-textarea{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #c7c8ca inset}[data-v-95e2ae5a] .readonly .el-input__wrapper .el-input__inner,[data-v-95e2ae5a] .readonly .el-input__wrapper .el-textarea__inner,[data-v-95e2ae5a] .readonly .el-textarea .el-input__inner,[data-v-95e2ae5a] .readonly .el-textarea .el-textarea__inner,[data-v-95e2ae5a] .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-95e2ae5a] .selectreadonly .el-input__wrapper{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #c7c8ca inset}[data-v-95e2ae5a] .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-95e2ae5a] .selectreadonly :deep(.el-input.is-disabled .el-input__inner){-webkit-text-fill-color:#0B0B0B!important}[data-v-95e2ae5a] .el-input.is-disabled .el-input__wrapper{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #d9d9d9 inset}[data-v-95e2ae5a] .el-input__wrapper{border:1px solid #C7C8CA;box-shadow:none!important}[data-v-95e2ae5a] .el-textarea__inner{border:1px solid #C7C8CA;box-shadow:none}.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}
|