sinosoft-common-form 1.3.6 → 1.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/common-form.es.js CHANGED
@@ -1,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 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 M, renderSlot as C, withKeys as v, normalizeClass as A, createSlots as oe, vShow as ae, pushScopeId as ne, popScopeId as de } from "vue";
2
2
  const se = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==", re = {
3
3
  props: {
4
4
  fieldList: {
@@ -39,7 +39,7 @@ const se = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
39
39
  u !== 1 && (u > 1 && o.model[d].shift(), h("checkChange", a, d));
40
40
  }, L = (a, d, u) => {
41
41
  w(a, d, u);
42
- }, A = (a, d) => {
42
+ }, T = (a, d) => {
43
43
  a && (d == null ? void 0 : d.key) === "Enter" && w(void 0, !0, "submit");
44
44
  }, S = (a, d) => {
45
45
  h("dateChange", a, d);
@@ -75,7 +75,7 @@ const se = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
75
75
  handleCheckedChange: O,
76
76
  prefixIcon: m,
77
77
  handleClick: L,
78
- handleKeyUp: A,
78
+ handleKeyUp: T,
79
79
  resetFieldsTest: j,
80
80
  clearValidateTest: l,
81
81
  dateChange: S,
@@ -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) => (ne("data-v-63e07588"), t = t(), de(), t), ce = { class: "header-title" }, pe = { class: "title-content" }, ye = {
96
96
  key: 0,
97
97
  class: "custom-required"
98
98
  }, be = {
@@ -118,22 +118,25 @@ 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
+ }, Ve = {
129
+ key: 0,
130
+ class: "custom-required"
131
+ }, we = /* @__PURE__ */ te(() => /* @__PURE__ */ V("div", {
129
132
  class: "line",
130
133
  style: { "border-top": "1px solid #e8e8e8", width: "100%", height: "0px", margin: "20px 0" }
131
- }, null, -1)), we = {
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");
138
+ function je(t, h, k, o, N, m) {
139
+ const y = _("el-form-item"), D = _("el-input"), w = _("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"), B = _("sinosoft-common-button"), K = _("el-form");
137
140
  return n(), c(K, $({
138
141
  "hide-required-asterisk": "",
139
142
  onSubmit: h[0] || (h[0] = ee(() => {
@@ -177,7 +180,7 @@ function Ue(t, h, k, o, N, m) {
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 ? (n(), r("span", ye, "*")) : M("", !0)
181
184
  ], 4))
182
185
  ]),
183
186
  default: s(() => [
@@ -287,7 +290,7 @@ function Ue(t, h, k, o, N, m) {
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 ? (n(), r("span", be, "*")) : M("", !0)
291
294
  ], 4))
292
295
  ]),
293
296
  default: s(() => [
@@ -328,7 +331,7 @@ function Ue(t, h, k, o, N, m) {
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
337
  e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
@@ -336,7 +339,7 @@ function Ue(t, h, k, o, N, m) {
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 ? (n(), r("span", he, "*")) : M("", !0)
340
343
  ], 4))
341
344
  ]),
342
345
  default: s(() => [
@@ -376,13 +379,13 @@ function Ue(t, h, k, o, N, m) {
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
385
  V("div", null, [
383
386
  V("span", fe, p(e.labelBefore), 1),
384
387
  V("span", ge, p(e.labelNode), 1),
385
- e.required ? (n(), r("span", Me, "*")) : _("", !0)
388
+ e.required ? (n(), r("span", Me, "*")) : M("", !0)
386
389
  ]),
387
390
  b(U, {
388
391
  modelValue: o.states.model[e.field],
@@ -427,7 +430,7 @@ function Ue(t, h, k, o, N, m) {
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 ? (n(), r("span", _e, "*")) : M("", !0)
431
434
  ], 4))
432
435
  ]),
433
436
  default: s(() => [
@@ -476,7 +479,7 @@ function Ue(t, h, k, o, N, m) {
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 ? (n(), r("span", Ce, "*")) : M("", !0)
480
483
  ], 4))
481
484
  ]),
482
485
  default: s(() => [
@@ -526,7 +529,7 @@ function Ue(t, h, k, o, N, m) {
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 ? (n(), r("span", Ne, "*")) : M("", !0)
530
533
  ], 4))
531
534
  ]),
532
535
  default: s(() => [
@@ -563,7 +566,8 @@ function Ue(t, h, k, o, N, m) {
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
573
  e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
@@ -571,11 +575,11 @@ function Ue(t, h, k, o, N, m) {
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 ? (n(), 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,7 +591,8 @@ 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 ? (n(), r("span", De, "to")) : M("", !0)
591
596
  ]),
592
597
  _: 2
593
598
  }, 1032, ["label", "rules", "prop"])) : e.type === "daterange" ? (n(), c(y, {
@@ -602,11 +607,11 @@ function Ue(t, h, k, o, N, m) {
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 ? (n(), 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,
@@ -635,7 +640,7 @@ function Ue(t, h, k, o, N, m) {
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 ? (n(), r("span", xe, "*")) : M("", !0)
639
644
  ], 4))
640
645
  ]),
641
646
  default: s(() => [
@@ -655,7 +660,7 @@ function Ue(t, h, k, o, N, m) {
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 ? (n(), r("span", Ve, "*")) : M("", !0)
659
664
  ], 4))
660
665
  ]),
