sinosoft-common-form 1.1.8 → 1.2.0

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