sinosoft-common-form 1.2.5 → 1.2.7

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 CHANGED
@@ -1,5 +1,5 @@
1
- import { ref as Q, computed as Z, onMounted as m, reactive as $, watch as ll, toRefs as el, resolveComponent as S, openBlock as o, createBlock as s, mergeProps as al, withModifiers as dl, withCtx as d, createElementBlock as r, Fragment as V, renderList as x, createVNode as b, withDirectives as h, createElementVNode as y, normalizeStyle as t, toDisplayString as p, vShow as f, createCommentVNode as g, withKeys as K, normalizeClass as I, createTextVNode as C, renderSlot as R, createSlots as W, pushScopeId as ol, popScopeId as nl } from "vue";
2
- const sl = {
1
+ import { reactive as T, ref as A, computed as G, onMounted as J, watch as Q, toRefs as X, resolveComponent as v, openBlock as d, createBlock as n, mergeProps as Z, withModifiers as $, withCtx as o, createVNode as u, createElementBlock as t, Fragment as K, renderList as D, withDirectives as g, createElementVNode as i, normalizeStyle as k, toDisplayString as p, vShow as x, createTextVNode as h, createCommentVNode as w, withKeys as N, normalizeClass as W, renderSlot as R, createSlots as ee, pushScopeId as le, popScopeId as ae } from "vue";
2
+ const oe = {
3
3
  props: {
4
4
  fieldList: {
5
5
  type: Array,
@@ -9,2646 +9,765 @@ const sl = {
9
9
  options: Object
10
10
  },
11
11
  emits: ["selectChange", "radioChange", "checkChange", "submit", "reset"],
12
- setup(D, { emit: Y }) {
13
- const H = Q({}), a = Q(null), T = Z(() => Object.assign([], D.options)), A = () => {
14
- console.log("3`222", D.model), H.value = D.model;
15
- }, i = (U, w, P) => {
16
- a.value && (w ? a.value.validate((k) => {
17
- if (k)
18
- Y(P || "submit", H.value, U);
12
+ setup(_, { emit: U }) {
13
+ const C = T({
14
+ model: {}
15
+ }), l = A(null), H = G(() => Object.assign([], _.options)), I = () => {
16
+ C.model = _.model;
17
+ }, r = (y, c, S) => {
18
+ l.value && (c ? l.value.validate((m) => {
19
+ if (m)
20
+ U(S || "submit", C.model, y);
19
21
  else
20
22
  return !1;
21
- }) : P === "reset" ? a.value.resetFields() : Y(P || "submit", H.value, U));
22
- }, v = (U, w) => {
23
- Y("selectChange", U, w);
24
- }, q = (U, w) => {
25
- Y("radioChange", U, w);
26
- }, N = (U, w) => {
27
- Y("checkChange", U, w);
28
- }, E = (U, w) => {
29
- const P = H.value[w].length;
30
- P !== 1 && (P > 1 && H.value[w].shift(), Y("checkChange", U, w));
31
- }, F = (U, w, P) => {
32
- i(U, w, P);
33
- }, M = (U, w) => {
34
- U && (w == null ? void 0 : w.key) === "Enter" && i(void 0, !0, "submit");
35
- }, z = () => {
36
- a.value.resetFields();
23
+ }) : S === "reset" ? l.value.resetFields() : U(S || "submit", C.model, y));
24
+ }, O = (y, c) => {
25
+ U("selectChange", y, c);
26
+ }, q = (y, c) => {
27
+ U("radioChange", y, c);
28
+ }, F = (y, c) => {
29
+ U("checkChange", y, c);
30
+ }, E = (y, c) => {
31
+ const S = C.model[c].length;
32
+ S !== 1 && (S > 1 && C.model[c].shift(), U("checkChange", y, c));
33
+ }, Y = (y, c, S) => {
34
+ r(y, c, S);
35
+ }, z = (y, c) => {
36
+ y && (c == null ? void 0 : c.key) === "Enter" && r(void 0, !0, "submit");
37
+ }, M = () => {
38
+ l.value.resetFields();
37
39
  }, B = () => {
38
- a.value.clearValidate();
40
+ l.value.clearValidate();
39
41
  };
40
- m(() => {
41
- A();
42
- });
43
- const O = $({
44
- count: 0,
45
- text: "hello"
46
- });
47
- return ll(() => D.fieldList, (U, w) => {
48
- U !== w && A();
42
+ return J(() => {
43
+ I(), l.value.resetFields();
44
+ }), Q(() => _.fieldList, (y, c) => {
45
+ y !== c && I();
49
46
  }), {
50
- ...el(O),
51
- formRef: a,
52
- model: H,
53
- _options: T,
54
- onSubmit: i,
55
- selectChange: v,
47
+ ...X(C),
48
+ formRef: l,
49
+ states: C,
50
+ formOptions: H,
51
+ onSubmit: r,
52
+ selectChange: O,
56
53
  radioChange: q,
57
- checkChange: N,
54
+ checkChange: F,
58
55
  handleCheckedChange: E,
59
- handleClick: F,
60
- handleKeyUp: M,
61
- resetFieldsTest: z,
56
+ handleClick: Y,
57
+ handleKeyUp: z,
58
+ resetFieldsTest: M,
62
59
  clearValidateTest: B
63
60
  };
64
61
  }
65
62
  };
66
- const rl = (D, Y) => {
67
- const H = D.__vccOpts || D;
68
- for (const [a, T] of Y)
69
- H[a] = T;
70
- return H;
71
- }, j = (D) => (ol("data-v-92bd879a"), D = D(), nl(), D), pl = { key: 0 }, ul = { class: "header-title" }, bl = { class: "title-content" }, yl = {
63
+ const de = (_, U) => {
64
+ const C = _.__vccOpts || _;
65
+ for (const [l, H] of U)
66
+ C[l] = H;
67
+ return C;
68
+ }, se = (_) => (le("data-v-15f750a4"), _ = _(), ae(), _), ne = { class: "header-title" }, re = { class: "title-content" }, te = {
72
69
  key: 0,
73
70
  class: "custom-required"
74
- }, cl = {
75
- key: 0,
76
- class: "custom-required"
77
- }, il = ["src"], hl = {
78
- key: 0,
79
- class: "custom-required"
80
- }, tl = { class: "lable" }, fl = { class: "lable_note" }, _l = {
81
- key: 0,
82
- class: "custom-required"
83
- }, gl = {
84
- key: 0,
85
- class: "custom-required"
86
- }, kl = {
87
- key: 0,
88
- class: "custom-required"
89
- }, Vl = {
90
- key: 0,
91
- class: "custom-required"
92
- }, xl = {
93
- key: 0,
94
- class: "custom-required"
95
- }, vl = {
96
- key: 0,
97
- class: "custom-required"
98
- }, Cl = {
99
- key: 0,
100
- class: "custom-required"
101
- }, Ul = {
102
- key: 0,
103
- class: "custom-required"
104
- }, wl = /* @__PURE__ */ j(() => /* @__PURE__ */ y("div", {
105
- class: "line",
106
- style: { "border-top": "1px solid #e8e8e8", width: "100%", height: "0px", margin: "20px 0" }
107
- }, null, -1)), Kl = {
108
- key: 0,
109
- class: "custom-required"
110
- }, Dl = { key: 1 }, ql = { class: "header-title" }, Nl = { class: "title-content" }, Sl = {
111
- key: 0,
112
- class: "custom-required"
113
- }, Yl = {
114
- key: 0,
115
- class: "custom-required"
116
- }, Hl = ["src"], El = {
117
- key: 0,
118
- class: "custom-required"
119
- }, Fl = { class: "lable" }, Ml = { class: "lable_note" }, zl = {
120
- key: 0,
121
- class: "custom-required"
122
- }, Bl = {
123
- key: 0,
124
- class: "custom-required"
125
- }, Pl = {
126
- key: 0,
127
- class: "custom-required"
128
- }, Il = {
129
- key: 0,
130
- class: "custom-required"
131
- }, Ll = {
132
- key: 0,
133
- class: "custom-required"
134
- }, Ol = {
135
- key: 0,
136
- class: "custom-required"
137
- }, Rl = {
138
- key: 0,
139
- class: "custom-required"
140
- }, Tl = {
141
- key: 0,
142
- class: "custom-required"
143
- }, Wl = /* @__PURE__ */ j(() => /* @__PURE__ */ y("div", {
144
- class: "line",
145
- style: { "border-top": "1px solid #e8e8e8", width: "100%", height: "0px", margin: "20px 0" }
146
- }, null, -1)), jl = {
147
- key: 0,
148
- class: "custom-required"
149
- }, Al = { key: 2 }, Gl = { class: "header-title" }, Jl = { class: "title-content" }, Ql = {
150
- key: 0,
151
- class: "custom-required"
152
- }, Xl = {
153
- key: 0,
154
- class: "custom-required"
155
- }, Zl = ["src"], ml = {
156
- key: 0,
157
- class: "custom-required"
158
- }, $l = { class: "lable" }, le = { class: "lable_note" }, ee = {
159
- key: 0,
160
- class: "custom-required"
161
- }, ae = {
162
- key: 0,
163
- class: "custom-required"
164
- }, de = {
165
- key: 0,
166
- class: "custom-required"
167
- }, oe = {
168
- key: 0,
169
- class: "custom-required"
170
- }, ne = {
171
- key: 0,
172
- class: "custom-required"
173
- }, se = {
71
+ }, pe = {
174
72
  key: 0,
175
73
  class: "custom-required"
176
- }, re = {
74
+ }, ce = ["src"], ue = {
177
75
  key: 0,
178
76
  class: "custom-required"
179
- }, pe = {
77
+ }, be = { class: "lable" }, ie = { class: "lable_note" }, ye = {
180
78
  key: 0,
181
79
  class: "custom-required"
182
- }, ue = /* @__PURE__ */ j(() => /* @__PURE__ */ y("div", {
183
- class: "line",
184
- style: { "border-top": "1px solid #e8e8e8", width: "100%", height: "0px", margin: "20px 0" }
185
- }, null, -1)), be = {
80
+ }, fe = {
186
81
  key: 0,
187
82
  class: "custom-required"
188
- }, ye = { key: 3 }, ce = { class: "header-title" }, ie = { class: "title-content" }, he = {
83
+ }, he = {
189
84
  key: 0,
190
85
  class: "custom-required"
191
- }, te = {
86
+ }, _e = {
192
87
  key: 0,
193
88
  class: "custom-required"
194
- }, fe = ["src"], _e = {
89
+ }, ge = {
195
90
  key: 0,
196
91
  class: "custom-required"
197
- }, ge = { class: "lable" }, ke = { class: "lable_note" }, Ve = {
92
+ }, ke = {
198
93
  key: 0,
199
94
  class: "custom-required"
200
95
  }, xe = {
201
96
  key: 0,
202
97
  class: "custom-required"
203
- }, ve = {
204
- key: 0,
205
- class: "custom-required"
206
98
  }, Ce = {
207
99
  key: 0,
208
100
  class: "custom-required"
209
- }, Ue = {
210
- key: 0,
211
- class: "custom-required"
212
- }, we = {
213
- key: 0,
214
- class: "custom-required"
215
- }, Ke = {
216
- key: 0,
217
- class: "custom-required"
218
- }, De = {
219
- key: 0,
220
- class: "custom-required"
221
- }, qe = /* @__PURE__ */ j(() => /* @__PURE__ */ y("div", {
101
+ }, Ve = /* @__PURE__ */ se(() => /* @__PURE__ */ i("div", {
222
102
  class: "line",
223
103
  style: { "border-top": "1px solid #e8e8e8", width: "100%", height: "0px", margin: "20px 0" }
224
- }, null, -1)), Ne = {
104
+ }, null, -1)), ve = {
225
105
  key: 0,
226
106
  class: "custom-required"
227
107
  };
228
- function Se(D, Y, H, a, T, A) {
229
- const i = S("el-form-item"), v = S("el-input"), q = S("el-radio"), N = S("el-radio-group"), E = S("el-checkbox"), F = S("el-checkbox-group"), M = S("el-option"), z = S("el-select"), B = S("el-date-picker"), O = S("el-col"), U = S("el-row"), w = S("sinosoft-common-button"), P = S("el-form");
230
- return o(), s(P, al({
108
+ function we(_, U, C, l, H, I) {
109
+ const r = v("el-form-item"), O = v("el-input"), q = v("el-radio"), F = v("el-radio-group"), E = v("el-checkbox"), Y = v("el-checkbox-group"), z = v("el-option"), M = v("el-select"), B = v("el-date-picker"), y = v("el-col"), c = v("el-row"), S = v("sinosoft-common-button"), m = v("el-form");
110
+ return d(), n(m, Z({
231
111
  "hide-required-asterisk": "",
232
- onSubmit: Y[0] || (Y[0] = dl(() => {
112
+ onSubmit: U[0] || (U[0] = $(() => {
233
113
  }, ["prevent"])),
234
- model: a.model
235
- }, a._options, {
236
- "label-position": a._options.labelPosition,
114
+ model: C.model
115
+ }, l.formOptions, {
116
+ "label-position": l.formOptions.labelPosition,
237
117
  ref: "formRef"
238
118
  }), {
239
- default: d(() => [
240
- (o(!0), r(V, null, x(H.fieldList, (k, G) => (o(), r("div", { key: G }, [
241
- k.colNum === 4 ? (o(), r("div", pl, [
242
- b(U, { gutter: 10 }, {
243
- default: d(() => [
244
- (o(!0), r(V, null, x(k.formItemList, (l, L) => h((o(), s(O, {
245
- xs: 24,
246
- sm: 6,
247
- md: 6,
248
- lg: 6,
249
- xl: 6,
250
- key: L
251
- }, {
252
- default: d(() => [
253
- y("div", {
254
- style: t(l.style)
255
- }, [
256
- l.type === "title" ? h((o(), s(i, { key: 0 }, {
257
- default: d(() => [
258
- y("div", ul, [
259
- y("span", bl, p(l.title), 1)
260
- ])
261
- ]),
262
- _: 2
263
- }, 1536)), [
264
- [f, !l.isHide]
265
- ]) : l.type === "name" ? h((o(), s(i, {
266
- key: 1,
267
- label: l.label,
268
- disabled: l.disabled || a._options.isDisabled,
269
- class: "container_name",
270
- rules: l.rules.nameEnFamily
271
- }, {
272
- label: d(() => [
273
- y("div", {
274
- style: t([{ display: "inline-block" }, l.lableStyle])
275
- }, p(l.label), 5),
276
- l.required ? (o(), r("span", yl, "*")) : g("", !0)
277
- ]),
278
- default: d(() => [
279
- b(i, {
280
- rules: l.rules.nameEnFamily,
281
- prop: [l.field.nameEnFamily],
282
- class: "item-name"
283
- }, {
284
- default: d(() => [
285
- b(v, {
286
- maxlength: l.maxlength,
287
- modelValue: a.model[l.field.nameEnFamily],
288
- "onUpdate:modelValue": (e) => a.model[l.field.nameEnFamily] = e,
289
- "show-word-limit": "",
290
- readonly: l.readonly,
291
- type: l.type ? l.type : "text",
292
- placeholder: l.placeholderNameEnFamily,
293
- disabled: l.disabled || a._options.isDisabled,
294
- onKeyup: K((e) => a.handleKeyUp(l.enterable), ["enter"])
295
- }, null, 8, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
296
- ]),
297
- _: 2
298
- }, 1032, ["rules", "prop"]),
299
- b(i, {
300
- rules: l.rules.nameEn,
301
- prop: [l.field.nameEn],
302
- class: "item-name-right"
303
- }, {
304
- default: d(() => [
305
- b(v, {
306
- maxlength: l.maxlength,
307
- modelValue: a.model[l.field.nameEn],
308
- "onUpdate:modelValue": (e) => a.model[l.field.nameEn] = e,
309
- readonly: l.readonly,
310
- type: l.type ? l.type : "text",
311
- placeholder: l.placeholderNameEn,
312
- disabled: l.disabled || a._options.isDisabled,
313
- onKeyup: K((e) => a.handleKeyUp(l.enterable), ["enter"])
314
- }, null, 8, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
315
- ]),
316
- _: 2
317
- }, 1032, ["rules", "prop"]),
318
- b(i, {
319
- rules: l.rules.nameChFamily,
320
- prop: [l.field.nameChFamily],
321
- class: "item-name"
322
- }, {
323
- default: d(() => [
324
- b(v, {
325
- maxlength: l.maxlength,
326
- modelValue: a.model[l.field.nameChFamily],
327
- "onUpdate:modelValue": (e) => a.model[l.field.nameChFamily] = e,
328
- readonly: l.readonly,
329
- type: l.type ? l.type : "text",
330
- placeholder: l.placeholderNameChFamily,
331
- disabled: l.disabled || a._options.isDisabled,
332
- onKeyup: K((e) => a.handleKeyUp(l.enterable), ["enter"])
333
- }, null, 8, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
334
- ]),
335
- _: 2
336
- }, 1032, ["rules", "prop"]),
337
- b(i, {
338
- rules: l.rules.nameCh,
339
- prop: [l.field.nameCh],
340
- class: "item-name-right"
341
- }, {
342
- default: d(() => [
343
- b(v, {
344
- maxlength: l.maxlength,
345
- modelValue: a.model[l.field.nameCh],
346
- "onUpdate:modelValue": (e) => a.model[l.field.nameCh] = e,
347
- readonly: l.readonly,
348
- type: l.type ? l.type : "text",
349
- placeholder: l.placeholderNameCh,
350
- disabled: l.disabled || a._options.isDisabled,
351
- onKeyup: K((e) => a.handleKeyUp(l.enterable), ["enter"])
352
- }, null, 8, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
353
- ]),
354
- _: 2
355
- }, 1032, ["rules", "prop"])
356
- ]),
357
- _: 2
358
- }, 1032, ["label", "disabled", "rules"])), [
359
- [f, !l.isHide]
360
- ]) : l.type === "gender" ? h((o(), s(i, {
361
- key: 2,
362
- label: l.label,
363
- rules: l.rules,
364
- prop: [l.field]
365
- }, {
366
- label: d(() => [
367
- y("div", {
368
- style: t([{ display: "inline-block" }, l.lableStyle])
369
- }, p(l.label), 5),
370
- l.required ? (o(), r("span", cl, "*")) : g("", !0)
371
- ]),
372
- default: d(() => [
373
- b(N, {
374
- modelValue: a.model[l.field],
375
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
376
- disabled: l.disabled || a._options.isDisabled,
377
- onChange: (e) => a.radioChange(e, l.field)
378
- }, {
379
- default: d(() => {
380
- var e;
381
- return [
382
- (o(!0), r(V, null, x((e = l.options) == null ? void 0 : e.data, (n) => {
383
- var u, c;
384
- return o(), s(q, {
385
- label: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"],
386
- size: "large",
387
- key: n[((c = l.options) == null ? void 0 : c.valueKey) || "code"]
388
- }, {
389
- default: d(() => [
390
- y("img", {
391
- 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",
392
- style: { width: "44px", height: "44px", "margin-bottom": "-15px", "margin-left": "4px" },
393
- alt: ""
394
- }, null, 8, il)
395
- ]),
396
- _: 2
397
- }, 1032, ["label"]);
398
- }), 128))
399
- ];
400
- }),
401
- _: 2
402
- }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
403
- ]),
404
- _: 2
405
- }, 1032, ["label", "rules", "prop"])), [
406
- [f, !l.isHide]
407
- ]) : l.type === "radio" ? h((o(), s(i, {
408
- key: 3,
409
- label: l.label,
410
- rules: l.rules,
411
- prop: [l.field],
412
- class: I([l.labelNode ? "radio_Note" : "rule_err"])
413
- }, {
414
- label: d(() => [
415
- y("div", {
416
- style: t([{ display: "inline-block" }, l.lableStyle])
417
- }, p(l.label), 5),
418
- l.required ? (o(), r("span", hl, "*")) : g("", !0)
419
- ]),
420
- default: d(() => [
421
- b(N, {
422
- modelValue: a.model[l.field],
423
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
424
- disabled: l.disabled || a._options.isDisabled,
425
- onChange: (e) => a.radioChange(e, l.field)
426
- }, {
427
- default: d(() => {
428
- var e;
429
- return [
430
- (o(!0), r(V, null, x((e = l.options) == null ? void 0 : e.data, (n) => {
431
- var u, c;
432
- return o(), s(q, {
433
- size: "large",
434
- label: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"],
435
- key: n[((c = l.options) == null ? void 0 : c.valueKey) || "code"]
436
- }, {
437
- default: d(() => {
438
- var _;
439
- return [
440
- C(p(n[((_ = l.options) == null ? void 0 : _.labelkey) || "name"]), 1)
441
- ];
442
- }),
443
- _: 2
444
- }, 1032, ["label"]);
445
- }), 128))
446
- ];
447
- }),
448
- _: 2
449
- }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
450
- ]),
451
- _: 2
452
- }, 1032, ["label", "rules", "prop", "class"])), [
453
- [f, !l.isHide]
454
- ]) : l.type === "radioNote" ? h((o(), s(i, {
455
- key: 4,
456
- label: l.label,
457
- rules: l.rules,
458
- prop: [l.field],
459
- class: I([l.labelNode ? "radio_Note" : "rule_err"])
460
- }, {
461
- default: d(() => [
462
- y("div", null, [
463
- y("span", tl, p(l.labelBefore), 1),
464
- y("span", fl, p(l.labelNode), 1),
465
- l.required ? (o(), r("span", _l, "*")) : g("", !0)
466
- ]),
467
- b(N, {
468
- modelValue: a.model[l.field],
469
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
470
- disabled: l.disabled || a._options.isDisabled,
471
- onChange: (e) => a.radioChange(e, l.field)
472
- }, {
473
- default: d(() => {
474
- var e;
475
- return [
476
- (o(!0), r(V, null, x((e = l.options) == null ? void 0 : e.data, (n) => {
477
- var u, c;
478
- return o(), s(q, {
479
- size: "large",
480
- label: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"],
481
- key: n[((c = l.options) == null ? void 0 : c.valueKey) || "code"]
482
- }, {
483
- default: d(() => {
484
- var _;
485
- return [
486
- C(p(n[((_ = l.options) == null ? void 0 : _.labelkey) || "name"]), 1)
487
- ];
488
- }),
489
- _: 2
490
- }, 1032, ["label"]);
491
- }), 128))
492
- ];
493
- }),
494
- _: 2
495
- }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
496
- ]),
497
- _: 2
498
- }, 1032, ["label", "rules", "prop", "class"])), [
499
- [f, !l.isHide]
500
- ]) : l.type === "checkbox" ? h((o(), s(i, {
501
- key: 5,
502
- label: l.label,
503
- rules: l.rules,
504
- prop: [l.field]
505
- }, {
506
- label: d(() => [
507
- y("div", {
508
- style: t([{ display: "inline-block" }, l.lableStyle])
509
- }, p(l.label), 5),
510
- l.required ? (o(), r("span", gl, "*")) : g("", !0)
511
- ]),
512
- default: d(() => [
513
- b(F, {
514
- modelValue: a.model[l.field],
515
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
516
- onChange: (e) => a.checkChange(e, l.field),
517
- disabled: l.disabled || a._options.isDisabled,
518
- style: t(
519
- l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
520
- )
521
- }, {
522
- default: d(() => {
523
- var e;
524
- return [
525
- (o(!0), r(V, null, x((e = l.options) == null ? void 0 : e.data, (n) => {
526
- var u, c;
527
- return o(), s(E, {
528
- key: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"],
529
- label: n[((c = l.options) == null ? void 0 : c.valueKey) || "code"]
530
- }, {
531
- default: d(() => {
532
- var _;
533
- return [
534
- C(p(n[((_ = l.options) == null ? void 0 : _.labelkey) || "name"]), 1)
535
- ];
536
- }),
537
- _: 2
538
- }, 1032, ["label"]);
539
- }), 128))
540
- ];
541
- }),
542
- _: 2
543
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
544
- ]),
545
- _: 2
546
- }, 1032, ["label", "rules", "prop"])), [
547
- [f, !l.isHide]
548
- ]) : l.type === "checkboxRadio" ? h((o(), s(i, {
549
- key: 6,
550
- label: l.label,
551
- rules: l.rules,
552
- prop: [l.field]
553
- }, {
554
- label: d(() => [
555
- y("div", {
556
- style: t([{ display: "inline-block" }, l.lableStyle])
557
- }, p(l.label), 5),
558
- l.required ? (o(), r("span", kl, "*")) : g("", !0)
559
- ]),
560
- default: d(() => [
561
- b(F, {
562
- modelValue: a.model[l.field],
563
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
564
- onChange: (e) => a.handleCheckedChange(e, l.field),
565
- disabled: l.disabled || a._options.isDisabled,
566
- style: t(
567
- l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
568
- )
569
- }, {
570
- default: d(() => {
571
- var e;
572
- return [
573
- (o(!0), r(V, null, x((e = l.options) == null ? void 0 : e.data, (n) => {
574
- var u, c;
575
- return o(), s(E, {
576
- key: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"],
577
- label: n[((c = l.options) == null ? void 0 : c.valueKey) || "code"]
578
- }, {
579
- default: d(() => {
580
- var _;
581
- return [
582
- C(p(n[((_ = l.options) == null ? void 0 : _.labelkey) || "name"]), 1)
583
- ];
584
- }),
585
- _: 2
586
- }, 1032, ["label"]);
587
- }), 128))
588
- ];
589
- }),
590
- _: 2
591
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
592
- ]),
593
- _: 2
594
- }, 1032, ["label", "rules", "prop"])), [
595
- [f, !l.isHide]
596
- ]) : l.type === "select" ? h((o(), s(i, {
597
- key: 7,
598
- label: l.label,
599
- rules: l.rules,
600
- disabled: l.disabled || a._options.isDisabled,
601
- prop: [l.field]
602
- }, {
603
- label: d(() => [
604
- y("div", {
605
- style: t([{ display: "inline-block" }, l.lableStyle])
606
- }, p(l.label), 5),
607
- l.required ? (o(), r("span", Vl, "*")) : g("", !0)
608
- ]),
609
- default: d(() => [
610
- b(z, {
611
- onChange: (e) => a.selectChange(e, l.field),
612
- modelValue: a.model[l.field],
613
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
614
- disabled: l.disabled || a._options.isDisabled,
615
- placeholder: l.placeholder,
616
- clearable: l.clearable
617
- }, {
618
- default: d(() => {
619
- var e;
620
- return [
621
- (o(!0), r(V, null, x((e = l.options) == null ? void 0 : e.data, (n) => {
622
- var u, c, _;
623
- return o(), s(M, {
624
- key: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"],
625
- label: n[((c = l.options) == null ? void 0 : c.labelkey) || "name"],
626
- value: n[((_ = l.options) == null ? void 0 : _.valueKey) || "code"]
627
- }, null, 8, ["label", "value"]);
628
- }), 128))
629
- ];
630
- }),
631
- _: 2
632
- }, 1032, ["onChange", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "clearable"]),
633
- y("div", {
634
- class: "item_tips_blow",
635
- style: t(l.tipsBlowStyle)
636
- }, p(l.tipsBlow), 5)
637
- ]),
638
- _: 2
639
- }, 1032, ["label", "rules", "disabled", "prop"])), [
640
- [f, !l.isHide]
641
- ]) : l.type === "date" ? h((o(), s(i, {
642
- key: 8,
643
- label: l.label,
644
- rules: l.rules,
645
- prop: [l.field]
646
- }, {
647
- label: d(() => [
648
- y("div", {
649
- style: t([{ display: "inline-block" }, l.lableStyle])
650
- }, p(l.label), 5),
651
- l.required ? (o(), r("span", xl, "*")) : g("", !0)
652
- ]),
653
- default: d(() => [
654
- b(B, {
655
- format: "DD/MM/YYYY",
656
- "value-format": "DD/MM/YYYY",
657
- "disabled-date": l.disabledDate,
658
- modelValue: a.model[l.field],
659
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
660
- disabled: l.disabled || a._options.isDisabled,
661
- readonly: l.readonly,
662
- type: l.type,
663
- placeholder: l.placeholder || l.label
664
- }, null, 8, ["disabled-date", "modelValue", "onUpdate:modelValue", "disabled", "readonly", "type", "placeholder"])
665
- ]),
666
- _: 2
667
- }, 1032, ["label", "rules", "prop"])), [
668
- [f, !l.isHide]
669
- ]) : l.type === "daterange" ? h((o(), s(i, {
670
- key: 9,
671
- label: l.label,
672
- rules: l.rules,
673
- prop: [l.field]
674
- }, {
675
- label: d(() => [
676
- y("div", {
677
- style: t([{ display: "inline-block" }, l.lableStyle])
678
- }, p(l.label), 5),
679
- l.required ? (o(), r("span", vl, "*")) : g("", !0)
680
- ]),
681
- default: d(() => [
682
- b(B, {
683
- format: "DD/MM/YYYY",
684
- "value-format": "DD/MM/YYYY",
685
- "disabled-date": l.disabledDate,
686
- modelValue: a.model[l.field],
687
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
688
- type: "daterange",
689
- "range-separator": "To",
690
- "start-placeholder": l.startPlaceholder,
691
- "end-placeholder": l.endPlaceholder,
692
- size: "large"
693
- }, null, 8, ["disabled-date", "modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder"])
694
- ]),
695
- _: 2
696
- }, 1032, ["label", "rules", "prop"])), [
697
- [f, !l.isHide]
698
- ]) : l.type === "slotItem" ? h((o(), s(i, {
699
- key: 10,
700
- label: l.label,
701
- rules: l.rules,
702
- prop: [l.field],
703
- class: "rule_err"
704
- }, {
705
- label: d(() => [
706
- y("div", {
707
- style: t([{ display: "inline-block" }, l.lableStyle])
708
- }, p(l.label), 5),
709
- l.required ? (o(), r("span", Cl, "*")) : g("", !0)
710
- ]),
711
- default: d(() => [
712
- R(D.$slots, l.slotItemName, {}, void 0, !0)
713
- ]),
714
- _: 2
715
- }, 1032, ["label", "rules", "prop"])), [
716
- [f, !l.isHide]
717
- ]) : l.type === "phone" ? h((o(), s(i, {
718
- key: 11,
719
- label: l.label,
720
- rules: l.rules.phoneNumber,
721
- prop: [l.field.phoneNumber],
722
- class: "phone_item"
723
- }, {
724
- label: d(() => [
725
- y("div", {
726
- style: t([{ display: "inline-block" }, l.lableStyle])
727
- }, p(l.label), 5),
728
- l.required ? (o(), r("span", Ul, "*")) : g("", !0)
729
- ]),
730
- default: d(() => [
731
- b(v, {
732
- maxlength: l.maxlength,
733
- modelValue: a.model[l.field.phoneNumber],
734
- "onUpdate:modelValue": (e) => a.model[l.field.phoneNumber] = e,
735
- disabled: l.disabled || a._options.isDisabled,
736
- placeholder: l.placeholder || "请选择",
737
- clearable: l.clearable
738
- }, {
739
- prepend: d(() => {
740
- var e;
741
- return [
742
- b(z, {
743
- disabled: l.disabled || a._options.isDisabled,
744
- modelValue: a.model[l.field.areaCode],
745
- "onUpdate:modelValue": (n) => a.model[l.field.areaCode] = n,
746
- placeholder: ((e = l.options) == null ? void 0 : e.placeholder) || "请选择",
747
- style: { width: "115px" }
748
- }, {
749
- default: d(() => {
750
- var n;
751
- return [
752
- (o(!0), r(V, null, x((n = l.options) == null ? void 0 : n.data, (u, c) => (o(), s(M, {
753
- label: u.name,
754
- value: u.code,
755
- key: c
756
- }, null, 8, ["label", "value"]))), 128))
757
- ];
758
- }),
759
- _: 2
760
- }, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder"])
761
- ];
762
- }),
763
- _: 2
764
- }, 1032, ["maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "clearable"])
765
- ]),
766
- _: 2
767
- }, 1032, ["label", "rules", "prop"])), [
768
- [f, !l.isHide]
769
- ]) : l.type === "line" ? h((o(), s(i, {
770
- key: 12,
771
- label: l.label
772
- }, {
773
- default: d(() => [
774
- wl
775
- ]),
776
- _: 2
777
- }, 1032, ["label"])), [
778
- [f, !l.isHide]
779
- ]) : h((o(), s(i, {
780
- key: 13,
781
- label: l.label,
782
- rules: l.rules,
783
- prop: [l.field]
784
- }, {
785
- label: d(() => [
786
- y("div", {
787
- style: t([{ display: "inline-block" }, l.lableStyle])
788
- }, p(l.label), 5),
789
- l.required ? (o(), r("span", Kl, "*")) : g("", !0)
790
- ]),
791
- default: d(() => [
792
- b(v, {
793
- maxlength: l.maxlength,
794
- modelValue: a.model[l.field],
795
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
796
- readonly: l.readonly,
797
- type: l.type ? l.type : "text",
798
- placeholder: l.placeholder || l.label,
799
- disabled: l.disabled || a._options.isDisabled,
800
- showPassword: l.showPassword,
801
- clearable: l.clearable,
802
- onKeyup: K((e) => a.handleKeyUp(l.enterable), ["enter"])
803
- }, W({ _: 2 }, [
804
- l.prepend ? {
805
- name: "prepend",
806
- fn: d(() => [
807
- C(p(l.field), 1)
808
- ]),
809
- key: "0"
810
- } : void 0,
811
- l.append ? {
812
- name: "append",
813
- fn: d(() => [
814
- C(p(l.append), 1)
815
- ]),
816
- key: "1"
817
- } : void 0
818
- ]), 1032, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
819
- ]),
820
- _: 2
821
- }, 1032, ["label", "rules", "prop"])), [
822
- [f, !l.isHide]
119
+ default: o(() => [
120
+ u(c, { gutter: 10 }, {
121
+ default: o(() => [
122
+ (d(!0), t(K, null, D(C.fieldList, (e, P) => g((d(), n(y, {
123
+ xs: e.xs ? e.xs : 24,
124
+ sm: e.sm ? e.sm : 24,
125
+ md: e.md ? e.md : 8,
126
+ lg: e.lg ? e.lg : 8,
127
+ xl: e.xl ? e.xl : 8,
128
+ key: P
129
+ }, {
130
+ default: o(() => [
131
+ i("div", {
132
+ style: k(e.style)
133
+ }, [
134
+ e.type === "title" ? g((d(), n(r, { key: 0 }, {
135
+ default: o(() => [
136
+ i("div", ne, [
137
+ i("span", re, p(e.title), 1)
823
138
  ])
824
- ], 4)
825
- ]),
826
- _: 2
827
- }, 1024)), [
828
- [f, !l.isHide]
829
- ])), 128))
830
- ]),
831
- _: 2
832
- }, 1024)
833
- ])) : k.colNum === 3 ? (o(), r("div", Dl, [
834
- b(U, { gutter: 20 }, {
835
- default: d(() => [
836
- (o(!0), r(V, null, x(k.formItemList, (l, L) => h((o(), s(O, {
837
- xs: 24,
838
- sm: 8,
839
- md: 8,
840
- lg: 8,
841
- xl: 8,
842
- key: L
843
- }, {
844
- default: d(() => [
845
- y("div", {
846
- style: t(l.style)
847
- }, [
848
- l.type === "title" ? h((o(), s(i, { key: 0 }, {
849
- default: d(() => [
850
- y("div", ql, [
851
- y("span", Nl, p(l.title), 1)
852
- ])
853
- ]),
854
- _: 2
855
- }, 1536)), [
856
- [f, !l.isHide]
857
- ]) : l.type === "name" ? h((o(), s(i, {
858
- key: 1,
859
- label: l.label,
860
- disabled: l.disabled || a._options.isDisabled,
861
- class: "container_name",
862
- rules: l.rules.nameEnFamily
863
- }, {
864
- label: d(() => [
865
- y("div", {
866
- style: t([{ display: "inline-block" }, l.lableStyle])
867
- }, p(l.label), 5),
868
- l.required ? (o(), r("span", Sl, "*")) : g("", !0)
869
- ]),
870
- default: d(() => [
871
- b(i, {
872
- rules: l.rules.nameEnFamily,
873
- prop: [l.field.nameEnFamily],
874
- class: "item-name"
875
- }, {
876
- default: d(() => [
877
- b(v, {
878
- maxlength: l.maxlength,
879
- modelValue: a.model[l.field.nameEnFamily],
880
- "onUpdate:modelValue": (e) => a.model[l.field.nameEnFamily] = e,
881
- readonly: l.readonly,
882
- type: l.type ? l.type : "text",
883
- placeholder: l.placeholderNameEnFamily,
884
- disabled: l.disabled || a._options.isDisabled,
885
- onKeyup: K((e) => a.handleKeyUp(l.enterable), ["enter"])
886
- }, null, 8, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
887
- ]),
888
- _: 2
889
- }, 1032, ["rules", "prop"]),
890
- b(i, {
891
- rules: l.rules.nameEn,
892
- prop: [l.field.nameEn],
893
- class: "item-name-right"
894
- }, {
895
- default: d(() => [
896
- b(v, {
897
- maxlength: l.maxlength,
898
- modelValue: a.model[l.field.nameEn],
899
- "onUpdate:modelValue": (e) => a.model[l.field.nameEn] = e,
900
- readonly: l.readonly,
901
- type: l.type ? l.type : "text",
902
- placeholder: l.placeholderNameEn,
903
- disabled: l.disabled || a._options.isDisabled,
904
- onKeyup: K((e) => a.handleKeyUp(l.enterable), ["enter"])
905
- }, null, 8, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
906
- ]),
907
- _: 2
908
- }, 1032, ["rules", "prop"]),
909
- b(i, {
910
- rules: l.rules.nameChFamily,
911
- prop: [l.field.nameChFamily],
912
- class: "item-name"
913
- }, {
914
- default: d(() => [
915
- b(v, {
916
- maxlength: l.maxlength,
917
- modelValue: a.model[l.field.nameChFamily],
918
- "onUpdate:modelValue": (e) => a.model[l.field.nameChFamily] = e,
919
- readonly: l.readonly,
920
- type: l.type ? l.type : "text",
921
- placeholder: l.placeholderNameChFamily,
922
- disabled: l.disabled || a._options.isDisabled,
923
- onKeyup: K((e) => a.handleKeyUp(l.enterable), ["enter"])
924
- }, null, 8, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
925
- ]),
926
- _: 2
927
- }, 1032, ["rules", "prop"]),
928
- b(i, {
929
- rules: l.rules.nameCh,
930
- prop: [l.field.nameCh],
931
- class: "item-name-right"
932
- }, {
933
- default: d(() => [
934
- b(v, {
935
- maxlength: l.maxlength,
936
- modelValue: a.model[l.field.nameCh],
937
- "onUpdate:modelValue": (e) => a.model[l.field.nameCh] = e,
938
- readonly: l.readonly,
939
- type: l.type ? l.type : "text",
940
- placeholder: l.placeholderNameCh,
941
- disabled: l.disabled || a._options.isDisabled,
942
- onKeyup: K((e) => a.handleKeyUp(l.enterable), ["enter"])
943
- }, null, 8, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
944
- ]),
945
- _: 2
946
- }, 1032, ["rules", "prop"])
947
- ]),
948
- _: 2
949
- }, 1032, ["label", "disabled", "rules"])), [
950
- [f, !l.isHide]
951
- ]) : l.type === "gender" ? h((o(), s(i, {
952
- key: 2,
953
- label: l.label,
954
- rules: l.rules,
955
- prop: [l.field]
956
- }, {
957
- label: d(() => [
958
- y("div", {
959
- style: t([{ display: "inline-block" }, l.lableStyle])
960
- }, p(l.label), 5),
961
- l.required ? (o(), r("span", Yl, "*")) : g("", !0)
962
- ]),
963
- default: d(() => [
964
- b(N, {
965
- modelValue: a.model[l.field],
966
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
967
- disabled: l.disabled || a._options.isDisabled,
968
- onChange: (e) => a.radioChange(e, l.field)
969
- }, {
970
- default: d(() => {
971
- var e;
972
- return [
973
- (o(!0), r(V, null, x((e = l.options) == null ? void 0 : e.data, (n) => {
974
- var u, c;
975
- return o(), s(q, {
976
- label: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"],
977
- size: "large",
978
- key: n[((c = l.options) == null ? void 0 : c.valueKey) || "code"]
979
- }, {
980
- default: d(() => [
981
- y("img", {
982
- 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",
983
- style: { width: "44px", height: "44px", "margin-bottom": "-15px", "margin-left": "4px" },
984
- alt: ""
985
- }, null, 8, Hl)
986
- ]),
987
- _: 2
988
- }, 1032, ["label"]);
989
- }), 128))
990
- ];
991
- }),
992
- _: 2
993
- }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
994
- ]),
995
- _: 2
996
- }, 1032, ["label", "rules", "prop"])), [
997
- [f, !l.isHide]
998
- ]) : l.type === "radio" ? h((o(), s(i, {
999
- key: 3,
1000
- label: l.label,
1001
- rules: l.rules,
1002
- prop: [l.field],
1003
- class: I([l.labelNode ? "radio_Note" : "rule_err"])
1004
- }, {
1005
- label: d(() => [
1006
- y("div", {
1007
- style: t([{ display: "inline-block" }, l.lableStyle])
1008
- }, p(l.label), 5),
1009
- l.required ? (o(), r("span", El, "*")) : g("", !0)
1010
- ]),
1011
- default: d(() => [
1012
- b(N, {
1013
- modelValue: a.model[l.field],
1014
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
1015
- disabled: l.disabled || a._options.isDisabled,
1016
- onChange: (e) => a.radioChange(e, l.field)
1017
- }, {
1018
- default: d(() => {
1019
- var e;
1020
- return [
1021
- (o(!0), r(V, null, x((e = l.options) == null ? void 0 : e.data, (n) => {
1022
- var u, c;
1023
- return o(), s(q, {
1024
- size: "large",
1025
- label: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"],
1026
- key: n[((c = l.options) == null ? void 0 : c.valueKey) || "code"]
1027
- }, {
1028
- default: d(() => {
1029
- var _;
1030
- return [
1031
- C(p(n[((_ = l.options) == null ? void 0 : _.labelkey) || "name"]), 1)
1032
- ];
1033
- }),
1034
- _: 2
1035
- }, 1032, ["label"]);
1036
- }), 128))
1037
- ];
1038
- }),
1039
- _: 2
1040
- }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
1041
- ]),
1042
- _: 2
1043
- }, 1032, ["label", "rules", "prop", "class"])), [
1044
- [f, !l.isHide]
1045
- ]) : l.type === "radioNote" ? h((o(), s(i, {
1046
- key: 4,
1047
- label: l.label,
1048
- rules: l.rules,
1049
- prop: [l.field],
1050
- class: I([l.labelNode ? "radio_Note" : "rule_err"])
1051
- }, {
1052
- default: d(() => [
1053
- y("div", null, [
1054
- y("span", Fl, p(l.labelBefore), 1),
1055
- y("span", Ml, p(l.labelNode), 1),
1056
- l.required ? (o(), r("span", zl, "*")) : g("", !0)
139
+ ]),
140
+ _: 2
141
+ }, 1536)), [
142
+ [x, !e.isHide]
143
+ ]) : e.type === "name" ? g((d(), n(r, {
144
+ key: 1,
145
+ label: e.label,
146
+ disabled: e.disabled || l.formOptions.isDisabled,
147
+ class: "container_name",
148
+ rules: e.rules.nameEnFamily
149
+ }, {
150
+ label: o(() => [
151
+ i("div", {
152
+ style: k([{ display: "inline-block" }, e.labelStyle])
153
+ }, [
154
+ h(p(e.label) + " ", 1),
155
+ e.required ? (d(), t("span", te, "*")) : w("", !0)
156
+ ], 4)
157
+ ]),
158
+ default: o(() => [
159
+ u(r, {
160
+ rules: e.rules.nameEnFamily,
161
+ prop: [e.field.nameEnFamily],
162
+ class: "item-name"
163
+ }, {
164
+ default: o(() => [
165
+ u(O, {
166
+ maxlength: e.maxlength,
167
+ modelValue: l.states.model[e.field.nameEnFamily],
168
+ "onUpdate:modelValue": (a) => l.states.model[e.field.nameEnFamily] = a,
169
+ "show-word-limit": "",
170
+ readonly: e.readonly,
171
+ type: e.type ? e.type : "text",
172
+ placeholder: e.placeholderNameEnFamily,
173
+ disabled: e.disabled || l.formOptions.isDisabled,
174
+ onKeyup: N((a) => l.handleKeyUp(e.enterable), ["enter"])
175
+ }, null, 8, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
176
+ ]),
177
+ _: 2
178
+ }, 1032, ["rules", "prop"]),
179
+ u(r, {
180
+ rules: e.rules.nameEn,
181
+ prop: [e.field.nameEn],
182
+ class: "item-name-right"
183
+ }, {
184
+ default: o(() => [
185
+ u(O, {
186
+ maxlength: e.maxlength,
187
+ modelValue: l.states.model[e.field.nameEn],
188
+ "onUpdate:modelValue": (a) => l.states.model[e.field.nameEn] = a,
189
+ readonly: e.readonly,
190
+ type: e.type ? e.type : "text",
191
+ placeholder: e.placeholderNameEn,
192
+ disabled: e.disabled || l.formOptions.isDisabled,
193
+ onKeyup: N((a) => l.handleKeyUp(e.enterable), ["enter"])
194
+ }, null, 8, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
195
+ ]),
196
+ _: 2
197
+ }, 1032, ["rules", "prop"]),
198
+ u(r, {
199
+ rules: e.rules.nameChFamily,
200
+ prop: [e.field.nameChFamily],
201
+ class: "item-name"
202
+ }, {
203
+ default: o(() => [
204
+ u(O, {
205
+ maxlength: e.maxlength,
206
+ modelValue: l.states.model[e.field.nameChFamily],
207
+ "onUpdate:modelValue": (a) => l.states.model[e.field.nameChFamily] = a,
208
+ readonly: e.readonly,
209
+ type: e.type ? e.type : "text",
210
+ placeholder: e.placeholderNameChFamily,
211
+ disabled: e.disabled || l.formOptions.isDisabled,
212
+ onKeyup: N((a) => l.handleKeyUp(e.enterable), ["enter"])
213
+ }, null, 8, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
214
+ ]),
215
+ _: 2
216
+ }, 1032, ["rules", "prop"]),
217
+ u(r, {
218
+ rules: e.rules.nameCh,
219
+ prop: [e.field.nameCh],
220
+ class: "item-name-right"
221
+ }, {
222
+ default: o(() => [
223
+ u(O, {
224
+ maxlength: e.maxlength,
225
+ modelValue: l.states.model[e.field.nameCh],
226
+ "onUpdate:modelValue": (a) => l.states.model[e.field.nameCh] = a,
227
+ readonly: e.readonly,
228
+ type: e.type ? e.type : "text",
229
+ placeholder: e.placeholderNameCh,
230
+ disabled: e.disabled || l.formOptions.isDisabled,
231
+ onKeyup: N((a) => l.handleKeyUp(e.enterable), ["enter"])
232
+ }, null, 8, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
233
+ ]),
234
+ _: 2
235
+ }, 1032, ["rules", "prop"])
236
+ ]),
237
+ _: 2
238
+ }, 1032, ["label", "disabled", "rules"])), [
239
+ [x, !e.isHide]
240
+ ]) : e.type === "gender" ? g((d(), n(r, {
241
+ key: 2,
242
+ label: e.label,
243
+ rules: e.rules,
244
+ prop: [e.field]
245
+ }, {
246
+ label: o(() => [
247
+ i("div", {
248
+ style: k([{ display: "inline-block" }, e.labelStyle])
249
+ }, [
250
+ h(p(e.label) + " ", 1),
251
+ e.required ? (d(), t("span", pe, "*")) : w("", !0)
252
+ ], 4)
253
+ ]),
254
+ default: o(() => [
255
+ u(F, {
256
+ modelValue: l.states.model[e.field],
257
+ "onUpdate:modelValue": (a) => l.states.model[e.field] = a,
258
+ disabled: e.disabled || l.formOptions.isDisabled,
259
+ onChange: (a) => l.radioChange(a, e.field)
260
+ }, {
261
+ default: o(() => {
262
+ var a;
263
+ return [
264
+ (d(!0), t(K, null, D((a = e.options) == null ? void 0 : a.data, (s) => {
265
+ var b, f;
266
+ return d(), n(q, {
267
+ label: s[((b = e.options) == null ? void 0 : b.valueKey) || "code"],
268
+ size: "large",
269
+ key: s[((f = e.options) == null ? void 0 : f.valueKey) || "code"]
270
+ }, {
271
+ default: o(() => [
272
+ i("img", {
273
+ src: s.code === "M" ? "http://192.168.5.200:9000/test/sex_img_M.png" : "http://192.168.5.200:9000/test/sex_img_F.png",
274
+ style: { width: "44px", height: "44px", "margin-bottom": "-15px", "margin-left": "4px" },
275
+ alt: ""
276
+ }, null, 8, ce)
277
+ ]),
278
+ _: 2
279
+ }, 1032, ["label"]);
280
+ }), 128))
281
+ ];
282
+ }),
283
+ _: 2
284
+ }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
285
+ ]),
286
+ _: 2
287
+ }, 1032, ["label", "rules", "prop"])), [
288
+ [x, !e.isHide]
289
+ ]) : e.type === "radio" ? g((d(), n(r, {
290
+ key: 3,
291
+ label: e.label,
292
+ rules: e.rules,
293
+ prop: [e.field],
294
+ class: W([e.labelNode ? "radio_Note" : "rule_err"])
295
+ }, {
296
+ label: o(() => [
297
+ i("div", {
298
+ style: k([{ display: "inline-block" }, e.labelStyle])
299
+ }, [
300
+ h(p(e.label) + " ", 1),
301
+ e.required ? (d(), t("span", ue, "*")) : w("", !0)
302
+ ], 4)
303
+ ]),
304
+ default: o(() => [
305
+ u(F, {
306
+ modelValue: l.states.model[e.field],
307
+ "onUpdate:modelValue": (a) => l.states.model[e.field] = a,
308
+ disabled: e.disabled || l.formOptions.isDisabled,
309
+ onChange: (a) => l.radioChange(a, e.field)
310
+ }, {
311
+ default: o(() => {
312
+ var a;
313
+ return [
314
+ (d(!0), t(K, null, D((a = e.options) == null ? void 0 : a.data, (s) => {
315
+ var b, f;
316
+ return d(), n(q, {
317
+ size: "large",
318
+ label: s[((b = e.options) == null ? void 0 : b.valueKey) || "code"],
319
+ key: s[((f = e.options) == null ? void 0 : f.valueKey) || "code"]
320
+ }, {
321
+ default: o(() => {
322
+ var V;
323
+ return [
324
+ h(p(s[((V = e.options) == null ? void 0 : V.labelkey) || "name"]), 1)
325
+ ];
326
+ }),
327
+ _: 2
328
+ }, 1032, ["label"]);
329
+ }), 128))
330
+ ];
331
+ }),
332
+ _: 2
333
+ }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
334
+ ]),
335
+ _: 2
336
+ }, 1032, ["label", "rules", "prop", "class"])), [
337
+ [x, !e.isHide]
338
+ ]) : e.type === "radioNote" ? g((d(), n(r, {
339
+ key: 4,
340
+ label: e.label,
341
+ rules: e.rules,
342
+ prop: [e.field],
343
+ class: W([e.labelNode ? "radio_Note" : "rule_err"])
344
+ }, {
345
+ default: o(() => [
346
+ i("div", null, [
347
+ i("span", be, p(e.labelBefore), 1),
348
+ i("span", ie, p(e.labelNode), 1),
349
+ e.required ? (d(), t("span", ye, "*")) : w("", !0)
350
+ ]),
351
+ u(F, {
352
+ modelValue: l.states.model[e.field],
353
+ "onUpdate:modelValue": (a) => l.states.model[e.field] = a,
354
+ disabled: e.disabled || l.formOptions.isDisabled,
355
+ onChange: (a) => l.radioChange(a, e.field)
356
+ }, {
357
+ default: o(() => {
358
+ var a;
359
+ return [
360
+ (d(!0), t(K, null, D((a = e.options) == null ? void 0 : a.data, (s) => {
361
+ var b, f;
362
+ return d(), n(q, {
363
+ size: "large",
364
+ label: s[((b = e.options) == null ? void 0 : b.valueKey) || "code"],
365
+ key: s[((f = e.options) == null ? void 0 : f.valueKey) || "code"]
366
+ }, {
367
+ default: o(() => {
368
+ var V;
369
+ return [
370
+ h(p(s[((V = e.options) == null ? void 0 : V.labelkey) || "name"]), 1)
371
+ ];
372
+ }),
373
+ _: 2
374
+ }, 1032, ["label"]);
375
+ }), 128))
376
+ ];
377
+ }),
378
+ _: 2
379
+ }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
380
+ ]),
381
+ _: 2
382
+ }, 1032, ["label", "rules", "prop", "class"])), [
383
+ [x, !e.isHide]
384
+ ]) : e.type === "checkbox" ? g((d(), n(r, {
385
+ key: 5,
386
+ label: e.label,
387
+ rules: e.rules,
388
+ prop: [e.field]
389
+ }, {
390
+ label: o(() => [
391
+ i("div", {
392
+ style: k([{ display: "inline-block" }, e.labelStyle])
393
+ }, [
394
+ h(p(e.label) + " ", 1),
395
+ e.required ? (d(), t("span", fe, "*")) : w("", !0)
396
+ ], 4)
397
+ ]),
398
+ default: o(() => [
399
+ u(Y, {
400
+ modelValue: l.states.model[e.field],
401
+ "onUpdate:modelValue": (a) => l.states.model[e.field] = a,
402
+ onChange: (a) => l.checkChange(a, e.field),
403
+ disabled: e.disabled || l.formOptions.isDisabled,
404
+ style: k(
405
+ e.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
406
+ )
407
+ }, {
408
+ default: o(() => {
409
+ var a;
410
+ return [
411
+ (d(!0), t(K, null, D((a = e.options) == null ? void 0 : a.data, (s) => {
412
+ var b, f;
413
+ return d(), n(E, {
414
+ key: s[((b = e.options) == null ? void 0 : b.valueKey) || "code"],
415
+ label: s[((f = e.options) == null ? void 0 : f.valueKey) || "code"]
416
+ }, {
417
+ default: o(() => {
418
+ var V;
419
+ return [
420
+ h(p(s[((V = e.options) == null ? void 0 : V.labelkey) || "name"]), 1)
421
+ ];
422
+ }),
423
+ _: 2
424
+ }, 1032, ["label"]);
425
+ }), 128))
426
+ ];
427
+ }),
428
+ _: 2
429
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
430
+ ]),
431
+ _: 2
432
+ }, 1032, ["label", "rules", "prop"])), [
433
+ [x, !e.isHide]
434
+ ]) : e.type === "checkboxRadio" ? g((d(), n(r, {
435
+ key: 6,
436
+ label: e.label,
437
+ rules: e.rules,
438
+ prop: [e.field]
439
+ }, {
440
+ label: o(() => [
441
+ i("div", {
442
+ style: k([{ display: "inline-block" }, e.labelStyle])
443
+ }, [
444
+ h(p(e.label) + " ", 1),
445
+ e.required ? (d(), t("span", he, "*")) : w("", !0)
446
+ ], 4)
447
+ ]),
448
+ default: o(() => [
449
+ u(Y, {
450
+ modelValue: l.states.model[e.field],
451
+ "onUpdate:modelValue": (a) => l.states.model[e.field] = a,
452
+ onChange: (a) => l.handleCheckedChange(a, e.field),
453
+ disabled: e.disabled || l.formOptions.isDisabled,
454
+ style: k(
455
+ e.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
456
+ )
457
+ }, {
458
+ default: o(() => {
459
+ var a;
460
+ return [
461
+ (d(!0), t(K, null, D((a = e.options) == null ? void 0 : a.data, (s) => {
462
+ var b, f;
463
+ return d(), n(E, {
464
+ key: s[((b = e.options) == null ? void 0 : b.valueKey) || "code"],
465
+ label: s[((f = e.options) == null ? void 0 : f.valueKey) || "code"]
466
+ }, {
467
+ default: o(() => {
468
+ var V;
469
+ return [
470
+ h(p(s[((V = e.options) == null ? void 0 : V.labelkey) || "name"]), 1)
471
+ ];
472
+ }),
473
+ _: 2
474
+ }, 1032, ["label"]);
475
+ }), 128))
476
+ ];
477
+ }),
478
+ _: 2
479
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
480
+ ]),
481
+ _: 2
482
+ }, 1032, ["label", "rules", "prop"])), [
483
+ [x, !e.isHide]
484
+ ]) : e.type === "select" ? g((d(), n(r, {
485
+ key: 7,
486
+ label: e.label,
487
+ rules: e.rules,
488
+ disabled: e.disabled || l.formOptions.isDisabled,
489
+ prop: [e.field]
490
+ }, {
491
+ label: o(() => [
492
+ i("div", {
493
+ style: k([{ display: "inline-block" }, e.labelStyle])
494
+ }, [
495
+ h(p(e.label) + " ", 1),
496
+ e.required ? (d(), t("span", _e, "*")) : w("", !0)
497
+ ], 4)
498
+ ]),
499
+ default: o(() => [
500
+ u(M, {
501
+ onChange: (a) => l.selectChange(a, e.field),
502
+ modelValue: l.states.model[e.field],
503
+ "onUpdate:modelValue": (a) => l.states.model[e.field] = a,
504
+ disabled: e.disabled || l.formOptions.isDisabled,
505
+ placeholder: e.placeholder,
506
+ clearable: e.clearable
507
+ }, {
508
+ default: o(() => {
509
+ var a;
510
+ return [
511
+ (d(!0), t(K, null, D((a = e.options) == null ? void 0 : a.data, (s) => {
512
+ var b, f, V;
513
+ return d(), n(z, {
514
+ key: s[((b = e.options) == null ? void 0 : b.valueKey) || "code"],
515
+ label: s[((f = e.options) == null ? void 0 : f.labelkey) || "name"],
516
+ value: s[((V = e.options) == null ? void 0 : V.valueKey) || "code"]
517
+ }, null, 8, ["label", "value"]);
518
+ }), 128))
519
+ ];
520
+ }),
521
+ _: 2
522
+ }, 1032, ["onChange", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "clearable"]),
523
+ i("div", {
524
+ class: "item_tips_blow",
525
+ style: k(e.tipsBlowStyle)
526
+ }, p(e.tipsBlow), 5)
527
+ ]),
528
+ _: 2
529
+ }, 1032, ["label", "rules", "disabled", "prop"])), [
530
+ [x, !e.isHide]
531
+ ]) : e.type === "date" ? g((d(), n(r, {
532
+ key: 8,
533
+ label: e.label,
534
+ rules: e.rules,
535
+ prop: [e.field]
536
+ }, {
537
+ label: o(() => [
538
+ i("div", {
539
+ style: k([{ display: "inline-block" }, e.labelStyle])
540
+ }, [
541
+ h(p(e.label) + " ", 1),
542
+ e.required ? (d(), t("span", ge, "*")) : w("", !0)
543
+ ], 4)
544
+ ]),
545
+ default: o(() => [
546
+ u(B, {
547
+ format: "DD/MM/YYYY",
548
+ "value-format": "DD/MM/YYYY",
549
+ "disabled-date": e.disabledDate,
550
+ modelValue: l.states.model[e.field],
551
+ "onUpdate:modelValue": (a) => l.states.model[e.field] = a,
552
+ disabled: e.disabled || l.formOptions.isDisabled,
553
+ readonly: e.readonly,
554
+ type: e.type,
555
+ placeholder: e.placeholder || e.label
556
+ }, null, 8, ["disabled-date", "modelValue", "onUpdate:modelValue", "disabled", "readonly", "type", "placeholder"])
557
+ ]),
558
+ _: 2
559
+ }, 1032, ["label", "rules", "prop"])), [
560
+ [x, !e.isHide]
561
+ ]) : e.type === "daterange" ? g((d(), n(r, {
562
+ key: 9,
563
+ label: e.label,
564
+ rules: e.rules,
565
+ prop: [e.field]
566
+ }, {
567
+ label: o(() => [
568
+ i("div", {
569
+ style: k([{ display: "inline-block" }, e.labelStyle])
570
+ }, [
571
+ h(p(e.label) + " ", 1),
572
+ e.required ? (d(), t("span", ke, "*")) : w("", !0)
573
+ ], 4)
574
+ ]),
575
+ default: o(() => [
576
+ u(B, {
577
+ format: "DD/MM/YYYY",
578
+ "value-format": "DD/MM/YYYY",
579
+ "disabled-date": e.disabledDate,
580
+ modelValue: l.states.model[e.field],
581
+ "onUpdate:modelValue": (a) => l.states.model[e.field] = a,
582
+ type: "daterange",
583
+ "range-separator": "To",
584
+ "start-placeholder": e.startPlaceholder,
585
+ "end-placeholder": e.endPlaceholder,
586
+ size: "large"
587
+ }, null, 8, ["disabled-date", "modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder"])
588
+ ]),
589
+ _: 2
590
+ }, 1032, ["label", "rules", "prop"])), [
591
+ [x, !e.isHide]
592
+ ]) : e.type === "slotItem" ? g((d(), n(r, {
593
+ key: 10,
594
+ label: e.label,
595
+ rules: e.rules,
596
+ prop: [e.field],
597
+ class: "rule_err"
598
+ }, {
599
+ label: o(() => [
600
+ i("div", {
601
+ style: k([{ display: "inline-block" }, e.labelStyle])
602
+ }, [
603
+ h(p(e.label) + " ", 1),
604
+ e.required ? (d(), t("span", xe, "*")) : w("", !0)
605
+ ], 4)
606
+ ]),
607
+ default: o(() => [
608
+ R(_.$slots, e.slotItemName, {}, void 0, !0)
609
+ ]),
610
+ _: 2
611
+ }, 1032, ["label", "rules", "prop"])), [
612
+ [x, !e.isHide]
613
+ ]) : e.type === "phone" ? g((d(), n(r, {
614
+ key: 11,
615
+ label: e.label,
616
+ rules: e.rules.phoneNumber,
617
+ prop: [e.field.phoneNumber],
618
+ class: "phone_item"
619
+ }, {
620
+ label: o(() => [
621
+ i("div", {
622
+ style: k([{ display: "inline-block" }, e.labelStyle])
623
+ }, [
624
+ h(p(e.label) + " ", 1),
625
+ e.required ? (d(), t("span", Ce, "*")) : w("", !0)
626
+ ], 4)
627
+ ]),
628
+ default: o(() => [
629
+ u(O, {
630
+ maxlength: e.maxlength,
631
+ modelValue: l.states.model[e.field.phoneNumber],
632
+ "onUpdate:modelValue": (a) => l.states.model[e.field.phoneNumber] = a,
633
+ disabled: e.disabled || l.formOptions.isDisabled,
634
+ placeholder: e.placeholder || "请选择",
635
+ clearable: e.clearable
636
+ }, {
637
+ prepend: o(() => {
638
+ var a;
639
+ return [
640
+ u(M, {
641
+ disabled: e.disabled || l.formOptions.isDisabled,
642
+ modelValue: l.states.model[e.field.areaCode],
643
+ "onUpdate:modelValue": (s) => l.states.model[e.field.areaCode] = s,
644
+ placeholder: ((a = e.options) == null ? void 0 : a.placeholder) || "请选择",
645
+ style: { width: "115px" }
646
+ }, {
647
+ default: o(() => {
648
+ var s;
649
+ return [
650
+ (d(!0), t(K, null, D((s = e.options) == null ? void 0 : s.data, (b, f) => (d(), n(z, {
651
+ label: b.name,
652
+ value: b.code,
653
+ key: f
654
+ }, null, 8, ["label", "value"]))), 128))
655
+ ];
656
+ }),
657
+ _: 2
658
+ }, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder"])
659
+ ];
660
+ }),
661
+ _: 2
662
+ }, 1032, ["maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "clearable"])
663
+ ]),
664
+ _: 2
665
+ }, 1032, ["label", "rules", "prop"])), [
666
+ [x, !e.isHide]
667
+ ]) : e.type === "line" ? g((d(), n(r, {
668
+ key: 12,
669
+ label: e.label
670
+ }, {
671
+ default: o(() => [
672
+ Ve
673
+ ]),
674
+ _: 2
675
+ }, 1032, ["label"])), [
676
+ [x, !e.isHide]
677
+ ]) : g((d(), n(r, {
678
+ key: 13,
679
+ label: e.label,
680
+ rules: e.rules,
681
+ prop: [e.field]
682
+ }, {
683
+ label: o(() => [
684
+ i("div", {
685
+ style: k([{ display: "inline-block" }, e.labelStyle])
686
+ }, [
687
+ h(p(e.label) + " ", 1),
688
+ e.required ? (d(), t("span", ve, "*")) : w("", !0)
689
+ ], 4)
690
+ ]),
691
+ default: o(() => [
692
+ u(O, {
693
+ maxlength: e.maxlength,
694
+ modelValue: l.states.model[e.field],
695
+ "onUpdate:modelValue": (a) => l.states.model[e.field] = a,
696
+ readonly: e.readonly,
697
+ type: e.type ? e.type : "text",
698
+ placeholder: e.placeholder || e.label,
699
+ disabled: e.disabled || l.formOptions.isDisabled,
700
+ showPassword: e.showPassword,
701
+ clearable: e.clearable,
702
+ onKeyup: N((a) => l.handleKeyUp(e.enterable), ["enter"])
703
+ }, ee({ _: 2 }, [
704
+ e.prepend ? {
705
+ name: "prepend",
706
+ fn: o(() => [
707
+ h(p(e.field), 1)
1057
708
  ]),
1058
- b(N, {
1059
- modelValue: a.model[l.field],
1060
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
1061
- disabled: l.disabled || a._options.isDisabled,
1062
- onChange: (e) => a.radioChange(e, l.field)
1063
- }, {
1064
- default: d(() => {
1065
- var e;
1066
- return [
1067
- (o(!0), r(V, null, x((e = l.options) == null ? void 0 : e.data, (n) => {
1068
- var u, c;
1069
- return o(), s(q, {
1070
- size: "large",
1071
- label: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"],
1072
- key: n[((c = l.options) == null ? void 0 : c.valueKey) || "code"]
1073
- }, {
1074
- default: d(() => {
1075
- var _;
1076
- return [
1077
- C(p(n[((_ = l.options) == null ? void 0 : _.labelkey) || "name"]), 1)
1078
- ];
1079
- }),
1080
- _: 2
1081
- }, 1032, ["label"]);
1082
- }), 128))
1083
- ];
1084
- }),
1085
- _: 2
1086
- }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
1087
- ]),
1088
- _: 2
1089
- }, 1032, ["label", "rules", "prop", "class"])), [
1090
- [f, !l.isHide]
1091
- ]) : l.type === "checkbox" ? h((o(), s(i, {
1092
- key: 5,
1093
- label: l.label,
1094
- rules: l.rules,
1095
- prop: [l.field]
1096
- }, {
1097
- label: d(() => [
1098
- y("div", {
1099
- style: t([{ display: "inline-block" }, l.lableStyle])
1100
- }, p(l.label), 5),
1101
- l.required ? (o(), r("span", Bl, "*")) : g("", !0)
1102
- ]),
1103
- default: d(() => [
1104
- b(F, {
1105
- modelValue: a.model[l.field],
1106
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
1107
- onChange: (e) => a.checkChange(e, l.field),
1108
- disabled: l.disabled || a._options.isDisabled,
1109
- style: t(
1110
- l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
1111
- )
1112
- }, {
1113
- default: d(() => {
1114
- var e;
1115
- return [
1116
- (o(!0), r(V, null, x((e = l.options) == null ? void 0 : e.data, (n) => {
1117
- var u, c;
1118
- return o(), s(E, {
1119
- key: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"],
1120
- label: n[((c = l.options) == null ? void 0 : c.valueKey) || "code"]
1121
- }, {
1122
- default: d(() => {
1123
- var _;
1124
- return [
1125
- C(p(n[((_ = l.options) == null ? void 0 : _.labelkey) || "name"]), 1)
1126
- ];
1127
- }),
1128
- _: 2
1129
- }, 1032, ["label"]);
1130
- }), 128))
1131
- ];
1132
- }),
1133
- _: 2
1134
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
1135
- ]),
1136
- _: 2
1137
- }, 1032, ["label", "rules", "prop"])), [
1138
- [f, !l.isHide]
1139
- ]) : l.type === "checkboxRadio" ? h((o(), s(i, {
1140
- key: 6,
1141
- label: l.label,
1142
- rules: l.rules,
1143
- prop: [l.field]
1144
- }, {
1145
- label: d(() => [
1146
- y("div", {
1147
- style: t([{ display: "inline-block" }, l.lableStyle])
1148
- }, p(l.label), 5),
1149
- l.required ? (o(), r("span", Pl, "*")) : g("", !0)
1150
- ]),
1151
- default: d(() => [
1152
- b(F, {
1153
- modelValue: a.model[l.field],
1154
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
1155
- onChange: (e) => a.handleCheckedChange(e, l.field),
1156
- disabled: l.disabled || a._options.isDisabled,
1157
- style: t(
1158
- l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
1159
- )
1160
- }, {
1161
- default: d(() => {
1162
- var e;
1163
- return [
1164
- (o(!0), r(V, null, x((e = l.options) == null ? void 0 : e.data, (n) => {
1165
- var u, c;
1166
- return o(), s(E, {
1167
- key: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"],
1168
- label: n[((c = l.options) == null ? void 0 : c.valueKey) || "code"]
1169
- }, {
1170
- default: d(() => {
1171
- var _;
1172
- return [
1173
- C(p(n[((_ = l.options) == null ? void 0 : _.labelkey) || "name"]), 1)
1174
- ];
1175
- }),
1176
- _: 2
1177
- }, 1032, ["label"]);
1178
- }), 128))
1179
- ];
1180
- }),
1181
- _: 2
1182
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
1183
- ]),
1184
- _: 2
1185
- }, 1032, ["label", "rules", "prop"])), [
1186
- [f, !l.isHide]
1187
- ]) : l.type === "select" ? h((o(), s(i, {
1188
- key: 7,
1189
- label: l.label,
1190
- rules: l.rules,
1191
- disabled: l.disabled || a._options.isDisabled,
1192
- prop: [l.field]
1193
- }, {
1194
- label: d(() => [
1195
- y("div", {
1196
- style: t([{ display: "inline-block" }, l.lableStyle])
1197
- }, p(l.label), 5),
1198
- l.required ? (o(), r("span", Il, "*")) : g("", !0)
1199
- ]),
1200
- default: d(() => [
1201
- b(z, {
1202
- onChange: (e) => a.selectChange(e, l.field),
1203
- modelValue: a.model[l.field],
1204
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
1205
- disabled: l.disabled || a._options.isDisabled,
1206
- placeholder: l.placeholder,
1207
- clearable: l.clearable
1208
- }, {
1209
- default: d(() => {
1210
- var e;
1211
- return [
1212
- (o(!0), r(V, null, x((e = l.options) == null ? void 0 : e.data, (n) => {
1213
- var u, c, _;
1214
- return o(), s(M, {
1215
- key: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"],
1216
- label: n[((c = l.options) == null ? void 0 : c.labelkey) || "name"],
1217
- value: n[((_ = l.options) == null ? void 0 : _.valueKey) || "code"]
1218
- }, null, 8, ["label", "value"]);
1219
- }), 128))
1220
- ];
1221
- }),
1222
- _: 2
1223
- }, 1032, ["onChange", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "clearable"]),
1224
- y("div", {
1225
- class: "item_tips_blow",
1226
- style: t(l.tipsBlowStyle)
1227
- }, p(l.tipsBlow), 5)
1228
- ]),
1229
- _: 2
1230
- }, 1032, ["label", "rules", "disabled", "prop"])), [
1231
- [f, !l.isHide]
1232
- ]) : l.type === "date" ? h((o(), s(i, {
1233
- key: 8,
1234
- label: l.label,
1235
- rules: l.rules,
1236
- prop: [l.field]
1237
- }, {
1238
- label: d(() => [
1239
- y("div", {
1240
- style: t([{ display: "inline-block" }, l.lableStyle])
1241
- }, p(l.label), 5),
1242
- l.required ? (o(), r("span", Ll, "*")) : g("", !0)
1243
- ]),
1244
- default: d(() => [
1245
- b(B, {
1246
- format: "DD/MM/YYYY",
1247
- "value-format": "DD/MM/YYYY",
1248
- "disabled-date": l.disabledDate,
1249
- modelValue: a.model[l.field],
1250
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
1251
- disabled: l.disabled || a._options.isDisabled,
1252
- readonly: l.readonly,
1253
- type: l.type,
1254
- placeholder: l.placeholder || l.label
1255
- }, null, 8, ["disabled-date", "modelValue", "onUpdate:modelValue", "disabled", "readonly", "type", "placeholder"])
1256
- ]),
1257
- _: 2
1258
- }, 1032, ["label", "rules", "prop"])), [
1259
- [f, !l.isHide]
1260
- ]) : l.type === "daterange" ? h((o(), s(i, {
1261
- key: 9,
1262
- label: l.label,
1263
- rules: l.rules,
1264
- prop: [l.field]
1265
- }, {
1266
- label: d(() => [
1267
- y("div", {
1268
- style: t([{ display: "inline-block" }, l.lableStyle])
1269
- }, p(l.label), 5),
1270
- l.required ? (o(), r("span", Ol, "*")) : g("", !0)
1271
- ]),
1272
- default: d(() => [
1273
- b(B, {
1274
- format: "DD/MM/YYYY",
1275
- "value-format": "DD/MM/YYYY",
1276
- "disabled-date": l.disabledDate,
1277
- modelValue: a.model[l.field],
1278
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
1279
- type: "daterange",
1280
- "range-separator": "To",
1281
- "start-placeholder": l.startPlaceholder,
1282
- "end-placeholder": l.endPlaceholder,
1283
- size: "large"
1284
- }, null, 8, ["disabled-date", "modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder"])
1285
- ]),
1286
- _: 2
1287
- }, 1032, ["label", "rules", "prop"])), [
1288
- [f, !l.isHide]
1289
- ]) : l.type === "slotItem" ? h((o(), s(i, {
1290
- key: 10,
1291
- label: l.label,
1292
- rules: l.rules,
1293
- prop: [l.field],
1294
- class: "rule_err"
1295
- }, {
1296
- label: d(() => [
1297
- y("div", {
1298
- style: t([{ display: "inline-block" }, l.lableStyle])
1299
- }, p(l.label), 5),
1300
- l.required ? (o(), r("span", Rl, "*")) : g("", !0)
1301
- ]),
1302
- default: d(() => [
1303
- R(D.$slots, l.slotItemName, {}, void 0, !0)
1304
- ]),
1305
- _: 2
1306
- }, 1032, ["label", "rules", "prop"])), [
1307
- [f, !l.isHide]
1308
- ]) : l.type === "phone" ? h((o(), s(i, {
1309
- key: 11,
1310
- label: l.label,
1311
- class: "phone_item",
1312
- rules: l.rules.phoneNumber,
1313
- prop: [l.field.phoneNumber]
1314
- }, {
1315
- label: d(() => [
1316
- y("div", {
1317
- style: t([{ display: "inline-block" }, l.lableStyle])
1318
- }, p(l.label), 5),
1319
- l.required ? (o(), r("span", Tl, "*")) : g("", !0)
1320
- ]),
1321
- default: d(() => [
1322
- b(v, {
1323
- maxlength: l.maxlength,
1324
- modelValue: a.model[l.field.phoneNumber],
1325
- "onUpdate:modelValue": (e) => a.model[l.field.phoneNumber] = e,
1326
- disabled: l.disabled || a._options.isDisabled,
1327
- placeholder: l.placeholder || "请选择",
1328
- clearable: l.clearable
1329
- }, {
1330
- prepend: d(() => {
1331
- var e;
1332
- return [
1333
- b(z, {
1334
- disabled: l.disabled || a._options.isDisabled,
1335
- modelValue: a.model[l.field.areaCode],
1336
- "onUpdate:modelValue": (n) => a.model[l.field.areaCode] = n,
1337
- placeholder: ((e = l.options) == null ? void 0 : e.placeholder) || "请选择",
1338
- style: { width: "115px" }
1339
- }, {
1340
- default: d(() => {
1341
- var n;
1342
- return [
1343
- (o(!0), r(V, null, x((n = l.options) == null ? void 0 : n.data, (u, c) => (o(), s(M, {
1344
- label: u.name,
1345
- value: u.code,
1346
- key: c
1347
- }, null, 8, ["label", "value"]))), 128))
1348
- ];
1349
- }),
1350
- _: 2
1351
- }, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder"])
1352
- ];
1353
- }),
1354
- _: 2
1355
- }, 1032, ["maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "clearable"])
1356
- ]),
1357
- _: 2
1358
- }, 1032, ["label", "rules", "prop"])), [
1359
- [f, !l.isHide]
1360
- ]) : l.type === "line" ? h((o(), s(i, {
1361
- key: 12,
1362
- label: l.label
1363
- }, {
1364
- default: d(() => [
1365
- Wl
1366
- ]),
1367
- _: 2
1368
- }, 1032, ["label"])), [
1369
- [f, !l.isHide]
1370
- ]) : h((o(), s(i, {
1371
- key: 13,
1372
- label: l.label,
1373
- rules: l.rules,
1374
- prop: [l.field]
1375
- }, {
1376
- label: d(() => [
1377
- y("div", {
1378
- style: t([{ display: "inline-block" }, l.lableStyle])
1379
- }, p(l.label), 5),
1380
- l.required ? (o(), r("span", jl, "*")) : g("", !0)
1381
- ]),
1382
- default: d(() => [
1383
- b(v, {
1384
- maxlength: l.maxlength,
1385
- modelValue: a.model[l.field],
1386
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
1387
- readonly: l.readonly,
1388
- type: l.type ? l.type : "text",
1389
- placeholder: l.placeholder || l.label,
1390
- disabled: l.disabled || a._options.isDisabled,
1391
- showPassword: l.showPassword,
1392
- clearable: l.clearable,
1393
- onKeyup: K((e) => a.handleKeyUp(l.enterable), ["enter"])
1394
- }, W({ _: 2 }, [
1395
- l.prepend ? {
1396
- name: "prepend",
1397
- fn: d(() => [
1398
- C(p(l.field), 1)
1399
- ]),
1400
- key: "0"
1401
- } : void 0,
1402
- l.append ? {
1403
- name: "append",
1404
- fn: d(() => [
1405
- C(p(l.append), 1)
1406
- ]),
1407
- key: "1"
1408
- } : void 0
1409
- ]), 1032, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
1410
- ]),
1411
- _: 2
1412
- }, 1032, ["label", "rules", "prop"])), [
1413
- [f, !l.isHide]
1414
- ])
1415
- ], 4)
1416
- ]),
1417
- _: 2
1418
- }, 1024)), [
1419
- [f, !l.isHide]
1420
- ])), 128))
1421
- ]),
1422
- _: 2
1423
- }, 1024)
1424
- ])) : k.colNum === 2 ? (o(), r("div", Al, [
1425
- b(U, { gutter: 20 }, {
1426
- default: d(() => [
1427
- (o(!0), r(V, null, x(k.formItemList, (l, L) => h((o(), s(O, {
1428
- xs: 24,
1429
- sm: 12,
1430
- md: 12,
1431
- lg: 12,
1432
- xl: 12,
1433
- key: L
1434
- }, {
1435
- default: d(() => [
1436
- y("div", {
1437
- style: t(l.style)
1438
- }, [
1439
- l.type === "title" ? h((o(), s(i, { key: 0 }, {
1440
- default: d(() => [
1441
- y("div", Gl, [
1442
- y("span", Jl, p(l.title), 1)
1443
- ])
1444
- ]),
1445
- _: 2
1446
- }, 1536)), [
1447
- [f, !l.isHide]
1448
- ]) : l.type === "name" ? h((o(), s(i, {
1449
- key: 1,
1450
- label: l.label,
1451
- disabled: l.disabled || a._options.isDisabled,
1452
- class: "container_name",
1453
- rules: l.rules.nameEnFamily
1454
- }, {
1455
- label: d(() => [
1456
- y("div", {
1457
- style: t([{ display: "inline-block" }, l.lableStyle])
1458
- }, p(l.label), 5),
1459
- l.required ? (o(), r("span", Ql, "*")) : g("", !0)
1460
- ]),
1461
- default: d(() => [
1462
- b(i, {
1463
- rules: l.rules.nameEnFamily,
1464
- prop: [l.field.nameEnFamily],
1465
- class: "item-name"
1466
- }, {
1467
- default: d(() => [
1468
- b(v, {
1469
- maxlength: l.maxlength,
1470
- modelValue: a.model[l.field.nameEnFamily],
1471
- "onUpdate:modelValue": (e) => a.model[l.field.nameEnFamily] = e,
1472
- readonly: l.readonly,
1473
- type: l.type ? l.type : "text",
1474
- placeholder: l.placeholderNameEnFamily,
1475
- disabled: l.disabled || a._options.isDisabled,
1476
- onKeyup: K((e) => a.handleKeyUp(l.enterable), ["enter"])
1477
- }, null, 8, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
1478
- ]),
1479
- _: 2
1480
- }, 1032, ["rules", "prop"]),
1481
- b(i, {
1482
- rules: l.rules.nameEn,
1483
- prop: [l.field.nameEn],
1484
- class: "item-name-right"
1485
- }, {
1486
- default: d(() => [
1487
- b(v, {
1488
- maxlength: l.maxlength,
1489
- modelValue: a.model[l.field.nameEn],
1490
- "onUpdate:modelValue": (e) => a.model[l.field.nameEn] = e,
1491
- readonly: l.readonly,
1492
- type: l.type ? l.type : "text",
1493
- placeholder: l.placeholderNameEn,
1494
- disabled: l.disabled || a._options.isDisabled,
1495
- onKeyup: K((e) => a.handleKeyUp(l.enterable), ["enter"])
1496
- }, null, 8, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
1497
- ]),
1498
- _: 2
1499
- }, 1032, ["rules", "prop"]),
1500
- b(i, {
1501
- rules: l.rules.nameChFamily,
1502
- prop: [l.field.nameChFamily],
1503
- class: "item-name"
1504
- }, {
1505
- default: d(() => [
1506
- b(v, {
1507
- maxlength: l.maxlength,
1508
- modelValue: a.model[l.field.nameChFamily],
1509
- "onUpdate:modelValue": (e) => a.model[l.field.nameChFamily] = e,
1510
- readonly: l.readonly,
1511
- type: l.type ? l.type : "text",
1512
- placeholder: l.placeholderNameChFamily,
1513
- disabled: l.disabled || a._options.isDisabled,
1514
- onKeyup: K((e) => a.handleKeyUp(l.enterable), ["enter"])
1515
- }, null, 8, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
1516
- ]),
1517
- _: 2
1518
- }, 1032, ["rules", "prop"]),
1519
- b(i, {
1520
- rules: l.rules.nameCh,
1521
- prop: [l.field.nameCh],
1522
- class: "item-name-right"
1523
- }, {
1524
- default: d(() => [
1525
- b(v, {
1526
- maxlength: l.maxlength,
1527
- modelValue: a.model[l.field.nameCh],
1528
- "onUpdate:modelValue": (e) => a.model[l.field.nameCh] = e,
1529
- readonly: l.readonly,
1530
- type: l.type ? l.type : "text",
1531
- placeholder: l.placeholderNameCh,
1532
- disabled: l.disabled || a._options.isDisabled,
1533
- onKeyup: K((e) => a.handleKeyUp(l.enterable), ["enter"])
1534
- }, null, 8, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
1535
- ]),
1536
- _: 2
1537
- }, 1032, ["rules", "prop"])
1538
- ]),
1539
- _: 2
1540
- }, 1032, ["label", "disabled", "rules"])), [
1541
- [f, !l.isHide]
1542
- ]) : l.type === "gender" ? h((o(), s(i, {
1543
- key: 2,
1544
- label: l.label,
1545
- rules: l.rules,
1546
- prop: [l.field]
1547
- }, {
1548
- label: d(() => [
1549
- y("div", {
1550
- style: t([{ display: "inline-block" }, l.lableStyle])
1551
- }, p(l.label), 5),
1552
- l.required ? (o(), r("span", Xl, "*")) : g("", !0)
1553
- ]),
1554
- default: d(() => [
1555
- b(N, {
1556
- modelValue: a.model[l.field],
1557
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
1558
- disabled: l.disabled || a._options.isDisabled,
1559
- onChange: (e) => a.radioChange(e, l.field)
1560
- }, {
1561
- default: d(() => {
1562
- var e;
1563
- return [
1564
- (o(!0), r(V, null, x((e = l.options) == null ? void 0 : e.data, (n) => {
1565
- var u, c;
1566
- return o(), s(q, {
1567
- label: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"],
1568
- size: "large",
1569
- key: n[((c = l.options) == null ? void 0 : c.valueKey) || "code"]
1570
- }, {
1571
- default: d(() => [
1572
- y("img", {
1573
- 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",
1574
- style: { width: "44px", height: "44px", "margin-bottom": "-15px", "margin-left": "4px" },
1575
- alt: ""
1576
- }, null, 8, Zl)
1577
- ]),
1578
- _: 2
1579
- }, 1032, ["label"]);
1580
- }), 128))
1581
- ];
1582
- }),
1583
- _: 2
1584
- }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
1585
- ]),
1586
- _: 2
1587
- }, 1032, ["label", "rules", "prop"])), [
1588
- [f, !l.isHide]
1589
- ]) : l.type === "radio" ? h((o(), s(i, {
1590
- key: 3,
1591
- label: l.label,
1592
- rules: l.rules,
1593
- prop: [l.field],
1594
- class: I([l.labelNode ? "radio_Note" : "rule_err"])
1595
- }, {
1596
- label: d(() => [
1597
- y("div", {
1598
- style: t([{ display: "inline-block" }, l.lableStyle])
1599
- }, p(l.label), 5),
1600
- l.required ? (o(), r("span", ml, "*")) : g("", !0)
1601
- ]),
1602
- default: d(() => [
1603
- b(N, {
1604
- modelValue: a.model[l.field],
1605
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
1606
- disabled: l.disabled || a._options.isDisabled,
1607
- onChange: (e) => a.radioChange(e, l.field)
1608
- }, {
1609
- default: d(() => {
1610
- var e;
1611
- return [
1612
- (o(!0), r(V, null, x((e = l.options) == null ? void 0 : e.data, (n) => {
1613
- var u, c;
1614
- return o(), s(q, {
1615
- size: "large",
1616
- label: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"],
1617
- key: n[((c = l.options) == null ? void 0 : c.valueKey) || "code"]
1618
- }, {
1619
- default: d(() => {
1620
- var _;
1621
- return [
1622
- C(p(n[((_ = l.options) == null ? void 0 : _.labelkey) || "name"]), 1)
1623
- ];
1624
- }),
1625
- _: 2
1626
- }, 1032, ["label"]);
1627
- }), 128))
1628
- ];
1629
- }),
1630
- _: 2
1631
- }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
1632
- ]),
1633
- _: 2
1634
- }, 1032, ["label", "rules", "prop", "class"])), [
1635
- [f, !l.isHide]
1636
- ]) : l.type === "radioNote" ? h((o(), s(i, {
1637
- key: 4,
1638
- label: l.label,
1639
- rules: l.rules,
1640
- prop: [l.field],
1641
- class: I([l.labelNode ? "radio_Note" : "rule_err"])
1642
- }, {
1643
- default: d(() => [
1644
- y("div", null, [
1645
- y("span", $l, p(l.labelBefore), 1),
1646
- y("span", le, p(l.labelNode), 1),
1647
- l.required ? (o(), r("span", ee, "*")) : g("", !0)
1648
- ]),
1649
- b(N, {
1650
- modelValue: a.model[l.field],
1651
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
1652
- disabled: l.disabled || a._options.isDisabled,
1653
- onChange: (e) => a.radioChange(e, l.field)
1654
- }, {
1655
- default: d(() => {
1656
- var e;
1657
- return [
1658
- (o(!0), r(V, null, x((e = l.options) == null ? void 0 : e.data, (n) => {
1659
- var u, c;
1660
- return o(), s(q, {
1661
- size: "large",
1662
- label: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"],
1663
- key: n[((c = l.options) == null ? void 0 : c.valueKey) || "code"]
1664
- }, {
1665
- default: d(() => {
1666
- var _;
1667
- return [
1668
- C(p(n[((_ = l.options) == null ? void 0 : _.labelkey) || "name"]), 1)
1669
- ];
1670
- }),
1671
- _: 2
1672
- }, 1032, ["label"]);
1673
- }), 128))
1674
- ];
1675
- }),
1676
- _: 2
1677
- }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
1678
- ]),
1679
- _: 2
1680
- }, 1032, ["label", "rules", "prop", "class"])), [
1681
- [f, !l.isHide]
1682
- ]) : l.type === "checkbox" ? h((o(), s(i, {
1683
- key: 5,
1684
- label: l.label,
1685
- rules: l.rules,
1686
- prop: [l.field]
1687
- }, {
1688
- label: d(() => [
1689
- y("div", {
1690
- style: t([{ display: "inline-block" }, l.lableStyle])
1691
- }, p(l.label), 5),
1692
- l.required ? (o(), r("span", ae, "*")) : g("", !0)
1693
- ]),
1694
- default: d(() => [
1695
- b(F, {
1696
- modelValue: a.model[l.field],
1697
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
1698
- onChange: (e) => a.checkChange(e, l.field),
1699
- disabled: l.disabled || a._options.isDisabled,
1700
- style: t(
1701
- l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
1702
- )
1703
- }, {
1704
- default: d(() => {
1705
- var e;
1706
- return [
1707
- (o(!0), r(V, null, x((e = l.options) == null ? void 0 : e.data, (n) => {
1708
- var u, c;
1709
- return o(), s(E, {
1710
- key: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"],
1711
- label: n[((c = l.options) == null ? void 0 : c.valueKey) || "code"]
1712
- }, {
1713
- default: d(() => {
1714
- var _;
1715
- return [
1716
- C(p(n[((_ = l.options) == null ? void 0 : _.labelkey) || "name"]), 1)
1717
- ];
1718
- }),
1719
- _: 2
1720
- }, 1032, ["label"]);
1721
- }), 128))
1722
- ];
1723
- }),
1724
- _: 2
1725
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
1726
- ]),
1727
- _: 2
1728
- }, 1032, ["label", "rules", "prop"])), [
1729
- [f, !l.isHide]
1730
- ]) : l.type === "checkboxRadio" ? h((o(), s(i, {
1731
- key: 6,
1732
- label: l.label,
1733
- rules: l.rules,
1734
- prop: [l.field]
1735
- }, {
1736
- label: d(() => [
1737
- y("div", {
1738
- style: t([{ display: "inline-block" }, l.lableStyle])
1739
- }, p(l.label), 5),
1740
- l.required ? (o(), r("span", de, "*")) : g("", !0)
1741
- ]),
1742
- default: d(() => [
1743
- b(F, {
1744
- modelValue: a.model[l.field],
1745
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
1746
- onChange: (e) => a.handleCheckedChange(e, l.field),
1747
- disabled: l.disabled || a._options.isDisabled,
1748
- style: t(
1749
- l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
1750
- )
1751
- }, {
1752
- default: d(() => {
1753
- var e;
1754
- return [
1755
- (o(!0), r(V, null, x((e = l.options) == null ? void 0 : e.data, (n) => {
1756
- var u, c;
1757
- return o(), s(E, {
1758
- key: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"],
1759
- label: n[((c = l.options) == null ? void 0 : c.valueKey) || "code"]
1760
- }, {
1761
- default: d(() => {
1762
- var _;
1763
- return [
1764
- C(p(n[((_ = l.options) == null ? void 0 : _.labelkey) || "name"]), 1)
1765
- ];
1766
- }),
1767
- _: 2
1768
- }, 1032, ["label"]);
1769
- }), 128))
1770
- ];
1771
- }),
1772
- _: 2
1773
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
1774
- ]),
1775
- _: 2
1776
- }, 1032, ["label", "rules", "prop"])), [
1777
- [f, !l.isHide]
1778
- ]) : l.type === "select" ? h((o(), s(i, {
1779
- key: 7,
1780
- label: l.label,
1781
- rules: l.rules,
1782
- disabled: l.disabled || a._options.isDisabled,
1783
- prop: [l.field]
1784
- }, {
1785
- label: d(() => [
1786
- y("div", {
1787
- style: t([{ display: "inline-block" }, l.lableStyle])
1788
- }, p(l.label), 5),
1789
- l.required ? (o(), r("span", oe, "*")) : g("", !0)
1790
- ]),
1791
- default: d(() => [
1792
- b(z, {
1793
- onChange: (e) => a.selectChange(e, l.field),
1794
- modelValue: a.model[l.field],
1795
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
1796
- disabled: l.disabled || a._options.isDisabled,
1797
- placeholder: l.placeholder,
1798
- clearable: l.clearable
1799
- }, {
1800
- default: d(() => {
1801
- var e;
1802
- return [
1803
- (o(!0), r(V, null, x((e = l.options) == null ? void 0 : e.data, (n) => {
1804
- var u, c, _;
1805
- return o(), s(M, {
1806
- key: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"],
1807
- label: n[((c = l.options) == null ? void 0 : c.labelkey) || "name"],
1808
- value: n[((_ = l.options) == null ? void 0 : _.valueKey) || "code"]
1809
- }, null, 8, ["label", "value"]);
1810
- }), 128))
1811
- ];
1812
- }),
1813
- _: 2
1814
- }, 1032, ["onChange", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "clearable"]),
1815
- y("div", {
1816
- class: "item_tips_blow",
1817
- style: t(l.tipsBlowStyle)
1818
- }, p(l.tipsBlow), 5)
1819
- ]),
1820
- _: 2
1821
- }, 1032, ["label", "rules", "disabled", "prop"])), [
1822
- [f, !l.isHide]
1823
- ]) : l.type === "date" ? h((o(), s(i, {
1824
- key: 8,
1825
- label: l.label,
1826
- rules: l.rules,
1827
- prop: [l.field]
1828
- }, {
1829
- label: d(() => [
1830
- y("div", {
1831
- style: t([{ display: "inline-block" }, l.lableStyle])
1832
- }, p(l.label), 5),
1833
- l.required ? (o(), r("span", ne, "*")) : g("", !0)
1834
- ]),
1835
- default: d(() => [
1836
- b(B, {
1837
- format: "DD/MM/YYYY",
1838
- "value-format": "DD/MM/YYYY",
1839
- "disabled-date": l.disabledDate,
1840
- modelValue: a.model[l.field],
1841
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
1842
- disabled: l.disabled || a._options.isDisabled,
1843
- readonly: l.readonly,
1844
- type: l.type,
1845
- placeholder: l.placeholder || l.label
1846
- }, null, 8, ["disabled-date", "modelValue", "onUpdate:modelValue", "disabled", "readonly", "type", "placeholder"])
1847
- ]),
1848
- _: 2
1849
- }, 1032, ["label", "rules", "prop"])), [
1850
- [f, !l.isHide]
1851
- ]) : l.type === "daterange" ? h((o(), s(i, {
1852
- key: 9,
1853
- label: l.label,
1854
- rules: l.rules,
1855
- prop: [l.field]
1856
- }, {
1857
- label: d(() => [
1858
- y("div", {
1859
- style: t([{ display: "inline-block" }, l.lableStyle])
1860
- }, p(l.label), 5),
1861
- l.required ? (o(), r("span", se, "*")) : g("", !0)
1862
- ]),
1863
- default: d(() => [
1864
- b(B, {
1865
- format: "DD/MM/YYYY",
1866
- "value-format": "DD/MM/YYYY",
1867
- "disabled-date": l.disabledDate,
1868
- modelValue: a.model[l.field],
1869
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
1870
- type: "daterange",
1871
- "range-separator": "To",
1872
- "start-placeholder": l.startPlaceholder,
1873
- "end-placeholder": l.endPlaceholder,
1874
- size: "large"
1875
- }, null, 8, ["disabled-date", "modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder"])
1876
- ]),
1877
- _: 2
1878
- }, 1032, ["label", "rules", "prop"])), [
1879
- [f, !l.isHide]
1880
- ]) : l.type === "slotItem" ? h((o(), s(i, {
1881
- key: 10,
1882
- label: l.label,
1883
- rules: l.rules,
1884
- prop: [l.field],
1885
- class: "rule_err"
1886
- }, {
1887
- label: d(() => [
1888
- y("div", {
1889
- style: t([{ display: "inline-block" }, l.lableStyle])
1890
- }, p(l.label), 5),
1891
- l.required ? (o(), r("span", re, "*")) : g("", !0)
1892
- ]),
1893
- default: d(() => [
1894
- R(D.$slots, l.slotItemName, {}, void 0, !0)
1895
- ]),
1896
- _: 2
1897
- }, 1032, ["label", "rules", "prop"])), [
1898
- [f, !l.isHide]
1899
- ]) : l.type === "phone" ? h((o(), s(i, {
1900
- key: 11,
1901
- label: l.label,
1902
- rules: l.rules.phoneNumber,
1903
- class: "phone_item",
1904
- prop: [l.field.phoneNumber]
1905
- }, {
1906
- label: d(() => [
1907
- y("div", {
1908
- style: t([{ display: "inline-block" }, l.lableStyle])
1909
- }, p(l.label), 5),
1910
- l.required ? (o(), r("span", pe, "*")) : g("", !0)
1911
- ]),
1912
- default: d(() => [
1913
- b(v, {
1914
- maxlength: l.maxlength,
1915
- modelValue: a.model[l.field.phoneNumber],
1916
- "onUpdate:modelValue": (e) => a.model[l.field.phoneNumber] = e,
1917
- disabled: l.disabled || a._options.isDisabled,
1918
- placeholder: l.placeholder || "请选择",
1919
- clearable: l.clearable
1920
- }, {
1921
- prepend: d(() => {
1922
- var e;
1923
- return [
1924
- b(z, {
1925
- disabled: l.disabled || a._options.isDisabled,
1926
- modelValue: a.model[l.field.areaCode],
1927
- "onUpdate:modelValue": (n) => a.model[l.field.areaCode] = n,
1928
- placeholder: ((e = l.options) == null ? void 0 : e.placeholder) || "请选择",
1929
- style: { width: "115px" }
1930
- }, {
1931
- default: d(() => {
1932
- var n;
1933
- return [
1934
- (o(!0), r(V, null, x((n = l.options) == null ? void 0 : n.data, (u, c) => (o(), s(M, {
1935
- label: u.name,
1936
- value: u.code,
1937
- key: c
1938
- }, null, 8, ["label", "value"]))), 128))
1939
- ];
1940
- }),
1941
- _: 2
1942
- }, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder"])
1943
- ];
1944
- }),
1945
- _: 2
1946
- }, 1032, ["maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "clearable"])
1947
- ]),
1948
- _: 2
1949
- }, 1032, ["label", "rules", "prop"])), [
1950
- [f, !l.isHide]
1951
- ]) : l.type === "line" ? h((o(), s(i, {
1952
- key: 12,
1953
- label: l.label
1954
- }, {
1955
- default: d(() => [
1956
- ue
1957
- ]),
1958
- _: 2
1959
- }, 1032, ["label"])), [
1960
- [f, !l.isHide]
1961
- ]) : h((o(), s(i, {
1962
- key: 13,
1963
- label: l.label,
1964
- rules: l.rules,
1965
- prop: [l.field]
1966
- }, {
1967
- label: d(() => [
1968
- y("div", {
1969
- style: t([{ display: "inline-block" }, l.lableStyle])
1970
- }, p(l.label), 5),
1971
- l.required ? (o(), r("span", be, "*")) : g("", !0)
1972
- ]),
1973
- default: d(() => [
1974
- b(v, {
1975
- maxlength: l.maxlength,
1976
- modelValue: a.model[l.field],
1977
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
1978
- readonly: l.readonly,
1979
- type: l.type ? l.type : "text",
1980
- placeholder: l.placeholder || l.label,
1981
- disabled: l.disabled || a._options.isDisabled,
1982
- showPassword: l.showPassword,
1983
- clearable: l.clearable,
1984
- onKeyup: K((e) => a.handleKeyUp(l.enterable), ["enter"])
1985
- }, W({ _: 2 }, [
1986
- l.prepend ? {
1987
- name: "prepend",
1988
- fn: d(() => [
1989
- C(p(l.field), 1)
1990
- ]),
1991
- key: "0"
1992
- } : void 0,
1993
- l.append ? {
1994
- name: "append",
1995
- fn: d(() => [
1996
- C(p(l.append), 1)
1997
- ]),
1998
- key: "1"
1999
- } : void 0
2000
- ]), 1032, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
2001
- ]),
2002
- _: 2
2003
- }, 1032, ["label", "rules", "prop"])), [
2004
- [f, !l.isHide]
2005
- ])
2006
- ], 4)
2007
- ]),
2008
- _: 2
2009
- }, 1024)), [
2010
- [f, !l.isHide]
2011
- ])), 128))
2012
- ]),
2013
- _: 2
2014
- }, 1024)
2015
- ])) : k.colNum === 1 ? (o(), r("div", ye, [
2016
- b(U, { gutter: 20 }, {
2017
- default: d(() => [
2018
- (o(!0), r(V, null, x(k.formItemList, (l, L) => h((o(), s(O, {
2019
- xs: 24,
2020
- sm: 24,
2021
- md: 24,
2022
- lg: 24,
2023
- xl: 24,
2024
- key: L
2025
- }, {
2026
- default: d(() => [
2027
- y("div", {
2028
- style: t(l.style)
2029
- }, [
2030
- l.type === "title" ? h((o(), s(i, { key: 0 }, {
2031
- default: d(() => [
2032
- y("div", ce, [
2033
- y("span", ie, p(l.title), 1)
2034
- ])
2035
- ]),
2036
- _: 2
2037
- }, 1536)), [
2038
- [f, !l.isHide]
2039
- ]) : l.type === "name" ? h((o(), s(i, {
2040
- key: 1,
2041
- label: l.label,
2042
- disabled: l.disabled || a._options.isDisabled,
2043
- class: "container_name",
2044
- rules: l.rules.nameEnFamily
2045
- }, {
2046
- label: d(() => [
2047
- y("div", {
2048
- style: t([{ display: "inline-block" }, l.lableStyle])
2049
- }, p(l.label), 5),
2050
- l.required ? (o(), r("span", he, "*")) : g("", !0)
2051
- ]),
2052
- default: d(() => [
2053
- b(i, {
2054
- rules: l.rules.nameEnFamily,
2055
- prop: [l.field.nameEnFamily],
2056
- class: "item-name"
2057
- }, {
2058
- default: d(() => [
2059
- b(v, {
2060
- name: l.field.nameEnFamily,
2061
- maxlength: l.maxlength,
2062
- modelValue: a.model[l.field.nameEnFamily],
2063
- "onUpdate:modelValue": (e) => a.model[l.field.nameEnFamily] = e,
2064
- readonly: l.readonly,
2065
- type: l.type ? l.type : "text",
2066
- placeholder: l.placeholderNameEnFamily,
2067
- disabled: l.disabled || a._options.isDisabled,
2068
- onKeyup: K((e) => a.handleKeyUp(l.enterable), ["enter"])
2069
- }, null, 8, ["name", "maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
2070
- ]),
2071
- _: 2
2072
- }, 1032, ["rules", "prop"]),
2073
- b(i, {
2074
- rules: l.rules.nameEn,
2075
- prop: [l.field.nameEn],
2076
- class: "item-name-right"
2077
- }, {
2078
- default: d(() => [
2079
- b(v, {
2080
- name: l.field.nameEn,
2081
- maxlength: l.maxlength,
2082
- modelValue: a.model[l.field.nameEn],
2083
- "onUpdate:modelValue": (e) => a.model[l.field.nameEn] = e,
2084
- readonly: l.readonly,
2085
- type: l.type ? l.type : "text",
2086
- placeholder: "item.placeholderNameEn",
2087
- disabled: l.disabled || a._options.isDisabled,
2088
- onKeyup: K((e) => a.handleKeyUp(l.enterable), ["enter"])
2089
- }, null, 8, ["name", "maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
2090
- ]),
2091
- _: 2
2092
- }, 1032, ["rules", "prop"]),
2093
- b(i, {
2094
- rules: l.rules.nameChFamily,
2095
- prop: [l.field.nameChFamily],
2096
- class: "item-name"
2097
- }, {
2098
- default: d(() => [
2099
- b(v, {
2100
- maxlength: l.maxlength,
2101
- name: l.field.nameChFamily,
2102
- modelValue: a.model[l.field.nameChFamily],
2103
- "onUpdate:modelValue": (e) => a.model[l.field.nameChFamily] = e,
2104
- readonly: l.readonly,
2105
- type: l.type ? l.type : "text",
2106
- placeholder: l.placeholderNameChFamily,
2107
- disabled: l.disabled || a._options.isDisabled,
2108
- onKeyup: K((e) => a.handleKeyUp(l.enterable), ["enter"])
2109
- }, null, 8, ["maxlength", "name", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
2110
- ]),
2111
- _: 2
2112
- }, 1032, ["rules", "prop"]),
2113
- b(i, {
2114
- rules: l.rules.nameCh,
2115
- prop: [l.field.nameCh],
2116
- class: "item-name-right"
2117
- }, {
2118
- default: d(() => [
2119
- b(v, {
2120
- maxlength: l.maxlength,
2121
- modelValue: a.model[l.field.nameCh],
2122
- "onUpdate:modelValue": (e) => a.model[l.field.nameCh] = e,
2123
- name: l.field.nameCh,
2124
- readonly: l.readonly,
2125
- type: l.type ? l.type : "text",
2126
- placeholder: l.placeholderNameCh,
2127
- disabled: l.disabled || a._options.isDisabled,
2128
- onKeyup: K((e) => a.handleKeyUp(l.enterable), ["enter"])
2129
- }, null, 8, ["maxlength", "modelValue", "onUpdate:modelValue", "name", "readonly", "type", "placeholder", "disabled", "onKeyup"])
2130
- ]),
2131
- _: 2
2132
- }, 1032, ["rules", "prop"])
2133
- ]),
2134
- _: 2
2135
- }, 1032, ["label", "disabled", "rules"])), [
2136
- [f, !l.isHide]
2137
- ]) : l.type === "gender" ? h((o(), s(i, {
2138
- key: 2,
2139
- label: l.label,
2140
- rules: l.rules,
2141
- prop: [l.field]
2142
- }, {
2143
- label: d(() => [
2144
- y("div", {
2145
- style: t([{ display: "inline-block" }, l.lableStyle])
2146
- }, p(l.label), 5),
2147
- l.required ? (o(), r("span", te, "*")) : g("", !0)
2148
- ]),
2149
- default: d(() => [
2150
- b(N, {
2151
- modelValue: a.model[l.field],
2152
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
2153
- disabled: l.disabled || a._options.isDisabled,
2154
- onChange: (e) => a.radioChange(e, l.field)
2155
- }, {
2156
- default: d(() => {
2157
- var e;
2158
- return [
2159
- (o(!0), r(V, null, x((e = l.options) == null ? void 0 : e.data, (n) => {
2160
- var u, c;
2161
- return o(), s(q, {
2162
- label: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"],
2163
- size: "large",
2164
- key: n[((c = l.options) == null ? void 0 : c.valueKey) || "code"]
2165
- }, {
2166
- default: d(() => [
2167
- y("img", {
2168
- 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",
2169
- style: { width: "44px", height: "44px", "margin-bottom": "-15px", "margin-left": "4px" },
2170
- alt: ""
2171
- }, null, 8, fe)
2172
- ]),
2173
- _: 2
2174
- }, 1032, ["label"]);
2175
- }), 128))
2176
- ];
2177
- }),
2178
- _: 2
2179
- }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
2180
- ]),
2181
- _: 2
2182
- }, 1032, ["label", "rules", "prop"])), [
2183
- [f, !l.isHide]
2184
- ]) : l.type === "radio" ? h((o(), s(i, {
2185
- key: 3,
2186
- label: l.label,
2187
- rules: l.rules,
2188
- prop: [l.field],
2189
- class: I([l.labelNode ? "radio_Note" : "rule_err"])
2190
- }, {
2191
- label: d(() => [
2192
- y("div", {
2193
- style: t([{ display: "inline-block" }, l.lableStyle])
2194
- }, p(l.label), 5),
2195
- l.required ? (o(), r("span", _e, "*")) : g("", !0)
2196
- ]),
2197
- default: d(() => [
2198
- b(N, {
2199
- modelValue: a.model[l.field],
2200
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
2201
- disabled: l.disabled || a._options.isDisabled,
2202
- onChange: (e) => a.radioChange(e, l.field)
2203
- }, {
2204
- default: d(() => {
2205
- var e;
2206
- return [
2207
- (o(!0), r(V, null, x((e = l.options) == null ? void 0 : e.data, (n) => {
2208
- var u, c;
2209
- return o(), s(q, {
2210
- size: "large",
2211
- label: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"],
2212
- key: n[((c = l.options) == null ? void 0 : c.valueKey) || "code"]
2213
- }, {
2214
- default: d(() => {
2215
- var _;
2216
- return [
2217
- C(p(n[((_ = l.options) == null ? void 0 : _.labelkey) || "name"]), 1)
2218
- ];
2219
- }),
2220
- _: 2
2221
- }, 1032, ["label"]);
2222
- }), 128))
2223
- ];
2224
- }),
2225
- _: 2
2226
- }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
2227
- ]),
2228
- _: 2
2229
- }, 1032, ["label", "rules", "prop", "class"])), [
2230
- [f, !l.isHide]
2231
- ]) : l.type === "radioNote" ? h((o(), s(i, {
2232
- key: 4,
2233
- label: l.label,
2234
- rules: l.rules,
2235
- prop: [l.field],
2236
- class: I([l.labelNode ? "radio_Note" : "rule_err"])
2237
- }, {
2238
- default: d(() => [
2239
- y("div", null, [
2240
- y("span", ge, p(l.labelBefore), 1),
2241
- y("span", ke, p(l.labelNode), 1),
2242
- l.required ? (o(), r("span", Ve, "*")) : g("", !0)
709
+ key: "0"
710
+ } : void 0,
711
+ e.append ? {
712
+ name: "append",
713
+ fn: o(() => [
714
+ h(p(e.append), 1)
2243
715
  ]),
2244
- b(N, {
2245
- modelValue: a.model[l.field],
2246
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
2247
- disabled: l.disabled || a._options.isDisabled,
2248
- onChange: (e) => a.radioChange(e, l.field)
2249
- }, {
2250
- default: d(() => {
2251
- var e;
2252
- return [
2253
- (o(!0), r(V, null, x((e = l.options) == null ? void 0 : e.data, (n) => {
2254
- var u, c;
2255
- return o(), s(q, {
2256
- size: "large",
2257
- label: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"],
2258
- key: n[((c = l.options) == null ? void 0 : c.valueKey) || "code"]
2259
- }, {
2260
- default: d(() => {
2261
- var _;
2262
- return [
2263
- C(p(n[((_ = l.options) == null ? void 0 : _.labelkey) || "name"]), 1)
2264
- ];
2265
- }),
2266
- _: 2
2267
- }, 1032, ["label"]);
2268
- }), 128))
2269
- ];
2270
- }),
2271
- _: 2
2272
- }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
2273
- ]),
2274
- _: 2
2275
- }, 1032, ["label", "rules", "prop", "class"])), [
2276
- [f, !l.isHide]
2277
- ]) : l.type === "checkbox" ? h((o(), s(i, {
2278
- key: 5,
2279
- label: l.label,
2280
- rules: l.rules,
2281
- prop: [l.field]
2282
- }, {
2283
- label: d(() => [
2284
- y("div", {
2285
- style: t([{ display: "inline-block" }, l.lableStyle])
2286
- }, p(l.label), 5),
2287
- l.required ? (o(), r("span", xe, "*")) : g("", !0)
2288
- ]),
2289
- default: d(() => [
2290
- b(F, {
2291
- modelValue: a.model[l.field],
2292
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
2293
- disabled: l.disabled || a._options.isDisabled,
2294
- onChange: (e) => a.checkChange(e, l.field),
2295
- style: t(
2296
- l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
2297
- )
2298
- }, {
2299
- default: d(() => {
2300
- var e;
2301
- return [
2302
- (o(!0), r(V, null, x((e = l.options) == null ? void 0 : e.data, (n) => {
2303
- var u, c;
2304
- return o(), s(E, {
2305
- key: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"],
2306
- label: n[((c = l.options) == null ? void 0 : c.valueKey) || "code"]
2307
- }, {
2308
- default: d(() => {
2309
- var _;
2310
- return [
2311
- C(p(n[((_ = l.options) == null ? void 0 : _.labelkey) || "name"]), 1)
2312
- ];
2313
- }),
2314
- _: 2
2315
- }, 1032, ["label"]);
2316
- }), 128))
2317
- ];
2318
- }),
2319
- _: 2
2320
- }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange", "style"])
2321
- ]),
2322
- _: 2
2323
- }, 1032, ["label", "rules", "prop"])), [
2324
- [f, !l.isHide]
2325
- ]) : l.type === "checkboxRadio" ? h((o(), s(i, {
2326
- key: 6,
2327
- label: l.label,
2328
- rules: l.rules,
2329
- prop: [l.field]
2330
- }, {
2331
- label: d(() => [
2332
- y("div", {
2333
- style: t([{ display: "inline-block" }, l.lableStyle])
2334
- }, p(l.label), 5),
2335
- l.required ? (o(), r("span", ve, "*")) : g("", !0)
2336
- ]),
2337
- default: d(() => [
2338
- b(F, {
2339
- modelValue: a.model[l.field],
2340
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
2341
- onChange: (e) => a.handleCheckedChange(e, l.field),
2342
- disabled: l.disabled || a._options.isDisabled,
2343
- style: t(
2344
- l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
2345
- )
2346
- }, {
2347
- default: d(() => {
2348
- var e;
2349
- return [
2350
- (o(!0), r(V, null, x((e = l.options) == null ? void 0 : e.data, (n) => {
2351
- var u, c;
2352
- return o(), s(E, {
2353
- key: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"],
2354
- label: n[((c = l.options) == null ? void 0 : c.valueKey) || "code"]
2355
- }, {
2356
- default: d(() => {
2357
- var _;
2358
- return [
2359
- C(p(n[((_ = l.options) == null ? void 0 : _.labelkey) || "name"]), 1)
2360
- ];
2361
- }),
2362
- _: 2
2363
- }, 1032, ["label"]);
2364
- }), 128))
2365
- ];
2366
- }),
2367
- _: 2
2368
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
2369
- ]),
2370
- _: 2
2371
- }, 1032, ["label", "rules", "prop"])), [
2372
- [f, !l.isHide]
2373
- ]) : l.type === "select" ? h((o(), s(i, {
2374
- key: 7,
2375
- label: l.label,
2376
- rules: l.rules,
2377
- disabled: l.disabled || a._options.isDisabled,
2378
- prop: [l.field]
2379
- }, {
2380
- label: d(() => [
2381
- y("div", {
2382
- style: t([{ display: "inline-block" }, l.lableStyle])
2383
- }, p(l.label), 5),
2384
- l.required ? (o(), r("span", Ce, "*")) : g("", !0)
2385
- ]),
2386
- default: d(() => [
2387
- b(z, {
2388
- onChange: (e) => a.selectChange(e, l.field),
2389
- modelValue: a.model[l.field],
2390
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
2391
- disabled: l.disabled || a._options.isDisabled,
2392
- placeholder: l.placeholder,
2393
- clearable: l.clearable
2394
- }, {
2395
- default: d(() => {
2396
- var e;
2397
- return [
2398
- (o(!0), r(V, null, x((e = l.options) == null ? void 0 : e.data, (n) => {
2399
- var u, c, _;
2400
- return o(), s(M, {
2401
- key: n[((u = l.options) == null ? void 0 : u.valueKey) || "code"],
2402
- label: n[((c = l.options) == null ? void 0 : c.labelkey) || "name"],
2403
- value: n[((_ = l.options) == null ? void 0 : _.valueKey) || "code"]
2404
- }, null, 8, ["label", "value"]);
2405
- }), 128))
2406
- ];
2407
- }),
2408
- _: 2
2409
- }, 1032, ["onChange", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "clearable"]),
2410
- y("div", {
2411
- class: "item_tips_blow",
2412
- style: t(l.tipsBlowStyle)
2413
- }, p(l.tipsBlow), 5)
2414
- ]),
2415
- _: 2
2416
- }, 1032, ["label", "rules", "disabled", "prop"])), [
2417
- [f, !l.isHide]
2418
- ]) : l.type === "date" ? h((o(), s(i, {
2419
- key: 8,
2420
- label: l.label,
2421
- rules: l.rules,
2422
- prop: [l.field]
2423
- }, {
2424
- label: d(() => [
2425
- y("div", {
2426
- style: t([{ display: "inline-block" }, l.lableStyle])
2427
- }, p(l.label), 5),
2428
- l.required ? (o(), r("span", Ue, "*")) : g("", !0)
2429
- ]),
2430
- default: d(() => [
2431
- b(B, {
2432
- format: "DD/MM/YYYY",
2433
- "value-format": "DD/MM/YYYY",
2434
- "disabled-date": l.disabledDate,
2435
- modelValue: a.model[l.field],
2436
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
2437
- disabled: l.disabled || a._options.isDisabled,
2438
- readonly: l.readonly,
2439
- type: l.type,
2440
- placeholder: l.placeholder || l.label
2441
- }, null, 8, ["disabled-date", "modelValue", "onUpdate:modelValue", "disabled", "readonly", "type", "placeholder"])
2442
- ]),
2443
- _: 2
2444
- }, 1032, ["label", "rules", "prop"])), [
2445
- [f, !l.isHide]
2446
- ]) : l.type === "daterange" ? h((o(), s(i, {
2447
- key: 9,
2448
- label: l.label,
2449
- rules: l.rules,
2450
- prop: [l.field]
2451
- }, {
2452
- label: d(() => [
2453
- y("div", {
2454
- style: t([{ display: "inline-block" }, l.lableStyle])
2455
- }, p(l.label), 5),
2456
- l.required ? (o(), r("span", we, "*")) : g("", !0)
2457
- ]),
2458
- default: d(() => [
2459
- b(B, {
2460
- format: "DD/MM/YYYY",
2461
- "value-format": "DD/MM/YYYY",
2462
- "disabled-date": l.disabledDate,
2463
- modelValue: a.model[l.field],
2464
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
2465
- type: "daterange",
2466
- "range-separator": "To",
2467
- "start-placeholder": l.startPlaceholder,
2468
- "end-placeholder": l.endPlaceholder,
2469
- size: "large"
2470
- }, null, 8, ["disabled-date", "modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder"])
2471
- ]),
2472
- _: 2
2473
- }, 1032, ["label", "rules", "prop"])), [
2474
- [f, !l.isHide]
2475
- ]) : l.type === "slotItem" ? h((o(), s(i, {
2476
- key: 10,
2477
- label: l.label,
2478
- rules: l.rules,
2479
- prop: [l.field],
2480
- class: "rule_err"
2481
- }, {
2482
- label: d(() => [
2483
- y("div", {
2484
- style: t([{ display: "inline-block" }, l.lableStyle])
2485
- }, p(l.label), 5),
2486
- l.required ? (o(), r("span", Ke, "*")) : g("", !0)
2487
- ]),
2488
- default: d(() => [
2489
- R(D.$slots, l.slotItemName, {}, void 0, !0)
2490
- ]),
2491
- _: 2
2492
- }, 1032, ["label", "rules", "prop"])), [
2493
- [f, !l.isHide]
2494
- ]) : l.type === "phone" ? h((o(), s(i, {
2495
- key: 11,
2496
- label: l.label,
2497
- rules: l.rules.phoneNumber,
2498
- prop: [l.field.phoneNumber],
2499
- class: "phone_item"
2500
- }, {
2501
- label: d(() => [
2502
- y("div", {
2503
- style: t([{ display: "inline-block" }, l.lableStyle])
2504
- }, p(l.label), 5),
2505
- l.required ? (o(), r("span", De, "*")) : g("", !0)
2506
- ]),
2507
- default: d(() => [
2508
- b(v, {
2509
- maxlength: l.maxlength,
2510
- modelValue: a.model[l.field.phoneNumber],
2511
- "onUpdate:modelValue": (e) => a.model[l.field.phoneNumber] = e,
2512
- disabled: l.disabled || a._options.isDisabled,
2513
- placeholder: l.placeholder || "请选择",
2514
- clearable: l.clearable
2515
- }, {
2516
- prepend: d(() => {
2517
- var e;
2518
- return [
2519
- b(z, {
2520
- disabled: l.disabled || a._options.isDisabled,
2521
- modelValue: a.model[l.field.areaCode],
2522
- "onUpdate:modelValue": (n) => a.model[l.field.areaCode] = n,
2523
- placeholder: ((e = l.options) == null ? void 0 : e.placeholder) || "请选择",
2524
- style: { width: "115px" }
2525
- }, {
2526
- default: d(() => {
2527
- var n;
2528
- return [
2529
- (o(!0), r(V, null, x((n = l.options) == null ? void 0 : n.data, (u, c) => (o(), s(M, {
2530
- label: u.name,
2531
- value: u.code,
2532
- key: c
2533
- }, null, 8, ["label", "value"]))), 128))
2534
- ];
2535
- }),
2536
- _: 2
2537
- }, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder"])
2538
- ];
2539
- }),
2540
- _: 2
2541
- }, 1032, ["maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "clearable"])
2542
- ]),
2543
- _: 2
2544
- }, 1032, ["label", "rules", "prop"])), [
2545
- [f, !l.isHide]
2546
- ]) : l.type === "line" ? h((o(), s(i, {
2547
- key: 12,
2548
- label: l.label
2549
- }, {
2550
- default: d(() => [
2551
- qe
2552
- ]),
2553
- _: 2
2554
- }, 1032, ["label"])), [
2555
- [f, !l.isHide]
2556
- ]) : h((o(), s(i, {
2557
- key: 13,
2558
- label: l.label,
2559
- rules: l.rules,
2560
- prop: [l.field]
2561
- }, {
2562
- label: d(() => [
2563
- y("div", {
2564
- style: t([{ display: "inline-block" }, l.lableStyle])
2565
- }, p(l.label), 5),
2566
- l.required ? (o(), r("span", Ne, "*")) : g("", !0)
2567
- ]),
2568
- default: d(() => [
2569
- b(v, {
2570
- maxlength: l.maxlength,
2571
- modelValue: a.model[l.field],
2572
- "onUpdate:modelValue": (e) => a.model[l.field] = e,
2573
- readonly: l.readonly,
2574
- type: l.type ? l.type : "text",
2575
- placeholder: l.placeholder || l.label,
2576
- disabled: l.disabled || a._options.isDisabled,
2577
- showPassword: l.showPassword,
2578
- clearable: l.clearable,
2579
- autosize: l.autosize,
2580
- rows: l.rows,
2581
- onKeyup: K((e) => a.handleKeyUp(l.enterable), ["enter"])
2582
- }, W({ _: 2 }, [
2583
- l.prepend ? {
2584
- name: "prepend",
2585
- fn: d(() => [
2586
- C(p(l.field), 1)
2587
- ]),
2588
- key: "0"
2589
- } : void 0,
2590
- l.append ? {
2591
- name: "append",
2592
- fn: d(() => [
2593
- C(p(l.append), 1)
2594
- ]),
2595
- key: "1"
2596
- } : void 0
2597
- ]), 1032, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "autosize", "rows", "onKeyup"])
2598
- ]),
2599
- _: 2
2600
- }, 1032, ["label", "rules", "prop"])), [
2601
- [f, !l.isHide]
2602
- ])
2603
- ], 4)
2604
- ]),
2605
- _: 2
2606
- }, 1024)), [
2607
- [f, !l.isHide]
2608
- ])), 128))
716
+ key: "1"
717
+ } : void 0
718
+ ]), 1032, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
719
+ ]),
720
+ _: 2
721
+ }, 1032, ["label", "rules", "prop"])), [
722
+ [x, !e.isHide]
723
+ ])
724
+ ], 4)
2609
725
  ]),
2610
726
  _: 2
2611
- }, 1024)
2612
- ])) : g("", !0)
2613
- ]))), 128)),
2614
- b(i, { class: "btnsItem" }, {
2615
- default: d(() => [
2616
- R(D.$slots, "buttons", {
2617
- model: a.model,
2618
- onBtnClick: a.onSubmit
727
+ }, 1032, ["xs", "sm", "md", "lg", "xl"])), [
728
+ [x, !e.isHide]
729
+ ])), 128))
730
+ ]),
731
+ _: 3
732
+ }),
733
+ u(r, { class: "btnsItem" }, {
734
+ default: o(() => [
735
+ R(_.$slots, "buttons", {
736
+ model: C.model,
737
+ onBtnClick: l.onSubmit
2619
738
  }, () => [
2620
- (o(!0), r(V, null, x(a._options.btnConfig, (k, G) => (o(), r("div", { key: G }, [
2621
- k.isShow ? (o(), s(w, {
739
+ (d(!0), t(K, null, D(l.formOptions.btnConfig, (e, P) => (d(), t("div", { key: P }, [
740
+ e.isShow ? (d(), n(S, {
2622
741
  key: 0,
2623
- btnCode: k.btnCode,
2624
- plain: k.plain,
2625
- primary: k.primary,
2626
- info: k.info,
2627
- text: k.text,
2628
- link: k.link,
2629
- loading: k.loading,
2630
- loadingColor: k.loadingColor,
2631
- width: k.width,
2632
- height: k.height,
2633
- circle: k.circle,
2634
- color: k.color,
2635
- bgColor: k.bgColor,
2636
- borderColor: k.borderColor,
2637
- borderStyle: k.borderStyle,
2638
- borderWidth: k.borderWidth,
2639
- icon: k.icon,
2640
- size: k.size,
2641
- fontSize: k.fontSize,
2642
- fontWeight: k.fontWeight,
2643
- styleObj: { ...k.style },
2644
- class: I(k.class),
2645
- onHandleClick: (l) => a.handleClick(l, k.isRule, k.emitName)
742
+ btnCode: e.btnCode,
743
+ plain: e.plain,
744
+ primary: e.primary,
745
+ info: e.info,
746
+ text: e.text,
747
+ link: e.link,
748
+ loading: e.loading,
749
+ loadingColor: e.loadingColor,
750
+ width: e.width,
751
+ height: e.height,
752
+ circle: e.circle,
753
+ color: e.color,
754
+ bgColor: e.bgColor,
755
+ borderColor: e.borderColor,
756
+ borderStyle: e.borderStyle,
757
+ borderWidth: e.borderWidth,
758
+ icon: e.icon,
759
+ size: e.size,
760
+ fontSize: e.fontSize,
761
+ fontWeight: e.fontWeight,
762
+ styleObj: { ...e.style },
763
+ class: W(e.class),
764
+ onHandleClick: (a) => l.handleClick(a, e.isRule, e.emitName)
2646
765
  }, {
2647
- default: d(() => [
2648
- C(p(k.name), 1)
766
+ default: o(() => [
767
+ h(p(e.name), 1)
2649
768
  ]),
2650
769
  _: 2
2651
- }, 1032, ["btnCode", "plain", "primary", "info", "text", "link", "loading", "loadingColor", "width", "height", "circle", "color", "bgColor", "borderColor", "borderStyle", "borderWidth", "icon", "size", "fontSize", "fontWeight", "styleObj", "class", "onHandleClick"])) : g("", !0)
770
+ }, 1032, ["btnCode", "plain", "primary", "info", "text", "link", "loading", "loadingColor", "width", "height", "circle", "color", "bgColor", "borderColor", "borderStyle", "borderWidth", "icon", "size", "fontSize", "fontWeight", "styleObj", "class", "onHandleClick"])) : w("", !0)
2652
771
  ]))), 128))
2653
772
  ], !0)
2654
773
  ]),
@@ -2658,11 +777,11 @@ function Se(D, Y, H, a, T, A) {
2658
777
  _: 3
2659
778
  }, 16, ["model", "label-position"]);
2660
779
  }
2661
- const X = /* @__PURE__ */ rl(sl, [["render", Se], ["__scopeId", "data-v-92bd879a"]]);
2662
- function J(D, Y = {}) {
2663
- J.installed || (J.installed = !0, D.component("common-el-form", X));
780
+ const L = /* @__PURE__ */ de(oe, [["render", we], ["__scopeId", "data-v-15f750a4"]]);
781
+ function j(_, U = {}) {
782
+ j.installed || (j.installed = !0, _.component("common-el-form", L));
2664
783
  }
2665
- X.install = J;
784
+ L.install = j;
2666
785
  export {
2667
- X as default
786
+ L as default
2668
787
  };