sinosoft-common-form 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/common-form.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { ref as q, reactive as W, shallowRef as Q, h as P, computed as Z, onMounted as G, watch as J, toRefs as X, nextTick as $, resolveComponent as _, openBlock as n, createBlock as c, mergeProps as ll, withModifiers as el, withCtx as s, createVNode as i, createElementBlock as r, Fragment as A, renderList as I, withDirectives as ol, createElementVNode as k, normalizeStyle as g, toDisplayString as t, createTextVNode as f, createCommentVNode as M, renderSlot as C, normalizeClass as N, withKeys as v, createSlots as al, vShow as nl, pushScopeId as dl, popScopeId as sl } from "vue";
2
- const rl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==", ul = {
1
+ import { ref as q, reactive as Q, shallowRef as W, h as P, computed as G, onMounted as Z, watch as J, toRefs as X, nextTick as $, resolveComponent as M, openBlock as n, createBlock as c, mergeProps as ll, withModifiers as el, withCtx as s, createVNode as i, createElementBlock as r, Fragment as I, renderList as N, withDirectives as ol, createElementVNode as D, normalizeStyle as f, toDisplayString as y, createTextVNode as h, createCommentVNode as _, renderSlot as k, normalizeClass as C, withKeys as L, createSlots as al, vShow as nl, pushScopeId as dl, popScopeId as sl } from "vue";
2
+ const rl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNCIgaGVpZ2h0PSI0IiB2aWV3Qm94PSIwIDAgMTQgMTQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xMi43NTAyIDEuODc2OTVIMTAuMTI1MlYwLjg3Njk1M0MxMC4xMjUyIDAuODA4MjAzIDEwLjA2OSAwLjc1MTk1MyAxMC4wMDAyIDAuNzUxOTUzSDkuMTI1MjVDOS4wNTY0OSAwLjc1MTk1MyA5LjAwMDI1IDAuODA4MjAzIDkuMDAwMjUgMC44NzY5NTNWMS44NzY5NUg1LjAwMDI0VjAuODc2OTUzQzUuMDAwMjQgMC44MDgyMDMgNC45NDM5OSAwLjc1MTk1MyA0Ljg3NTI0IDAuNzUxOTUzSDQuMDAwMjRDMy45MzE0OSAwLjc1MTk1MyAzLjg3NTI0IDAuODA4MjAzIDMuODc1MjQgMC44NzY5NTNWMS44NzY5NUgxLjI1MDI0QzAuOTczNjgyIDEuODc2OTUgMC43NTAyNDQgMi4xMDAzOSAwLjc1MDI0NCAyLjM3Njk1VjEyLjc1MkMwLjc1MDI0NCAxMy4wMjg1IDAuOTczNjgyIDEzLjI1MiAxLjI1MDI0IDEzLjI1MkgxMi43NTAyQzEzLjAyNjggMTMuMjUyIDEzLjI1MDIgMTMuMDI4NSAxMy4yNTAyIDEyLjc1MlYyLjM3Njk1QzEzLjI1MDIgMi4xMDAzOSAxMy4wMjY4IDEuODc2OTUgMTIuNzUwMiAxLjg3Njk1Wk0xMi4xMjUyIDEyLjEyN0gxLjg3NTI0VjYuMTg5NDVIMTIuMTI1MlYxMi4xMjdaTTEuODc1MjQgNS4xMjY5NVYzLjAwMTk1SDMuODc1MjRWMy43NTE5NUMzLjg3NTI0IDMuODIwNyAzLjkzMTQ5IDMuODc2OTUgNC4wMDAyNCAzLjg3Njk1SDQuODc1MjRDNC45NDM5OSAzLjg3Njk1IDUuMDAwMjQgMy44MjA3IDUuMDAwMjQgMy43NTE5NVYzLjAwMTk1SDkuMDAwMjVWMy43NTE5NUM5LjAwMDI1IDMuODIwNyA5LjA1NjQ5IDMuODc2OTUgOS4xMjUyNSAzLjg3Njk1SDEwLjAwMDJDMTAuMDY5IDMuODc2OTUgMTAuMTI1MiAzLjgyMDcgMTAuMTI1MiAzLjc1MTk1VjMuMDAxOTVIMTIuMTI1MlY1LjEyNjk1SDEuODc1MjRaIiBmaWxsPSJibGFjayIgZmlsbC1vcGFjaXR5PSIwLjg1Ii8+Cjwvc3ZnPgo=", ul = {
3
3
  props: {
4
4
  fieldList: {
5
5
  type: Array,
@@ -8,78 +8,78 @@ const rl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
8
8
  model: Object,
9
9
  options: Object
10
10
  },
11
- setup(y, { emit: h }) {
12
- const x = q(!0), e = W({
11
+ setup(t, { emit: g }) {
12
+ const x = q(!0), e = Q({
13
13
  model: {}
14
- }), D = q(null), Y = Q({
14
+ }), A = q(null), K = W({
15
15
  render() {
16
16
  return P("img", {
17
17
  src: rl
18
18
  });
19
19
  }
20
- }), p = Z(() => Object.assign([], y.options)), O = () => {
21
- e.model = y.model;
22
- }, V = (d, a, u) => {
23
- D.value && (a ? (x.value = !1, $(() => {
24
- D.value.validate((b) => {
20
+ }), p = G(() => Object.assign([], t.options)), w = () => {
21
+ e.model = t.model;
22
+ }, O = (d, a, u) => {
23
+ A.value && (a ? (x.value = !1, $(() => {
24
+ A.value.validate((b) => {
25
25
  if (b)
26
- h(u || "submit", e.model, d);
26
+ g(u || "submit", e.model, d);
27
27
  else
28
28
  return !1;
29
29
  });
30
- })) : u === "reset" ? D.value.resetFields() : h(u || "submit", e.model, d));
31
- }, w = (d, a) => {
32
- h("selectChange", d, a);
30
+ })) : u === "reset" ? A.value.resetFields() : g(u || "submit", e.model, d));
31
+ }, j = (d, a) => {
32
+ g("selectChange", d, a);
33
33
  }, F = (d, a) => {
34
- h("radioChange", d, a);
35
- }, z = (d, a) => {
36
- h("checkChange", d, a);
34
+ g("radioChange", d, a);
37
35
  }, U = (d, a) => {
36
+ g("checkChange", d, a);
37
+ }, V = (d, a) => {
38
38
  const u = e.model[a].length;
39
- u !== 1 && (u > 1 && e.model[a].shift(), h("checkChange", d, a));
39
+ g("checkChange", d, a), u !== 1 && u > 1 && e.model[a].shift();
40
40
  }, R = (d, a, u) => {
41
- V(d, a, u);
42
- }, L = (d, a) => {
43
- d && (a == null ? void 0 : a.key) === "Enter" && V(void 0, !0, "submit");
41
+ O(d, a, u);
44
42
  }, T = (d, a) => {
45
- h("dateChange", d, a);
43
+ d && (a == null ? void 0 : a.key) === "Enter" && O(void 0, !0, "submit");
46
44
  }, S = (d, a) => {
47
- console.log(D.value), h("inputBlur", d, a);
45
+ g("dateChange", d, a);
46
+ }, z = (d, a) => {
47
+ console.log(A.value), g("inputBlur", d, a);
48
48
  }, E = (d, a) => {
49
- h("inputFocus", d, a);
49
+ g("inputFocus", d, a);
50
50
  }, m = (d, a) => {
51
- h("inputChange", d, a);
51
+ g("inputChange", d, a);
52
52
  }, l = (d, a) => {
53
- h("inputInput", d, a);
54
- }, j = (d) => {
55
- D.value.resetFields(d);
53
+ g("inputInput", d, a);
54
+ }, v = (d) => {
55
+ A.value.resetFields(d);
56
56
  }, o = (d) => {
57
- D.value.clearValidate(d);
57
+ A.value.clearValidate(d);
58
58
  };
59
- return G(() => {
60
- O(), D.value.resetFields();
59
+ return Z(() => {
60
+ w(), A.value.resetFields();
61
61
  }), J(
62
- () => y.fieldList,
62
+ () => t.fieldList,
63
63
  (d, a) => {
64
- d !== a && O();
64
+ d !== a && w();
65
65
  }
66
66
  ), {
67
67
  ...X(e),
68
- formRef: D,
68
+ formRef: A,
69
69
  states: e,
70
70
  formOptions: p,
71
- onSubmit: V,
72
- selectChange: w,
71
+ onSubmit: O,
72
+ selectChange: j,
73
73
  radioChange: F,
74
- checkChange: z,
75
- handleCheckedChange: U,
76
- prefixIcon: Y,
74
+ checkChange: U,
75
+ handleCheckedChange: V,
76
+ prefixIcon: K,
77
77
  handleClick: R,
78
- handleKeyUp: L,
79
- resetFieldsTest: j,
78
+ handleKeyUp: T,
79
+ resetFieldsTest: v,
80
80
  clearValidateTest: o,
81
- dateChange: T,
82
- inputBlur: S,
81
+ dateChange: S,
82
+ inputBlur: z,
83
83
  inputFocus: E,
84
84
  inputChange: m,
85
85
  inputInput: l,
@@ -87,12 +87,12 @@ const rl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
87
87
  };
88
88
  }
89
89
  };
90
- const yl = (y, h) => {
91
- const x = y.__vccOpts || y;
92
- for (const [e, D] of h)
93
- x[e] = D;
90
+ const tl = (t, g) => {
91
+ const x = t.__vccOpts || t;
92
+ for (const [e, A] of g)
93
+ x[e] = A;
94
94
  return x;
95
- }, B = (y) => (dl("data-v-18a469d0"), y = y(), sl(), y), cl = { class: "header-title" }, tl = { class: "title-content" }, il = {
95
+ }, B = (t) => (dl("data-v-a974b266"), t = t(), sl(), t), cl = { class: "header-title" }, yl = { class: "title-content" }, il = {
96
96
  key: 0,
97
97
  class: "custom-required"
98
98
  }, pl = {
@@ -101,45 +101,45 @@ const yl = (y, h) => {
101
101
  }, bl = ["src"], fl = {
102
102
  key: 0,
103
103
  class: "custom-required"
104
- }, hl = { class: "lable" }, gl = { class: "lable_note" }, Ml = {
104
+ }, hl = { class: "lable" }, gl = { class: "lable_note" }, _l = {
105
105
  key: 0,
106
106
  class: "custom-required"
107
- }, _l = {
107
+ }, Ml = {
108
108
  key: 0,
109
109
  class: "custom-required"
110
- }, Cl = {
110
+ }, kl = {
111
111
  key: 0,
112
112
  class: "custom-required"
113
- }, Nl = {
113
+ }, Cl = {
114
114
  key: 0,
115
115
  class: "custom-required"
116
- }, kl = {
116
+ }, Dl = {
117
117
  key: 0,
118
118
  class: "custom-required"
119
- }, Dl = {
119
+ }, Al = {
120
120
  key: 0,
121
121
  class: "date_to"
122
- }, Al = {
122
+ }, Il = {
123
123
  key: 0,
124
124
  class: "custom-required"
125
- }, Il = {
125
+ }, Nl = {
126
126
  key: 0,
127
127
  class: "custom-required"
128
128
  }, xl = {
129
129
  key: 0,
130
130
  class: "custom-required"
131
- }, Ol = { class: "phone_item_content" }, Vl = /* @__PURE__ */ B(() => /* @__PURE__ */ k("div", { class: "line_middle" }, " - ", -1)), wl = /* @__PURE__ */ B(() => /* @__PURE__ */ k("div", { class: "line_middle" }, " - ", -1)), Ul = /* @__PURE__ */ B(() => /* @__PURE__ */ k("div", {
131
+ }, wl = { class: "phone_item_content" }, Ol = /* @__PURE__ */ B(() => /* @__PURE__ */ D("div", { class: "line_middle" }, " - ", -1)), jl = /* @__PURE__ */ B(() => /* @__PURE__ */ D("div", { class: "line_middle" }, " - ", -1)), Vl = /* @__PURE__ */ B(() => /* @__PURE__ */ D("div", {
132
132
  class: "line",
133
133
  style: { "border-top": "1px solid #e8e8e8", width: "100%", height: "0px", margin: "39px 0" }
134
134
  }, null, -1)), Rl = {
135
135
  key: 0,
136
136
  class: "custom-required"
137
137
  };
138
- function jl(y, h, x, e, D, Y) {
139
- const p = _("el-form-item"), O = _("el-input"), V = _("el-radio"), w = _("el-radio-group"), F = _("el-checkbox"), z = _("el-checkbox-group"), U = _("el-option"), R = _("el-select"), L = _("el-date-picker"), T = _("el-col"), S = _("el-row"), E = _("sinosoft-common-button"), m = _("el-form");
138
+ function vl(t, g, x, e, A, K) {
139
+ const p = M("el-form-item"), w = M("el-input"), O = M("el-radio"), j = M("el-radio-group"), F = M("el-checkbox"), U = M("el-checkbox-group"), V = M("el-option"), R = M("el-select"), T = M("el-date-picker"), S = M("el-col"), z = M("el-row"), E = M("sinosoft-common-button"), m = M("el-form");
140
140
  return n(), c(m, ll({
141
141
  "hide-required-asterisk": "",
142
- onSubmit: h[0] || (h[0] = el(() => {
142
+ onSubmit: g[0] || (g[0] = el(() => {
143
143
  }, ["prevent"])),
144
144
  model: x.model
145
145
  }, e.formOptions, {
@@ -147,24 +147,24 @@ function jl(y, h, x, e, D, Y) {
147
147
  ref: "formRef"
148
148
  }), {
149
149
  default: s(() => [
150
- i(S, { gutter: 20 }, {
150
+ i(z, { gutter: 20 }, {
151
151
  default: s(() => [
152
- (n(!0), r(A, null, I(x.fieldList, (l, j) => ol((n(), c(T, {
152
+ (n(!0), r(I, null, N(x.fieldList, (l, v) => ol((n(), c(S, {
153
153
  xs: l.xs ? l.xs : 24,
154
154
  sm: l.sm ? l.sm : 24,
155
155
  md: l.md ? l.md : 8,
156
156
  lg: l.lg ? l.lg : 8,
157
157
  xl: l.xl ? l.xl : 8,
158
- key: j
158
+ key: v
159
159
  }, {
160
160
  default: s(() => [
161
- k("div", {
162
- style: g(l.style)
161
+ D("div", {
162
+ style: f(l.style)
163
163
  }, [
164
164
  l.type === "title" ? (n(), c(p, { key: 0 }, {
165
165
  default: s(() => [
166
- k("div", cl, [
167
- k("span", tl, t(l.title), 1)
166
+ D("div", cl, [
167
+ D("span", yl, y(l.title), 1)
168
168
  ])
169
169
  ]),
170
170
  _: 2
@@ -175,12 +175,12 @@ function jl(y, h, x, e, D, Y) {
175
175
  class: "container_name"
176
176
  }, {
177
177
  label: s(() => [
178
- l.slotLabelName ? C(y.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
178
+ l.slotLabelName ? k(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
179
179
  key: 0,
180
- style: g(l.labelStyle)
180
+ style: f(l.labelStyle)
181
181
  }, [
182
- f(t(l.label) + " ", 1),
183
- l.required ? (n(), r("span", il, "*")) : M("", !0)
182
+ h(y(l.label) + " ", 1),
183
+ l.required ? (n(), r("span", il, "*")) : _("", !0)
184
184
  ], 4))
185
185
  ]),
186
186
  default: s(() => [
@@ -190,12 +190,12 @@ function jl(y, h, x, e, D, Y) {
190
190
  class: "item-name"
191
191
  }, {
192
192
  default: s(() => [
193
- i(O, {
193
+ i(w, {
194
194
  onBlur: (o) => e.inputBlur(o, l.field.nameEnFamily),
195
195
  onFocus: (o) => e.inputFocus(o, l.field.nameEnFamily),
196
196
  onChange: (o) => e.inputChange(o, l.field.nameEnFamily),
197
197
  onInput: (o) => e.inputInput(o, l.field.nameEnFamily),
198
- class: N(l.isReadonly || e.formOptions.isAllReadonly ? "readonly" : ""),
198
+ class: C(l.isReadonly || e.formOptions.isAllReadonly ? "readonly" : ""),
199
199
  maxlength: l.maxlengthNameEnFamily,
200
200
  modelValue: e.states.model[l.field.nameEnFamily],
201
201
  "onUpdate:modelValue": (o) => e.states.model[l.field.nameEnFamily] = o,
@@ -203,7 +203,7 @@ function jl(y, h, x, e, D, Y) {
203
203
  type: l.type ? l.type : "text",
204
204
  placeholder: l.placeholderNameEnFamily,
205
205
  disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
206
- onKeyup: v((o) => e.handleKeyUp(l.enterable), ["enter"])
206
+ onKeyup: L((o) => e.handleKeyUp(l.enterable), ["enter"])
207
207
  }, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "class", "maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
208
208
  ]),
209
209
  _: 2
@@ -214,7 +214,7 @@ function jl(y, h, x, e, D, Y) {
214
214
  class: "item-name-right"
215
215
  }, {
216
216
  default: s(() => [
217
- i(O, {
217
+ i(w, {
218
218
  onBlur: (o) => e.inputBlur(o, l.field.nameEn),
219
219
  onFocus: (o) => e.inputFocus(o, l.field.nameEn),
220
220
  onChange: (o) => e.inputChange(o, l.field.nameEn),
@@ -222,12 +222,12 @@ function jl(y, h, x, e, D, Y) {
222
222
  maxlength: l.maxlengthNameEn,
223
223
  modelValue: e.states.model[l.field.nameEn],
224
224
  "onUpdate:modelValue": (o) => e.states.model[l.field.nameEn] = o,
225
- class: N(l.isReadonly || e.formOptions.isAllReadonly ? "readonly" : ""),
225
+ class: C(l.isReadonly || e.formOptions.isAllReadonly ? "readonly" : ""),
226
226
  readonly: l.readonly,
227
227
  type: l.type ? l.type : "text",
228
228
  placeholder: l.placeholderNameEn,
229
229
  disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
230
- onKeyup: v((o) => e.handleKeyUp(l.enterable), ["enter"])
230
+ onKeyup: L((o) => e.handleKeyUp(l.enterable), ["enter"])
231
231
  }, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "class", "readonly", "type", "placeholder", "disabled", "onKeyup"])
232
232
  ]),
233
233
  _: 2
@@ -238,20 +238,20 @@ function jl(y, h, x, e, D, Y) {
238
238
  class: "item-name item-name-bottom"
239
239
  }, {
240
240
  default: s(() => [
241
- i(O, {
241
+ i(w, {
242
242
  onBlur: (o) => e.inputBlur(o, l.field.nameChFamily),
243
243
  onFocus: (o) => e.inputFocus(o, l.field.nameChFamily),
244
244
  onChange: (o) => e.inputChange(o, l.field.nameChFamily),
245
245
  onInput: (o) => e.inputInput(o, l.field.nameChFamily),
246
246
  maxlength: l.maxlengthNameChFamily,
247
- class: N(l.isReadonly || e.formOptions.isAllReadonly ? "readonly" : ""),
247
+ class: C(l.isReadonly || e.formOptions.isAllReadonly ? "readonly" : ""),
248
248
  modelValue: e.states.model[l.field.nameChFamily],
249
249
  "onUpdate:modelValue": (o) => e.states.model[l.field.nameChFamily] = o,
250
250
  readonly: l.readonly,
251
251
  type: l.type ? l.type : "text",
252
252
  placeholder: l.placeholderNameChFamily,
253
253
  disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
254
- onKeyup: v((o) => e.handleKeyUp(l.enterable), ["enter"])
254
+ onKeyup: L((o) => e.handleKeyUp(l.enterable), ["enter"])
255
255
  }, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "class", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
256
256
  ]),
257
257
  _: 2
@@ -262,12 +262,12 @@ function jl(y, h, x, e, D, Y) {
262
262
  class: "item-name-right item-name-bottom"
263
263
  }, {
264
264
  default: s(() => [
265
- i(O, {
265
+ i(w, {
266
266
  onBlur: (o) => e.inputBlur(o, l.field.nameCh),
267
267
  onFocus: (o) => e.inputFocus(o, l.field.nameCh),
268
268
  onChange: (o) => e.inputChange(o, l.field.nameCh),
269
269
  onInput: (o) => e.inputInput(o, l.field.nameCh),
270
- class: N(l.isReadonly || e.formOptions.isAllReadonly ? "readonly" : ""),
270
+ class: C(l.isReadonly || e.formOptions.isAllReadonly ? "readonly" : ""),
271
271
  maxlength: l.maxlengthNameCh,
272
272
  modelValue: e.states.model[l.field.nameCh],
273
273
  "onUpdate:modelValue": (o) => e.states.model[l.field.nameCh] = o,
@@ -275,7 +275,7 @@ function jl(y, h, x, e, D, Y) {
275
275
  type: l.type ? l.type : "text",
276
276
  placeholder: l.placeholderNameCh,
277
277
  disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
278
- onKeyup: v((o) => e.handleKeyUp(l.enterable), ["enter"])
278
+ onKeyup: L((o) => e.handleKeyUp(l.enterable), ["enter"])
279
279
  }, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "class", "maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
280
280
  ]),
281
281
  _: 2
@@ -289,16 +289,16 @@ function jl(y, h, x, e, D, Y) {
289
289
  prop: l.field
290
290
  }, {
291
291
  label: s(() => [
292
- l.slotLabelName ? C(y.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
292
+ l.slotLabelName ? k(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
293
293
  key: 0,
294
- style: g(l.labelStyle)
294
+ style: f(l.labelStyle)
295
295
  }, [
296
- f(t(l.label) + " ", 1),
297
- l.required ? (n(), r("span", pl, "*")) : M("", !0)
296
+ h(y(l.label) + " ", 1),
297
+ l.required ? (n(), r("span", pl, "*")) : _("", !0)
298
298
  ], 4))
299
299
  ]),
300
300
  default: s(() => [
301
- i(w, {
301
+ i(j, {
302
302
  modelValue: e.states.model[l.field],
303
303
  "onUpdate:modelValue": (o) => e.states.model[l.field] = o,
304
304
  disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
@@ -307,15 +307,15 @@ function jl(y, h, x, e, D, Y) {
307
307
  default: s(() => {
308
308
  var o;
309
309
  return [
310
- (n(!0), r(A, null, I((o = l.options) == null ? void 0 : o.data, (d) => {
310
+ (n(!0), r(I, null, N((o = l.options) == null ? void 0 : o.data, (d) => {
311
311
  var a, u;
312
- return n(), c(V, {
312
+ return n(), c(O, {
313
313
  label: d[((a = l.options) == null ? void 0 : a.valueKey) || "code"],
314
314
  size: "large",
315
315
  key: d[((u = l.options) == null ? void 0 : u.valueKey) || "code"]
316
316
  }, {
317
317
  default: s(() => [
318
- k("img", {
318
+ D("img", {
319
319
  src: d.code === "M" ? "http://192.168.5.200:9000/test/sex_img_M.png" : "http://192.168.5.200:9000/test/sex_img_F.png",
320
320
  style: { width: "44px", height: "44px", "margin-bottom": "-15px", "margin-left": "4px" },
321
321
  alt: ""
@@ -335,30 +335,33 @@ function jl(y, h, x, e, D, Y) {
335
335
  label: l.label,
336
336
  rules: l.isHide || e.noFormRule ? [] : l.rules,
337
337
  prop: l.field,
338
- class: N([l.labelNode ? "radio_Note" : "rule_err"])
338
+ class: C([l.labelNode ? "radio_Note" : "rule_err"])
339
339
  }, {
340
340
  label: s(() => [
341
- l.slotLabelName ? C(y.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
341
+ l.slotLabelName ? k(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
342
342
  key: 0,
343
- style: g(l.labelStyle)
343
+ style: f(l.labelStyle)
344
344
  }, [
345
- f(t(l.label) + " ", 1),
346
- l.required ? (n(), r("span", fl, "*")) : M("", !0)
345
+ h(y(l.label) + " ", 1),
346
+ l.required ? (n(), r("span", fl, "*")) : _("", !0)
347
347
  ], 4))
348
348
  ]),
349
349
  default: s(() => [
350
- i(w, {
350
+ i(j, {
351
351
  modelValue: e.states.model[l.field],
352
352
  "onUpdate:modelValue": (o) => e.states.model[l.field] = o,
353
353
  disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
354
- onChange: (o) => e.radioChange(o, l.field)
354
+ onChange: (o) => e.radioChange(o, l.field),
355
+ style: f(
356
+ l.ways === "column" ? "display: flex; align-items: flex-start;flex-flow: column nowrap; " : "display: flex; align-items: flex-start;flex-flow: row nowrap; "
357
+ )
355
358
  }, {
356
359
  default: s(() => {
357
360
  var o;
358
361
  return [
359
- (n(!0), r(A, null, I((o = l.options) == null ? void 0 : o.data, (d) => {
362
+ (n(!0), r(I, null, N((o = l.options) == null ? void 0 : o.data, (d) => {
360
363
  var a, u;
361
- return n(), c(V, {
364
+ return n(), c(O, {
362
365
  size: "large",
363
366
  label: d[((a = l.options) == null ? void 0 : a.valueKey) || "code"],
364
367
  key: d[((u = l.options) == null ? void 0 : u.valueKey) || "code"]
@@ -366,7 +369,7 @@ function jl(y, h, x, e, D, Y) {
366
369
  default: s(() => {
367
370
  var b;
368
371
  return [
369
- f(t(d[((b = l.options) == null ? void 0 : b.labelkey) || "name"]), 1)
372
+ h(y(d[((b = l.options) == null ? void 0 : b.labelkey) || "name"]), 1)
370
373
  ];
371
374
  }),
372
375
  _: 2
@@ -375,7 +378,7 @@ function jl(y, h, x, e, D, Y) {
375
378
  ];
376
379
  }),
377
380
  _: 2
378
- }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
381
+ }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange", "style"])
379
382
  ]),
380
383
  _: 2
381
384
  }, 1032, ["label", "rules", "prop", "class"])) : l.type === "radioNote" ? (n(), c(p, {
@@ -383,26 +386,29 @@ function jl(y, h, x, e, D, Y) {
383
386
  label: l.label,
384
387
  rules: l.isHide || e.noFormRule ? [] : l.rules,
385
388
  prop: l.field,
386
- class: N([l.labelNode ? "radio_Note" : "rule_err"])
389
+ class: C([l.labelNode ? "radio_Note" : "rule_err"])
387
390
  }, {
388
391
  default: s(() => [
389
- k("div", null, [
390
- k("span", hl, t(l.labelBefore), 1),
391
- k("span", gl, t(l.labelNode), 1),
392
- l.required ? (n(), r("span", Ml, "*")) : M("", !0)
392
+ D("div", null, [
393
+ D("span", hl, y(l.labelBefore), 1),
394
+ D("span", gl, y(l.labelNode), 1),
395
+ l.required ? (n(), r("span", _l, "*")) : _("", !0)
393
396
  ]),
394
- i(w, {
397
+ i(j, {
395
398
  modelValue: e.states.model[l.field],
396
399
  "onUpdate:modelValue": (o) => e.states.model[l.field] = o,
397
400
  disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
398
- onChange: (o) => e.radioChange(o, l.field)
401
+ onChange: (o) => e.radioChange(o, l.field),
402
+ style: f(
403
+ l.ways === "column" ? "display: flex; align-items: flex-start;flex-flow: column nowrap; " : "display: flex; align-items: flex-start;flex-flow: row nowrap; "
404
+ )
399
405
  }, {
400
406
  default: s(() => {
401
407
  var o;
402
408
  return [
403
- (n(!0), r(A, null, I((o = l.options) == null ? void 0 : o.data, (d) => {
409
+ (n(!0), r(I, null, N((o = l.options) == null ? void 0 : o.data, (d) => {
404
410
  var a, u;
405
- return n(), c(V, {
411
+ return n(), c(O, {
406
412
  size: "large",
407
413
  label: d[((a = l.options) == null ? void 0 : a.valueKey) || "code"],
408
414
  key: d[((u = l.options) == null ? void 0 : u.valueKey) || "code"]
@@ -410,7 +416,7 @@ function jl(y, h, x, e, D, Y) {
410
416
  default: s(() => {
411
417
  var b;
412
418
  return [
413
- f(t(d[((b = l.options) == null ? void 0 : b.labelkey) || "name"]), 1)
419
+ h(y(d[((b = l.options) == null ? void 0 : b.labelkey) || "name"]), 1)
414
420
  ];
415
421
  }),
416
422
  _: 2
@@ -419,7 +425,7 @@ function jl(y, h, x, e, D, Y) {
419
425
  ];
420
426
  }),
421
427
  _: 2
422
- }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
428
+ }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange", "style"])
423
429
  ]),
424
430
  _: 2
425
431
  }, 1032, ["label", "rules", "prop", "class"])) : l.type === "checkbox" ? (n(), c(p, {
@@ -429,28 +435,28 @@ function jl(y, h, x, e, D, Y) {
429
435
  prop: l.field
430
436
  }, {
431
437
  label: s(() => [
432
- l.slotLabelName ? C(y.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
438
+ l.slotLabelName ? k(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
433
439
  key: 0,
434
- style: g(l.labelStyle)
440
+ style: f(l.labelStyle)
435
441
  }, [
436
- f(t(l.label) + " ", 1),
437
- l.required ? (n(), r("span", _l, "*")) : M("", !0)
442
+ h(y(l.label) + " ", 1),
443
+ l.required ? (n(), r("span", Ml, "*")) : _("", !0)
438
444
  ], 4))
439
445
  ]),
440
446
  default: s(() => [
441
- i(z, {
447
+ i(U, {
442
448
  modelValue: e.states.model[l.field],
443
449
  "onUpdate:modelValue": (o) => e.states.model[l.field] = o,
444
450
  onChange: (o) => e.checkChange(o, l.field),
445
451
  disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
446
- style: g(
452
+ style: f(
447
453
  l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
448
454
  )
449
455
  }, {
450
456
  default: s(() => {
451
457
  var o;
452
458
  return [
453
- (n(!0), r(A, null, I((o = l.options) == null ? void 0 : o.data, (d) => {
459
+ (n(!0), r(I, null, N((o = l.options) == null ? void 0 : o.data, (d) => {
454
460
  var a, u;
455
461
  return n(), c(F, {
456
462
  key: d[((a = l.options) == null ? void 0 : a.valueKey) || "code"],
@@ -459,7 +465,7 @@ function jl(y, h, x, e, D, Y) {
459
465
  default: s(() => {
460
466
  var b;
461
467
  return [
462
- f(t(d[((b = l.options) == null ? void 0 : b.labelkey) || "name"]), 1)
468
+ h(y(d[((b = l.options) == null ? void 0 : b.labelkey) || "name"]), 1)
463
469
  ];
464
470
  }),
465
471
  _: 2
@@ -478,28 +484,28 @@ function jl(y, h, x, e, D, Y) {
478
484
  prop: l.field
479
485
  }, {
480
486
  label: s(() => [
481
- l.slotLabelName ? C(y.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
487
+ l.slotLabelName ? k(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
482
488
  key: 0,
483
- style: g(l.labelStyle)
489
+ style: f(l.labelStyle)
484
490
  }, [
485
- f(t(l.label) + " ", 1),
486
- l.required ? (n(), r("span", Cl, "*")) : M("", !0)
491
+ h(y(l.label) + " ", 1),
492
+ l.required ? (n(), r("span", kl, "*")) : _("", !0)
487
493
  ], 4))
488
494
  ]),
489
495
  default: s(() => [
490
- i(z, {
496
+ i(U, {
491
497
  modelValue: e.states.model[l.field],
492
498
  "onUpdate:modelValue": (o) => e.states.model[l.field] = o,
493
499
  onChange: (o) => e.handleCheckedChange(o, l.field),
494
500
  disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
495
- style: g(
501
+ style: f(
496
502
  l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
497
503
  )
498
504
  }, {
499
505
  default: s(() => {
500
506
  var o;
501
507
  return [
502
- (n(!0), r(A, null, I((o = l.options) == null ? void 0 : o.data, (d) => {
508
+ (n(!0), r(I, null, N((o = l.options) == null ? void 0 : o.data, (d) => {
503
509
  var a, u;
504
510
  return n(), c(F, {
505
511
  key: d[((a = l.options) == null ? void 0 : a.valueKey) || "code"],
@@ -508,7 +514,7 @@ function jl(y, h, x, e, D, Y) {
508
514
  default: s(() => {
509
515
  var b;
510
516
  return [
511
- f(t(d[((b = l.options) == null ? void 0 : b.labelkey) || "name"]), 1)
517
+ h(y(d[((b = l.options) == null ? void 0 : b.labelkey) || "name"]), 1)
512
518
  ];
513
519
  }),
514
520
  _: 2
@@ -528,12 +534,12 @@ function jl(y, h, x, e, D, Y) {
528
534
  prop: l.field
529
535
  }, {
530
536
  label: s(() => [
531
- l.slotLabelName ? C(y.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
537
+ l.slotLabelName ? k(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
532
538
  key: 0,
533
- style: g(l.labelStyle)
539
+ style: f(l.labelStyle)
534
540
  }, [
535
- f(t(l.label) + " ", 1),
536
- l.required ? (n(), r("span", Nl, "*")) : M("", !0)
541
+ h(y(l.label) + " ", 1),
542
+ l.required ? (n(), r("span", Cl, "*")) : _("", !0)
537
543
  ], 4))
538
544
  ]),
539
545
  default: s(() => [
@@ -543,15 +549,15 @@ function jl(y, h, x, e, D, Y) {
543
549
  "onUpdate:modelValue": (o) => e.states.model[l.field] = o,
544
550
  disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
545
551
  placeholder: l.placeholder,
546
- class: N(l.isReadonly || e.formOptions.isAllReadonly ? "selectreadonly" : ""),
552
+ class: C(l.isReadonly || e.formOptions.isAllReadonly ? "selectreadonly" : ""),
547
553
  clearable: l.clearable
548
554
  }, {
549
555
  default: s(() => {
550
556
  var o;
551
557
  return [
552
- (n(!0), r(A, null, I((o = l.options) == null ? void 0 : o.data, (d) => {
558
+ (n(!0), r(I, null, N((o = l.options) == null ? void 0 : o.data, (d) => {
553
559
  var a, u, b;
554
- return n(), c(U, {
560
+ return n(), c(V, {
555
561
  key: d[((a = l.options) == null ? void 0 : a.valueKey) || "code"],
556
562
  label: d[((u = l.options) == null ? void 0 : u.labelkey) || "name"],
557
563
  value: d[((b = l.options) == null ? void 0 : b.valueKey) || "code"]
@@ -561,10 +567,10 @@ function jl(y, h, x, e, D, Y) {
561
567
  }),
562
568
  _: 2
563
569
  }, 1032, ["onChange", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "clearable"]),
564
- k("div", {
570
+ D("div", {
565
571
  class: "item_tips_blow",
566
- style: g(l.tipsBlowStyle)
567
- }, t(l.tipsBlow), 5)
572
+ style: f(l.tipsBlowStyle)
573
+ }, y(l.tipsBlow), 5)
568
574
  ]),
569
575
  _: 2
570
576
  }, 1032, ["label", "rules", "disabled", "prop"])) : l.type === "date" ? (n(), c(p, {
@@ -575,16 +581,16 @@ function jl(y, h, x, e, D, Y) {
575
581
  class: "date_item"
576
582
  }, {
577
583
  label: s(() => [
578
- l.slotLabelName ? C(y.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
584
+ l.slotLabelName ? k(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
579
585
  key: 0,
580
- style: g(l.labelStyle)
586
+ style: f(l.labelStyle)
581
587
  }, [
582
- f(t(l.label) + " ", 1),
583
- l.required ? (n(), r("span", kl, "*")) : M("", !0)
588
+ h(y(l.label) + " ", 1),
589
+ l.required ? (n(), r("span", Dl, "*")) : _("", !0)
584
590
  ], 4))
585
591
  ]),
586
592
  default: s(() => [
587
- i(L, {
593
+ i(T, {
588
594
  format: "DD/MM/YYYY",
589
595
  "value-format": "DD/MM/YYYY",
590
596
  "disabled-date": l.disabledDate,
@@ -597,7 +603,7 @@ function jl(y, h, x, e, D, Y) {
597
603
  type: l.type,
598
604
  placeholder: l.placeholder || l.label
599
605
  }, null, 8, ["disabled-date", "onChange", "prefix-icon", "modelValue", "onUpdate:modelValue", "disabled", "readonly", "type", "placeholder"]),
600
- l.showTo ? (n(), r("span", Dl, t(l.showTo), 1)) : M("", !0)
606
+ l.showTo ? (n(), r("span", Al, y(l.showTo), 1)) : _("", !0)
601
607
  ]),
602
608
  _: 2
603
609
  }, 1032, ["label", "rules", "prop"])) : l.type === "daterange" ? (n(), c(p, {
@@ -607,16 +613,16 @@ function jl(y, h, x, e, D, Y) {
607
613
  prop: l.field
608
614
  }, {
609
615
  label: s(() => [
610
- l.slotLabelName ? C(y.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
616
+ l.slotLabelName ? k(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
611
617
  key: 0,
612
- style: g(l.labelStyle)
618
+ style: f(l.labelStyle)
613
619
  }, [
614
- f(t(l.label) + " ", 1),
615
- l.required ? (n(), r("span", Al, "*")) : M("", !0)
620
+ h(y(l.label) + " ", 1),
621
+ l.required ? (n(), r("span", Il, "*")) : _("", !0)
616
622
  ], 4))
617
623
  ]),
618
624
  default: s(() => [
619
- i(L, {
625
+ i(T, {
620
626
  format: "DD/MM/YYYY",
621
627
  "value-format": "DD/MM/YYYY",
622
628
  "disabled-date": l.disabledDate,
@@ -640,16 +646,16 @@ function jl(y, h, x, e, D, Y) {
640
646
  class: "rule_err"
641
647
  }, {
642
648
  label: s(() => [
643
- l.slotLabelName ? C(y.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
649
+ l.slotLabelName ? k(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
644
650
  key: 0,
645
- style: g(l.labelStyle)
651
+ style: f(l.labelStyle)
646
652
  }, [
647
- f(t(l.label) + " ", 1),
648
- l.required ? (n(), r("span", Il, "*")) : M("", !0)
653
+ h(y(l.label) + " ", 1),
654
+ l.required ? (n(), r("span", Nl, "*")) : _("", !0)
649
655
  ], 4))
650
656
  ]),
651
657
  default: s(() => [
652
- C(y.$slots, l.slotItemName, {}, void 0, !0)
658
+ k(t.$slots, l.slotItemName, {}, void 0, !0)
653
659
  ]),
654
660
  _: 2
655
661
  }, 1032, ["label", "rules", "prop"])) : l.type === "phone" ? (n(), c(p, {
@@ -660,29 +666,30 @@ function jl(y, h, x, e, D, Y) {
660
666
  class: "phone_item"
661
667
  }, {
662
668
  label: s(() => [
663
- l.slotLabelName ? C(y.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
669
+ l.slotLabelName ? k(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
664
670
  key: 0,
665
- style: g(l.labelStyle)
671
+ style: f(l.labelStyle)
666
672
  }, [
667
- f(t(l.label) + " ", 1),
668
- l.required ? (n(), r("span", xl, "*")) : M("", !0)
673
+ h(y(l.label) + " ", 1),
674
+ l.required ? (n(), r("span", xl, "*")) : _("", !0)
669
675
  ], 4))
670
676
  ]),
671
677
  default: s(() => {
672
678
  var o, d;
673
679
  return [
674
- k("div", Ol, [
680
+ D("div", wl, [
675
681
  i(R, {
676
682
  disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
677
683
  modelValue: e.states.model[l.field.nationCode],
678
684
  "onUpdate:modelValue": (a) => e.states.model[l.field.nationCode] = a,
679
685
  placeholder: ((o = l.nationOptions) == null ? void 0 : o.placeholder) || "",
680
- class: N(l.isReadonly || e.formOptions.isAllReadonly ? "selectreadonly" : "")
686
+ class: C(l.isReadonly || e.formOptions.isAllReadonly ? "selectreadonly" : ""),
687
+ style: f("width:" + l.widthNation)
681
688
  }, {
682
689
  default: s(() => {
683
690
  var a;
684
691
  return [
685
- (n(!0), r(A, null, I((a = l.nationOptions) == null ? void 0 : a.data, (u, b) => (n(), c(U, {
692
+ (n(!0), r(I, null, N((a = l.nationOptions) == null ? void 0 : a.data, (u, b) => (n(), c(V, {
686
693
  label: u.name,
687
694
  value: u.code,
688
695
  key: b
@@ -690,19 +697,20 @@ function jl(y, h, x, e, D, Y) {
690
697
  ];
691
698
  }),
692
699
  _: 2
693
- }, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class"]),
694
- Vl,
700
+ }, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class", "style"]),
701
+ Ol,
695
702
  i(R, {
696
703
  disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
697
704
  modelValue: e.states.model[l.field.areaCode],
698
705
  "onUpdate:modelValue": (a) => e.states.model[l.field.areaCode] = a,
699
706
  placeholder: ((d = l.areaOptions) == null ? void 0 : d.placeholder) || "",
700
- class: N(l.isReadonly || e.formOptions.isAllReadonly ? "selectreadonly" : "")
707
+ class: C(l.isReadonly || e.formOptions.isAllReadonly ? "selectreadonly" : ""),
708
+ style: f("width:" + l.widthArea)
701
709
  }, {
702
710
  default: s(() => {
703
711
  var a;
704
712
  return [
705
- (n(!0), r(A, null, I((a = l.areaOptions) == null ? void 0 : a.data, (u, b) => (n(), c(U, {
713
+ (n(!0), r(I, null, N((a = l.areaOptions) == null ? void 0 : a.data, (u, b) => (n(), c(V, {
706
714
  label: u.name,
707
715
  value: u.code,
708
716
  key: b
@@ -710,9 +718,9 @@ function jl(y, h, x, e, D, Y) {
710
718
  ];
711
719
  }),
712
720
  _: 2
713
- }, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class"]),
714
- wl,
715
- i(O, {
721
+ }, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class", "style"]),
722
+ jl,
723
+ i(w, {
716
724
  onBlur: (a) => e.inputBlur(a, l.field),
717
725
  onFocus: (a) => e.inputFocus(a, l.field),
718
726
  onChange: (a) => e.inputChange(a, l.field),
@@ -722,7 +730,7 @@ function jl(y, h, x, e, D, Y) {
722
730
  "onUpdate:modelValue": (a) => e.states.model[l.field.phoneNumber] = a,
723
731
  disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
724
732
  placeholder: l.placeholder || "",
725
- class: N(l.isReadonly || e.formOptions.isAllReadonly ? "readonly" : ""),
733
+ class: C(l.isReadonly || e.formOptions.isAllReadonly ? "readonly" : ""),
726
734
  clearable: l.clearable
727
735
  }, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "clearable"])
728
736
  ])
@@ -734,26 +742,26 @@ function jl(y, h, x, e, D, Y) {
734
742
  label: l.label
735
743
  }, {
736
744
  default: s(() => [
737
- Ul
745
+ Vl
738
746
  ]),
739
747
  _: 2
740
748
  }, 1032, ["label"])) : (n(), c(p, {
741
749
  key: 13,
742
750
  rules: l.isHide || e.noFormRule ? [] : l.rules,
743
751
  prop: l.field,
744
- class: N(l.prepend ? "input-item" : "")
752
+ class: C(l.prepend ? "input-item" : "")
745
753
  }, {
746
754
  label: s(() => [
747
- l.slotLabelName ? C(y.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
755
+ l.slotLabelName ? k(t.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
748
756
  key: 0,
749
- style: g(l.labelStyle)
757
+ style: f(l.labelStyle)
750
758
  }, [
751
- f(t(l.label) + " ", 1),
752
- l.required ? (n(), r("span", Rl, "*")) : M("", !0)
759
+ h(y(l.label) + " ", 1),
760
+ l.required ? (n(), r("span", Rl, "*")) : _("", !0)
753
761
  ], 4))
754
762
  ]),
755
763
  default: s(() => [
756
- i(O, {
764
+ i(w, {
757
765
  onBlur: (o) => e.inputBlur(o, l.field),
758
766
  onFocus: (o) => e.inputFocus(o, l.field),
759
767
  onChange: (o) => e.inputChange(o, l.field),
@@ -768,20 +776,20 @@ function jl(y, h, x, e, D, Y) {
768
776
  disabled: l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly,
769
777
  showPassword: l.showPassword,
770
778
  clearable: l.clearable,
771
- class: N(l.isReadonly || e.formOptions.isAllReadonly ? "readonly" : ""),
772
- onKeyup: v((o) => e.handleKeyUp(l.enterable), ["enter"])
779
+ class: C(l.isReadonly || e.formOptions.isAllReadonly ? "readonly" : ""),
780
+ onKeyup: L((o) => e.handleKeyUp(l.enterable), ["enter"])
773
781
  }, al({ _: 2 }, [
774
782
  l.prepend ? {
775
783
  name: "prepend",
776
784
  fn: s(() => [
777
- f(t(l.prepend), 1)
785
+ h(y(l.prepend), 1)
778
786
  ]),
779
787
  key: "0"
780
788
  } : void 0,
781
789
  l.append ? {
782
790
  name: "append",
783
791
  fn: s(() => [
784
- f(t(l.append), 1)
792
+ h(y(l.append), 1)
785
793
  ]),
786
794
  key: "1"
787
795
  } : void 0
@@ -800,11 +808,11 @@ function jl(y, h, x, e, D, Y) {
800
808
  }),
801
809
  i(p, { class: "btnsItem" }, {
802
810
  default: s(() => [
803
- C(y.$slots, "buttons", {
811
+ k(t.$slots, "buttons", {
804
812
  model: x.model,
805
813
  onBtnClick: e.onSubmit
806
814
  }, () => [
807
- (n(!0), r(A, null, I(e.formOptions.btnConfig, (l, j) => (n(), r("div", { key: j }, [
815
+ (n(!0), r(I, null, N(e.formOptions.btnConfig, (l, v) => (n(), r("div", { key: v }, [
808
816
  l.isShow ? (n(), c(E, {
809
817
  key: 0,
810
818
  btnCode: l.btnCode,
@@ -828,15 +836,15 @@ function jl(y, h, x, e, D, Y) {
828
836
  size: l.size,
829
837
  fontSize: l.fontSize,
830
838
  fontWeight: l.fontWeight,
831
- style: g(l.style),
832
- class: N(l.class),
839
+ style: f(l.style),
840
+ class: C(l.class),
833
841
  onHandleClick: (o) => e.handleClick(o, l.isRule, l.emitName)
834
842
  }, {
835
843
  default: s(() => [
836
- f(t(l.name), 1)
844
+ h(y(l.name), 1)
837
845
  ]),
838
846
  _: 2
839
- }, 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)
847
+ }, 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)
840
848
  ]))), 128))
841
849
  ], !0)
842
850
  ]),
@@ -846,11 +854,11 @@ function jl(y, h, x, e, D, Y) {
846
854
  _: 3
847
855
  }, 16, ["model", "label-position"]);
848
856
  }
849
- const H = /* @__PURE__ */ yl(ul, [["render", jl], ["__scopeId", "data-v-18a469d0"]]);
850
- function K(y, h = {}) {
851
- K.installed || (K.installed = !0, y.component("common-el-form", H));
857
+ const H = /* @__PURE__ */ tl(ul, [["render", vl], ["__scopeId", "data-v-a974b266"]]);
858
+ function Y(t, g = {}) {
859
+ Y.installed || (Y.installed = !0, t.component("common-el-form", H));
852
860
  }
853
- H.install = K;
861
+ H.install = Y;
854
862
  export {
855
863
  H as default
856
864
  };
@@ -1 +1 @@
1
- (function(e,f){typeof exports=="object"&&typeof module<"u"?module.exports=f(require("vue")):typeof define=="function"&&define.amd?define(["vue"],f):(e=typeof globalThis<"u"?globalThis:e||self,e.Form=f(e.Vue))})(this,function(e){"use strict";const f="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==",E={props:{fieldList:{type:Array,required:!0},model:Object,options:Object},setup(s,{emit:i}){const y=e.ref(!0),o=e.reactive({model:{}}),p=e.ref(null),I=e.shallowRef({render(){return e.h("img",{src:f})}}),t=e.computed(()=>Object.assign([],s.options)),h=()=>{o.model=s.model},b=(d,n,r)=>{p.value&&(n?(y.value=!1,e.nextTick(()=>{p.value.validate(c=>{if(c)i(r||"submit",o.model,d);else return!1})})):r==="reset"?p.value.resetFields():i(r||"submit",o.model,d))},k=(d,n)=>{i("selectChange",d,n)},m=(d,n)=>{i("radioChange",d,n)},x=(d,n)=>{i("checkChange",d,n)},C=(d,n)=>{const r=o.model[n].length;r!==1&&(r>1&&o.model[n].shift(),i("checkChange",d,n))},g=(d,n,r)=>{b(d,n,r)},M=(d,n)=>{d&&(n==null?void 0:n.key)==="Enter"&&b(void 0,!0,"submit")},D=(d,n)=>{i("dateChange",d,n)},w=(d,n)=>{console.log(p.value),i("inputBlur",d,n)},S=(d,n)=>{i("inputFocus",d,n)},A=(d,n)=>{i("inputChange",d,n)},l=(d,n)=>{i("inputInput",d,n)},N=d=>{p.value.resetFields(d)},a=d=>{p.value.clearValidate(d)};return e.onMounted(()=>{h(),p.value.resetFields()}),e.watch(()=>s.fieldList,(d,n)=>{d!==n&&h()}),{...e.toRefs(o),formRef:p,states:o,formOptions:t,onSubmit:b,selectChange:k,radioChange:m,checkChange:x,handleCheckedChange:C,prefixIcon:I,handleClick:g,handleKeyUp:M,resetFieldsTest:N,clearValidateTest:a,dateChange:D,inputBlur:w,inputFocus:S,inputChange:A,inputInput:l,noFormRule:y}}},ol="",O=(s,i)=>{const y=s.__vccOpts||s;for(const[o,p]of i)y[o]=p;return y},_=s=>(e.pushScopeId("data-v-18a469d0"),s=s(),e.popScopeId(),s),z={class:"header-title"},U={class:"title-content"},R={key:0,class:"custom-required"},j={key:0,class:"custom-required"},F=["src"],T={key:0,class:"custom-required"},L={class:"lable"},K={class:"lable_note"},Y={key:0,class:"custom-required"},q={key:0,class:"custom-required"},u={key:0,class:"custom-required"},H={key:0,class:"custom-required"},W={key:0,class:"custom-required"},Q={key:0,class:"date_to"},P={key:0,class:"custom-required"},Z={key:0,class:"custom-required"},G={key:0,class:"custom-required"},J={class:"phone_item_content"},X=_(()=>e.createElementVNode("div",{class:"line_middle"}," - ",-1)),$=_(()=>e.createElementVNode("div",{class:"line_middle"}," - ",-1)),v=_(()=>e.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"39px 0"}},null,-1)),ll={key:0,class:"custom-required"};function el(s,i,y,o,p,I){const t=e.resolveComponent("el-form-item"),h=e.resolveComponent("el-input"),b=e.resolveComponent("el-radio"),k=e.resolveComponent("el-radio-group"),m=e.resolveComponent("el-checkbox"),x=e.resolveComponent("el-checkbox-group"),C=e.resolveComponent("el-option"),g=e.resolveComponent("el-select"),M=e.resolveComponent("el-date-picker"),D=e.resolveComponent("el-col"),w=e.resolveComponent("el-row"),S=e.resolveComponent("sinosoft-common-button"),A=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(A,e.mergeProps({"hide-required-asterisk":"",onSubmit:i[0]||(i[0]=e.withModifiers(()=>{},["prevent"])),model:y.model},o.formOptions,{"label-position":o.formOptions.labelPosition,ref:"formRef"}),{default:e.withCtx(()=>[e.createVNode(w,{gutter:20},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.fieldList,(l,N)=>e.withDirectives((e.openBlock(),e.createBlock(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:N},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(l.style)},[l.type==="title"?(e.openBlock(),e.createBlock(t,{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",z,[e.createElementVNode("span",U,e.toDisplayString(l.title),1)])]),_:2},1024)):l.type==="name"?(e.openBlock(),e.createBlock(t,{key:1,label:l.label,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,class:"container_name"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",R,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(t,{rules:l.isHide||o.noFormRule?[]:l.rules.nameEnFamily,prop:l.field.nameEnFamily,class:"item-name"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field.nameEnFamily),onFocus:a=>o.inputFocus(a,l.field.nameEnFamily),onChange:a=>o.inputChange(a,l.field.nameEnFamily),onInput:a=>o.inputInput(a,l.field.nameEnFamily),class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),maxlength:l.maxlengthNameEnFamily,modelValue:o.states.model[l.field.nameEnFamily],"onUpdate:modelValue":a=>o.states.model[l.field.nameEnFamily]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEnFamily,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","class","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(t,{rules:l.isHide||o.noFormRule?[]:l.rules.nameEn,prop:l.field.nameEn,class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field.nameEn),onFocus:a=>o.inputFocus(a,l.field.nameEn),onChange:a=>o.inputChange(a,l.field.nameEn),onInput:a=>o.inputInput(a,l.field.nameEn),maxlength:l.maxlengthNameEn,modelValue:o.states.model[l.field.nameEn],"onUpdate:modelValue":a=>o.states.model[l.field.nameEn]=a,class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEn,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","class","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(t,{rules:l.isHide||o.noFormRule?[]:l.rules.nameChFamily,prop:l.field.nameChFamily,class:"item-name item-name-bottom"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field.nameChFamily),onFocus:a=>o.inputFocus(a,l.field.nameChFamily),onChange:a=>o.inputChange(a,l.field.nameChFamily),onInput:a=>o.inputInput(a,l.field.nameChFamily),maxlength:l.maxlengthNameChFamily,class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),modelValue:o.states.model[l.field.nameChFamily],"onUpdate:modelValue":a=>o.states.model[l.field.nameChFamily]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameChFamily,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","class","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(t,{rules:l.isHide||o.noFormRule?[]:l.rules.nameCh,prop:l.field.nameCh,class:"item-name-right item-name-bottom"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field.nameCh),onFocus:a=>o.inputFocus(a,l.field.nameCh),onChange:a=>o.inputChange(a,l.field.nameCh),onInput:a=>o.inputInput(a,l.field.nameCh),class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),maxlength:l.maxlengthNameCh,modelValue:o.states.model[l.field.nameCh],"onUpdate:modelValue":a=>o.states.model[l.field.nameCh]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameCh,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","class","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label","disabled"])):l.type==="gender"?(e.openBlock(),e.createBlock(t,{key:2,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",j,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(k,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onChange:a=>o.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(b,{label:d[((n=l.options)==null?void 0:n.valueKey)||"code"],size:"large",key:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>[e.createElementVNode("img",{src:d.code==="M"?"http://192.168.5.200:9000/test/sex_img_M.png":"http://192.168.5.200:9000/test/sex_img_F.png",style:{width:"44px",height:"44px","margin-bottom":"-15px","margin-left":"4px"},alt:""},null,8,F)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])):l.type==="radio"?(e.openBlock(),e.createBlock(t,{key:3,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",T,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(k,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onChange:a=>o.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(b,{size:"large",label:d[((n=l.options)==null?void 0:n.valueKey)||"code"],key:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(d[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])):l.type==="radioNote"?(e.openBlock(),e.createBlock(t,{key:4,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",L,e.toDisplayString(l.labelBefore),1),e.createElementVNode("span",K,e.toDisplayString(l.labelNode),1),l.required?(e.openBlock(),e.createElementBlock("span",Y,"*")):e.createCommentVNode("",!0)]),e.createVNode(k,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onChange:a=>o.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(b,{size:"large",label:d[((n=l.options)==null?void 0:n.valueKey)||"code"],key:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(d[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])):l.type==="checkbox"?(e.openBlock(),e.createBlock(t,{key:5,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",q,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(x,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,onChange:a=>o.checkChange(a,l.field),disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(m,{key:d[((n=l.options)==null?void 0:n.valueKey)||"code"],label:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(d[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])):l.type==="checkboxRadio"?(e.openBlock(),e.createBlock(t,{key:6,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",u,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(x,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,onChange:a=>o.handleCheckedChange(a,l.field),disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(m,{key:d[((n=l.options)==null?void 0:n.valueKey)||"code"],label:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(d[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])):l.type==="select"?(e.openBlock(),e.createBlock(t,{key:7,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",H,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(g,{onChange:a=>o.selectChange(a,l.field),modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,placeholder:l.placeholder,class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"selectreadonly":""),clearable:l.clearable},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r,c;return e.openBlock(),e.createBlock(C,{key:d[((n=l.options)==null?void 0:n.valueKey)||"code"],label:d[((r=l.options)==null?void 0:r.labelkey)||"name"],value:d[((c=l.options)==null?void 0:c.valueKey)||"code"]},null,8,["label","value"])}),128))]}),_:2},1032,["onChange","modelValue","onUpdate:modelValue","disabled","placeholder","class","clearable"]),e.createElementVNode("div",{class:"item_tips_blow",style:e.normalizeStyle(l.tipsBlowStyle)},e.toDisplayString(l.tipsBlow),5)]),_:2},1032,["label","rules","disabled","prop"])):l.type==="date"?(e.openBlock(),e.createBlock(t,{key:8,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:"date_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",W,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(M,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:a=>o.dateChange(a,l.field),"prefix-icon":o.prefixIcon,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,readonly:l.readonly,type:l.type,placeholder:l.placeholder||l.label},null,8,["disabled-date","onChange","prefix-icon","modelValue","onUpdate:modelValue","disabled","readonly","type","placeholder"]),l.showTo?(e.openBlock(),e.createElementBlock("span",Q,e.toDisplayString(l.showTo),1)):e.createCommentVNode("",!0)]),_:2},1032,["label","rules","prop"])):l.type==="daterange"?(e.openBlock(),e.createBlock(t,{key:9,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",P,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(M,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:a=>o.dateChange(a,l.field),modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,"prefix-icon":o.prefixIcon,type:"daterange","range-separator":"To","start-placeholder":l.startPlaceholder,"end-placeholder":l.endPlaceholder,size:"large"},null,8,["disabled-date","onChange","modelValue","onUpdate:modelValue","prefix-icon","start-placeholder","end-placeholder"])]),_:2},1032,["label","rules","prop"])):l.type==="slotItem"?(e.openBlock(),e.createBlock(t,{key:10,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:"rule_err"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",Z,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.renderSlot(s.$slots,l.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])):l.type==="phone"?(e.openBlock(),e.createBlock(t,{key:11,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules.phoneNumber,prop:l.field.phoneNumber,class:"phone_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",G,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>{var a,d;return[e.createElementVNode("div",J,[e.createVNode(g,{disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,modelValue:o.states.model[l.field.nationCode],"onUpdate:modelValue":n=>o.states.model[l.field.nationCode]=n,placeholder:((a=l.nationOptions)==null?void 0:a.placeholder)||"",class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"selectreadonly":"")},{default:e.withCtx(()=>{var n;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((n=l.nationOptions)==null?void 0:n.data,(r,c)=>(e.openBlock(),e.createBlock(C,{label:r.name,value:r.code,key:c},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder","class"]),X,e.createVNode(g,{disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,modelValue:o.states.model[l.field.areaCode],"onUpdate:modelValue":n=>o.states.model[l.field.areaCode]=n,placeholder:((d=l.areaOptions)==null?void 0:d.placeholder)||"",class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"selectreadonly":"")},{default:e.withCtx(()=>{var n;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((n=l.areaOptions)==null?void 0:n.data,(r,c)=>(e.openBlock(),e.createBlock(C,{label:r.name,value:r.code,key:c},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder","class"]),$,e.createVNode(h,{onBlur:n=>o.inputBlur(n,l.field),onFocus:n=>o.inputFocus(n,l.field),onChange:n=>o.inputChange(n,l.field),onInput:n=>o.inputInput(n,l.field),maxlength:l.maxlength,modelValue:o.states.model[l.field.phoneNumber],"onUpdate:modelValue":n=>o.states.model[l.field.phoneNumber]=n,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,placeholder:l.placeholder||"",class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),clearable:l.clearable},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","disabled","placeholder","class","clearable"])])]}),_:2},1032,["label","rules","prop"])):l.type==="line"?(e.openBlock(),e.createBlock(t,{key:12,label:l.label},{default:e.withCtx(()=>[v]),_:2},1032,["label"])):(e.openBlock(),e.createBlock(t,{key:13,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass(l.prepend?"input-item":"")},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",ll,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field),onFocus:a=>o.inputFocus(a,l.field),onChange:a=>o.inputChange(a,l.field),onInput:a=>o.inputInput(a,l.field),maxlength:l.maxlength,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,"show-word-limit":l.showWordLimit,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholder||l.label,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,showPassword:l.showPassword,clearable:l.clearable,class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},e.createSlots({_:2},[l.prepend?{name:"prepend",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.prepend),1)]),key:"0"}:void 0,l.append?{name:"append",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.append),1)]),key:"1"}:void 0]),1032,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","show-word-limit","readonly","type","placeholder","disabled","showPassword","clearable","class","onKeyup"])]),_:2},1032,["rules","prop","class"]))],4)]),_:2},1032,["xs","sm","md","lg","xl"])),[[e.vShow,!l.isHide]])),128))]),_:3}),e.createVNode(t,{class:"btnsItem"},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"buttons",{model:y.model,onBtnClick:o.onSubmit},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.formOptions.btnConfig,(l,N)=>(e.openBlock(),e.createElementBlock("div",{key:N},[l.isShow?(e.openBlock(),e.createBlock(S,{key:0,btnCode:l.btnCode,plain:l.plain,primary:l.primary,info:l.info,text:l.text,debounced:l.debounced?l.debounced:!1,link:l.link,loading:l.loading,loadingColor:l.loadingColor,width:l.width,height:l.height,circle:l.circle,color:l.color,bgColor:l.bgColor,borderColor:l.borderColor,borderStyle:l.borderStyle,borderWidth:l.borderWidth,icon:l.icon,size:l.size,fontSize:l.fontSize,fontWeight:l.fontWeight,style:e.normalizeStyle(l.style),class:e.normalizeClass(l.class),onHandleClick:a=>o.handleClick(a,l.isRule,l.emitName)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.name),1)]),_:2},1032,["btnCode","plain","primary","info","text","debounced","link","loading","loadingColor","width","height","circle","color","bgColor","borderColor","borderStyle","borderWidth","icon","size","fontSize","fontWeight","style","class","onHandleClick"])):e.createCommentVNode("",!0)]))),128))],!0)]),_:3})]),_:3},16,["model","label-position"])}const V=O(E,[["render",el],["__scopeId","data-v-18a469d0"]]);function B(s,i={}){B.installed||(B.installed=!0,s.component("common-el-form",V))}return V.install=B,V});
1
+ (function(e,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("vue")):typeof define=="function"&&define.amd?define(["vue"],b):(e=typeof globalThis<"u"?globalThis:e||self,e.Form=b(e.Vue))})(this,function(e){"use strict";const b="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNCIgaGVpZ2h0PSI0IiB2aWV3Qm94PSIwIDAgMTQgMTQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xMi43NTAyIDEuODc2OTVIMTAuMTI1MlYwLjg3Njk1M0MxMC4xMjUyIDAuODA4MjAzIDEwLjA2OSAwLjc1MTk1MyAxMC4wMDAyIDAuNzUxOTUzSDkuMTI1MjVDOS4wNTY0OSAwLjc1MTk1MyA5LjAwMDI1IDAuODA4MjAzIDkuMDAwMjUgMC44NzY5NTNWMS44NzY5NUg1LjAwMDI0VjAuODc2OTUzQzUuMDAwMjQgMC44MDgyMDMgNC45NDM5OSAwLjc1MTk1MyA0Ljg3NTI0IDAuNzUxOTUzSDQuMDAwMjRDMy45MzE0OSAwLjc1MTk1MyAzLjg3NTI0IDAuODA4MjAzIDMuODc1MjQgMC44NzY5NTNWMS44NzY5NUgxLjI1MDI0QzAuOTczNjgyIDEuODc2OTUgMC43NTAyNDQgMi4xMDAzOSAwLjc1MDI0NCAyLjM3Njk1VjEyLjc1MkMwLjc1MDI0NCAxMy4wMjg1IDAuOTczNjgyIDEzLjI1MiAxLjI1MDI0IDEzLjI1MkgxMi43NTAyQzEzLjAyNjggMTMuMjUyIDEzLjI1MDIgMTMuMDI4NSAxMy4yNTAyIDEyLjc1MlYyLjM3Njk1QzEzLjI1MDIgMi4xMDAzOSAxMy4wMjY4IDEuODc2OTUgMTIuNzUwMiAxLjg3Njk1Wk0xMi4xMjUyIDEyLjEyN0gxLjg3NTI0VjYuMTg5NDVIMTIuMTI1MlYxMi4xMjdaTTEuODc1MjQgNS4xMjY5NVYzLjAwMTk1SDMuODc1MjRWMy43NTE5NUMzLjg3NTI0IDMuODIwNyAzLjkzMTQ5IDMuODc2OTUgNC4wMDAyNCAzLjg3Njk1SDQuODc1MjRDNC45NDM5OSAzLjg3Njk1IDUuMDAwMjQgMy44MjA3IDUuMDAwMjQgMy43NTE5NVYzLjAwMTk1SDkuMDAwMjVWMy43NTE5NUM5LjAwMDI1IDMuODIwNyA5LjA1NjQ5IDMuODc2OTUgOS4xMjUyNSAzLjg3Njk1SDEwLjAwMDJDMTAuMDY5IDMuODc2OTUgMTAuMTI1MiAzLjgyMDcgMTAuMTI1MiAzLjc1MTk1VjMuMDAxOTVIMTIuMTI1MlY1LjEyNjk1SDEuODc1MjRaIiBmaWxsPSJibGFjayIgZmlsbC1vcGFjaXR5PSIwLjg1Ii8+Cjwvc3ZnPgo=",O={props:{fieldList:{type:Array,required:!0},model:Object,options:Object},setup(s,{emit:i}){const y=e.ref(!0),o=e.reactive({model:{}}),p=e.ref(null),I=e.shallowRef({render(){return e.h("img",{src:b})}}),t=e.computed(()=>Object.assign([],s.options)),h=()=>{o.model=s.model},f=(d,n,r)=>{p.value&&(n?(y.value=!1,e.nextTick(()=>{p.value.validate(c=>{if(c)i(r||"submit",o.model,d);else return!1})})):r==="reset"?p.value.resetFields():i(r||"submit",o.model,d))},k=(d,n)=>{i("selectChange",d,n)},x=(d,n)=>{i("radioChange",d,n)},N=(d,n)=>{i("checkChange",d,n)},g=(d,n)=>{const r=o.model[n].length;i("checkChange",d,n),r!==1&&r>1&&o.model[n].shift()},C=(d,n,r)=>{f(d,n,r)},_=(d,n)=>{d&&(n==null?void 0:n.key)==="Enter"&&f(void 0,!0,"submit")},V=(d,n)=>{i("dateChange",d,n)},D=(d,n)=>{console.log(p.value),i("inputBlur",d,n)},A=(d,n)=>{i("inputFocus",d,n)},S=(d,n)=>{i("inputChange",d,n)},l=(d,n)=>{i("inputInput",d,n)},m=d=>{p.value.resetFields(d)},a=d=>{p.value.clearValidate(d)};return e.onMounted(()=>{h(),p.value.resetFields()}),e.watch(()=>s.fieldList,(d,n)=>{d!==n&&h()}),{...e.toRefs(o),formRef:p,states:o,formOptions:t,onSubmit:f,selectChange:k,radioChange:x,checkChange:N,handleCheckedChange:g,prefixIcon:I,handleClick:C,handleKeyUp:_,resetFieldsTest:m,clearValidateTest:a,dateChange:V,inputBlur:D,inputFocus:A,inputChange:S,inputInput:l,noFormRule:y}}},ol="",E=(s,i)=>{const y=s.__vccOpts||s;for(const[o,p]of i)y[o]=p;return y},w=s=>(e.pushScopeId("data-v-a974b266"),s=s(),e.popScopeId(),s),j={class:"header-title"},z={class:"title-content"},R={key:0,class:"custom-required"},T={key:0,class:"custom-required"},L=["src"],F={key:0,class:"custom-required"},U={class:"lable"},K={class:"lable_note"},Y={key:0,class:"custom-required"},q={key:0,class:"custom-required"},H={key:0,class:"custom-required"},u={key:0,class:"custom-required"},Q={key:0,class:"custom-required"},W={key:0,class:"date_to"},P={key:0,class:"custom-required"},G={key:0,class:"custom-required"},Z={key:0,class:"custom-required"},J={class:"phone_item_content"},X=w(()=>e.createElementVNode("div",{class:"line_middle"}," - ",-1)),$=w(()=>e.createElementVNode("div",{class:"line_middle"}," - ",-1)),v=w(()=>e.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"39px 0"}},null,-1)),ll={key:0,class:"custom-required"};function el(s,i,y,o,p,I){const t=e.resolveComponent("el-form-item"),h=e.resolveComponent("el-input"),f=e.resolveComponent("el-radio"),k=e.resolveComponent("el-radio-group"),x=e.resolveComponent("el-checkbox"),N=e.resolveComponent("el-checkbox-group"),g=e.resolveComponent("el-option"),C=e.resolveComponent("el-select"),_=e.resolveComponent("el-date-picker"),V=e.resolveComponent("el-col"),D=e.resolveComponent("el-row"),A=e.resolveComponent("sinosoft-common-button"),S=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(S,e.mergeProps({"hide-required-asterisk":"",onSubmit:i[0]||(i[0]=e.withModifiers(()=>{},["prevent"])),model:y.model},o.formOptions,{"label-position":o.formOptions.labelPosition,ref:"formRef"}),{default:e.withCtx(()=>[e.createVNode(D,{gutter:20},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.fieldList,(l,m)=>e.withDirectives((e.openBlock(),e.createBlock(V,{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:m},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(l.style)},[l.type==="title"?(e.openBlock(),e.createBlock(t,{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",j,[e.createElementVNode("span",z,e.toDisplayString(l.title),1)])]),_:2},1024)):l.type==="name"?(e.openBlock(),e.createBlock(t,{key:1,label:l.label,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,class:"container_name"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",R,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(t,{rules:l.isHide||o.noFormRule?[]:l.rules.nameEnFamily,prop:l.field.nameEnFamily,class:"item-name"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field.nameEnFamily),onFocus:a=>o.inputFocus(a,l.field.nameEnFamily),onChange:a=>o.inputChange(a,l.field.nameEnFamily),onInput:a=>o.inputInput(a,l.field.nameEnFamily),class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),maxlength:l.maxlengthNameEnFamily,modelValue:o.states.model[l.field.nameEnFamily],"onUpdate:modelValue":a=>o.states.model[l.field.nameEnFamily]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEnFamily,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","class","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(t,{rules:l.isHide||o.noFormRule?[]:l.rules.nameEn,prop:l.field.nameEn,class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field.nameEn),onFocus:a=>o.inputFocus(a,l.field.nameEn),onChange:a=>o.inputChange(a,l.field.nameEn),onInput:a=>o.inputInput(a,l.field.nameEn),maxlength:l.maxlengthNameEn,modelValue:o.states.model[l.field.nameEn],"onUpdate:modelValue":a=>o.states.model[l.field.nameEn]=a,class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEn,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","class","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(t,{rules:l.isHide||o.noFormRule?[]:l.rules.nameChFamily,prop:l.field.nameChFamily,class:"item-name item-name-bottom"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field.nameChFamily),onFocus:a=>o.inputFocus(a,l.field.nameChFamily),onChange:a=>o.inputChange(a,l.field.nameChFamily),onInput:a=>o.inputInput(a,l.field.nameChFamily),maxlength:l.maxlengthNameChFamily,class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),modelValue:o.states.model[l.field.nameChFamily],"onUpdate:modelValue":a=>o.states.model[l.field.nameChFamily]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameChFamily,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","maxlength","class","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(t,{rules:l.isHide||o.noFormRule?[]:l.rules.nameCh,prop:l.field.nameCh,class:"item-name-right item-name-bottom"},{default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field.nameCh),onFocus:a=>o.inputFocus(a,l.field.nameCh),onChange:a=>o.inputChange(a,l.field.nameCh),onInput:a=>o.inputInput(a,l.field.nameCh),class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),maxlength:l.maxlengthNameCh,modelValue:o.states.model[l.field.nameCh],"onUpdate:modelValue":a=>o.states.model[l.field.nameCh]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameCh,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["onBlur","onFocus","onChange","onInput","class","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label","disabled"])):l.type==="gender"?(e.openBlock(),e.createBlock(t,{key:2,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",T,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(k,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onChange:a=>o.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(f,{label:d[((n=l.options)==null?void 0:n.valueKey)||"code"],size:"large",key:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>[e.createElementVNode("img",{src:d.code==="M"?"http://192.168.5.200:9000/test/sex_img_M.png":"http://192.168.5.200:9000/test/sex_img_F.png",style:{width:"44px",height:"44px","margin-bottom":"-15px","margin-left":"4px"},alt:""},null,8,L)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])):l.type==="radio"?(e.openBlock(),e.createBlock(t,{key:3,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",F,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(k,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onChange:a=>o.radioChange(a,l.field),style:e.normalizeStyle(l.ways==="column"?"display: flex; align-items: flex-start;flex-flow: column nowrap; ":"display: flex; align-items: flex-start;flex-flow: row nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(f,{size:"large",label:d[((n=l.options)==null?void 0:n.valueKey)||"code"],key:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(d[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange","style"])]),_:2},1032,["label","rules","prop","class"])):l.type==="radioNote"?(e.openBlock(),e.createBlock(t,{key:4,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",U,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(k,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,onChange:a=>o.radioChange(a,l.field),style:e.normalizeStyle(l.ways==="column"?"display: flex; align-items: flex-start;flex-flow: column nowrap; ":"display: flex; align-items: flex-start;flex-flow: row nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(f,{size:"large",label:d[((n=l.options)==null?void 0:n.valueKey)||"code"],key:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(d[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange","style"])]),_:2},1032,["label","rules","prop","class"])):l.type==="checkbox"?(e.openBlock(),e.createBlock(t,{key:5,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",q,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(N,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,onChange:a=>o.checkChange(a,l.field),disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(x,{key:d[((n=l.options)==null?void 0:n.valueKey)||"code"],label:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(d[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])):l.type==="checkboxRadio"?(e.openBlock(),e.createBlock(t,{key:6,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",H,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(N,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,onChange:a=>o.handleCheckedChange(a,l.field),disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r;return e.openBlock(),e.createBlock(x,{key:d[((n=l.options)==null?void 0:n.valueKey)||"code"],label:d[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(d[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])):l.type==="select"?(e.openBlock(),e.createBlock(t,{key:7,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",u,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(C,{onChange:a=>o.selectChange(a,l.field),modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,placeholder:l.placeholder,class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"selectreadonly":""),clearable:l.clearable},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var n,r,c;return e.openBlock(),e.createBlock(g,{key:d[((n=l.options)==null?void 0:n.valueKey)||"code"],label:d[((r=l.options)==null?void 0:r.labelkey)||"name"],value:d[((c=l.options)==null?void 0:c.valueKey)||"code"]},null,8,["label","value"])}),128))]}),_:2},1032,["onChange","modelValue","onUpdate:modelValue","disabled","placeholder","class","clearable"]),e.createElementVNode("div",{class:"item_tips_blow",style:e.normalizeStyle(l.tipsBlowStyle)},e.toDisplayString(l.tipsBlow),5)]),_:2},1032,["label","rules","disabled","prop"])):l.type==="date"?(e.openBlock(),e.createBlock(t,{key:8,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:"date_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",Q,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(_,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:a=>o.dateChange(a,l.field),"prefix-icon":o.prefixIcon,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,readonly:l.readonly,type:l.type,placeholder:l.placeholder||l.label},null,8,["disabled-date","onChange","prefix-icon","modelValue","onUpdate:modelValue","disabled","readonly","type","placeholder"]),l.showTo?(e.openBlock(),e.createElementBlock("span",W,e.toDisplayString(l.showTo),1)):e.createCommentVNode("",!0)]),_:2},1032,["label","rules","prop"])):l.type==="daterange"?(e.openBlock(),e.createBlock(t,{key:9,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",P,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(_,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:a=>o.dateChange(a,l.field),modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,"prefix-icon":o.prefixIcon,type:"daterange","range-separator":"To","start-placeholder":l.startPlaceholder,"end-placeholder":l.endPlaceholder,size:"large"},null,8,["disabled-date","onChange","modelValue","onUpdate:modelValue","prefix-icon","start-placeholder","end-placeholder"])]),_:2},1032,["label","rules","prop"])):l.type==="slotItem"?(e.openBlock(),e.createBlock(t,{key:10,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:"rule_err"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",G,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.renderSlot(s.$slots,l.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])):l.type==="phone"?(e.openBlock(),e.createBlock(t,{key:11,label:l.label,rules:l.isHide||o.noFormRule?[]:l.rules.phoneNumber,prop:l.field.phoneNumber,class:"phone_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",Z,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>{var a,d;return[e.createElementVNode("div",J,[e.createVNode(C,{disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,modelValue:o.states.model[l.field.nationCode],"onUpdate:modelValue":n=>o.states.model[l.field.nationCode]=n,placeholder:((a=l.nationOptions)==null?void 0:a.placeholder)||"",class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"selectreadonly":""),style:e.normalizeStyle("width:"+l.widthNation)},{default:e.withCtx(()=>{var n;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((n=l.nationOptions)==null?void 0:n.data,(r,c)=>(e.openBlock(),e.createBlock(g,{label:r.name,value:r.code,key:c},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder","class","style"]),X,e.createVNode(C,{disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,modelValue:o.states.model[l.field.areaCode],"onUpdate:modelValue":n=>o.states.model[l.field.areaCode]=n,placeholder:((d=l.areaOptions)==null?void 0:d.placeholder)||"",class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"selectreadonly":""),style:e.normalizeStyle("width:"+l.widthArea)},{default:e.withCtx(()=>{var n;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((n=l.areaOptions)==null?void 0:n.data,(r,c)=>(e.openBlock(),e.createBlock(g,{label:r.name,value:r.code,key:c},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder","class","style"]),$,e.createVNode(h,{onBlur:n=>o.inputBlur(n,l.field),onFocus:n=>o.inputFocus(n,l.field),onChange:n=>o.inputChange(n,l.field),onInput:n=>o.inputInput(n,l.field),maxlength:l.maxlength,modelValue:o.states.model[l.field.phoneNumber],"onUpdate:modelValue":n=>o.states.model[l.field.phoneNumber]=n,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,placeholder:l.placeholder||"",class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),clearable:l.clearable},null,8,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","disabled","placeholder","class","clearable"])])]}),_:2},1032,["label","rules","prop"])):l.type==="line"?(e.openBlock(),e.createBlock(t,{key:12,label:l.label},{default:e.withCtx(()=>[v]),_:2},1032,["label"])):(e.openBlock(),e.createBlock(t,{key:13,rules:l.isHide||o.noFormRule?[]:l.rules,prop:l.field,class:e.normalizeClass(l.prepend?"input-item":"")},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(s.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",ll,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(h,{onBlur:a=>o.inputBlur(a,l.field),onFocus:a=>o.inputFocus(a,l.field),onChange:a=>o.inputChange(a,l.field),onInput:a=>o.inputInput(a,l.field),maxlength:l.maxlength,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,"show-word-limit":l.showWordLimit,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholder||l.label,disabled:l.disabled||o.formOptions.isAllDisabled||o.formOptions.isAllReadonly||l.isReadonly,showPassword:l.showPassword,clearable:l.clearable,class:e.normalizeClass(l.isReadonly||o.formOptions.isAllReadonly?"readonly":""),onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},e.createSlots({_:2},[l.prepend?{name:"prepend",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.prepend),1)]),key:"0"}:void 0,l.append?{name:"append",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.append),1)]),key:"1"}:void 0]),1032,["onBlur","onFocus","onChange","onInput","maxlength","modelValue","onUpdate:modelValue","show-word-limit","readonly","type","placeholder","disabled","showPassword","clearable","class","onKeyup"])]),_:2},1032,["rules","prop","class"]))],4)]),_:2},1032,["xs","sm","md","lg","xl"])),[[e.vShow,!l.isHide]])),128))]),_:3}),e.createVNode(t,{class:"btnsItem"},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"buttons",{model:y.model,onBtnClick:o.onSubmit},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.formOptions.btnConfig,(l,m)=>(e.openBlock(),e.createElementBlock("div",{key:m},[l.isShow?(e.openBlock(),e.createBlock(A,{key:0,btnCode:l.btnCode,plain:l.plain,primary:l.primary,info:l.info,text:l.text,debounced:l.debounced?l.debounced:!1,link:l.link,loading:l.loading,loadingColor:l.loadingColor,width:l.width,height:l.height,circle:l.circle,color:l.color,bgColor:l.bgColor,borderColor:l.borderColor,borderStyle:l.borderStyle,borderWidth:l.borderWidth,icon:l.icon,size:l.size,fontSize:l.fontSize,fontWeight:l.fontWeight,style:e.normalizeStyle(l.style),class:e.normalizeClass(l.class),onHandleClick:a=>o.handleClick(a,l.isRule,l.emitName)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.name),1)]),_:2},1032,["btnCode","plain","primary","info","text","debounced","link","loading","loadingColor","width","height","circle","color","bgColor","borderColor","borderStyle","borderWidth","icon","size","fontSize","fontWeight","style","class","onHandleClick"])):e.createCommentVNode("",!0)]))),128))],!0)]),_:3})]),_:3},16,["model","label-position"])}const B=E(O,[["render",el],["__scopeId","data-v-a974b266"]]);function M(s,i={}){M.installed||(M.installed=!0,s.component("common-el-form",B))}return B.install=M,B});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinosoft-common-form",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
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-18a469d0] .el-date-editor{height:60px!important;width:100%!important}[data-v-18a469d0] .el-form-item{margin-bottom:12px}[data-v-18a469d0] .el-input__inner{height:42px;color:#1d1d1d}[data-v-18a469d0] .el-card__body{padding:0}[data-v-18a469d0] .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-18a469d0] .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-18a469d0]{width:100%}[data-v-18a469d0] .el-checkbox-group .el-checkbox{display:flex}.rule_err[data-v-18a469d0] .el-form-item__content,.radio_Note[data-v-18a469d0] .el-form-item__content{display:block}.radio_Note .lable[data-v-18a469d0]{font-size:16px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Regular}.radio_Note .lable_note[data-v-18a469d0]{font-size:16px;line-height:22px;color:#6e6e73;font-weight:400;font-family:Roboto Regular}.container_name[data-v-18a469d0] .el-form-item__content{align-items:start}.container_name[data-v-18a469d0] .el-form-item{margin-bottom:0}.container_name .item-name[data-v-18a469d0]{width:51%;padding-right:20px;padding-bottom:12px;box-sizing:border-box}.container_name .item-name-right[data-v-18a469d0]{width:49%;padding-bottom:12px;padding-right:0}.container_name .item-name-bottom[data-v-18a469d0]{padding-bottom:0}[data-v-18a469d0] .el-form-item__error{position:relative}.btnsItem[data-v-18a469d0]{width:100%;margin:0 auto;justify-content:right}.btnsItem[data-v-18a469d0] .el-form-item__content{justify-content:right}label[data-v-18a469d0]{display:block}.title-content[data-v-18a469d0]{font-size:22px;line-height:30px;color:#1d1d1d;font-weight:300;font-family:Roboto light}[data-v-18a469d0] .el-input__wrapper{height:58px;border-radius:8px;padding:1px 16px}.date_item[data-v-18a469d0] .el-form-item__content .date_to{font-size:14px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Regular;position:absolute;right:-17.5px;top:18px}.phone_item[data-v-18a469d0] .el-form-item__content{display:flex}.phone_item[data-v-18a469d0] .el-form-item__content .el-select{width:180.03px}.phone_item[data-v-18a469d0] .el-form-item__content .line_middle{margin:0 4px}.phone_item[data-v-18a469d0] .el-input__suffix-inner{width:14px;padding-right:3px}.phone_item .phone_item_content[data-v-18a469d0]{display:flex;flex-wrap:nowrap;align-items:center;width:100%}.phone_item .phone_item_content[data-v-18a469d0] .readonly .el-input__wrapper{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #c7c8ca inset}.phone_item .phone_item_content[data-v-18a469d0] .readonly .el-input__wrapper .el-input__inner{background-color:#f3f3f3!important;font-size:14px;line-height:22px;color:#0b0b0b;font-weight:400;font-family:Roboto Regular;-webkit-text-fill-color:#0B0B0B!important}.phone_item .phone_item_content[data-v-18a469d0] .selectreadonly .el-input__wrapper{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #c7c8ca inset}.phone_item .phone_item_content[data-v-18a469d0] .selectreadonly .el-input__wrapper .el-input__inner{background-color:#f3f3f3!important;font-size:14px;line-height:22px;color:#0b0b0b;font-weight:400;font-family:Roboto Regular;-webkit-text-fill-color:#0B0B0B!important}.phone_item .phone_item_content[data-v-18a469d0] .selectreadonly :deep(.el-input.is-disabled .el-input__inner){-webkit-text-fill-color:#0B0B0B!important}.input-item[data-v-18a469d0] .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-18a469d0] .el-input__wrapper{border-left:0px!important;border-right:0px!important;border-radius:0!important}.input-item[data-v-18a469d0] .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-18a469d0] .el-select{width:100%}.custom-required[data-v-18a469d0]{content:"*";color:#e2a650;margin-left:4px}.item_tips_blow[data-v-18a469d0]{font-size:14px;line-height:22px;color:#00000073;font-weight:400;font-family:Roboto Regular;width:100%;word-wrap:break-word;white-space:normal}[data-v-18a469d0] .readonly .el-input-group__prepend,[data-v-18a469d0] .readonly .el-input-group__append{background-color:#f3f3f3!important}[data-v-18a469d0] .readonly .el-input__wrapper{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #c7c8ca inset}[data-v-18a469d0] .readonly .el-input__wrapper .el-input__inner{background-color:#f3f3f3!important;font-size:14px;line-height:22px;color:#0b0b0b;font-weight:400;font-family:Roboto Regular;-webkit-text-fill-color:#0B0B0B!important}[data-v-18a469d0] .selectreadonly .el-input__wrapper{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #c7c8ca inset}[data-v-18a469d0] .selectreadonly .el-input__wrapper .el-input__inner{background-color:#f3f3f3!important;font-size:14px;line-height:22px;color:#0b0b0b;font-weight:400;font-family:Roboto Regular;-webkit-text-fill-color:#0B0B0B!important}[data-v-18a469d0] .selectreadonly :deep(.el-input.is-disabled .el-input__inner){-webkit-text-fill-color:#0B0B0B!important}[data-v-18a469d0] .el-input.is-disabled .el-input__wrapper{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #d9d9d9 inset}
1
+ @charset "UTF-8";[data-v-a974b266] .el-date-editor{height:60px!important;width:100%!important}[data-v-a974b266] .el-form-item{margin-bottom:12px}[data-v-a974b266] .el-input__inner{height:42px;color:#1d1d1d}[data-v-a974b266] .el-card__body{padding:0}[data-v-a974b266] .el-form-item__label{height:auto!important;margin-bottom:4px!important}.form-item-title[data-v-a974b266]{width:100%}[data-v-a974b266] .el-checkbox-group .el-checkbox{display:flex}.rule_err[data-v-a974b266] .el-form-item__content,.radio_Note[data-v-a974b266] .el-form-item__content{display:block}.radio_Note .lable[data-v-a974b266]{font-size:16px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Regular}.radio_Note .lable_note[data-v-a974b266]{font-size:16px;line-height:22px;color:#6e6e73;font-weight:400;font-family:Roboto Regular}.container_name[data-v-a974b266] .el-form-item__content{align-items:start}.container_name[data-v-a974b266] .el-form-item{margin-bottom:0}.container_name .item-name[data-v-a974b266]{width:51%;padding-right:20px;padding-bottom:12px;box-sizing:border-box}.container_name .item-name-right[data-v-a974b266]{width:49%;padding-bottom:12px;padding-right:0}.container_name .item-name-bottom[data-v-a974b266]{padding-bottom:0}[data-v-a974b266] .el-form-item__error{position:relative}.btnsItem[data-v-a974b266]{width:100%;margin:0 auto;justify-content:right}.btnsItem[data-v-a974b266] .el-form-item__content{justify-content:right}label[data-v-a974b266]{display:block}.title-content[data-v-a974b266]{font-size:22px;line-height:30px;color:#1d1d1d;font-weight:300;font-family:Roboto light}[data-v-a974b266] .el-input__wrapper{height:58px;border-radius:8px;padding:1px 16px}.date_item[data-v-a974b266] .el-form-item__content .date_to{font-size:14px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Regular;position:absolute;right:-17.5px;top:18px}.phone_item[data-v-a974b266] .el-form-item__content{display:flex}.phone_item[data-v-a974b266] .el-form-item__content .el-select{width:180.03px}.phone_item[data-v-a974b266] .el-form-item__content .line_middle{margin:0 4px}.phone_item[data-v-a974b266] .el-input__suffix-inner{width:14px;padding-right:3px}.phone_item .phone_item_content[data-v-a974b266]{display:flex;flex-wrap:nowrap;align-items:center;width:100%}.phone_item .phone_item_content[data-v-a974b266] .readonly .el-input__wrapper{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #c7c8ca inset}.phone_item .phone_item_content[data-v-a974b266] .readonly .el-input__wrapper .el-input__inner{background-color:#f3f3f3!important;font-size:14px;line-height:22px;color:#0b0b0b;font-weight:400;font-family:Roboto Regular;-webkit-text-fill-color:#0B0B0B!important}.phone_item .phone_item_content[data-v-a974b266] .selectreadonly .el-input__wrapper{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #c7c8ca inset}.phone_item .phone_item_content[data-v-a974b266] .selectreadonly .el-input__wrapper .el-input__inner{background-color:#f3f3f3!important;font-size:14px;line-height:22px;color:#0b0b0b;font-weight:400;font-family:Roboto Regular;-webkit-text-fill-color:#0B0B0B!important}.phone_item .phone_item_content[data-v-a974b266] .selectreadonly :deep(.el-input.is-disabled .el-input__inner){-webkit-text-fill-color:#0B0B0B!important}.input-item[data-v-a974b266] .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-a974b266] .el-input__wrapper{border-left:0px!important;border-right:0px!important;border-radius:0!important}.input-item[data-v-a974b266] .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-a974b266] .el-select{width:100%}.custom-required[data-v-a974b266]{content:"*";color:#e2a650;margin-left:4px}.item_tips_blow[data-v-a974b266]{font-size:14px;line-height:22px;color:#00000073;font-weight:400;font-family:Roboto Regular;width:100%;word-wrap:break-word;white-space:normal}[data-v-a974b266] .readonly .el-input-group__prepend,[data-v-a974b266] .readonly .el-input-group__append{background-color:#f3f3f3!important}[data-v-a974b266] .readonly .el-input__wrapper{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #c7c8ca inset}[data-v-a974b266] .readonly .el-input__wrapper .el-input__inner{background-color:#f3f3f3!important;font-size:14px;line-height:22px;color:#0b0b0b;font-weight:400;font-family:Roboto Regular;-webkit-text-fill-color:#0B0B0B!important}[data-v-a974b266] .selectreadonly .el-input__wrapper{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #c7c8ca inset}[data-v-a974b266] .selectreadonly .el-input__wrapper .el-input__inner{background-color:#f3f3f3!important;font-size:14px;line-height:22px;color:#0b0b0b;font-weight:400;font-family:Roboto Regular;-webkit-text-fill-color:#0B0B0B!important}[data-v-a974b266] .selectreadonly :deep(.el-input.is-disabled .el-input__inner){-webkit-text-fill-color:#0B0B0B!important}[data-v-a974b266] .el-input.is-disabled .el-input__wrapper{background-color:#f3f3f3!important;box-shadow:0 0 0 1px #d9d9d9 inset}