sinosoft-common-form 1.3.6 → 1.3.8

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,4 +1,4 @@
1
- import { ref as q, reactive as H, shallowRef as W, h as Q, computed as P, onMounted as Z, watch as G, toRefs as J, nextTick as X, resolveComponent as M, openBlock as n, createBlock as c, mergeProps as $, withModifiers as ee, withCtx as s, createVNode as b, createElementBlock as r, Fragment as I, renderList as x, withDirectives as le, createElementVNode as V, normalizeStyle as g, toDisplayString as p, createTextVNode as i, createCommentVNode as _, renderSlot as C, withKeys as v, normalizeClass as T, createSlots as oe, vShow as ae, pushScopeId as ne, popScopeId as de } from "vue";
1
+ import { ref as q, reactive as H, shallowRef as W, h as Q, computed as P, onMounted as Z, watch as G, toRefs as J, nextTick as X, resolveComponent as _, openBlock as d, createBlock as c, mergeProps as $, withModifiers as ee, withCtx as s, createVNode as b, createElementBlock as r, Fragment as I, renderList as x, withDirectives as le, createElementVNode as w, normalizeStyle as g, toDisplayString as p, createTextVNode as i, createCommentVNode as M, renderSlot as C, withKeys as v, normalizeClass as A, createSlots as oe, vShow as ae, pushScopeId as de, popScopeId as ne } from "vue";
2
2
  const se = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==", re = {