661
666
  default: s(() => [
@@ -679,7 +684,7 @@ 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;
@@ -704,14 +709,14 @@ function Ue(t, h, k, o, N, m) {
704
709
  label: e.label
705
710
  }, {
706
711
  default: s(() => [
707
- Ve
712
+ we
708
713
  ]),
709
714
  _: 2
710
715
  }, 1032, ["label"])) : (n(), 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
722
  e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
@@ -719,7 +724,7 @@ function Ue(t, h, k, o, N, m) {
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 ? (n(), r("span", Ue, "*")) : M("", !0)
723
728
  ], 4))
724
729
  ]),
725
730
  default: s(() => [
@@ -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,7 +820,7 @@ 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"]]);
823
+ const R = /* @__PURE__ */ ue(re, [["render", je], ["__scopeId", "data-v-63e07588"]]);
819
824
  function Y(t, h = {}) {
820
825
  Y.installed || (Y.installed = !0, t.component("common-el-form", R));
821
826
  }
@@ -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-63e07588"),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:"20px 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"},{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",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,"to")):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-63e07588"]]);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.7",
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-63e07588] .el-date-editor{height:60px!important;width:100%!important}.form-item[data-v-63e07588]{width:50%;display:inline-block;padding-right:0;box-sizing:border-box}[data-v-63e07588] .el-input__inner{height:42px;color:#1d1d1d}[data-v-63e07588] .el-card__body{padding:0}[data-v-63e07588] .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-63e07588] .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-63e07588]{width:100%}[data-v-63e07588] .el-checkbox-group .el-checkbox{display:flex}[data-v-63e07588] .el-radio-group{height:62px;line-height:62px}[data-v-63e07588] .el-radio-group .el-radio{height:auto}.rule_err[data-v-63e07588] .el-form-item__content,.radio_Note[data-v-63e07588] .el-form-item__content{display:block}.radio_Note .lable[data-v-63e07588]{font-size:16px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Regular}.radio_Note .lable_note[data-v-63e07588]{font-size:16px;line-height:22px;color:#6e6e73;font-weight:400;font-family:Roboto Regular}.container_name[data-v-63e07588] .el-form-item__content{align-items:start}[data-v-63e07588] .el-form-item__error{position:relative}.item-name[data-v-63e07588]{width:51%;padding-right:20px;padding-bottom:12px;box-sizing:border-box}.item-name-right[data-v-63e07588]{width:49%;padding-bottom:12px;padding-right:0}.btnsItem[data-v-63e07588]{width:100%;margin:0 auto;justify-content:right}.btnsItem[data-v-63e07588] .el-form-item__content{justify-content:right}label[data-v-63e07588]{display:block}.title-content[data-v-63e07588]{font-size:22px;line-height:30px;color:#1d1d1d;font-weight:300;font-family:Roboto light}[data-v-63e07588] .el-input__wrapper{height:60px;border-radius:8px;border:1px solid #c7c8ca;box-shadow:none!important}.date_item[data-v-63e07588] .el-form-item__content{flex-wrap:nowrap}.date_item[data-v-63e07588] .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-63e07588] .el-input__wrapper{border-left:0px!important;border-top-left-radius:0!important;border-bottom-left-radius:0!important}.phone_item[data-v-63e07588] .el-input-group__prepend{box-shadow:none!important;background-color:unset!important}.phone_item[data-v-63e07588] .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-63e07588] .el-input-group__prepend .el-input__wrapper .el-input__suffix{display:none;width:0!important}.phone_item[data-v-63e07588] .el-input-group__prepend:hover{box-shadow:none!important;background-color:unset!important}.phone_item[data-v-63e07588] .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-63e07588] .el-input-group__prepend:hover .el-input__wrapper:hover .el-input__suffix{display:none;width:0!important}.input-item[data-v-63e07588] .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-63e07588] .el-input__wrapper{border-left:0px!important;border-right:0px!important;border-radius:0!important}.input-item[data-v-63e07588] .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-63e07588] .el-select{width:100%}.custom-required[data-v-63e07588]{content:"*";color:#e2a650;margin-left:4px}.item_tips_blow[data-v-63e07588]{font-size:14px;line-height:22px;color:#00000073;font-weight:400;font-family:Roboto Regular;width:100%;word-wrap:break-word;white-space:normal}