sinosoft-common-form 1.4.2 → 1.4.4

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