3
3
  props: {
4
4
  fieldList: {
@@ -11,7 +11,7 @@ const se = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
11
11
  setup(t, { emit: h }) {
12
12
  const k = q(!0), o = H({
13
13
  model: {}
14
- }), N = q(null), m = W({
14
+ }), N = q(null), Y = W({
15
15
  render() {
16
16
  return Q("img", {
17
17
  src: se
@@ -19,8 +19,8 @@ const se = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
19
19
  }
20
20
  }), y = P(() => Object.assign([], t.options)), D = () => {
21
21
  o.model = t.model;
22
- }, w = (a, d, u) => {
23
- N.value && (d ? (k.value = !1, X(() => {
22
+ }, V = (a, n, u) => {
23
+ N.value && (n ? (k.value = !1, X(() => {
24
24
  N.value.validate((f) => {
25
25
  if (f)
26
26
  h(u || "submit", o.model, a);
@@ -28,29 +28,29 @@ const se = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
28
28
  return !1;
29
29
  });
30
30
  })) : u === "reset" ? N.value.resetFields() : h(u || "submit", o.model, a));
31
- }, U = (a, d) => {
32
- h("selectChange", a, d);
33
- }, F = (a, d) => {
34
- h("radioChange", a, d);
35
- }, z = (a, d) => {
36
- h("checkChange", a, d);
37
- }, O = (a, d) => {
38
- const u = o.model[d].length;
39
- u !== 1 && (u > 1 && o.model[d].shift(), h("checkChange", a, d));
40
- }, L = (a, d, u) => {
41
- w(a, d, u);
42
- }, A = (a, d) => {
43
- a && (d == null ? void 0 : d.key) === "Enter" && w(void 0, !0, "submit");
44
- }, S = (a, d) => {
45
- h("dateChange", a, d);
46
- }, E = (a, d) => {
47
- console.log(N.value), h("inputBlur", a, d);
48
- }, B = (a, d) => {
49
- h("inputFocus", a, d);
50
- }, K = (a, d) => {
51
- h("inputChange", a, d);
52
- }, e = (a, d) => {
53
- h("inputInput", a, d);
31
+ }, U = (a, n) => {
32
+ h("selectChange", a, n);
33
+ }, F = (a, n) => {
34
+ h("radioChange", a, n);
35
+ }, z = (a, n) => {
36
+ h("checkChange", a, n);
37
+ }, O = (a, n) => {
38
+ const u = o.model[n].length;
39
+ u !== 1 && (u > 1 && o.model[n].shift(), h("checkChange", a, n));
40
+ }, L = (a, n, u) => {
41
+ V(a, n, u);
42
+ }, T = (a, n) => {
43
+ a && (n == null ? void 0 : n.key) === "Enter" && V(void 0, !0, "submit");
44
+ }, S = (a, n) => {
45
+ h("dateChange", a, n);
46
+ }, E = (a, n) => {
47
+ console.log(N.value), h("inputBlur", a, n);
48
+ }, m = (a, n) => {
49
+ h("inputFocus", a, n);
50
+ }, B = (a, n) => {
51
+ h("inputChange", a, n);
52
+ }, e = (a, n) => {
53
+ h("inputInput", a, n);
54
54
  }, j = (a) => {
55
55
  N.value.resetFields(a);
56
56
  }, l = (a) => {
@@ -60,28 +60,28 @@ const se = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
60
60
  D(), N.value.resetFields();
61
61
  }), G(
62
62
  () => t.fieldList,
63
- (a, d) => {
64
- a !== d && D();
63
+ (a, n) => {
64
+ a !== n && D();
65
65
  }
66
66
  ), {
67
67
  ...J(o),
68
68
  formRef: N,
69
69
  states: o,
70
70
  formOptions: y,
71
- onSubmit: w,
71
+ onSubmit: V,
72
72
  selectChange: U,
73
73
  radioChange: F,
74
74
  checkChange: z,
75
75
  handleCheckedChange: O,
76
- prefixIcon: m,
76
+ prefixIcon: Y,
77
77
  handleClick: L,
78
- handleKeyUp: A,
78
+ handleKeyUp: T,
79
79
  resetFieldsTest: j,
80
80
  clearValidateTest: l,
81
81
  dateChange: S,
82
82
  inputBlur: E,
83
- inputFocus: B,
84
- inputChange: K,
83
+ inputFocus: m,
84
+ inputChange: B,
85
85
  inputInput: e,
86
86
  noFormRule: k
87
87
  };
@@ -92,7 +92,7 @@ const ue = (t, h) => {
92
92
  for (const [o, N] of h)
93
93
  k[o] = N;
94
94
  return k;
95
- }, te = (t) => (ne("data-v-03397e4e"), t = t(), de(), t), ce = { class: "header-title" }, pe = { class: "title-content" }, ye = {
95
+ }, te = (t) => (de("data-v-614d29dc"), t = t(), ne(), t), ce = { class: "header-title" }, pe = { class: "title-content" }, ye = {
96
96
  key: 0,
97
97
  class: "custom-required"
98
98
  }, be = {
@@ -118,23 +118,26 @@ const ue = (t, h) => {
118
118
  class: "custom-required"
119
119
  }, De = {
120
120
  key: 0,
121
- class: "custom-required"
121
+ class: "date_to"
122
122
  }, Ie = {
123
123
  key: 0,
124
124
  class: "custom-required"
125
125
  }, xe = {
126
126
  key: 0,
127
127
  class: "custom-required"
128
- }, Ve = /* @__PURE__ */ te(() => /* @__PURE__ */ V("div", {
128
+ }, we = {
129
+ key: 0,
130
+ class: "custom-required"
131
+ }, Ve = /* @__PURE__ */ te(() => /* @__PURE__ */ w("div", {
129
132
  class: "line",
130
- style: { "border-top": "1px solid #e8e8e8", width: "100%", height: "0px", margin: "20px 0" }
131
- }, null, -1)), we = {
133
+ style: { "border-top": "1px solid #e8e8e8", width: "100%", height: "0px", margin: "39px 0" }
134
+ }, null, -1)), Ue = {
132
135
  key: 0,
133
136
  class: "custom-required"
134
137
  };
135
- function Ue(t, h, k, o, N, m) {
136
- const y = M("el-form-item"), D = M("el-input"), w = M("el-radio"), U = M("el-radio-group"), F = M("el-checkbox"), z = M("el-checkbox-group"), O = M("el-option"), L = M("el-select"), A = M("el-date-picker"), S = M("el-col"), E = M("el-row"), B = M("sinosoft-common-button"), K = M("el-form");
137
- return n(), c(K, $({
138
+ function je(t, h, k, o, N, Y) {
139
+ const y = _("el-form-item"), D = _("el-input"), V = _("el-radio"), U = _("el-radio-group"), F = _("el-checkbox"), z = _("el-checkbox-group"), O = _("el-option"), L = _("el-select"), T = _("el-date-picker"), S = _("el-col"), E = _("el-row"), m = _("sinosoft-common-button"), B = _("el-form");
140
+ return d(), c(B, $({
138
141
  "hide-required-asterisk": "",
139
142
  onSubmit: h[0] || (h[0] = ee(() => {
140
143
  }, ["prevent"])),
@@ -146,7 +149,7 @@ function Ue(t, h, k, o, N, m) {
146
149
  default: s(() => [
147
150
  b(E, { gutter: 20 }, {
148
151
  default: s(() => [
149
- (n(!0), r(I, null, x(k.fieldList, (e, j) => le((n(), c(S, {
152
+ (d(!0), r(I, null, x(k.fieldList, (e, j) => le((d(), c(S, {
150
153
  xs: e.xs ? e.xs : 24,
151
154
  sm: e.sm ? e.sm : 24,
152
155
  md: e.md ? e.md : 8,
@@ -155,29 +158,29 @@ function Ue(t, h, k, o, N, m) {
155
158
  key: j
156
159
  }, {
157
160
  default: s(() => [
158
- V("div", {
161
+ w("div", {
159
162
  style: g(e.style)
160
163
  }, [
161
- e.type === "title" ? (n(), c(y, { key: 0 }, {
164
+ e.type === "title" ? (d(), c(y, { key: 0 }, {
162
165
  default: s(() => [
163
- V("div", ce, [
164
- V("span", pe, p(e.title), 1)
166
+ w("div", ce, [
167
+ w("span", pe, p(e.title), 1)
165
168
  ])
166
169
  ]),
167
170
  _: 2
168
- }, 1024)) : e.type === "name" ? (n(), c(y, {
171
+ }, 1024)) : e.type === "name" ? (d(), c(y, {
169
172
  key: 1,
170
173
  label: e.label,
171
174
  disabled: e.disabled || o.formOptions.isDisabled,
172
175
  class: "container_name"
173
176
  }, {
174
177
  label: s(() => [
175
- e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
178
+ e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
176
179
  key: 0,
177
180
  style: g(e.labelStyle)
178
181
  }, [
179
182
  i(p(e.label) + " ", 1),
180
- e.required ? (n(), r("span", ye, "*")) : _("", !0)
183
+ e.required ? (d(), r("span", ye, "*")) : M("", !0)
181
184
  ], 4))
182
185
  ]),
183
186
  default: s(() => [
@@ -230,7 +233,7 @@ function Ue(t, h, k, o, N, m) {
230
233
  b(y, {
231
234
  rules: e.isHide || o.noFormRule ? [] : e.rules.nameChFamily,
232
235
  prop: e.field.nameChFamily,
233
- class: "item-name"
236
+ class: "item-name item-name-bottom"
234
237
  }, {
235
238
  default: s(() => [
236
239
  b(D, {
@@ -253,7 +256,7 @@ function Ue(t, h, k, o, N, m) {
253
256
  b(y, {
254
257
  rules: e.isHide || o.noFormRule ? [] : e.rules.nameCh,
255
258
  prop: e.field.nameCh,
256
- class: "item-name-right"
259
+ class: "item-name-right item-name-bottom"
257
260
  }, {
258
261
  default: s(() => [
259
262
  b(D, {
@@ -275,19 +278,19 @@ function Ue(t, h, k, o, N, m) {
275
278
  }, 1032, ["rules", "prop"])
276
279
  ]),
277
280
  _: 2
278
- }, 1032, ["label", "disabled"])) : e.type === "gender" ? (n(), c(y, {
281
+ }, 1032, ["label", "disabled"])) : e.type === "gender" ? (d(), c(y, {
279
282
  key: 2,
280
283
  label: e.label,
281
284
  rules: e.isHide || o.noFormRule ? [] : e.rules,
282
285
  prop: e.field
283
286
  }, {
284
287
  label: s(() => [
285
- e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
288
+ e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
286
289
  key: 0,
287
290
  style: g(e.labelStyle)
288
291
  }, [
289
292
  i(p(e.label) + " ", 1),
290
- e.required ? (n(), r("span", be, "*")) : _("", !0)
293
+ e.required ? (d(), r("span", be, "*")) : M("", !0)
291
294
  ], 4))
292
295
  ]),
293
296
  default: s(() => [
@@ -300,15 +303,15 @@ function Ue(t, h, k, o, N, m) {
300
303
  default: s(() => {
301
304
  var l;
302
305
  return [
303
- (n(!0), r(I, null, x((l = e.options) == null ? void 0 : l.data, (a) => {
304
- var d, u;
305
- return n(), c(w, {
306
- label: a[((d = e.options) == null ? void 0 : d.valueKey) || "code"],
306
+ (d(!0), r(I, null, x((l = e.options) == null ? void 0 : l.data, (a) => {
307
+ var n, u;
308
+ return d(), c(V, {
309
+ label: a[((n = e.options) == null ? void 0 : n.valueKey) || "code"],
307
310
  size: "large",
308
311
  key: a[((u = e.options) == null ? void 0 : u.valueKey) || "code"]
309
312
  }, {
310
313
  default: s(() => [
311
- V("img", {
314
+ w("img", {
312
315
  src: a.code === "M" ? "http://192.168.5.200:9000/test/sex_img_M.png" : "http://192.168.5.200:9000/test/sex_img_F.png",
313
316
  style: { width: "44px", height: "44px", "margin-bottom": "-15px", "margin-left": "4px" },
314
317
  alt: ""
@@ -323,20 +326,20 @@ function Ue(t, h, k, o, N, m) {
323
326
  }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
324
327
  ]),
325
328
  _: 2
326
- }, 1032, ["label", "rules", "prop"])) : e.type === "radio" ? (n(), c(y, {
329
+ }, 1032, ["label", "rules", "prop"])) : e.type === "radio" ? (d(), c(y, {
327
330
  key: 3,
328
331
  label: e.label,
329
332
  rules: e.isHide || o.noFormRule ? [] : e.rules,
330
333
  prop: e.field,
331
- class: T([e.labelNode ? "radio_Note" : "rule_err"])
334
+ class: A([e.labelNode ? "radio_Note" : "rule_err"])
332
335
  }, {
333
336
  label: s(() => [
334
- e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
337
+ e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
335
338
  key: 0,
336
339
  style: g(e.labelStyle)
337
340
  }, [
338
341
  i(p(e.label) + " ", 1),
339
- e.required ? (n(), r("span", he, "*")) : _("", !0)
342
+ e.required ? (d(), r("span", he, "*")) : M("", !0)
340
343
  ], 4))
341
344
  ]),
342
345
  default: s(() => [
@@ -349,11 +352,11 @@ function Ue(t, h, k, o, N, m) {
349
352
  default: s(() => {
350
353
  var l;
351
354
  return [
352
- (n(!0), r(I, null, x((l = e.options) == null ? void 0 : l.data, (a) => {
353
- var d, u;
354
- return n(), c(w, {
355
+ (d(!0), r(I, null, x((l = e.options) == null ? void 0 : l.data, (a) => {
356
+ var n, u;
357
+ return d(), c(V, {
355
358
  size: "large",
356
- label: a[((d = e.options) == null ? void 0 : d.valueKey) || "code"],
359
+ label: a[((n = e.options) == null ? void 0 : n.valueKey) || "code"],
357
360
  key: a[((u = e.options) == null ? void 0 : u.valueKey) || "code"]
358
361
  }, {
359
362
  default: s(() => {
@@ -371,18 +374,18 @@ function Ue(t, h, k, o, N, m) {
371
374
  }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
372
375
  ]),
373
376
  _: 2
374
- }, 1032, ["label", "rules", "prop", "class"])) : e.type === "radioNote" ? (n(), c(y, {
377
+ }, 1032, ["label", "rules", "prop", "class"])) : e.type === "radioNote" ? (d(), c(y, {
375
378
  key: 4,
376
379
  label: e.label,
377
380
  rules: e.isHide || o.noFormRule ? [] : e.rules,
378
381
  prop: e.field,
379
- class: T([e.labelNode ? "radio_Note" : "rule_err"])
382
+ class: A([e.labelNode ? "radio_Note" : "rule_err"])
380
383
  }, {
381
384
  default: s(() => [
382
- V("div", null, [
383
- V("span", fe, p(e.labelBefore), 1),
384
- V("span", ge, p(e.labelNode), 1),
385
- e.required ? (n(), r("span", Me, "*")) : _("", !0)
385
+ w("div", null, [
386
+ w("span", fe, p(e.labelBefore), 1),
387
+ w("span", ge, p(e.labelNode), 1),
388
+ e.required ? (d(), r("span", Me, "*")) : M("", !0)
386
389
  ]),
387
390
  b(U, {
388
391
  modelValue: o.states.model[e.field],
@@ -393,11 +396,11 @@ function Ue(t, h, k, o, N, m) {
393
396
  default: s(() => {
394
397
  var l;
395
398
  return [
396
- (n(!0), r(I, null, x((l = e.options) == null ? void 0 : l.data, (a) => {
397
- var d, u;
398
- return n(), c(w, {
399
+ (d(!0), r(I, null, x((l = e.options) == null ? void 0 : l.data, (a) => {
400
+ var n, u;
401
+ return d(), c(V, {
399
402
  size: "large",
400
- label: a[((d = e.options) == null ? void 0 : d.valueKey) || "code"],
403
+ label: a[((n = e.options) == null ? void 0 : n.valueKey) || "code"],
401
404
  key: a[((u = e.options) == null ? void 0 : u.valueKey) || "code"]
402
405
  }, {
403
406
  default: s(() => {
@@ -415,19 +418,19 @@ function Ue(t, h, k, o, N, m) {
415
418
  }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
416
419
  ]),
417
420
  _: 2
418
- }, 1032, ["label", "rules", "prop", "class"])) : e.type === "checkbox" ? (n(), c(y, {
421
+ }, 1032, ["label", "rules", "prop", "class"])) : e.type === "checkbox" ? (d(), c(y, {
419
422
  key: 5,
420
423
  label: e.label,
421
424
  rules: e.isHide || o.noFormRule ? [] : e.rules,
422
425
  prop: e.field
423
426
  }, {
424
427
  label: s(() => [
425
- e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
428
+ e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
426
429
  key: 0,
427
430
  style: g(e.labelStyle)
428
431
  }, [
429
432
  i(p(e.label) + " ", 1),
430
- e.required ? (n(), r("span", _e, "*")) : _("", !0)
433
+ e.required ? (d(), r("span", _e, "*")) : M("", !0)
431
434
  ], 4))
432
435
  ]),
433
436
  default: s(() => [
@@ -443,10 +446,10 @@ function Ue(t, h, k, o, N, m) {
443
446
  default: s(() => {
444
447
  var l;
445
448
  return [
446
- (n(!0), r(I, null, x((l = e.options) == null ? void 0 : l.data, (a) => {
447
- var d, u;
448
- return n(), c(F, {
449
- key: a[((d = e.options) == null ? void 0 : d.valueKey) || "code"],
449
+ (d(!0), r(I, null, x((l = e.options) == null ? void 0 : l.data, (a) => {
450
+ var n, u;
451
+ return d(), c(F, {
452
+ key: a[((n = e.options) == null ? void 0 : n.valueKey) || "code"],
450
453
  label: a[((u = e.options) == null ? void 0 : u.valueKey) || "code"]
451
454
  }, {
452
455
  default: s(() => {
@@ -464,19 +467,19 @@ function Ue(t, h, k, o, N, m) {
464
467
  }, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
465
468
  ]),
466
469
  _: 2
467
- }, 1032, ["label", "rules", "prop"])) : e.type === "checkboxRadio" ? (n(), c(y, {
470
+ }, 1032, ["label", "rules", "prop"])) : e.type === "checkboxRadio" ? (d(), c(y, {
468
471
  key: 6,
469
472
  label: e.label,
470
473
  rules: e.isHide || o.noFormRule ? [] : e.rules,
471
474
  prop: e.field
472
475
  }, {
473
476
  label: s(() => [
474
- e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
477
+ e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
475
478
  key: 0,
476
479
  style: g(e.labelStyle)
477
480
  }, [
478
481
  i(p(e.label) + " ", 1),
479
- e.required ? (n(), r("span", Ce, "*")) : _("", !0)
482
+ e.required ? (d(), r("span", Ce, "*")) : M("", !0)
480
483
  ], 4))
481
484
  ]),
482
485
  default: s(() => [
@@ -492,10 +495,10 @@ function Ue(t, h, k, o, N, m) {
492
495
  default: s(() => {
493
496
  var l;
494
497
  return [
495
- (n(!0), r(I, null, x((l = e.options) == null ? void 0 : l.data, (a) => {
496
- var d, u;
497
- return n(), c(F, {
498
- key: a[((d = e.options) == null ? void 0 : d.valueKey) || "code"],
498
+ (d(!0), r(I, null, x((l = e.options) == null ? void 0 : l.data, (a) => {
499
+ var n, u;
500
+ return d(), c(F, {
501
+ key: a[((n = e.options) == null ? void 0 : n.valueKey) || "code"],
499
502
  label: a[((u = e.options) == null ? void 0 : u.valueKey) || "code"]
500
503
  }, {
501
504
  default: s(() => {
@@ -513,7 +516,7 @@ function Ue(t, h, k, o, N, m) {
513
516
  }, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
514
517
  ]),
515
518
  _: 2
516
- }, 1032, ["label", "rules", "prop"])) : e.type === "select" ? (n(), c(y, {
519
+ }, 1032, ["label", "rules", "prop"])) : e.type === "select" ? (d(), c(y, {
517
520
  key: 7,
518
521
  label: e.label,
519
522
  rules: e.isHide || o.noFormRule ? [] : e.rules,
@@ -521,12 +524,12 @@ function Ue(t, h, k, o, N, m) {
521
524
  prop: e.field
522
525
  }, {
523
526
  label: s(() => [
524
- e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
527
+ e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
525
528
  key: 0,
526
529
  style: g(e.labelStyle)
527
530
  }, [
528
531
  i(p(e.label) + " ", 1),
529
- e.required ? (n(), r("span", Ne, "*")) : _("", !0)
532
+ e.required ? (d(), r("span", Ne, "*")) : M("", !0)
530
533
  ], 4))
531
534
  ]),
532
535
  default: s(() => [
@@ -541,10 +544,10 @@ function Ue(t, h, k, o, N, m) {
541
544
  default: s(() => {
542
545
  var l;
543
546
  return [
544
- (n(!0), r(I, null, x((l = e.options) == null ? void 0 : l.data, (a) => {
545
- var d, u, f;
546
- return n(), c(O, {
547
- key: a[((d = e.options) == null ? void 0 : d.valueKey) || "code"],
547
+ (d(!0), r(I, null, x((l = e.options) == null ? void 0 : l.data, (a) => {
548
+ var n, u, f;
549
+ return d(), c(O, {
550
+ key: a[((n = e.options) == null ? void 0 : n.valueKey) || "code"],
548
551
  label: a[((u = e.options) == null ? void 0 : u.labelkey) || "name"],
549
552
  value: a[((f = e.options) == null ? void 0 : f.valueKey) || "code"]
550
553
  }, null, 8, ["label", "value"]);
@@ -553,29 +556,30 @@ function Ue(t, h, k, o, N, m) {
553
556
  }),
554
557
  _: 2
555
558
  }, 1032, ["onChange", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "clearable"]),
556
- V("div", {
559
+ w("div", {
557
560
  class: "item_tips_blow",
558
561
  style: g(e.tipsBlowStyle)
559
562
  }, p(e.tipsBlow), 5)
560
563
  ]),
561
564
  _: 2
562
- }, 1032, ["label", "rules", "disabled", "prop"])) : e.type === "date" ? (n(), c(y, {
565
+ }, 1032, ["label", "rules", "disabled", "prop"])) : e.type === "date" ? (d(), c(y, {
563
566
  key: 8,
564
567
  label: e.label,
565
568
  rules: e.isHide || o.noFormRule ? [] : e.rules,
566
- prop: e.field
569
+ prop: e.field,
570
+ class: "date_item"
567
571
  }, {
568
572
  label: s(() => [
569
- e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
573
+ e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
570
574
  key: 0,
571
575
  style: g(e.labelStyle)
572
576
  }, [
573
577
  i(p(e.label) + " ", 1),
574
- e.required ? (n(), r("span", ke, "*")) : _("", !0)
578
+ e.required ? (d(), r("span", ke, "*")) : M("", !0)
575
579
  ], 4))
576
580
  ]),
577
581
  default: s(() => [
578
- b(A, {
582
+ b(T, {
579
583
  format: "DD/MM/YYYY",
580
584
  "value-format": "DD/MM/YYYY",
581
585
  "disabled-date": e.disabledDate,
@@ -587,26 +591,27 @@ function Ue(t, h, k, o, N, m) {
587
591
  readonly: e.readonly,
588
592
  type: e.type,
589
593
  placeholder: e.placeholder || e.label
590
- }, null, 8, ["disabled-date", "onChange", "prefix-icon", "modelValue", "onUpdate:modelValue", "disabled", "readonly", "type", "placeholder"])
594
+ }, null, 8, ["disabled-date", "onChange", "prefix-icon", "modelValue", "onUpdate:modelValue", "disabled", "readonly", "type", "placeholder"]),
595
+ e.showTo ? (d(), r("span", De, p(e.showTo), 1)) : M("", !0)
591
596
  ]),
592
597
  _: 2
593
- }, 1032, ["label", "rules", "prop"])) : e.type === "daterange" ? (n(), c(y, {
598
+ }, 1032, ["label", "rules", "prop"])) : e.type === "daterange" ? (d(), c(y, {
594
599
  key: 9,
595
600
  label: e.label,
596
601
  rules: e.isHide || o.noFormRule ? [] : e.rules,
597
602
  prop: e.field
598
603
  }, {
599
604
  label: s(() => [
600
- e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
605
+ e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
601
606
  key: 0,
602
607
  style: g(e.labelStyle)
603
608
  }, [
604
609
  i(p(e.label) + " ", 1),
605
- e.required ? (n(), r("span", De, "*")) : _("", !0)
610
+ e.required ? (d(), r("span", Ie, "*")) : M("", !0)
606
611
  ], 4))
607
612
  ]),
608
613
  default: s(() => [
609
- b(A, {
614
+ b(T, {
610
615
  format: "DD/MM/YYYY",
611
616
  "value-format": "DD/MM/YYYY",
612
617
  "disabled-date": e.disabledDate,
@@ -622,7 +627,7 @@ function Ue(t, h, k, o, N, m) {
622
627
  }, null, 8, ["disabled-date", "onChange", "modelValue", "onUpdate:modelValue", "prefix-icon", "start-placeholder", "end-placeholder"])
623
628
  ]),
624
629
  _: 2
625
- }, 1032, ["label", "rules", "prop"])) : e.type === "slotItem" ? (n(), c(y, {
630
+ }, 1032, ["label", "rules", "prop"])) : e.type === "slotItem" ? (d(), c(y, {
626
631
  key: 10,
627
632
  label: e.label,
628
633
  rules: e.isHide || o.noFormRule ? [] : e.rules,
@@ -630,19 +635,19 @@ function Ue(t, h, k, o, N, m) {
630
635
  class: "rule_err"
631
636
  }, {
632
637
  label: s(() => [
633
- e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
638
+ e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
634
639
  key: 0,
635
640
  style: g(e.labelStyle)
636
641
  }, [
637
642
  i(p(e.label) + " ", 1),
638
- e.required ? (n(), r("span", Ie, "*")) : _("", !0)
643
+ e.required ? (d(), r("span", xe, "*")) : M("", !0)
639
644
  ], 4))
640
645
  ]),
641
646
  default: s(() => [
642
647
  C(t.$slots, e.slotItemName, {}, void 0, !0)
643
648
  ]),
644
649
  _: 2
645
- }, 1032, ["label", "rules", "prop"])) : e.type === "phone" ? (n(), c(y, {
650
+ }, 1032, ["label", "rules", "prop"])) : e.type === "phone" ? (d(), c(y, {
646
651
  key: 11,
647
652
  label: e.label,
648
653
  rules: e.isHide || o.noFormRule ? [] : e.rules.phoneNumber,
@@ -650,12 +655,12 @@ function Ue(t, h, k, o, N, m) {
650
655
  class: "phone_item"
651
656
  }, {
652
657
  label: s(() => [
653
- e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
658
+ e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
654
659
  key: 0,
655
660
  style: g(e.labelStyle)
656
661
  }, [
657
662
  i(p(e.label) + " ", 1),
658
- e.required ? (n(), r("span", xe, "*")) : _("", !0)
663
+ e.required ? (d(), r("span", we, "*")) : M("", !0)
659
664
  ], 4))
660
665
  ]),
661
666
  default: s(() => [
@@ -679,14 +684,14 @@ function Ue(t, h, k, o, N, m) {
679
684
  modelValue: o.states.model[e.field.areaCode],
680
685
  "onUpdate:modelValue": (a) => o.states.model[e.field.areaCode] = a,
681
686
  placeholder: ((l = e.options) == null ? void 0 : l.placeholder) || "请选择",
682
- style: { width: "115px" }
687
+ style: { width: "75px" }
683
688
  }, {
684
689
  default: s(() => {
685
690
  var a;
686
691
  return [
687
- (n(!0), r(I, null, x((a = e.options) == null ? void 0 : a.data, (d, u) => (n(), c(O, {
688
- label: d.name,
689
- value: d.code,
692
+ (d(!0), r(I, null, x((a = e.options) == null ? void 0 : a.data, (n, u) => (d(), c(O, {
693
+ label: n.name,
694
+ value: n.code,
690
695
  key: u
691
696
  }, null, 8, ["label", "value"]))), 128))
692
697
  ];
@@ -699,7 +704,7 @@ function Ue(t, h, k, o, N, m) {
699
704
  }, 1032, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "clearable"])
700
705
  ]),
701
706
  _: 2
702
- }, 1032, ["label", "rules", "prop"])) : e.type === "line" ? (n(), c(y, {
707
+ }, 1032, ["label", "rules", "prop"])) : e.type === "line" ? (d(), c(y, {
703
708
  key: 12,
704
709
  label: e.label
705
710
  }, {
@@ -707,19 +712,19 @@ function Ue(t, h, k, o, N, m) {
707
712
  Ve
708
713
  ]),
709
714
  _: 2
710
- }, 1032, ["label"])) : (n(), c(y, {
715
+ }, 1032, ["label"])) : (d(), c(y, {
711
716
  key: 13,
712
717
  rules: e.isHide || o.noFormRule ? [] : e.rules,
713
718
  prop: e.field,
714
- class: T(e.prepend ? "input-item" : "")
719
+ class: A(e.prepend ? "input-item" : "")
715
720
  }, {
716
721
  label: s(() => [
717
- e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
722
+ e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (d(), r("div", {
718
723
  key: 0,
719
724
  style: g(e.labelStyle)
720
725
  }, [
721
726
  i(p(e.label) + " ", 1),
722
- e.required ? (n(), r("span", we, "*")) : _("", !0)
727
+ e.required ? (d(), r("span", Ue, "*")) : M("", !0)
723
728
  ], 4))
724
729
  ]),
725
730
  default: s(() => [
@@ -773,8 +778,8 @@ function Ue(t, h, k, o, N, m) {
773
778
  model: k.model,
774
779
  onBtnClick: o.onSubmit
775
780
  }, () => [
776
- (n(!0), r(I, null, x(o.formOptions.btnConfig, (e, j) => (n(), r("div", { key: j }, [
777
- e.isShow ? (n(), c(B, {
781
+ (d(!0), r(I, null, x(o.formOptions.btnConfig, (e, j) => (d(), r("div", { key: j }, [
782
+ e.isShow ? (d(), c(m, {
778
783
  key: 0,
779
784
  btnCode: e.btnCode,
780
785
  plain: e.plain,
@@ -798,14 +803,14 @@ function Ue(t, h, k, o, N, m) {
798
803
  fontSize: e.fontSize,
799
804
  fontWeight: e.fontWeight,
800
805
  style: g(e.style),
801
- class: T(e.class),
806
+ class: A(e.class),
802
807
  onHandleClick: (l) => o.handleClick(l, e.isRule, e.emitName)
803
808
  }, {
804
809
  default: s(() => [
805
810
  i(p(e.name), 1)
806
811
  ]),
807
812
  _: 2
808
- }, 1032, ["btnCode", "plain", "primary", "info", "text", "debounced", "link", "loading", "loadingColor", "width", "height", "circle", "color", "bgColor", "borderColor", "borderStyle", "borderWidth", "icon", "size", "fontSize", "fontWeight", "style", "class", "onHandleClick"])) : _("", !0)
813
+ }, 1032, ["btnCode", "plain", "primary", "info", "text", "debounced", "link", "loading", "loadingColor", "width", "height", "circle", "color", "bgColor", "borderColor", "borderStyle", "borderWidth", "icon", "size", "fontSize", "fontWeight", "style", "class", "onHandleClick"])) : M("", !0)
809
814
  ]))), 128))
810
815
  ], !0)
811
816
  ]),
@@ -815,11 +820,11 @@ function Ue(t, h, k, o, N, m) {
815
820
  _: 3
816
821
  }, 16, ["model", "label-position"]);
817
822
  }
818
- const R = /* @__PURE__ */ ue(re, [["render", Ue], ["__scopeId", "data-v-03397e4e"]]);
819
- function Y(t, h = {}) {
820
- Y.installed || (Y.installed = !0, t.component("common-el-form", R));
823
+ const R = /* @__PURE__ */ ue(re, [["render", je], ["__scopeId", "data-v-614d29dc"]]);
824
+ function K(t, h = {}) {
825
+ K.installed || (K.installed = !0, t.component("common-el-form", R));
821
826
  }
822
- R.install = Y;
827
+ R.install = K;
823
828
  export {
824
829
  R as default
825
830
  };
@@ -1 +1 @@
1
- (function(e,k){typeof exports=="object"&&typeof module<"u"?module.exports=k(require("vue")):typeof define=="function"&&define.amd?define(["vue"],k):(e=typeof globalThis<"u"?globalThis:e||self,e.Form=k(e.Vue))})(this,function(e){"use strict";const k="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==",E={props:{fieldList:{type:Array,required:!0},model:Object,options:Object},setup(t,{emit:c}){const y=e.ref(!0),a=e.reactive({model:{}}),i=e.ref(null),I=e.shallowRef({render(){return e.h("img",{src:k})}}),s=e.computed(()=>Object.assign([],t.options)),h=()=>{a.model=t.model},b=(n,d,r)=>{i.value&&(d?(y.value=!1,e.nextTick(()=>{i.value.validate(p=>{if(p)c(r||"submit",a.model,n);else return!1})})):r==="reset"?i.value.resetFields():c(r||"submit",a.model,n))},f=(n,d)=>{c("selectChange",n,d)},C=(n,d)=>{c("radioChange",n,d)},N=(n,d)=>{c("checkChange",n,d)},x=(n,d)=>{const r=a.model[d].length;r!==1&&(r>1&&a.model[d].shift(),c("checkChange",n,d))},M=(n,d,r)=>{b(n,d,r)},B=(n,d)=>{n&&(d==null?void 0:d.key)==="Enter"&&b(void 0,!0,"submit")},D=(n,d)=>{c("dateChange",n,d)},m=(n,d)=>{console.log(i.value),c("inputBlur",n,d)},w=(n,d)=>{c("inputFocus",n,d)},S=(n,d)=>{c("inputChange",n,d)},l=(n,d)=>{c("inputInput",n,d)},g=n=>{i.value.resetFields(n)},o=n=>{i.value.clearValidate(n)};return e.onMounted(()=>{h(),i.value.resetFields()}),e.watch(()=>t.fieldList,(n,d)=>{n!==d&&h()}),{...e.toRefs(a),formRef:i,states:a,formOptions:s,onSubmit:b,selectChange:f,radioChange:C,checkChange:N,handleCheckedChange:x,prefixIcon:I,handleClick:M,handleKeyUp:B,resetFieldsTest:g,clearValidateTest:o,dateChange:D,inputBlur:m,inputFocus:w,inputChange:S,inputInput:l,noFormRule:y}}},$="",z=(t,c)=>{const y=t.__vccOpts||t;for(const[a,i]of c)y[a]=i;return y},U=t=>(e.pushScopeId("data-v-03397e4e"),t=t(),e.popScopeId(),t),j={class:"header-title"},F={class:"title-content"},T={key:0,class:"custom-required"},u={key:0,class:"custom-required"},L=["src"],O={key:0,class:"custom-required"},A={class:"lable"},K={class:"lable_note"},Y={key:0,class:"custom-required"},q={key:0,class:"custom-required"},R={key:0,class:"custom-required"},H={key:0,class:"custom-required"},W={key:0,class:"custom-required"},Q={key:0,class:"custom-required"},P={key:0,class:"custom-required"},Z={key:0,class:"custom-required"},G=U(()=>e.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"20px 0"}},null,-1)),J={key:0,class:"custom-required"};function X(t,c,y,a,i,I){const s=e.resolveComponent("el-form-item"),h=e.resolveComponent("el-input"),b=e.resolveComponent("el-radio"),f=e.resolveComponent("el-radio-group"),C=e.resolveComponent("el-checkbox"),N=e.resolveComponent("el-checkbox-group"),x=e.resolveComponent("el-option"),M=e.resolveComponent("el-select"),B=e.resolveComponent("el-date-picker"),D=e.resolveComponent("el-col"),m=e.resolveComponent("el-row"),w=e.resolveComponent("sinosoft-common-button"),S=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(S,e.mergeProps({"hide-required-asterisk":"",onSubmit:c[0]||(c[0]=e.withModifiers(()=>{},["prevent"])),model:y.model},a.formOptions,{"label-position":a.formOptions.labelPosition,ref:"formRef"}),{default:e.withCtx(()=>[e.createVNode(m,{gutter:20},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.fieldList,(l,g)=>e.withDirectives((e.openBlock(),e.createBlock(D,{xs:l.xs?l.xs:24,sm:l.sm?l.sm:24,md:l.md?l.md:8,lg:l.lg?l.lg:8,xl:l.xl?l.xl:8,key:g},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(l.style)},[l.type==="title"?(e.openBlock(),e.createBlock(s,{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",j,[e.createElementVNode("span",F,e.toDisplayString(l.title),1)])]),_:2},1024)):l.type==="name"?(e.openBlock(),e.createBlock(s,{key:1,label:l.label,disabled:l.disabled||a.formOptions.isDisabled,class:"container_name"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",T,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(s,{rules:l.isHide||a.noFormRule?[]:l.rules.nameEnFamily,prop:l.field.nameEnFamily,class:"item-name"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:o=>a.inputBlur(o,l.field.nameEnFamily),onFocus:o=>a.inputFocus(o,l.field.nameEnFamily),onChange:o=>a.inputChange(o,l.field.nameEnFamily),onInput:o=>a.inputInput(o,l.field.nameEnFamily),maxlength:l.maxlengthNameEnFamily,modelValue:a.states.model[l.field.nameEnFamily],"onUpdate:modelValue":o=>a.states.model[l.field.nameEnFamily]=o,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEnFamily,disabled:l.disabled||a.formOptions.isDisabled,onKeyup:e.withKeys(o=>a.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.isHide||a.noFormRule?[]:l.rules.nameEn,prop:l.field.nameEn,class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:o=>a.inputBlur(o,l.field.nameEn),onFocus:o=>a.inputFocus(o,l.field.nameEn),onChange:o=>a.inputChange(o,l.field.nameEn),onInput:o=>a.inputInput(o,l.field.nameEn),maxlength:l.maxlengthNameEn,modelValue:a.states.model[l.field.nameEn],"onUpdate:modelValue":o=>a.states.model[l.field.nameEn]=o,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEn,disabled:l.disabled||a.formOptions.isDisabled,onKeyup:e.withKeys(o=>a.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.isHide||a.noFormRule?[]:l.rules.nameChFamily,prop:l.field.nameChFamily,class:"item-name"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:o=>a.inputBlur(o,l.field.nameChFamily),onFocus:o=>a.inputFocus(o,l.field.nameChFamily),onChange:o=>a.inputChange(o,l.field.nameChFamily),onInput:o=>a.inputInput(o,l.field.nameChFamily),maxlength:l.maxlengthNameChFamily,modelValue:a.states.model[l.field.nameChFamily],"onUpdate:modelValue":o=>a.states.model[l.field.nameChFamily]=o,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameChFamily,disabled:l.disabled||a.formOptions.isDisabled,onKeyup:e.withKeys(o=>a.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.isHide||a.noFormRule?[]:l.rules.nameCh,prop:l.field.nameCh,class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:o=>a.inputBlur(o,l.field.nameCh),onFocus:o=>a.inputFocus(o,l.field.nameCh),onChange:o=>a.inputChange(o,l.field.nameCh),onInput:o=>a.inputInput(o,l.field.nameCh),maxlength:l.maxlengthNameCh,modelValue:a.states.model[l.field.nameCh],"onUpdate:modelValue":o=>a.states.model[l.field.nameCh]=o,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameCh,disabled:l.disabled||a.formOptions.isDisabled,onKeyup:e.withKeys(o=>a.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label","disabled"])):l.type==="gender"?(e.openBlock(),e.createBlock(s,{key:2,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",u,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(f,{modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,disabled:l.disabled||a.formOptions.isDisabled,onChange:o=>a.radioChange(o,l.field)},{default:e.withCtx(()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((o=l.options)==null?void 0:o.data,n=>{var d,r;return e.openBlock(),e.createBlock(b,{label:n[((d=l.options)==null?void 0:d.valueKey)||"code"],size:"large",key:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>[e.createElementVNode("img",{src:n.code==="M"?"http://192.168.5.200:9000/test/sex_img_M.png":"http://192.168.5.200:9000/test/sex_img_F.png",style:{width:"44px",height:"44px","margin-bottom":"-15px","margin-left":"4px"},alt:""},null,8,L)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])):l.type==="radio"?(e.openBlock(),e.createBlock(s,{key:3,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",O,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(f,{modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,disabled:l.disabled||a.formOptions.isDisabled,onChange:o=>a.radioChange(o,l.field)},{default:e.withCtx(()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((o=l.options)==null?void 0:o.data,n=>{var d,r;return e.openBlock(),e.createBlock(b,{size:"large",label:n[((d=l.options)==null?void 0:d.valueKey)||"code"],key:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var p;return[e.createTextVNode(e.toDisplayString(n[((p=l.options)==null?void 0:p.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])):l.type==="radioNote"?(e.openBlock(),e.createBlock(s,{key:4,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",A,e.toDisplayString(l.labelBefore),1),e.createElementVNode("span",K,e.toDisplayString(l.labelNode),1),l.required?(e.openBlock(),e.createElementBlock("span",Y,"*")):e.createCommentVNode("",!0)]),e.createVNode(f,{modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,disabled:l.disabled||a.formOptions.isDisabled,onChange:o=>a.radioChange(o,l.field)},{default:e.withCtx(()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((o=l.options)==null?void 0:o.data,n=>{var d,r;return e.openBlock(),e.createBlock(b,{size:"large",label:n[((d=l.options)==null?void 0:d.valueKey)||"code"],key:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var p;return[e.createTextVNode(e.toDisplayString(n[((p=l.options)==null?void 0:p.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])):l.type==="checkbox"?(e.openBlock(),e.createBlock(s,{key:5,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",q,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(N,{modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,onChange:o=>a.checkChange(o,l.field),disabled:l.disabled||a.formOptions.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((o=l.options)==null?void 0:o.data,n=>{var d,r;return e.openBlock(),e.createBlock(C,{key:n[((d=l.options)==null?void 0:d.valueKey)||"code"],label:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var p;return[e.createTextVNode(e.toDisplayString(n[((p=l.options)==null?void 0:p.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])):l.type==="checkboxRadio"?(e.openBlock(),e.createBlock(s,{key:6,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",R,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(N,{modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,onChange:o=>a.handleCheckedChange(o,l.field),disabled:l.disabled||a.formOptions.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((o=l.options)==null?void 0:o.data,n=>{var d,r;return e.openBlock(),e.createBlock(C,{key:n[((d=l.options)==null?void 0:d.valueKey)||"code"],label:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var p;return[e.createTextVNode(e.toDisplayString(n[((p=l.options)==null?void 0:p.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])):l.type==="select"?(e.openBlock(),e.createBlock(s,{key:7,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,disabled:l.disabled||a.formOptions.isDisabled,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",H,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(M,{onChange:o=>a.selectChange(o,l.field),modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,disabled:l.disabled||a.formOptions.isDisabled,placeholder:l.placeholder,clearable:l.clearable},{default:e.withCtx(()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((o=l.options)==null?void 0:o.data,n=>{var d,r,p;return e.openBlock(),e.createBlock(x,{key:n[((d=l.options)==null?void 0:d.valueKey)||"code"],label:n[((r=l.options)==null?void 0:r.labelkey)||"name"],value:n[((p=l.options)==null?void 0:p.valueKey)||"code"]},null,8,["label","value"])}),128))]}),_:2},1032,["onChange","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"]),e.createElementVNode("div",{class:"item_tips_blow",style:e.normalizeStyle(l.tipsBlowStyle)},e.toDisplayString(l.tipsBlow),5)]),_:2},1032,["label","rules","disabled","prop"])):l.type==="date"?(e.openBlock(),e.createBlock(s,{key:8,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",W,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(B,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:o=>a.dateChange(o,l.field),"prefix-icon":a.prefixIcon,modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,disabled:l.disabled||a.formOptions.isDisabled,readonly:l.readonly,type:l.type,placeholder:l.placeholder||l.label},null,8,["disabled-date","onChange","prefix-icon","modelValue","onUpdate:modelValue","disabled","readonly","type","placeholder"])]),_:2},1032,["label","rules","prop"])):l.type==="daterange"?(e.openBlock(),e.createBlock(s,{key:9,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",Q,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(B,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:o=>a.dateChange(o,l.field),modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,"prefix-icon":a.prefixIcon,type:"daterange","range-separator":"To","start-placeholder":l.startPlaceholder,"end-placeholder":l.endPlaceholder,size:"large"},null,8,["disabled-date","onChange","modelValue","onUpdate:modelValue","prefix-icon","start-placeholder","end-placeholder"])]),_:2},1032,["label","rules","prop"])):l.type==="slotItem"?(e.openBlock(),e.createBlock(s,{key:10,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field,class:"rule_err"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",P,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.renderSlot(t.$slots,l.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])):l.type==="phone"?(e.openBlock(),e.createBlock(s,{key:11,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules.phoneNumber,prop:l.field.phoneNumber,class:"phone_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",Z,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(h,{onBlur:o=>a.inputBlur(o,l.field),onFocus:o=>a.inputFocus(o,l.field),onChange:o=>a.inputChange(o,l.field),onInput:o=>a.inputInput(o,l.field),maxlength:l.maxlength,modelValue:a.states.model[l.field.phoneNumber],"onUpdate:modelValue":o=>a.states.model[l.field.phoneNumber]=o,disabled:l.disabled||a.formOptions.isDisabled,placeholder:l.placeholder||"请选择",clearable:l.clearable},{prepend:e.withCtx(()=>{var o;return[e.createVNode(M,{disabled:l.disabled||a.formOptions.isDisabled,modelValue:a.states.model[l.field.areaCode],"onUpdate:modelValue":n=>a.states.model[l.field.areaCode]=n,placeholder:((o=l.options)==null?void 0:o.placeholder)||"请选择",style:{width:"115px"}},{default:e.withCtx(()=>{var n;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((n=l.options)==null?void 0:n.data,(d,r)=>(e.openBlock(),e.createBlock(x,{label:d.name,value:d.code,key:r},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder"])]}),_:2},1032,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"])]),_:2},1032,["label","rules","prop"])):l.type==="line"?(e.openBlock(),e.createBlock(s,{key:12,label:l.label},{default:e.withCtx(()=>[G]),_:2},1032,["label"])):(e.openBlock(),e.createBlock(s,{key:13,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass(l.prepend?"input-item":"")},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",J,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(h,{onBlur:o=>a.inputBlur(o,l.field),onFocus:o=>a.inputFocus(o,l.field),onChange:o=>a.inputChange(o,l.field),onInput:o=>a.inputInput(o,l.field),maxlength:l.maxlength,modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,"show-word-limit":l.showWordLimit,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholder||l.label,disabled:l.disabled||a.formOptions.isDisabled,showPassword:l.showPassword,clearable:l.clearable,onKeyup:e.withKeys(o=>a.handleKeyUp(l.enterable),["enter"])},e.createSlots({_:2},[l.prepend?{name:"prepend",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.prepend),1)]),key:"0"}:void 0,l.append?{name:"append",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.append),1)]),key:"1"}:void 0]),1032,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","show-word-limit","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop","class"]))],4)]),_:2},1032,["xs","sm","md","lg","xl"])),[[e.vShow,!l.isHide]])),128))]),_:3}),e.createVNode(s,{class:"btnsItem"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"buttons",{model:y.model,onBtnClick:a.onSubmit},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.formOptions.btnConfig,(l,g)=>(e.openBlock(),e.createElementBlock("div",{key:g},[l.isShow?(e.openBlock(),e.createBlock(w,{key:0,btnCode:l.btnCode,plain:l.plain,primary:l.primary,info:l.info,text:l.text,debounced:l.debounced?l.debounced:!1,link:l.link,loading:l.loading,loadingColor:l.loadingColor,width:l.width,height:l.height,circle:l.circle,color:l.color,bgColor:l.bgColor,borderColor:l.borderColor,borderStyle:l.borderStyle,borderWidth:l.borderWidth,icon:l.icon,size:l.size,fontSize:l.fontSize,fontWeight:l.fontWeight,style:e.normalizeStyle(l.style),class:e.normalizeClass(l.class),onHandleClick:o=>a.handleClick(o,l.isRule,l.emitName)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.name),1)]),_:2},1032,["btnCode","plain","primary","info","text","debounced","link","loading","loadingColor","width","height","circle","color","bgColor","borderColor","borderStyle","borderWidth","icon","size","fontSize","fontWeight","style","class","onHandleClick"])):e.createCommentVNode("",!0)]))),128))],!0)]),_:3})]),_:3},16,["model","label-position"])}const V=z(E,[["render",X],["__scopeId","data-v-03397e4e"]]);function _(t,c={}){_.installed||(_.installed=!0,t.component("common-el-form",V))}return V.install=_,V});
1
+ (function(e,k){typeof exports=="object"&&typeof module<"u"?module.exports=k(require("vue")):typeof define=="function"&&define.amd?define(["vue"],k):(e=typeof globalThis<"u"?globalThis:e||self,e.Form=k(e.Vue))})(this,function(e){"use strict";const k="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==",E={props:{fieldList:{type:Array,required:!0},model:Object,options:Object},setup(t,{emit:c}){const y=e.ref(!0),a=e.reactive({model:{}}),i=e.ref(null),I=e.shallowRef({render(){return e.h("img",{src:k})}}),s=e.computed(()=>Object.assign([],t.options)),h=()=>{a.model=t.model},b=(n,d,r)=>{i.value&&(d?(y.value=!1,e.nextTick(()=>{i.value.validate(p=>{if(p)c(r||"submit",a.model,n);else return!1})})):r==="reset"?i.value.resetFields():c(r||"submit",a.model,n))},f=(n,d)=>{c("selectChange",n,d)},C=(n,d)=>{c("radioChange",n,d)},N=(n,d)=>{c("checkChange",n,d)},x=(n,d)=>{const r=a.model[d].length;r!==1&&(r>1&&a.model[d].shift(),c("checkChange",n,d))},M=(n,d,r)=>{b(n,d,r)},B=(n,d)=>{n&&(d==null?void 0:d.key)==="Enter"&&b(void 0,!0,"submit")},m=(n,d)=>{c("dateChange",n,d)},w=(n,d)=>{console.log(i.value),c("inputBlur",n,d)},D=(n,d)=>{c("inputFocus",n,d)},S=(n,d)=>{c("inputChange",n,d)},l=(n,d)=>{c("inputInput",n,d)},g=n=>{i.value.resetFields(n)},o=n=>{i.value.clearValidate(n)};return e.onMounted(()=>{h(),i.value.resetFields()}),e.watch(()=>t.fieldList,(n,d)=>{n!==d&&h()}),{...e.toRefs(a),formRef:i,states:a,formOptions:s,onSubmit:b,selectChange:f,radioChange:C,checkChange:N,handleCheckedChange:x,prefixIcon:I,handleClick:M,handleKeyUp:B,resetFieldsTest:g,clearValidateTest:o,dateChange:m,inputBlur:w,inputFocus:D,inputChange:S,inputInput:l,noFormRule:y}}},v="",z=(t,c)=>{const y=t.__vccOpts||t;for(const[a,i]of c)y[a]=i;return y},U=t=>(e.pushScopeId("data-v-614d29dc"),t=t(),e.popScopeId(),t),j={class:"header-title"},F={class:"title-content"},T={key:0,class:"custom-required"},L={key:0,class:"custom-required"},u=["src"],O={key:0,class:"custom-required"},A={class:"lable"},K={class:"lable_note"},Y={key:0,class:"custom-required"},q={key:0,class:"custom-required"},R={key:0,class:"custom-required"},H={key:0,class:"custom-required"},W={key:0,class:"custom-required"},Q={key:0,class:"date_to"},P={key:0,class:"custom-required"},Z={key:0,class:"custom-required"},G={key:0,class:"custom-required"},J=U(()=>e.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"39px 0"}},null,-1)),X={key:0,class:"custom-required"};function $(t,c,y,a,i,I){const s=e.resolveComponent("el-form-item"),h=e.resolveComponent("el-input"),b=e.resolveComponent("el-radio"),f=e.resolveComponent("el-radio-group"),C=e.resolveComponent("el-checkbox"),N=e.resolveComponent("el-checkbox-group"),x=e.resolveComponent("el-option"),M=e.resolveComponent("el-select"),B=e.resolveComponent("el-date-picker"),m=e.resolveComponent("el-col"),w=e.resolveComponent("el-row"),D=e.resolveComponent("sinosoft-common-button"),S=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(S,e.mergeProps({"hide-required-asterisk":"",onSubmit:c[0]||(c[0]=e.withModifiers(()=>{},["prevent"])),model:y.model},a.formOptions,{"label-position":a.formOptions.labelPosition,ref:"formRef"}),{default:e.withCtx(()=>[e.createVNode(w,{gutter:20},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.fieldList,(l,g)=>e.withDirectives((e.openBlock(),e.createBlock(m,{xs:l.xs?l.xs:24,sm:l.sm?l.sm:24,md:l.md?l.md:8,lg:l.lg?l.lg:8,xl:l.xl?l.xl:8,key:g},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(l.style)},[l.type==="title"?(e.openBlock(),e.createBlock(s,{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",j,[e.createElementVNode("span",F,e.toDisplayString(l.title),1)])]),_:2},1024)):l.type==="name"?(e.openBlock(),e.createBlock(s,{key:1,label:l.label,disabled:l.disabled||a.formOptions.isDisabled,class:"container_name"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",T,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(s,{rules:l.isHide||a.noFormRule?[]:l.rules.nameEnFamily,prop:l.field.nameEnFamily,class:"item-name"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:o=>a.inputBlur(o,l.field.nameEnFamily),onFocus:o=>a.inputFocus(o,l.field.nameEnFamily),onChange:o=>a.inputChange(o,l.field.nameEnFamily),onInput:o=>a.inputInput(o,l.field.nameEnFamily),maxlength:l.maxlengthNameEnFamily,modelValue:a.states.model[l.field.nameEnFamily],"onUpdate:modelValue":o=>a.states.model[l.field.nameEnFamily]=o,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEnFamily,disabled:l.disabled||a.formOptions.isDisabled,onKeyup:e.withKeys(o=>a.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.isHide||a.noFormRule?[]:l.rules.nameEn,prop:l.field.nameEn,class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:o=>a.inputBlur(o,l.field.nameEn),onFocus:o=>a.inputFocus(o,l.field.nameEn),onChange:o=>a.inputChange(o,l.field.nameEn),onInput:o=>a.inputInput(o,l.field.nameEn),maxlength:l.maxlengthNameEn,modelValue:a.states.model[l.field.nameEn],"onUpdate:modelValue":o=>a.states.model[l.field.nameEn]=o,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEn,disabled:l.disabled||a.formOptions.isDisabled,onKeyup:e.withKeys(o=>a.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.isHide||a.noFormRule?[]:l.rules.nameChFamily,prop:l.field.nameChFamily,class:"item-name item-name-bottom"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:o=>a.inputBlur(o,l.field.nameChFamily),onFocus:o=>a.inputFocus(o,l.field.nameChFamily),onChange:o=>a.inputChange(o,l.field.nameChFamily),onInput:o=>a.inputInput(o,l.field.nameChFamily),maxlength:l.maxlengthNameChFamily,modelValue:a.states.model[l.field.nameChFamily],"onUpdate:modelValue":o=>a.states.model[l.field.nameChFamily]=o,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameChFamily,disabled:l.disabled||a.formOptions.isDisabled,onKeyup:e.withKeys(o=>a.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.isHide||a.noFormRule?[]:l.rules.nameCh,prop:l.field.nameCh,class:"item-name-right item-name-bottom"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:o=>a.inputBlur(o,l.field.nameCh),onFocus:o=>a.inputFocus(o,l.field.nameCh),onChange:o=>a.inputChange(o,l.field.nameCh),onInput:o=>a.inputInput(o,l.field.nameCh),maxlength:l.maxlengthNameCh,modelValue:a.states.model[l.field.nameCh],"onUpdate:modelValue":o=>a.states.model[l.field.nameCh]=o,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameCh,disabled:l.disabled||a.formOptions.isDisabled,onKeyup:e.withKeys(o=>a.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label","disabled"])):l.type==="gender"?(e.openBlock(),e.createBlock(s,{key:2,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",L,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(f,{modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,disabled:l.disabled||a.formOptions.isDisabled,onChange:o=>a.radioChange(o,l.field)},{default:e.withCtx(()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((o=l.options)==null?void 0:o.data,n=>{var d,r;return e.openBlock(),e.createBlock(b,{label:n[((d=l.options)==null?void 0:d.valueKey)||"code"],size:"large",key:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>[e.createElementVNode("img",{src:n.code==="M"?"http://192.168.5.200:9000/test/sex_img_M.png":"http://192.168.5.200:9000/test/sex_img_F.png",style:{width:"44px",height:"44px","margin-bottom":"-15px","margin-left":"4px"},alt:""},null,8,u)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])):l.type==="radio"?(e.openBlock(),e.createBlock(s,{key:3,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",O,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(f,{modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,disabled:l.disabled||a.formOptions.isDisabled,onChange:o=>a.radioChange(o,l.field)},{default:e.withCtx(()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((o=l.options)==null?void 0:o.data,n=>{var d,r;return e.openBlock(),e.createBlock(b,{size:"large",label:n[((d=l.options)==null?void 0:d.valueKey)||"code"],key:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var p;return[e.createTextVNode(e.toDisplayString(n[((p=l.options)==null?void 0:p.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])):l.type==="radioNote"?(e.openBlock(),e.createBlock(s,{key:4,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",A,e.toDisplayString(l.labelBefore),1),e.createElementVNode("span",K,e.toDisplayString(l.labelNode),1),l.required?(e.openBlock(),e.createElementBlock("span",Y,"*")):e.createCommentVNode("",!0)]),e.createVNode(f,{modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,disabled:l.disabled||a.formOptions.isDisabled,onChange:o=>a.radioChange(o,l.field)},{default:e.withCtx(()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((o=l.options)==null?void 0:o.data,n=>{var d,r;return e.openBlock(),e.createBlock(b,{size:"large",label:n[((d=l.options)==null?void 0:d.valueKey)||"code"],key:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var p;return[e.createTextVNode(e.toDisplayString(n[((p=l.options)==null?void 0:p.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])):l.type==="checkbox"?(e.openBlock(),e.createBlock(s,{key:5,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",q,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(N,{modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,onChange:o=>a.checkChange(o,l.field),disabled:l.disabled||a.formOptions.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((o=l.options)==null?void 0:o.data,n=>{var d,r;return e.openBlock(),e.createBlock(C,{key:n[((d=l.options)==null?void 0:d.valueKey)||"code"],label:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var p;return[e.createTextVNode(e.toDisplayString(n[((p=l.options)==null?void 0:p.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])):l.type==="checkboxRadio"?(e.openBlock(),e.createBlock(s,{key:6,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",R,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(N,{modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,onChange:o=>a.handleCheckedChange(o,l.field),disabled:l.disabled||a.formOptions.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((o=l.options)==null?void 0:o.data,n=>{var d,r;return e.openBlock(),e.createBlock(C,{key:n[((d=l.options)==null?void 0:d.valueKey)||"code"],label:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var p;return[e.createTextVNode(e.toDisplayString(n[((p=l.options)==null?void 0:p.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])):l.type==="select"?(e.openBlock(),e.createBlock(s,{key:7,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,disabled:l.disabled||a.formOptions.isDisabled,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",H,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(M,{onChange:o=>a.selectChange(o,l.field),modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,disabled:l.disabled||a.formOptions.isDisabled,placeholder:l.placeholder,clearable:l.clearable},{default:e.withCtx(()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((o=l.options)==null?void 0:o.data,n=>{var d,r,p;return e.openBlock(),e.createBlock(x,{key:n[((d=l.options)==null?void 0:d.valueKey)||"code"],label:n[((r=l.options)==null?void 0:r.labelkey)||"name"],value:n[((p=l.options)==null?void 0:p.valueKey)||"code"]},null,8,["label","value"])}),128))]}),_:2},1032,["onChange","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"]),e.createElementVNode("div",{class:"item_tips_blow",style:e.normalizeStyle(l.tipsBlowStyle)},e.toDisplayString(l.tipsBlow),5)]),_:2},1032,["label","rules","disabled","prop"])):l.type==="date"?(e.openBlock(),e.createBlock(s,{key:8,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field,class:"date_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",W,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(B,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:o=>a.dateChange(o,l.field),"prefix-icon":a.prefixIcon,modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,disabled:l.disabled||a.formOptions.isDisabled,readonly:l.readonly,type:l.type,placeholder:l.placeholder||l.label},null,8,["disabled-date","onChange","prefix-icon","modelValue","onUpdate:modelValue","disabled","readonly","type","placeholder"]),l.showTo?(e.openBlock(),e.createElementBlock("span",Q,e.toDisplayString(l.showTo),1)):e.createCommentVNode("",!0)]),_:2},1032,["label","rules","prop"])):l.type==="daterange"?(e.openBlock(),e.createBlock(s,{key:9,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",P,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(B,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:o=>a.dateChange(o,l.field),modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,"prefix-icon":a.prefixIcon,type:"daterange","range-separator":"To","start-placeholder":l.startPlaceholder,"end-placeholder":l.endPlaceholder,size:"large"},null,8,["disabled-date","onChange","modelValue","onUpdate:modelValue","prefix-icon","start-placeholder","end-placeholder"])]),_:2},1032,["label","rules","prop"])):l.type==="slotItem"?(e.openBlock(),e.createBlock(s,{key:10,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field,class:"rule_err"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",Z,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.renderSlot(t.$slots,l.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])):l.type==="phone"?(e.openBlock(),e.createBlock(s,{key:11,label:l.label,rules:l.isHide||a.noFormRule?[]:l.rules.phoneNumber,prop:l.field.phoneNumber,class:"phone_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",G,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(h,{onBlur:o=>a.inputBlur(o,l.field),onFocus:o=>a.inputFocus(o,l.field),onChange:o=>a.inputChange(o,l.field),onInput:o=>a.inputInput(o,l.field),maxlength:l.maxlength,modelValue:a.states.model[l.field.phoneNumber],"onUpdate:modelValue":o=>a.states.model[l.field.phoneNumber]=o,disabled:l.disabled||a.formOptions.isDisabled,placeholder:l.placeholder||"请选择",clearable:l.clearable},{prepend:e.withCtx(()=>{var o;return[e.createVNode(M,{disabled:l.disabled||a.formOptions.isDisabled,modelValue:a.states.model[l.field.areaCode],"onUpdate:modelValue":n=>a.states.model[l.field.areaCode]=n,placeholder:((o=l.options)==null?void 0:o.placeholder)||"请选择",style:{width:"75px"}},{default:e.withCtx(()=>{var n;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((n=l.options)==null?void 0:n.data,(d,r)=>(e.openBlock(),e.createBlock(x,{label:d.name,value:d.code,key:r},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder"])]}),_:2},1032,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"])]),_:2},1032,["label","rules","prop"])):l.type==="line"?(e.openBlock(),e.createBlock(s,{key:12,label:l.label},{default:e.withCtx(()=>[J]),_:2},1032,["label"])):(e.openBlock(),e.createBlock(s,{key:13,rules:l.isHide||a.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass(l.prepend?"input-item":"")},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(t.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",X,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(h,{onBlur:o=>a.inputBlur(o,l.field),onFocus:o=>a.inputFocus(o,l.field),onChange:o=>a.inputChange(o,l.field),onInput:o=>a.inputInput(o,l.field),maxlength:l.maxlength,modelValue:a.states.model[l.field],"onUpdate:modelValue":o=>a.states.model[l.field]=o,"show-word-limit":l.showWordLimit,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholder||l.label,disabled:l.disabled||a.formOptions.isDisabled,showPassword:l.showPassword,clearable:l.clearable,onKeyup:e.withKeys(o=>a.handleKeyUp(l.enterable),["enter"])},e.createSlots({_:2},[l.prepend?{name:"prepend",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.prepend),1)]),key:"0"}:void 0,l.append?{name:"append",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.append),1)]),key:"1"}:void 0]),1032,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","show-word-limit","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop","class"]))],4)]),_:2},1032,["xs","sm","md","lg","xl"])),[[e.vShow,!l.isHide]])),128))]),_:3}),e.createVNode(s,{class:"btnsItem"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"buttons",{model:y.model,onBtnClick:a.onSubmit},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.formOptions.btnConfig,(l,g)=>(e.openBlock(),e.createElementBlock("div",{key:g},[l.isShow?(e.openBlock(),e.createBlock(D,{key:0,btnCode:l.btnCode,plain:l.plain,primary:l.primary,info:l.info,text:l.text,debounced:l.debounced?l.debounced:!1,link:l.link,loading:l.loading,loadingColor:l.loadingColor,width:l.width,height:l.height,circle:l.circle,color:l.color,bgColor:l.bgColor,borderColor:l.borderColor,borderStyle:l.borderStyle,borderWidth:l.borderWidth,icon:l.icon,size:l.size,fontSize:l.fontSize,fontWeight:l.fontWeight,style:e.normalizeStyle(l.style),class:e.normalizeClass(l.class),onHandleClick:o=>a.handleClick(o,l.isRule,l.emitName)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.name),1)]),_:2},1032,["btnCode","plain","primary","info","text","debounced","link","loading","loadingColor","width","height","circle","color","bgColor","borderColor","borderStyle","borderWidth","icon","size","fontSize","fontWeight","style","class","onHandleClick"])):e.createCommentVNode("",!0)]))),128))],!0)]),_:3})]),_:3},16,["model","label-position"])}const _=z(E,[["render",$],["__scopeId","data-v-614d29dc"]]);function V(t,c={}){V.installed||(V.installed=!0,t.component("common-el-form",_))}return _.install=V,_});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinosoft-common-form",
3
- "version": "1.3.6",
3
+ "version": "1.3.8",
4
4
  "description": "",
5
5
  "main": "common-form.es.js",
6
6
  "scripts": {
package/style.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";[data-v-03397e4e] .el-date-editor{height:60px!important;width:100%!important}.form-item[data-v-03397e4e]{width:50%;display:inline-block;padding-right:0;box-sizing:border-box}[data-v-03397e4e] .el-input__inner{height:42px;color:#1d1d1d}[data-v-03397e4e] .el-card__body{padding:0}[data-v-03397e4e] .el-input__inner::placeholder{font-family:Roboto;font-size:14px;font-weight:400;line-height:22px;letter-spacing:0em;text-align:left;color:#6e6e73}[data-v-03397e4e] .el-form-item__label{font-size:16px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Medium;height:auto!important}.form-item-title[data-v-03397e4e]{width:100%}[data-v-03397e4e] .el-checkbox-group .el-checkbox{display:flex}[data-v-03397e4e] .el-radio-group{height:62px;line-height:62px}[data-v-03397e4e] .el-radio-group .el-radio{height:auto}.rule_err[data-v-03397e4e] .el-form-item__content,.radio_Note[data-v-03397e4e] .el-form-item__content{display:block}.radio_Note .lable[data-v-03397e4e]{font-size:16px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Medium}.radio_Note .lable_note[data-v-03397e4e]{font-size:16px;line-height:22px;color:#6e6e73;font-weight:400;font-family:Roboto Medium}.container_name[data-v-03397e4e] .el-form-item__content{align-items:start}[data-v-03397e4e] .el-form-item__error{position:relative}.item-name[data-v-03397e4e]{width:51%;padding-right:20px;padding-bottom:12px;box-sizing:border-box}.item-name-right[data-v-03397e4e]{width:49%;padding-bottom:12px;padding-right:0}.btnsItem[data-v-03397e4e]{width:100%;margin:0 auto;justify-content:right}.btnsItem[data-v-03397e4e] .el-form-item__content{justify-content:right}label[data-v-03397e4e]{display:block}.title-content[data-v-03397e4e]{font-size:22px;line-height:30px;color:#1d1d1d;font-weight:300;font-family:Roboto Medium}[data-v-03397e4e] .el-input__wrapper{height:60px;border-radius:8px;border:1px solid #c7c8ca;box-shadow:none!important}.phone_item[data-v-03397e4e] .el-input__wrapper{border-left:0px!important;border-top-left-radius:0!important;border-bottom-left-radius:0!important}.phone_item[data-v-03397e4e] .el-input-group__prepend{box-shadow:none!important;background-color:unset!important}.phone_item[data-v-03397e4e] .el-input-group__prepend .el-input__wrapper{height:60px;border-radius:8px;border:1px solid #c7c8ca!important;padding-left:16px;padding-right:16px;border-right:0px!important;box-shadow:none!important;border-radius:8px 0 0 8px/8px 0px 0px 8px!important}.phone_item[data-v-03397e4e] .el-input-group__prepend .el-input__wrapper .el-input__suffix{display:none;width:0!important}.phone_item[data-v-03397e4e] .el-input-group__prepend:hover{box-shadow:none!important;background-color:unset!important}.phone_item[data-v-03397e4e] .el-input-group__prepend:hover .el-input__wrapper:hover{border:none;border-right:0px!important;box-shadow:none!important;padding-left:16px;padding-right:16px}.phone_item[data-v-03397e4e] .el-input-group__prepend:hover .el-input__wrapper:hover .el-input__suffix{display:none;width:0!important}.input-item[data-v-03397e4e] .el-input-group__prepend{border:1px solid #c7c8ca!important;border-top-left-radius:8px;border-bottom-left-radius:8px;border-right:0px!important;box-shadow:none!important;background-color:unset!important;padding:0 16px;font-size:14px;line-height:22px;color:#0b0b0b;font-weight:400;font-family:Roboto Medium}.input-item[data-v-03397e4e] .el-input__wrapper{border-left:0px!important;border-right:0px!important;border-radius:0!important}.input-item[data-v-03397e4e] .el-input-group__append{border:1px solid #c7c8ca!important;border-top-right-radius:8px;border-bottom-right-radius:8px;border-left:0px!important;box-shadow:none!important;background-color:unset!important;padding:0 16px;font-size:14px;line-height:22px;color:#0b0b0b;font-weight:400;font-family:Roboto Medium}[data-v-03397e4e] .el-select{width:100%}.custom-required[data-v-03397e4e]{content:"*";color:#e2a650;margin-left:4px}.item_tips_blow[data-v-03397e4e]{font-size:14px;line-height:22px;color:#00000073;font-weight:400;font-family:Roboto Medium;width:100%;word-wrap:break-word;white-space:normal}
1
+ @charset "UTF-8";[data-v-614d29dc] .el-date-editor{height:60px!important;width:100%!important}[data-v-614d29dc] .el-form-item{margin-bottom:12px}[data-v-614d29dc] .el-input__inner{height:42px;color:#1d1d1d}[data-v-614d29dc] .el-card__body{padding:0}[data-v-614d29dc] .el-input__inner::placeholder{font-family:Roboto;font-size:14px;font-weight:400;line-height:22px;letter-spacing:0em;text-align:left;color:#6e6e73}[data-v-614d29dc] .el-form-item__label{font-size:16px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Regular;height:auto!important}.form-item-title[data-v-614d29dc]{width:100%}[data-v-614d29dc] .el-checkbox-group .el-checkbox{display:flex}[data-v-614d29dc] .el-radio-group{height:62px;line-height:62px}[data-v-614d29dc] .el-radio-group .el-radio{height:auto}.rule_err[data-v-614d29dc] .el-form-item__content,.radio_Note[data-v-614d29dc] .el-form-item__content{display:block}.radio_Note .lable[data-v-614d29dc]{font-size:16px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Regular}.radio_Note .lable_note[data-v-614d29dc]{font-size:16px;line-height:22px;color:#6e6e73;font-weight:400;font-family:Roboto Regular}.container_name[data-v-614d29dc] .el-form-item__content{align-items:start}[data-v-614d29dc] .el-form-item__error{position:relative}.item-name[data-v-614d29dc]{width:51%;padding-right:20px;padding-bottom:12px;box-sizing:border-box}.item-name-right[data-v-614d29dc]{width:49%;padding-bottom:12px;padding-right:0}.item-name-bottom[data-v-614d29dc]{padding-bottom:0}.btnsItem[data-v-614d29dc]{width:100%;margin:0 auto;justify-content:right}.btnsItem[data-v-614d29dc] .el-form-item__content{justify-content:right}label[data-v-614d29dc]{display:block}.title-content[data-v-614d29dc]{font-size:22px;line-height:30px;color:#1d1d1d;font-weight:300;font-family:Roboto light}[data-v-614d29dc] .el-input__wrapper{height:60px;border-radius:8px}.date_item[data-v-614d29dc] .el-form-item__content .date_to{font-size:14px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Regular;position:absolute;right:-17.5px}.phone_item[data-v-614d29dc] .el-input__wrapper{border-left:0px!important;border-top-left-radius:0!important;border-bottom-left-radius:0!important;border:1px solid #c7c8ca;box-shadow:none!important}.phone_item[data-v-614d29dc] .el-input-group__prepend{box-shadow:none!important;background-color:unset!important}.phone_item[data-v-614d29dc] .el-input-group__prepend .el-input__wrapper{height:60px;border-radius:8px;border:1px solid #c7c8ca!important;padding-left:16px;padding-right:16px;border-right:0px!important;box-shadow:none!important;border-radius:8px 0 0 8px/8px 0px 0px 8px!important}.phone_item[data-v-614d29dc] .el-input-group__prepend .el-input__wrapper .el-input__suffix{display:none;width:0!important}.phone_item[data-v-614d29dc] .el-input-group__prepend:hover{box-shadow:none!important;background-color:unset!important}.phone_item[data-v-614d29dc] .el-input-group__prepend:hover .el-input__wrapper:hover{border:none;border-right:0px!important;box-shadow:none!important;padding-left:16px;padding-right:16px}.phone_item[data-v-614d29dc] .el-input-group__prepend:hover .el-input__wrapper:hover .el-input__suffix{display:none;width:0!important}.input-item[data-v-614d29dc] .el-input-group__prepend{border:1px solid #c7c8ca!important;border-top-left-radius:8px;border-bottom-left-radius:8px;border-right:0px!important;box-shadow:none!important;background-color:unset!important;padding:0 16px;font-size:14px;line-height:22px;color:#0b0b0b;font-weight:400;font-family:Roboto Regular}.input-item[data-v-614d29dc] .el-input__wrapper{border-left:0px!important;border-right:0px!important;border-radius:0!important}.input-item[data-v-614d29dc] .el-input-group__append{border:1px solid #c7c8ca!important;border-top-right-radius:8px;border-bottom-right-radius:8px;border-left:0px!important;box-shadow:none!important;background-color:unset!important;padding:0 16px;font-size:14px;line-height:22px;color:#0b0b0b;font-weight:400;font-family:Roboto Regular}[data-v-614d29dc] .el-select{width:100%}.custom-required[data-v-614d29dc]{content:"*";color:#e2a650;margin-left:4px}.item_tips_blow[data-v-614d29dc]{font-size:14px;line-height:22px;color:#00000073;font-weight:400;font-family:Roboto Regular;width:100%;word-wrap:break-word;white-space:normal}