sinosoft-common-form 1.2.8 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/common-form.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { reactive as T, ref as A, computed as G, onMounted as J, watch as Q, toRefs as X, resolveComponent as v, openBlock as d, createBlock as n, mergeProps as Z, withModifiers as $, withCtx as o, createVNode as b, createElementBlock as p, Fragment as K, renderList as D, withDirectives as g, createElementVNode as y, normalizeStyle as k, toDisplayString as c, vShow as x, createTextVNode as f, createCommentVNode as w, withKeys as N, normalizeClass as W, renderSlot as R, createSlots as ee, pushScopeId as le, popScopeId as ae } from "vue";
2
- const oe = {
1
+ import { reactive as Q, ref as m, shallowRef as B, h as P, computed as R, onMounted as Z, watch as G, toRefs as J, resolveComponent as k, openBlock as o, createBlock as u, mergeProps as X, withModifiers as $, withCtx as d, createVNode as b, createElementBlock as s, Fragment as V, renderList as U, withDirectives as ee, createElementVNode as w, normalizeStyle as M, toDisplayString as c, createTextVNode as f, createCommentVNode as D, renderSlot as C, withKeys as O, normalizeClass as K, createSlots as le, vShow as ae, pushScopeId as oe, popScopeId as de } from "vue";
2
+ const se = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==", ne = {
3
3
  props: {
4
4
  fieldList: {
5
5
  type: Array,
@@ -8,161 +8,168 @@ const oe = {
8
8
  model: Object,
9
9
  options: Object
10
10
  },
11
- emits: ["selectChange", "radioChange", "checkChange", "submit", "reset"],
12
- setup(_, { emit: U }) {
13
- const C = T({
11
+ setup(r, { emit: N }) {
12
+ const g = Q({
14
13
  model: {}
15
- }), l = A(null), H = G(() => Object.assign([], _.options)), I = () => {
16
- C.model = _.model;
17
- }, r = (t, u, S) => {
18
- l.value && (u ? l.value.validate((m) => {
19
- if (m)
20
- U(S || "submit", C.model, t);
14
+ }), l = m(null), z = B({
15
+ render() {
16
+ return P("img", {
17
+ src: se
18
+ });
19
+ }
20
+ }), F = R(() => Object.assign([], r.options)), p = () => {
21
+ g.model = r.model;
22
+ }, x = (t, y, e) => {
23
+ l.value && (y ? l.value.validate((v) => {
24
+ if (v)
25
+ N(e || "submit", g.model, t);
21
26
  else
22
27
  return !1;
23
- }) : S === "reset" ? l.value.resetFields() : U(S || "submit", C.model, t));
24
- }, O = (t, u) => {
25
- U("selectChange", t, u);
26
- }, q = (t, u) => {
27
- U("radioChange", t, u);
28
- }, F = (t, u) => {
29
- U("checkChange", t, u);
30
- }, E = (t, u) => {
31
- const S = C.model[u].length;
32
- S !== 1 && (S > 1 && C.model[u].shift(), U("checkChange", t, u));
33
- }, Y = (t, u, S) => {
34
- r(t, u, S);
35
- }, z = (t, u) => {
36
- t && (u == null ? void 0 : u.key) === "Enter" && r(void 0, !0, "submit");
37
- }, M = (t) => {
28
+ }) : e === "reset" ? l.value.resetFields() : N(e || "submit", g.model, t));
29
+ }, j = (t, y) => {
30
+ N("selectChange", t, y);
31
+ }, I = (t, y) => {
32
+ N("radioChange", t, y);
33
+ }, L = (t, y) => {
34
+ N("checkChange", t, y);
35
+ }, A = (t, y) => {
36
+ const e = g.model[y].length;
37
+ e !== 1 && (e > 1 && g.model[y].shift(), N("checkChange", t, y));
38
+ }, S = (t, y, e) => {
39
+ x(t, y, e);
40
+ }, T = (t, y) => {
41
+ t && (y == null ? void 0 : y.key) === "Enter" && x(void 0, !0, "submit");
42
+ }, E = (t) => {
43
+ N("dateChange", t);
44
+ }, Y = (t) => {
38
45
  l.value.resetFields(t);
39
- }, B = (t) => {
46
+ }, q = (t) => {
40
47
  l.value.clearValidate(t);
41
48
  };
42
- return J(() => {
43
- I(), l.value.resetFields();
44
- }), Q(() => _.fieldList, (t, u) => {
45
- t !== u && I();
49
+ return Z(() => {
50
+ p(), l.value.resetFields();
51
+ }), G(() => r.fieldList, (t, y) => {
52
+ t !== y && p();
46
53
  }), {
47
- ...X(C),
54
+ ...J(g),
48
55
  formRef: l,
49
- states: C,
50
- formOptions: H,
51
- onSubmit: r,
52
- selectChange: O,
53
- radioChange: q,
54
- checkChange: F,
55
- handleCheckedChange: E,
56
- handleClick: Y,
57
- handleKeyUp: z,
58
- resetFieldsTest: M,
59
- clearValidateTest: B
56
+ states: g,
57
+ formOptions: F,
58
+ onSubmit: x,
59
+ selectChange: j,
60
+ radioChange: I,
61
+ checkChange: L,
62
+ handleCheckedChange: A,
63
+ prefixIcon: z,
64
+ handleClick: S,
65
+ handleKeyUp: T,
66
+ resetFieldsTest: Y,
67
+ clearValidateTest: q,
68
+ dateChange: E
60
69
  };
61
70
  }
62
71
  };
63
- const de = (_, U) => {
64
- const C = _.__vccOpts || _;
65
- for (const [l, H] of U)
66
- C[l] = H;
67
- return C;
68
- }, se = (_) => (le("data-v-7c0893c7"), _ = _(), ae(), _), ne = { class: "header-title" }, re = { class: "title-content" }, te = {
72
+ const re = (r, N) => {
73
+ const g = r.__vccOpts || r;
74
+ for (const [l, z] of N)
75
+ g[l] = z;
76
+ return g;
77
+ }, te = (r) => (oe("data-v-2127471b"), r = r(), de(), r), ue = { class: "header-title" }, pe = { class: "title-content" }, ce = {
69
78
  key: 0,
70
79
  class: "custom-required"
71
- }, pe = {
80
+ }, ye = {
72
81
  key: 0,
73
82
  class: "custom-required"
74
- }, ce = ["src"], ue = {
83
+ }, be = ["src"], ie = {
75
84
  key: 0,
76
85
  class: "custom-required"
77
- }, be = { class: "lable" }, ie = { class: "lable_note" }, ye = {
86
+ }, he = { class: "lable" }, fe = { class: "lable_note" }, Me = {
78
87
  key: 0,
79
88
  class: "custom-required"
80
- }, he = {
81
- key: 0,
82
- class: "custom-required"
83
- }, fe = {
89
+ }, ge = {
84
90
  key: 0,
85
91
  class: "custom-required"
86
92
  }, _e = {
87
93
  key: 0,
88
94
  class: "custom-required"
89
- }, ge = {
95
+ }, Ne = {
90
96
  key: 0,
91
97
  class: "custom-required"
92
98
  }, ke = {
93
99
  key: 0,
94
100
  class: "custom-required"
95
- }, xe = {
101
+ }, De = {
96
102
  key: 0,
97
103
  class: "custom-required"
98
104
  }, Ce = {
99
105
  key: 0,
100
106
  class: "custom-required"
101
- }, Ve = /* @__PURE__ */ se(() => /* @__PURE__ */ y("div", {
107
+ }, xe = {
108
+ key: 0,
109
+ class: "custom-required"
110
+ }, Ve = /* @__PURE__ */ te(() => /* @__PURE__ */ w("div", {
102
111
  class: "line",
103
112
  style: { "border-top": "1px solid #e8e8e8", width: "100%", height: "0px", margin: "20px 0" }
104
- }, null, -1)), ve = {
113
+ }, null, -1)), Ue = {
105
114
  key: 0,
106
115
  class: "custom-required"
107
116
  };
108
- function we(_, U, C, l, H, I) {
109
- const r = v("el-form-item"), O = v("el-input"), q = v("el-radio"), F = v("el-radio-group"), E = v("el-checkbox"), Y = v("el-checkbox-group"), z = v("el-option"), M = v("el-select"), B = v("el-date-picker"), t = v("el-col"), u = v("el-row"), S = v("sinosoft-common-button"), m = v("el-form");
110
- return d(), n(m, Z({
117
+ function we(r, N, g, l, z, F) {
118
+ const p = k("el-form-item"), x = k("el-input"), j = k("el-radio"), I = k("el-radio-group"), L = k("el-checkbox"), A = k("el-checkbox-group"), S = k("el-option"), T = k("el-select"), E = k("el-date-picker"), Y = k("el-col"), q = k("el-row"), t = k("sinosoft-common-button"), y = k("el-form");
119
+ return o(), u(y, X({
111
120
  "hide-required-asterisk": "",
112
- onSubmit: U[0] || (U[0] = $(() => {
121
+ onSubmit: N[0] || (N[0] = $(() => {
113
122
  }, ["prevent"])),
114
- model: C.model
123
+ model: g.model
115
124
  }, l.formOptions, {
116
125
  "label-position": l.formOptions.labelPosition,
117
126
  ref: "formRef"
118
127
  }), {
119
- default: o(() => [
120
- b(u, { gutter: 10 }, {
121
- default: o(() => [
122
- (d(!0), p(K, null, D(C.fieldList, (e, P) => g((d(), n(t, {
128
+ default: d(() => [
129
+ b(q, { gutter: 20 }, {
130
+ default: d(() => [
131
+ (o(!0), s(V, null, U(g.fieldList, (e, v) => ee((o(), u(Y, {
123
132
  xs: e.xs ? e.xs : 24,
124
133
  sm: e.sm ? e.sm : 24,
125
134
  md: e.md ? e.md : 8,
126
135
  lg: e.lg ? e.lg : 8,
127
136
  xl: e.xl ? e.xl : 8,
128
- key: P
137
+ key: v
129
138
  }, {
130
- default: o(() => [
131
- y("div", {
132
- style: k(e.style)
139
+ default: d(() => [
140
+ w("div", {
141
+ style: M(e.style)
133
142
  }, [
134
- e.type === "title" ? g((d(), n(r, { key: 0 }, {
135
- default: o(() => [
136
- y("div", ne, [
137
- y("span", re, c(e.title), 1)
143
+ e.type === "title" ? (o(), u(p, { key: 0 }, {
144
+ default: d(() => [
145
+ w("div", ue, [
146
+ w("span", pe, c(e.title), 1)
138
147
  ])
139
148
  ]),
140
149
  _: 2
141
- }, 1536)), [
142
- [x, !e.isHide]
143
- ]) : e.type === "name" ? g((d(), n(r, {
150
+ }, 1024)) : e.type === "name" ? (o(), u(p, {
144
151
  key: 1,
145
152
  label: e.label,
146
153
  disabled: e.disabled || l.formOptions.isDisabled,
147
- class: "container_name",
148
- rules: e.rules.nameEnFamily
154
+ class: "container_name"
149
155
  }, {
150
- label: o(() => [
151
- y("div", {
152
- style: k([{ display: "inline-block" }, e.labelStyle])
156
+ label: d(() => [
157
+ e.slotLabelName ? C(r.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (o(), s("div", {
158
+ key: 0,
159
+ style: M(e.labelStyle)
153
160
  }, [
154
161
  f(c(e.label) + " ", 1),
155
- e.required ? (d(), p("span", te, "*")) : w("", !0)
156
- ], 4)
162
+ e.required ? (o(), s("span", ce, "*")) : D("", !0)
163
+ ], 4))
157
164
  ]),
158
- default: o(() => [
159
- b(r, {
160
- rules: e.rules.nameEnFamily,
165
+ default: d(() => [
166
+ b(p, {
167
+ rules: e.isHide ? [] : e.rules.nameEnFamily,
161
168
  prop: e.field.nameEnFamily,
162
169
  class: "item-name"
163
170
  }, {
164
- default: o(() => [
165
- b(O, {
171
+ default: d(() => [
172
+ b(x, {
166
173
  maxlength: e.maxlength,
167
174
  modelValue: l.states.model[e.field.nameEnFamily],
168
175
  "onUpdate:modelValue": (a) => l.states.model[e.field.nameEnFamily] = a,
@@ -171,18 +178,18 @@ function we(_, U, C, l, H, I) {
171
178
  type: e.type ? e.type : "text",
172
179
  placeholder: e.placeholderNameEnFamily,
173
180
  disabled: e.disabled || l.formOptions.isDisabled,
174
- onKeyup: N((a) => l.handleKeyUp(e.enterable), ["enter"])
181
+ onKeyup: O((a) => l.handleKeyUp(e.enterable), ["enter"])
175
182
  }, null, 8, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
176
183
  ]),
177
184
  _: 2
178
185
  }, 1032, ["rules", "prop"]),
179
- b(r, {
180
- rules: e.rules.nameEn,
186
+ b(p, {
187
+ rules: e.isHide ? [] : e.rules.nameEn,
181
188
  prop: e.field.nameEn,
182
189
  class: "item-name-right"
183
190
  }, {
184
- default: o(() => [
185
- b(O, {
191
+ default: d(() => [
192
+ b(x, {
186
193
  maxlength: e.maxlength,
187
194
  modelValue: l.states.model[e.field.nameEn],
188
195
  "onUpdate:modelValue": (a) => l.states.model[e.field.nameEn] = a,
@@ -190,18 +197,18 @@ function we(_, U, C, l, H, I) {
190
197
  type: e.type ? e.type : "text",
191
198
  placeholder: e.placeholderNameEn,
192
199
  disabled: e.disabled || l.formOptions.isDisabled,
193
- onKeyup: N((a) => l.handleKeyUp(e.enterable), ["enter"])
200
+ onKeyup: O((a) => l.handleKeyUp(e.enterable), ["enter"])
194
201
  }, null, 8, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
195
202
  ]),
196
203
  _: 2
197
204
  }, 1032, ["rules", "prop"]),
198
- b(r, {
199
- rules: e.rules.nameChFamily,
205
+ b(p, {
206
+ rules: e.isHide ? [] : e.rules.nameChFamily,
200
207
  prop: e.field.nameChFamily,
201
208
  class: "item-name"
202
209
  }, {
203
- default: o(() => [
204
- b(O, {
210
+ default: d(() => [
211
+ b(x, {
205
212
  maxlength: e.maxlength,
206
213
  modelValue: l.states.model[e.field.nameChFamily],
207
214
  "onUpdate:modelValue": (a) => l.states.model[e.field.nameChFamily] = a,
@@ -209,18 +216,18 @@ function we(_, U, C, l, H, I) {
209
216
  type: e.type ? e.type : "text",
210
217
  placeholder: e.placeholderNameChFamily,
211
218
  disabled: e.disabled || l.formOptions.isDisabled,
212
- onKeyup: N((a) => l.handleKeyUp(e.enterable), ["enter"])
219
+ onKeyup: O((a) => l.handleKeyUp(e.enterable), ["enter"])
213
220
  }, null, 8, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
214
221
  ]),
215
222
  _: 2
216
223
  }, 1032, ["rules", "prop"]),
217
- b(r, {
218
- rules: e.rules.nameCh,
224
+ b(p, {
225
+ rules: e.isHide ? [] : e.rules.nameCh,
219
226
  prop: e.field.nameCh,
220
227
  class: "item-name-right"
221
228
  }, {
222
- default: o(() => [
223
- b(O, {
229
+ default: d(() => [
230
+ b(x, {
224
231
  maxlength: e.maxlength,
225
232
  modelValue: l.states.model[e.field.nameCh],
226
233
  "onUpdate:modelValue": (a) => l.states.model[e.field.nameCh] = a,
@@ -228,52 +235,51 @@ function we(_, U, C, l, H, I) {
228
235
  type: e.type ? e.type : "text",
229
236
  placeholder: e.placeholderNameCh,
230
237
  disabled: e.disabled || l.formOptions.isDisabled,
231
- onKeyup: N((a) => l.handleKeyUp(e.enterable), ["enter"])
238
+ onKeyup: O((a) => l.handleKeyUp(e.enterable), ["enter"])
232
239
  }, null, 8, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
233
240
  ]),
234
241
  _: 2
235
242
  }, 1032, ["rules", "prop"])
236
243
  ]),
237
244
  _: 2
238
- }, 1032, ["label", "disabled", "rules"])), [
239
- [x, !e.isHide]
240
- ]) : e.type === "gender" ? g((d(), n(r, {
245
+ }, 1032, ["label", "disabled"])) : e.type === "gender" ? (o(), u(p, {
241
246
  key: 2,
242
247
  label: e.label,
243
- rules: e.rules,
248
+ rules: e.isHide ? [] : e.rules,
244
249
  prop: e.field
245
250
  }, {
246
- label: o(() => [
247
- y("div", {
248
- style: k([{ display: "inline-block" }, e.labelStyle])
251
+ label: d(() => [
252
+ e.slotLabelName ? C(r.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (o(), s("div", {
253
+ key: 0,
254
+ style: M(e.labelStyle)
249
255
  }, [
250
256
  f(c(e.label) + " ", 1),
251
- e.required ? (d(), p("span", pe, "*")) : w("", !0)
252
- ], 4)
257
+ e.required ? (o(), s("span", ye, "*")) : D("", !0)
258
+ ], 4))
253
259
  ]),
254
- default: o(() => [
255
- b(F, {
260
+ default: d(() => [
261
+ b(I, {
256
262
  modelValue: l.states.model[e.field],
257
263
  "onUpdate:modelValue": (a) => l.states.model[e.field] = a,
258
264
  disabled: e.disabled || l.formOptions.isDisabled,
259
265
  onChange: (a) => l.radioChange(a, e.field)
260
266
  }, {
261
- default: o(() => {
267
+ default: d(() => {
262
268
  var a;
263
269
  return [
264
- (d(!0), p(K, null, D((a = e.options) == null ? void 0 : a.data, (s) => {
270
+ (o(!0), s(V, null, U((a = e.options) == null ? void 0 : a.data, (n) => {
265
271
  var i, h;
266
- return d(), n(q, {
267
- label: s[((i = e.options) == null ? void 0 : i.valueKey) || "code"],
272
+ return o(), u(j, {
273
+ label: n[((i = e.options) == null ? void 0 : i.valueKey) || "code"],
268
274
  size: "large",
269
- key: s[((h = e.options) == null ? void 0 : h.valueKey) || "code"]
275
+ key: n[((h = e.options) == null ? void 0 : h.valueKey) || "code"]
270
276
  }, {
271
- default: o(() => [
272
- y("img", {
273
- src: s.code === "M" ? "http://192.168.5.200:9000/test/sex_img_M.png" : "http://192.168.5.200:9000/test/sex_img_F.png",
277
+ default: d(() => [
278
+ w("img", {
279
+ src: n.code === "M" ? "http://192.168.5.200:9000/test/sex_img_M.png" : "http://192.168.5.200:9000/test/sex_img_F.png",
274
280
  style: { width: "44px", height: "44px", "margin-bottom": "-15px", "margin-left": "4px" },
275
281
  alt: ""
276
- }, null, 8, ce)
282
+ }, null, 8, be)
277
283
  ]),
278
284
  _: 2
279
285
  }, 1032, ["label"]);
@@ -284,44 +290,43 @@ function we(_, U, C, l, H, I) {
284
290
  }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
285
291
  ]),
286
292
  _: 2
287
- }, 1032, ["label", "rules", "prop"])), [
288
- [x, !e.isHide]
289
- ]) : e.type === "radio" ? g((d(), n(r, {
293
+ }, 1032, ["label", "rules", "prop"])) : e.type === "radio" ? (o(), u(p, {
290
294
  key: 3,
291
295
  label: e.label,
292
- rules: e.rules,
296
+ rules: e.isHide ? [] : e.rules,
293
297
  prop: e.field,
294
- class: W([e.labelNode ? "radio_Note" : "rule_err"])
298
+ class: K([e.labelNode ? "radio_Note" : "rule_err"])
295
299
  }, {
296
- label: o(() => [
297
- y("div", {
298
- style: k([{ display: "inline-block" }, e.labelStyle])
300
+ label: d(() => [
301
+ e.slotLabelName ? C(r.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (o(), s("div", {
302
+ key: 0,
303
+ style: M(e.labelStyle)
299
304
  }, [
300
305
  f(c(e.label) + " ", 1),
301
- e.required ? (d(), p("span", ue, "*")) : w("", !0)
302
- ], 4)
306
+ e.required ? (o(), s("span", ie, "*")) : D("", !0)
307
+ ], 4))
303
308
  ]),
304
- default: o(() => [
305
- b(F, {
309
+ default: d(() => [
310
+ b(I, {
306
311
  modelValue: l.states.model[e.field],
307
312
  "onUpdate:modelValue": (a) => l.states.model[e.field] = a,
308
313
  disabled: e.disabled || l.formOptions.isDisabled,
309
314
  onChange: (a) => l.radioChange(a, e.field)
310
315
  }, {
311
- default: o(() => {
316
+ default: d(() => {
312
317
  var a;
313
318
  return [
314
- (d(!0), p(K, null, D((a = e.options) == null ? void 0 : a.data, (s) => {
319
+ (o(!0), s(V, null, U((a = e.options) == null ? void 0 : a.data, (n) => {
315
320
  var i, h;
316
- return d(), n(q, {
321
+ return o(), u(j, {
317
322
  size: "large",
318
- label: s[((i = e.options) == null ? void 0 : i.valueKey) || "code"],
319
- key: s[((h = e.options) == null ? void 0 : h.valueKey) || "code"]
323
+ label: n[((i = e.options) == null ? void 0 : i.valueKey) || "code"],
324
+ key: n[((h = e.options) == null ? void 0 : h.valueKey) || "code"]
320
325
  }, {
321
- default: o(() => {
322
- var V;
326
+ default: d(() => {
327
+ var _;
323
328
  return [
324
- f(c(s[((V = e.options) == null ? void 0 : V.labelkey) || "name"]), 1)
329
+ f(c(n[((_ = e.options) == null ? void 0 : _.labelkey) || "name"]), 1)
325
330
  ];
326
331
  }),
327
332
  _: 2
@@ -333,41 +338,39 @@ function we(_, U, C, l, H, I) {
333
338
  }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
334
339
  ]),
335
340
  _: 2
336
- }, 1032, ["label", "rules", "prop", "class"])), [
337
- [x, !e.isHide]
338
- ]) : e.type === "radioNote" ? g((d(), n(r, {
341
+ }, 1032, ["label", "rules", "prop", "class"])) : e.type === "radioNote" ? (o(), u(p, {
339
342
  key: 4,
340
343
  label: e.label,
341
- rules: e.rules,
344
+ rules: e.isHide ? [] : e.rules,
342
345
  prop: e.field,
343
- class: W([e.labelNode ? "radio_Note" : "rule_err"])
346
+ class: K([e.labelNode ? "radio_Note" : "rule_err"])
344
347
  }, {
345
- default: o(() => [
346
- y("div", null, [
347
- y("span", be, c(e.labelBefore), 1),
348
- y("span", ie, c(e.labelNode), 1),
349
- e.required ? (d(), p("span", ye, "*")) : w("", !0)
348
+ default: d(() => [
349
+ w("div", null, [
350
+ w("span", he, c(e.labelBefore), 1),
351
+ w("span", fe, c(e.labelNode), 1),
352
+ e.required ? (o(), s("span", Me, "*")) : D("", !0)
350
353
  ]),
351
- b(F, {
354
+ b(I, {
352
355
  modelValue: l.states.model[e.field],
353
356
  "onUpdate:modelValue": (a) => l.states.model[e.field] = a,
354
357
  disabled: e.disabled || l.formOptions.isDisabled,
355
358
  onChange: (a) => l.radioChange(a, e.field)
356
359
  }, {
357
- default: o(() => {
360
+ default: d(() => {
358
361
  var a;
359
362
  return [
360
- (d(!0), p(K, null, D((a = e.options) == null ? void 0 : a.data, (s) => {
363
+ (o(!0), s(V, null, U((a = e.options) == null ? void 0 : a.data, (n) => {
361
364
  var i, h;
362
- return d(), n(q, {
365
+ return o(), u(j, {
363
366
  size: "large",
364
- label: s[((i = e.options) == null ? void 0 : i.valueKey) || "code"],
365
- key: s[((h = e.options) == null ? void 0 : h.valueKey) || "code"]
367
+ label: n[((i = e.options) == null ? void 0 : i.valueKey) || "code"],
368
+ key: n[((h = e.options) == null ? void 0 : h.valueKey) || "code"]
366
369
  }, {
367
- default: o(() => {
368
- var V;
370
+ default: d(() => {
371
+ var _;
369
372
  return [
370
- f(c(s[((V = e.options) == null ? void 0 : V.labelkey) || "name"]), 1)
373
+ f(c(n[((_ = e.options) == null ? void 0 : _.labelkey) || "name"]), 1)
371
374
  ];
372
375
  }),
373
376
  _: 2
@@ -379,45 +382,44 @@ function we(_, U, C, l, H, I) {
379
382
  }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
380
383
  ]),
381
384
  _: 2
382
- }, 1032, ["label", "rules", "prop", "class"])), [
383
- [x, !e.isHide]
384
- ]) : e.type === "checkbox" ? g((d(), n(r, {
385
+ }, 1032, ["label", "rules", "prop", "class"])) : e.type === "checkbox" ? (o(), u(p, {
385
386
  key: 5,
386
387
  label: e.label,
387
- rules: e.rules,
388
+ rules: e.isHide ? [] : e.rules,
388
389
  prop: e.field
389
390
  }, {
390
- label: o(() => [
391
- y("div", {
392
- style: k([{ display: "inline-block" }, e.labelStyle])
391
+ label: d(() => [
392
+ e.slotLabelName ? C(r.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (o(), s("div", {
393
+ key: 0,
394
+ style: M(e.labelStyle)
393
395
  }, [
394
396
  f(c(e.label) + " ", 1),
395
- e.required ? (d(), p("span", he, "*")) : w("", !0)
396
- ], 4)
397
+ e.required ? (o(), s("span", ge, "*")) : D("", !0)
398
+ ], 4))
397
399
  ]),
398
- default: o(() => [
399
- b(Y, {
400
+ default: d(() => [
401
+ b(A, {
400
402
  modelValue: l.states.model[e.field],
401
403
  "onUpdate:modelValue": (a) => l.states.model[e.field] = a,
402
404
  onChange: (a) => l.checkChange(a, e.field),
403
405
  disabled: e.disabled || l.formOptions.isDisabled,
404
- style: k(
406
+ style: M(
405
407
  e.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
406
408
  )
407
409
  }, {
408
- default: o(() => {
410
+ default: d(() => {
409
411
  var a;
410
412
  return [
411
- (d(!0), p(K, null, D((a = e.options) == null ? void 0 : a.data, (s) => {
413
+ (o(!0), s(V, null, U((a = e.options) == null ? void 0 : a.data, (n) => {
412
414
  var i, h;
413
- return d(), n(E, {
414
- key: s[((i = e.options) == null ? void 0 : i.valueKey) || "code"],
415
- label: s[((h = e.options) == null ? void 0 : h.valueKey) || "code"]
415
+ return o(), u(L, {
416
+ key: n[((i = e.options) == null ? void 0 : i.valueKey) || "code"],
417
+ label: n[((h = e.options) == null ? void 0 : h.valueKey) || "code"]
416
418
  }, {
417
- default: o(() => {
418
- var V;
419
+ default: d(() => {
420
+ var _;
419
421
  return [
420
- f(c(s[((V = e.options) == null ? void 0 : V.labelkey) || "name"]), 1)
422
+ f(c(n[((_ = e.options) == null ? void 0 : _.labelkey) || "name"]), 1)
421
423
  ];
422
424
  }),
423
425
  _: 2
@@ -429,45 +431,44 @@ function we(_, U, C, l, H, I) {
429
431
  }, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
430
432
  ]),
431
433
  _: 2
432
- }, 1032, ["label", "rules", "prop"])), [
433
- [x, !e.isHide]
434
- ]) : e.type === "checkboxRadio" ? g((d(), n(r, {
434
+ }, 1032, ["label", "rules", "prop"])) : e.type === "checkboxRadio" ? (o(), u(p, {
435
435
  key: 6,
436
436
  label: e.label,
437
- rules: e.rules,
437
+ rules: e.isHide ? [] : e.rules,
438
438
  prop: e.field
439
439
  }, {
440
- label: o(() => [
441
- y("div", {
442
- style: k([{ display: "inline-block" }, e.labelStyle])
440
+ label: d(() => [
441
+ e.slotLabelName ? C(r.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (o(), s("div", {
442
+ key: 0,
443
+ style: M(e.labelStyle)
443
444
  }, [
444
445
  f(c(e.label) + " ", 1),
445
- e.required ? (d(), p("span", fe, "*")) : w("", !0)
446
- ], 4)
446
+ e.required ? (o(), s("span", _e, "*")) : D("", !0)
447
+ ], 4))
447
448
  ]),
448
- default: o(() => [
449
- b(Y, {
449
+ default: d(() => [
450
+ b(A, {
450
451
  modelValue: l.states.model[e.field],
451
452
  "onUpdate:modelValue": (a) => l.states.model[e.field] = a,
452
453
  onChange: (a) => l.handleCheckedChange(a, e.field),
453
454
  disabled: e.disabled || l.formOptions.isDisabled,
454
- style: k(
455
+ style: M(
455
456
  e.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
456
457
  )
457
458
  }, {
458
- default: o(() => {
459
+ default: d(() => {
459
460
  var a;
460
461
  return [
461
- (d(!0), p(K, null, D((a = e.options) == null ? void 0 : a.data, (s) => {
462
+ (o(!0), s(V, null, U((a = e.options) == null ? void 0 : a.data, (n) => {
462
463
  var i, h;
463
- return d(), n(E, {
464
- key: s[((i = e.options) == null ? void 0 : i.valueKey) || "code"],
465
- label: s[((h = e.options) == null ? void 0 : h.valueKey) || "code"]
464
+ return o(), u(L, {
465
+ key: n[((i = e.options) == null ? void 0 : i.valueKey) || "code"],
466
+ label: n[((h = e.options) == null ? void 0 : h.valueKey) || "code"]
466
467
  }, {
467
- default: o(() => {
468
- var V;
468
+ default: d(() => {
469
+ var _;
469
470
  return [
470
- f(c(s[((V = e.options) == null ? void 0 : V.labelkey) || "name"]), 1)
471
+ f(c(n[((_ = e.options) == null ? void 0 : _.labelkey) || "name"]), 1)
471
472
  ];
472
473
  }),
473
474
  _: 2
@@ -479,25 +480,24 @@ function we(_, U, C, l, H, I) {
479
480
  }, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
480
481
  ]),
481
482
  _: 2
482
- }, 1032, ["label", "rules", "prop"])), [
483
- [x, !e.isHide]
484
- ]) : e.type === "select" ? g((d(), n(r, {
483
+ }, 1032, ["label", "rules", "prop"])) : e.type === "select" ? (o(), u(p, {
485
484
  key: 7,
486
485
  label: e.label,
487
- rules: e.rules,
486
+ rules: e.isHide ? [] : e.rules,
488
487
  disabled: e.disabled || l.formOptions.isDisabled,
489
488
  prop: e.field
490
489
  }, {
491
- label: o(() => [
492
- y("div", {
493
- style: k([{ display: "inline-block" }, e.labelStyle])
490
+ label: d(() => [
491
+ e.slotLabelName ? C(r.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (o(), s("div", {
492
+ key: 0,
493
+ style: M(e.labelStyle)
494
494
  }, [
495
495
  f(c(e.label) + " ", 1),
496
- e.required ? (d(), p("span", _e, "*")) : w("", !0)
497
- ], 4)
496
+ e.required ? (o(), s("span", Ne, "*")) : D("", !0)
497
+ ], 4))
498
498
  ]),
499
- default: o(() => [
500
- b(M, {
499
+ default: d(() => [
500
+ b(T, {
501
501
  onChange: (a) => l.selectChange(a, e.field),
502
502
  modelValue: l.states.model[e.field],
503
503
  "onUpdate:modelValue": (a) => l.states.model[e.field] = a,
@@ -505,128 +505,128 @@ function we(_, U, C, l, H, I) {
505
505
  placeholder: e.placeholder,
506
506
  clearable: e.clearable
507
507
  }, {
508
- default: o(() => {
508
+ default: d(() => {
509
509
  var a;
510
510
  return [
511
- (d(!0), p(K, null, D((a = e.options) == null ? void 0 : a.data, (s) => {
512
- var i, h, V;
513
- return d(), n(z, {
514
- key: s[((i = e.options) == null ? void 0 : i.valueKey) || "code"],
515
- label: s[((h = e.options) == null ? void 0 : h.labelkey) || "name"],
516
- value: s[((V = e.options) == null ? void 0 : V.valueKey) || "code"]
511
+ (o(!0), s(V, null, U((a = e.options) == null ? void 0 : a.data, (n) => {
512
+ var i, h, _;
513
+ return o(), u(S, {
514
+ key: n[((i = e.options) == null ? void 0 : i.valueKey) || "code"],
515
+ label: n[((h = e.options) == null ? void 0 : h.labelkey) || "name"],
516
+ value: n[((_ = e.options) == null ? void 0 : _.valueKey) || "code"]
517
517
  }, null, 8, ["label", "value"]);
518
518
  }), 128))
519
519
  ];
520
520
  }),
521
521
  _: 2
522
522
  }, 1032, ["onChange", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "clearable"]),
523
- y("div", {
523
+ w("div", {
524
524
  class: "item_tips_blow",
525
- style: k(e.tipsBlowStyle)
525
+ style: M(e.tipsBlowStyle)
526
526
  }, c(e.tipsBlow), 5)
527
527
  ]),
528
528
  _: 2
529
- }, 1032, ["label", "rules", "disabled", "prop"])), [
530
- [x, !e.isHide]
531
- ]) : e.type === "date" ? g((d(), n(r, {
529
+ }, 1032, ["label", "rules", "disabled", "prop"])) : e.type === "date" ? (o(), u(p, {
532
530
  key: 8,
533
531
  label: e.label,
534
- rules: e.rules,
532
+ rules: e.isHide ? [] : e.rules,
535
533
  prop: e.field
536
534
  }, {
537
- label: o(() => [
538
- y("div", {
539
- style: k([{ display: "inline-block" }, e.labelStyle])
535
+ label: d(() => [
536
+ e.slotLabelName ? C(r.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (o(), s("div", {
537
+ key: 0,
538
+ style: M(e.labelStyle)
540
539
  }, [
541
540
  f(c(e.label) + " ", 1),
542
- e.required ? (d(), p("span", ge, "*")) : w("", !0)
543
- ], 4)
541
+ e.required ? (o(), s("span", ke, "*")) : D("", !0)
542
+ ], 4))
544
543
  ]),
545
- default: o(() => [
546
- b(B, {
544
+ default: d(() => [
545
+ b(E, {
547
546
  format: "DD/MM/YYYY",
548
547
  "value-format": "DD/MM/YYYY",
549
548
  "disabled-date": e.disabledDate,
549
+ onChange: l.dateChange,
550
+ "prefix-icon": l.prefixIcon,
550
551
  modelValue: l.states.model[e.field],
551
552
  "onUpdate:modelValue": (a) => l.states.model[e.field] = a,
552
553
  disabled: e.disabled || l.formOptions.isDisabled,
553
554
  readonly: e.readonly,
554
555
  type: e.type,
555
556
  placeholder: e.placeholder || e.label
556
- }, null, 8, ["disabled-date", "modelValue", "onUpdate:modelValue", "disabled", "readonly", "type", "placeholder"])
557
+ }, null, 8, ["disabled-date", "onChange", "prefix-icon", "modelValue", "onUpdate:modelValue", "disabled", "readonly", "type", "placeholder"])
557
558
  ]),
558
559
  _: 2
559
- }, 1032, ["label", "rules", "prop"])), [
560
- [x, !e.isHide]
561
- ]) : e.type === "daterange" ? g((d(), n(r, {
560
+ }, 1032, ["label", "rules", "prop"])) : e.type === "daterange" ? (o(), u(p, {
562
561
  key: 9,
563
562
  label: e.label,
564
- rules: e.rules,
563
+ rules: e.isHide ? [] : e.rules,
565
564
  prop: e.field
566
565
  }, {
567
- label: o(() => [
568
- y("div", {
569
- style: k([{ display: "inline-block" }, e.labelStyle])
566
+ label: d(() => [
567
+ e.slotLabelName ? C(r.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (o(), s("div", {
568
+ key: 0,
569
+ style: M(e.labelStyle)
570
570
  }, [
571
571
  f(c(e.label) + " ", 1),
572
- e.required ? (d(), p("span", ke, "*")) : w("", !0)
573
- ], 4)
572
+ e.required ? (o(), s("span", De, "*")) : D("", !0)
573
+ ], 4))
574
574
  ]),
575
- default: o(() => [
576
- b(B, {
575
+ default: d(() => [
576
+ b(E, {
577
577
  format: "DD/MM/YYYY",
578
578
  "value-format": "DD/MM/YYYY",
579
579
  "disabled-date": e.disabledDate,
580
+ onChange: l.dateChange,
580
581
  modelValue: l.states.model[e.field],
581
582
  "onUpdate:modelValue": (a) => l.states.model[e.field] = a,
583
+ "prefix-icon": l.prefixIcon,
582
584
  type: "daterange",
583
585
  "range-separator": "To",
584
586
  "start-placeholder": e.startPlaceholder,
585
587
  "end-placeholder": e.endPlaceholder,
586
588
  size: "large"
587
- }, null, 8, ["disabled-date", "modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder"])
589
+ }, null, 8, ["disabled-date", "onChange", "modelValue", "onUpdate:modelValue", "prefix-icon", "start-placeholder", "end-placeholder"])
588
590
  ]),
589
591
  _: 2
590
- }, 1032, ["label", "rules", "prop"])), [
591
- [x, !e.isHide]
592
- ]) : e.type === "slotItem" ? g((d(), n(r, {
592
+ }, 1032, ["label", "rules", "prop"])) : e.type === "slotItem" ? (o(), u(p, {
593
593
  key: 10,
594
594
  label: e.label,
595
- rules: e.rules,
595
+ rules: e.isHide ? [] : e.rules,
596
596
  prop: e.field,
597
597
  class: "rule_err"
598
598
  }, {
599
- label: o(() => [
600
- y("div", {
601
- style: k([{ display: "inline-block" }, e.labelStyle])
599
+ label: d(() => [
600
+ e.slotLabelName ? C(r.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (o(), s("div", {
601
+ key: 0,
602
+ style: M(e.labelStyle)
602
603
  }, [
603
604
  f(c(e.label) + " ", 1),
604
- e.required ? (d(), p("span", xe, "*")) : w("", !0)
605
- ], 4)
605
+ e.required ? (o(), s("span", Ce, "*")) : D("", !0)
606
+ ], 4))
606
607
  ]),
607
- default: o(() => [
608
- R(_.$slots, e.slotItemName, {}, void 0, !0)
608
+ default: d(() => [
609
+ C(r.$slots, e.slotItemName, {}, void 0, !0)
609
610
  ]),
610
611
  _: 2
611
- }, 1032, ["label", "rules", "prop"])), [
612
- [x, !e.isHide]
613
- ]) : e.type === "phone" ? g((d(), n(r, {
612
+ }, 1032, ["label", "rules", "prop"])) : e.type === "phone" ? (o(), u(p, {
614
613
  key: 11,
615
614
  label: e.label,
616
- rules: e.rules.phoneNumber,
615
+ rules: e.isHide ? [] : e.rules.phoneNumber,
617
616
  prop: e.field.phoneNumber,
618
617
  class: "phone_item"
619
618
  }, {
620
- label: o(() => [
621
- y("div", {
622
- style: k([{ display: "inline-block" }, e.labelStyle])
619
+ label: d(() => [
620
+ e.slotLabelName ? C(r.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (o(), s("div", {
621
+ key: 0,
622
+ style: M(e.labelStyle)
623
623
  }, [
624
624
  f(c(e.label) + " ", 1),
625
- e.required ? (d(), p("span", Ce, "*")) : w("", !0)
626
- ], 4)
625
+ e.required ? (o(), s("span", xe, "*")) : D("", !0)
626
+ ], 4))
627
627
  ]),
628
- default: o(() => [
629
- b(O, {
628
+ default: d(() => [
629
+ b(x, {
630
630
  maxlength: e.maxlength,
631
631
  modelValue: l.states.model[e.field.phoneNumber],
632
632
  "onUpdate:modelValue": (a) => l.states.model[e.field.phoneNumber] = a,
@@ -634,20 +634,20 @@ function we(_, U, C, l, H, I) {
634
634
  placeholder: e.placeholder || "请选择",
635
635
  clearable: e.clearable
636
636
  }, {
637
- prepend: o(() => {
637
+ prepend: d(() => {
638
638
  var a;
639
639
  return [
640
- b(M, {
640
+ b(T, {
641
641
  disabled: e.disabled || l.formOptions.isDisabled,
642
642
  modelValue: l.states.model[e.field.areaCode],
643
- "onUpdate:modelValue": (s) => l.states.model[e.field.areaCode] = s,
643
+ "onUpdate:modelValue": (n) => l.states.model[e.field.areaCode] = n,
644
644
  placeholder: ((a = e.options) == null ? void 0 : a.placeholder) || "请选择",
645
645
  style: { width: "115px" }
646
646
  }, {
647
- default: o(() => {
648
- var s;
647
+ default: d(() => {
648
+ var n;
649
649
  return [
650
- (d(!0), p(K, null, D((s = e.options) == null ? void 0 : s.data, (i, h) => (d(), n(z, {
650
+ (o(!0), s(V, null, U((n = e.options) == null ? void 0 : n.data, (i, h) => (o(), u(S, {
651
651
  label: i.name,
652
652
  value: i.code,
653
653
  key: h
@@ -662,34 +662,31 @@ function we(_, U, C, l, H, I) {
662
662
  }, 1032, ["maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "clearable"])
663
663
  ]),
664
664
  _: 2
665
- }, 1032, ["label", "rules", "prop"])), [
666
- [x, !e.isHide]
667
- ]) : e.type === "line" ? g((d(), n(r, {
665
+ }, 1032, ["label", "rules", "prop"])) : e.type === "line" ? (o(), u(p, {
668
666
  key: 12,
669
667
  label: e.label
670
668
  }, {
671
- default: o(() => [
669
+ default: d(() => [
672
670
  Ve
673
671
  ]),
674
672
  _: 2
675
- }, 1032, ["label"])), [
676
- [x, !e.isHide]
677
- ]) : g((d(), n(r, {
673
+ }, 1032, ["label"])) : (o(), u(p, {
678
674
  key: 13,
679
- label: e.label,
680
- rules: e.rules,
681
- prop: e.field
675
+ rules: e.isHide ? [] : e.rules,
676
+ prop: e.field,
677
+ class: K(e.prepend ? "input-item" : "")
682
678
  }, {
683
- label: o(() => [
684
- y("div", {
685
- style: k([{ display: "inline-block" }, e.labelStyle])
679
+ label: d(() => [
680
+ e.slotLabelName ? C(r.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (o(), s("div", {
681
+ key: 0,
682
+ style: M(e.labelStyle)
686
683
  }, [
687
684
  f(c(e.label) + " ", 1),
688
- e.required ? (d(), p("span", ve, "*")) : w("", !0)
689
- ], 4)
685
+ e.required ? (o(), s("span", Ue, "*")) : D("", !0)
686
+ ], 4))
690
687
  ]),
691
- default: o(() => [
692
- b(O, {
688
+ default: d(() => [
689
+ b(x, {
693
690
  maxlength: e.maxlength,
694
691
  modelValue: l.states.model[e.field],
695
692
  "onUpdate:modelValue": (a) => l.states.model[e.field] = a,
@@ -699,18 +696,18 @@ function we(_, U, C, l, H, I) {
699
696
  disabled: e.disabled || l.formOptions.isDisabled,
700
697
  showPassword: e.showPassword,
701
698
  clearable: e.clearable,
702
- onKeyup: N((a) => l.handleKeyUp(e.enterable), ["enter"])
703
- }, ee({ _: 2 }, [
699
+ onKeyup: O((a) => l.handleKeyUp(e.enterable), ["enter"])
700
+ }, le({ _: 2 }, [
704
701
  e.prepend ? {
705
702
  name: "prepend",
706
- fn: o(() => [
707
- f(c(e.field), 1)
703
+ fn: d(() => [
704
+ f(c(e.prepend), 1)
708
705
  ]),
709
706
  key: "0"
710
707
  } : void 0,
711
708
  e.append ? {
712
709
  name: "append",
713
- fn: o(() => [
710
+ fn: d(() => [
714
711
  f(c(e.append), 1)
715
712
  ]),
716
713
  key: "1"
@@ -718,26 +715,24 @@ function we(_, U, C, l, H, I) {
718
715
  ]), 1032, ["maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
719
716
  ]),
720
717
  _: 2
721
- }, 1032, ["label", "rules", "prop"])), [
722
- [x, !e.isHide]
723
- ])
718
+ }, 1032, ["rules", "prop", "class"]))
724
719
  ], 4)
725
720
  ]),
726
721
  _: 2
727
722
  }, 1032, ["xs", "sm", "md", "lg", "xl"])), [
728
- [x, !e.isHide]
723
+ [ae, !e.isHide]
729
724
  ])), 128))
730
725
  ]),
731
726
  _: 3
732
727
  }),
733
- b(r, { class: "btnsItem" }, {
734
- default: o(() => [
735
- R(_.$slots, "buttons", {
736
- model: C.model,
728
+ b(p, { class: "btnsItem" }, {
729
+ default: d(() => [
730
+ C(r.$slots, "buttons", {
731
+ model: g.model,
737
732
  onBtnClick: l.onSubmit
738
733
  }, () => [
739
- (d(!0), p(K, null, D(l.formOptions.btnConfig, (e, P) => (d(), p("div", { key: P }, [
740
- e.isShow ? (d(), n(S, {
734
+ (o(!0), s(V, null, U(l.formOptions.btnConfig, (e, v) => (o(), s("div", { key: v }, [
735
+ e.isShow ? (o(), u(t, {
741
736
  key: 0,
742
737
  btnCode: e.btnCode,
743
738
  plain: e.plain,
@@ -760,14 +755,14 @@ function we(_, U, C, l, H, I) {
760
755
  fontSize: e.fontSize,
761
756
  fontWeight: e.fontWeight,
762
757
  styleObj: { ...e.style },
763
- class: W(e.class),
758
+ class: K(e.class),
764
759
  onHandleClick: (a) => l.handleClick(a, e.isRule, e.emitName)
765
760
  }, {
766
- default: o(() => [
761
+ default: d(() => [
767
762
  f(c(e.name), 1)
768
763
  ]),
769
764
  _: 2
770
- }, 1032, ["btnCode", "plain", "primary", "info", "text", "link", "loading", "loadingColor", "width", "height", "circle", "color", "bgColor", "borderColor", "borderStyle", "borderWidth", "icon", "size", "fontSize", "fontWeight", "styleObj", "class", "onHandleClick"])) : w("", !0)
765
+ }, 1032, ["btnCode", "plain", "primary", "info", "text", "link", "loading", "loadingColor", "width", "height", "circle", "color", "bgColor", "borderColor", "borderStyle", "borderWidth", "icon", "size", "fontSize", "fontWeight", "styleObj", "class", "onHandleClick"])) : D("", !0)
771
766
  ]))), 128))
772
767
  ], !0)
773
768
  ]),
@@ -777,11 +772,11 @@ function we(_, U, C, l, H, I) {
777
772
  _: 3
778
773
  }, 16, ["model", "label-position"]);
779
774
  }
780
- const L = /* @__PURE__ */ de(oe, [["render", we], ["__scopeId", "data-v-7c0893c7"]]);
781
- function j(_, U = {}) {
782
- j.installed || (j.installed = !0, _.component("common-el-form", L));
775
+ const W = /* @__PURE__ */ re(ne, [["render", we], ["__scopeId", "data-v-2127471b"]]);
776
+ function H(r, N = {}) {
777
+ H.installed || (H.installed = !0, r.component("common-el-form", W));
783
778
  }
784
- L.install = j;
779
+ W.install = H;
785
780
  export {
786
- L as default
781
+ W as default
787
782
  };
@@ -1 +1 @@
1
- (function(e,k){typeof exports=="object"&&typeof module<"u"?module.exports=k(require("vue")):typeof define=="function"&&define.amd?define(["vue"],k):(e=typeof globalThis<"u"?globalThis:e||self,e.Form=k(e.Vue))})(this,function(e){"use strict";const k={props:{fieldList:{type:Array,required:!0},model:Object,options:Object},emits:["selectChange","radioChange","checkChange","submit","reset"],setup(i,{emit:y}){const p=e.reactive({model:{}}),o=e.ref(null),V=e.computed(()=>Object.assign([],i.options)),D=()=>{p.model=i.model},t=(n,r,b)=>{o.value&&(r?o.value.validate(E=>{if(E)y(b||"submit",p.model,n);else return!1}):b==="reset"?o.value.resetFields():y(b||"submit",p.model,n))},f=(n,r)=>{y("selectChange",n,r)},_=(n,r)=>{y("radioChange",n,r)},C=(n,r)=>{y("checkChange",n,r)},x=(n,r)=>{const b=p.model[r].length;b!==1&&(b>1&&p.model[r].shift(),y("checkChange",n,r))},g=(n,r,b)=>{t(n,r,b)},w=(n,r)=>{n&&(r==null?void 0:r.key)==="Enter"&&t(void 0,!0,"submit")},m=n=>{o.value.resetFields(n)},B=n=>{o.value.clearValidate(n)};return e.onMounted(()=>{D(),o.value.resetFields()}),e.watch(()=>i.fieldList,(n,r)=>{n!==r&&D()}),{...e.toRefs(p),formRef:o,states:p,formOptions:V,onSubmit:t,selectChange:f,radioChange:_,checkChange:C,handleCheckedChange:x,handleClick:g,handleKeyUp:w,resetFieldsTest:m,clearValidateTest:B}}},$="",K=(i,y)=>{const p=i.__vccOpts||i;for(const[o,V]of y)p[o]=V;return p},z=i=>(e.pushScopeId("data-v-7c0893c7"),i=i(),e.popScopeId(),i),F={class:"header-title"},O={class:"title-content"},q={key:0,class:"custom-required"},T={key:0,class:"custom-required"},H=["src"],Y={key:0,class:"custom-required"},L={class:"lable"},M={class:"lable_note"},I={key:0,class:"custom-required"},P={key:0,class:"custom-required"},j={key:0,class:"custom-required"},W={key:0,class:"custom-required"},R={key:0,class:"custom-required"},A={key:0,class:"custom-required"},G={key:0,class:"custom-required"},J={key:0,class:"custom-required"},Q=z(()=>e.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"20px 0"}},null,-1)),X={key:0,class:"custom-required"};function Z(i,y,p,o,V,D){const t=e.resolveComponent("el-form-item"),f=e.resolveComponent("el-input"),_=e.resolveComponent("el-radio"),C=e.resolveComponent("el-radio-group"),x=e.resolveComponent("el-checkbox"),g=e.resolveComponent("el-checkbox-group"),w=e.resolveComponent("el-option"),m=e.resolveComponent("el-select"),B=e.resolveComponent("el-date-picker"),n=e.resolveComponent("el-col"),r=e.resolveComponent("el-row"),b=e.resolveComponent("sinosoft-common-button"),E=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(E,e.mergeProps({"hide-required-asterisk":"",onSubmit:y[0]||(y[0]=e.withModifiers(()=>{},["prevent"])),model:p.model},o.formOptions,{"label-position":o.formOptions.labelPosition,ref:"formRef"}),{default:e.withCtx(()=>[e.createVNode(r,{gutter:10},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.fieldList,(l,U)=>e.withDirectives((e.openBlock(),e.createBlock(n,{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:U},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(l.style)},[l.type==="title"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",F,[e.createElementVNode("span",O,e.toDisplayString(l.title),1)])]),_:2},1536)),[[e.vShow,!l.isHide]]):l.type==="name"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:1,label:l.label,disabled:l.disabled||o.formOptions.isDisabled,class:"container_name",rules:l.rules.nameEnFamily},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},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(t,{rules:l.rules.nameEnFamily,prop:l.field.nameEnFamily,class:"item-name"},{default:e.withCtx(()=>[e.createVNode(f,{maxlength:l.maxlength,modelValue:o.states.model[l.field.nameEnFamily],"onUpdate:modelValue":a=>o.states.model[l.field.nameEnFamily]=a,"show-word-limit":"",readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEnFamily,disabled:l.disabled||o.formOptions.isDisabled,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(t,{rules:l.rules.nameEn,prop:l.field.nameEn,class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(f,{maxlength:l.maxlength,modelValue:o.states.model[l.field.nameEn],"onUpdate:modelValue":a=>o.states.model[l.field.nameEn]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEn,disabled:l.disabled||o.formOptions.isDisabled,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(t,{rules:l.rules.nameChFamily,prop:l.field.nameChFamily,class:"item-name"},{default:e.withCtx(()=>[e.createVNode(f,{maxlength:l.maxlength,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.isDisabled,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(t,{rules:l.rules.nameCh,prop:l.field.nameCh,class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(f,{maxlength:l.maxlength,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.isDisabled,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label","disabled","rules"])),[[e.vShow,!l.isHide]]):l.type==="gender"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:2,label:l.label,rules:l.rules,prop:l.field},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},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(C,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isDisabled,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 s,c;return e.openBlock(),e.createBlock(_,{label:d[((s=l.options)==null?void 0:s.valueKey)||"code"],size:"large",key:d[((c=l.options)==null?void 0:c.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,H)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="radio"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:3,label:l.label,rules:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.labelStyle])},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",Y,"*")):e.createCommentVNode("",!0)],4)]),default:e.withCtx(()=>[e.createVNode(C,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isDisabled,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 s,c;return e.openBlock(),e.createBlock(_,{size:"large",label:d[((s=l.options)==null?void 0:s.valueKey)||"code"],key:d[((c=l.options)==null?void 0:c.valueKey)||"code"]},{default:e.withCtx(()=>{var h;return[e.createTextVNode(e.toDisplayString(d[((h=l.options)==null?void 0:h.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])),[[e.vShow,!l.isHide]]):l.type==="radioNote"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:4,label:l.label,rules: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",M,e.toDisplayString(l.labelNode),1),l.required?(e.openBlock(),e.createElementBlock("span",I,"*")):e.createCommentVNode("",!0)]),e.createVNode(C,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isDisabled,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 s,c;return e.openBlock(),e.createBlock(_,{size:"large",label:d[((s=l.options)==null?void 0:s.valueKey)||"code"],key:d[((c=l.options)==null?void 0:c.valueKey)||"code"]},{default:e.withCtx(()=>{var h;return[e.createTextVNode(e.toDisplayString(d[((h=l.options)==null?void 0:h.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])),[[e.vShow,!l.isHide]]):l.type==="checkbox"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:5,label:l.label,rules:l.rules,prop:l.field},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},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(g,{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.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var s,c;return e.openBlock(),e.createBlock(x,{key:d[((s=l.options)==null?void 0:s.valueKey)||"code"],label:d[((c=l.options)==null?void 0:c.valueKey)||"code"]},{default:e.withCtx(()=>{var h;return[e.createTextVNode(e.toDisplayString(d[((h=l.options)==null?void 0:h.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="checkboxRadio"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:6,label:l.label,rules:l.rules,prop:l.field},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.labelStyle])},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",j,"*")):e.createCommentVNode("",!0)],4)]),default:e.withCtx(()=>[e.createVNode(g,{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.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var s,c;return e.openBlock(),e.createBlock(x,{key:d[((s=l.options)==null?void 0:s.valueKey)||"code"],label:d[((c=l.options)==null?void 0:c.valueKey)||"code"]},{default:e.withCtx(()=>{var h;return[e.createTextVNode(e.toDisplayString(d[((h=l.options)==null?void 0:h.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="select"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:7,label:l.label,rules:l.rules,disabled:l.disabled||o.formOptions.isDisabled,prop:l.field},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.labelStyle])},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",W,"*")):e.createCommentVNode("",!0)],4)]),default:e.withCtx(()=>[e.createVNode(m,{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.isDisabled,placeholder:l.placeholder,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 s,c,h;return e.openBlock(),e.createBlock(w,{key:d[((s=l.options)==null?void 0:s.valueKey)||"code"],label:d[((c=l.options)==null?void 0:c.labelkey)||"name"],value:d[((h=l.options)==null?void 0:h.valueKey)||"code"]},null,8,["label","value"])}),128))]}),_:2},1032,["onChange","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"]),e.createElementVNode("div",{class:"item_tips_blow",style:e.normalizeStyle(l.tipsBlowStyle)},e.toDisplayString(l.tipsBlow),5)]),_:2},1032,["label","rules","disabled","prop"])),[[e.vShow,!l.isHide]]):l.type==="date"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:8,label:l.label,rules:l.rules,prop:l.field},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},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(B,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isDisabled,readonly:l.readonly,type:l.type,placeholder:l.placeholder||l.label},null,8,["disabled-date","modelValue","onUpdate:modelValue","disabled","readonly","type","placeholder"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="daterange"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:9,label:l.label,rules:l.rules,prop:l.field},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.labelStyle])},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",A,"*")):e.createCommentVNode("",!0)],4)]),default:e.withCtx(()=>[e.createVNode(B,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,type:"daterange","range-separator":"To","start-placeholder":l.startPlaceholder,"end-placeholder":l.endPlaceholder,size:"large"},null,8,["disabled-date","modelValue","onUpdate:modelValue","start-placeholder","end-placeholder"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="slotItem"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:10,label:l.label,rules:l.rules,prop:l.field,class:"rule_err"},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},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(i.$slots,l.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="phone"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:11,label:l.label,rules:l.rules.phoneNumber,prop:l.field.phoneNumber,class:"phone_item"},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.labelStyle])},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",J,"*")):e.createCommentVNode("",!0)],4)]),default:e.withCtx(()=>[e.createVNode(f,{maxlength:l.maxlength,modelValue:o.states.model[l.field.phoneNumber],"onUpdate:modelValue":a=>o.states.model[l.field.phoneNumber]=a,disabled:l.disabled||o.formOptions.isDisabled,placeholder:l.placeholder||"请选择",clearable:l.clearable},{prepend:e.withCtx(()=>{var a;return[e.createVNode(m,{disabled:l.disabled||o.formOptions.isDisabled,modelValue:o.states.model[l.field.areaCode],"onUpdate:modelValue":d=>o.states.model[l.field.areaCode]=d,placeholder:((a=l.options)==null?void 0:a.placeholder)||"请选择",style:{width:"115px"}},{default:e.withCtx(()=>{var d;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((d=l.options)==null?void 0:d.data,(s,c)=>(e.openBlock(),e.createBlock(w,{label:s.name,value:s.code,key:c},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder"])]}),_:2},1032,["maxlength","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="line"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:12,label:l.label},{default:e.withCtx(()=>[Q]),_:2},1032,["label"])),[[e.vShow,!l.isHide]]):e.withDirectives((e.openBlock(),e.createBlock(t,{key:13,label:l.label,rules:l.rules,prop:l.field},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.labelStyle])},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",X,"*")):e.createCommentVNode("",!0)],4)]),default:e.withCtx(()=>[e.createVNode(f,{maxlength:l.maxlength,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholder||l.label,disabled:l.disabled||o.formOptions.isDisabled,showPassword:l.showPassword,clearable:l.clearable,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},e.createSlots({_:2},[l.prepend?{name:"prepend",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.field),1)]),key:"0"}:void 0,l.append?{name:"append",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.append),1)]),key:"1"}:void 0]),1032,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]])],4)]),_:2},1032,["xs","sm","md","lg","xl"])),[[e.vShow,!l.isHide]])),128))]),_:3}),e.createVNode(t,{class:"btnsItem"},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"buttons",{model:p.model,onBtnClick:o.onSubmit},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.formOptions.btnConfig,(l,U)=>(e.openBlock(),e.createElementBlock("div",{key:U},[l.isShow?(e.openBlock(),e.createBlock(b,{key:0,btnCode:l.btnCode,plain:l.plain,primary:l.primary,info:l.info,text:l.text,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,styleObj:{...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","link","loading","loadingColor","width","height","circle","color","bgColor","borderColor","borderStyle","borderWidth","icon","size","fontSize","fontWeight","styleObj","class","onHandleClick"])):e.createCommentVNode("",!0)]))),128))],!0)]),_:3})]),_:3},16,["model","label-position"])}const N=K(k,[["render",Z],["__scopeId","data-v-7c0893c7"]]);function S(i,y={}){S.installed||(S.installed=!0,i.component("common-el-form",N))}return N.install=S,N});
1
+ (function(e,k){typeof exports=="object"&&typeof module<"u"?module.exports=k(require("vue")):typeof define=="function"&&define.amd?define(["vue"],k):(e=typeof globalThis<"u"?globalThis:e||self,e.Form=k(e.Vue))})(this,function(e){"use strict";const k="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==",z={props:{fieldList:{type:Array,required:!0},model:Object,options:Object},setup(n,{emit:b}){const i=e.reactive({model:{}}),o=e.ref(null),C=e.shallowRef({render(){return e.h("img",{src:k})}}),E=e.computed(()=>Object.assign([],n.options)),r=()=>{i.model=n.model},h=(t,s,l)=>{o.value&&(s?o.value.validate(N=>{if(N)b(l||"submit",i.model,t);else return!1}):l==="reset"?o.value.resetFields():b(l||"submit",i.model,t))},f=(t,s)=>{b("selectChange",t,s)},g=(t,s)=>{b("radioChange",t,s)},x=(t,s)=>{b("checkChange",t,s)},M=(t,s)=>{const l=i.model[s].length;l!==1&&(l>1&&i.model[s].shift(),b("checkChange",t,s))},V=(t,s,l)=>{h(t,s,l)},_=(t,s)=>{t&&(s==null?void 0:s.key)==="Enter"&&h(void 0,!0,"submit")},D=t=>{b("dateChange",t)},m=t=>{o.value.resetFields(t)},S=t=>{o.value.clearValidate(t)};return e.onMounted(()=>{r(),o.value.resetFields()}),e.watch(()=>n.fieldList,(t,s)=>{t!==s&&r()}),{...e.toRefs(i),formRef:o,states:i,formOptions:E,onSubmit:h,selectChange:f,radioChange:g,checkChange:x,handleCheckedChange:M,prefixIcon:C,handleClick:V,handleKeyUp:_,resetFieldsTest:m,clearValidateTest:S,dateChange:D}}},$="",U=(n,b)=>{const i=n.__vccOpts||n;for(const[o,C]of b)i[o]=C;return i},j=n=>(e.pushScopeId("data-v-2127471b"),n=n(),e.popScopeId(),n),I={class:"header-title"},T={class:"title-content"},L={key:0,class:"custom-required"},O={key:0,class:"custom-required"},A=["src"],K={key:0,class:"custom-required"},Y={class:"lable"},F={class:"lable_note"},q={key:0,class:"custom-required"},H={key:0,class:"custom-required"},W={key:0,class:"custom-required"},Q={key:0,class:"custom-required"},P={key:0,class:"custom-required"},R={key:0,class:"custom-required"},Z={key:0,class:"custom-required"},G={key:0,class:"custom-required"},J=j(()=>e.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"20px 0"}},null,-1)),X={key:0,class:"custom-required"};function u(n,b,i,o,C,E){const r=e.resolveComponent("el-form-item"),h=e.resolveComponent("el-input"),f=e.resolveComponent("el-radio"),g=e.resolveComponent("el-radio-group"),x=e.resolveComponent("el-checkbox"),M=e.resolveComponent("el-checkbox-group"),V=e.resolveComponent("el-option"),_=e.resolveComponent("el-select"),D=e.resolveComponent("el-date-picker"),m=e.resolveComponent("el-col"),S=e.resolveComponent("el-row"),t=e.resolveComponent("sinosoft-common-button"),s=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(s,e.mergeProps({"hide-required-asterisk":"",onSubmit:b[0]||(b[0]=e.withModifiers(()=>{},["prevent"])),model:i.model},o.formOptions,{"label-position":o.formOptions.labelPosition,ref:"formRef"}),{default:e.withCtx(()=>[e.createVNode(S,{gutter:20},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.fieldList,(l,N)=>e.withDirectives((e.openBlock(),e.createBlock(m,{xs:l.xs?l.xs:24,sm:l.sm?l.sm:24,md:l.md?l.md:8,lg:l.lg?l.lg:8,xl:l.xl?l.xl:8,key:N},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(l.style)},[l.type==="title"?(e.openBlock(),e.createBlock(r,{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",I,[e.createElementVNode("span",T,e.toDisplayString(l.title),1)])]),_:2},1024)):l.type==="name"?(e.openBlock(),e.createBlock(r,{key:1,label:l.label,disabled:l.disabled||o.formOptions.isDisabled,class:"container_name"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",L,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(r,{rules:l.isHide?[]:l.rules.nameEnFamily,prop:l.field.nameEnFamily,class:"item-name"},{default:e.withCtx(()=>[e.createVNode(h,{maxlength:l.maxlength,modelValue:o.states.model[l.field.nameEnFamily],"onUpdate:modelValue":a=>o.states.model[l.field.nameEnFamily]=a,"show-word-limit":"",readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEnFamily,disabled:l.disabled||o.formOptions.isDisabled,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(r,{rules:l.isHide?[]:l.rules.nameEn,prop:l.field.nameEn,class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(h,{maxlength:l.maxlength,modelValue:o.states.model[l.field.nameEn],"onUpdate:modelValue":a=>o.states.model[l.field.nameEn]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEn,disabled:l.disabled||o.formOptions.isDisabled,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(r,{rules:l.isHide?[]:l.rules.nameChFamily,prop:l.field.nameChFamily,class:"item-name"},{default:e.withCtx(()=>[e.createVNode(h,{maxlength:l.maxlength,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.isDisabled,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(r,{rules:l.isHide?[]:l.rules.nameCh,prop:l.field.nameCh,class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(h,{maxlength:l.maxlength,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.isDisabled,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label","disabled"])):l.type==="gender"?(e.openBlock(),e.createBlock(r,{key:2,label:l.label,rules:l.isHide?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",O,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(g,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isDisabled,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 c,p;return e.openBlock(),e.createBlock(f,{label:d[((c=l.options)==null?void 0:c.valueKey)||"code"],size:"large",key:d[((p=l.options)==null?void 0:p.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,A)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])):l.type==="radio"?(e.openBlock(),e.createBlock(r,{key:3,label:l.label,rules:l.isHide?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$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",K,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(g,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isDisabled,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 c,p;return e.openBlock(),e.createBlock(f,{size:"large",label:d[((c=l.options)==null?void 0:c.valueKey)||"code"],key:d[((p=l.options)==null?void 0:p.valueKey)||"code"]},{default:e.withCtx(()=>{var y;return[e.createTextVNode(e.toDisplayString(d[((y=l.options)==null?void 0:y.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])):l.type==="radioNote"?(e.openBlock(),e.createBlock(r,{key:4,label:l.label,rules:l.isHide?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",Y,e.toDisplayString(l.labelBefore),1),e.createElementVNode("span",F,e.toDisplayString(l.labelNode),1),l.required?(e.openBlock(),e.createElementBlock("span",q,"*")):e.createCommentVNode("",!0)]),e.createVNode(g,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isDisabled,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 c,p;return e.openBlock(),e.createBlock(f,{size:"large",label:d[((c=l.options)==null?void 0:c.valueKey)||"code"],key:d[((p=l.options)==null?void 0:p.valueKey)||"code"]},{default:e.withCtx(()=>{var y;return[e.createTextVNode(e.toDisplayString(d[((y=l.options)==null?void 0:y.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])):l.type==="checkbox"?(e.openBlock(),e.createBlock(r,{key:5,label:l.label,rules:l.isHide?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",H,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(M,{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.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var c,p;return e.openBlock(),e.createBlock(x,{key:d[((c=l.options)==null?void 0:c.valueKey)||"code"],label:d[((p=l.options)==null?void 0:p.valueKey)||"code"]},{default:e.withCtx(()=>{var y;return[e.createTextVNode(e.toDisplayString(d[((y=l.options)==null?void 0:y.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(r,{key:6,label:l.label,rules:l.isHide?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",W,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(M,{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.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var c,p;return e.openBlock(),e.createBlock(x,{key:d[((c=l.options)==null?void 0:c.valueKey)||"code"],label:d[((p=l.options)==null?void 0:p.valueKey)||"code"]},{default:e.withCtx(()=>{var y;return[e.createTextVNode(e.toDisplayString(d[((y=l.options)==null?void 0:y.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(r,{key:7,label:l.label,rules:l.isHide?[]:l.rules,disabled:l.disabled||o.formOptions.isDisabled,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$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(_,{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.isDisabled,placeholder:l.placeholder,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 c,p,y;return e.openBlock(),e.createBlock(V,{key:d[((c=l.options)==null?void 0:c.valueKey)||"code"],label:d[((p=l.options)==null?void 0:p.labelkey)||"name"],value:d[((y=l.options)==null?void 0:y.valueKey)||"code"]},null,8,["label","value"])}),128))]}),_:2},1032,["onChange","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"]),e.createElementVNode("div",{class:"item_tips_blow",style:e.normalizeStyle(l.tipsBlowStyle)},e.toDisplayString(l.tipsBlow),5)]),_:2},1032,["label","rules","disabled","prop"])):l.type==="date"?(e.openBlock(),e.createBlock(r,{key:8,label:l.label,rules:l.isHide?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$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(D,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:o.dateChange,"prefix-icon":o.prefixIcon,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isDisabled,readonly:l.readonly,type:l.type,placeholder:l.placeholder||l.label},null,8,["disabled-date","onChange","prefix-icon","modelValue","onUpdate:modelValue","disabled","readonly","type","placeholder"])]),_:2},1032,["label","rules","prop"])):l.type==="daterange"?(e.openBlock(),e.createBlock(r,{key:9,label:l.label,rules:l.isHide?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$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(D,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:o.dateChange,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(r,{key:10,label:l.label,rules:l.isHide?[]:l.rules,prop:l.field,class:"rule_err"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$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(n.$slots,l.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])):l.type==="phone"?(e.openBlock(),e.createBlock(r,{key:11,label:l.label,rules:l.isHide?[]:l.rules.phoneNumber,prop:l.field.phoneNumber,class:"phone_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",G,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(h,{maxlength:l.maxlength,modelValue:o.states.model[l.field.phoneNumber],"onUpdate:modelValue":a=>o.states.model[l.field.phoneNumber]=a,disabled:l.disabled||o.formOptions.isDisabled,placeholder:l.placeholder||"请选择",clearable:l.clearable},{prepend:e.withCtx(()=>{var a;return[e.createVNode(_,{disabled:l.disabled||o.formOptions.isDisabled,modelValue:o.states.model[l.field.areaCode],"onUpdate:modelValue":d=>o.states.model[l.field.areaCode]=d,placeholder:((a=l.options)==null?void 0:a.placeholder)||"请选择",style:{width:"115px"}},{default:e.withCtx(()=>{var d;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((d=l.options)==null?void 0:d.data,(c,p)=>(e.openBlock(),e.createBlock(V,{label:c.name,value:c.code,key:p},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder"])]}),_:2},1032,["maxlength","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"])]),_:2},1032,["label","rules","prop"])):l.type==="line"?(e.openBlock(),e.createBlock(r,{key:12,label:l.label},{default:e.withCtx(()=>[J]),_:2},1032,["label"])):(e.openBlock(),e.createBlock(r,{key:13,rules:l.isHide?[]:l.rules,prop:l.field,class:e.normalizeClass(l.prepend?"input-item":"")},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",X,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(h,{maxlength:l.maxlength,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholder||l.label,disabled:l.disabled||o.formOptions.isDisabled,showPassword:l.showPassword,clearable:l.clearable,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,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop","class"]))],4)]),_:2},1032,["xs","sm","md","lg","xl"])),[[e.vShow,!l.isHide]])),128))]),_:3}),e.createVNode(r,{class:"btnsItem"},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"buttons",{model:i.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(t,{key:0,btnCode:l.btnCode,plain:l.plain,primary:l.primary,info:l.info,text:l.text,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,styleObj:{...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","link","loading","loadingColor","width","height","circle","color","bgColor","borderColor","borderStyle","borderWidth","icon","size","fontSize","fontWeight","styleObj","class","onHandleClick"])):e.createCommentVNode("",!0)]))),128))],!0)]),_:3})]),_:3},16,["model","label-position"])}const w=U(z,[["render",u],["__scopeId","data-v-2127471b"]]);function B(n,b={}){B.installed||(B.installed=!0,n.component("common-el-form",w))}return w.install=B,w});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinosoft-common-form",
3
- "version": "1.2.8",
3
+ "version": "1.3.0",
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-7c0893c7] .el-date-editor{height:60px!important;width:100%!important}.form-item[data-v-7c0893c7]{width:50%;display:inline-block;padding-right:0;box-sizing:border-box}[data-v-7c0893c7] .el-input__inner{height:42px;color:#1d1d1d}[data-v-7c0893c7] .el-card__body{padding:0}[data-v-7c0893c7] .el-input__inner::placeholder{font-family:Roboto;font-size:14px;font-weight:400;line-height:22px;letter-spacing:0em;text-align:left;color:#6e6e73}[data-v-7c0893c7] .el-form-item__label{font-size:16px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Medium;min-height:22px!important}.form-item-title[data-v-7c0893c7]{width:100%}[data-v-7c0893c7] .el-checkbox-group,[data-v-7c0893c7] .el-radio-group{height:62px;line-height:62px}[data-v-7c0893c7] .el-radio-group .el-radio{height:auto}.rule_err[data-v-7c0893c7] .el-form-item__content,.radio_Note[data-v-7c0893c7] .el-form-item__content{display:block}.radio_Note .lable[data-v-7c0893c7]{font-size:16px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Medium}.radio_Note .lable_note[data-v-7c0893c7]{font-size:16px;line-height:22px;color:#6e6e73;font-weight:400;font-family:Roboto Medium}.container_name[data-v-7c0893c7] .el-form-item__content{align-items:start}[data-v-7c0893c7] .el-form-item__error{position:relative}.item-name[data-v-7c0893c7]{width:51%;padding-right:20px;padding-bottom:12px;box-sizing:border-box}.item-name-right[data-v-7c0893c7]{width:49%;padding-bottom:12px;padding-right:0}.btnsItem[data-v-7c0893c7]{width:100%;margin:0 auto;justify-content:right}.btnsItem[data-v-7c0893c7] .el-form-item__content{justify-content:right}label[data-v-7c0893c7]{display:block}.title-content[data-v-7c0893c7]{font-size:22px;line-height:30px;color:#1d1d1d;font-weight:300;font-family:Roboto Medium}[data-v-7c0893c7] .el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__wrapper{background-color:#fff;width:80px}[data-v-7c0893c7] .el-input__wrapper{height:60px;border-radius:8px;border:1px solid #c7c8ca;box-shadow:none!important}.phone_item[data-v-7c0893c7] .el-input__wrapper{border-left:0px!important}.phone_item[data-v-7c0893c7] .el-input-group__prepend{box-shadow:none!important}.phone_item[data-v-7c0893c7] .el-input-group__prepend .el-input__wrapper{height:60px;border-radius:8px;border:1px solid #c7c8ca!important;border-right:0px!important;box-shadow:none!important}.phone_item[data-v-7c0893c7] .el-input-group__prepend .el-input__wrapper .el-input__suffix{display:none;width:0!important}.phone_item[data-v-7c0893c7] .el-input-group__prepend:hover{box-shadow:none!important}.phone_item[data-v-7c0893c7] .el-input-group__prepend:hover .el-input__wrapper:hover{border:none;border-right:0px!important;box-shadow:none!important}.phone_item[data-v-7c0893c7] .el-input-group__prepend:hover .el-input__wrapper:hover .el-input__suffix{display:none;width:0!important}[data-v-7c0893c7] .el-select{width:100%}.custom-required[data-v-7c0893c7]{content:"*";color:#e2a650;margin-left:4px}.item_tips_blow[data-v-7c0893c7]{font-size:14px;line-height:22px;color:#00000073;font-weight:400;font-family:Roboto Medium;width:100%;word-wrap:break-word;white-space:normal}
1
+ @charset "UTF-8";[data-v-2127471b] .el-date-editor{height:60px!important;width:100%!important}.form-item[data-v-2127471b]{width:50%;display:inline-block;padding-right:0;box-sizing:border-box}[data-v-2127471b] .el-input__inner{height:42px;color:#1d1d1d}[data-v-2127471b] .el-card__body{padding:0}[data-v-2127471b] .el-input__inner::placeholder{font-family:Roboto;font-size:14px;font-weight:400;line-height:22px;letter-spacing:0em;text-align:left;color:#6e6e73}[data-v-2127471b] .el-form-item__label{font-size:16px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Medium;height:auto!important}.form-item-title[data-v-2127471b]{width:100%}[data-v-2127471b] .el-checkbox-group,[data-v-2127471b] .el-radio-group{height:62px;line-height:62px}[data-v-2127471b] .el-radio-group .el-radio{height:auto}.rule_err[data-v-2127471b] .el-form-item__content,.radio_Note[data-v-2127471b] .el-form-item__content{display:block}.radio_Note .lable[data-v-2127471b]{font-size:16px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Medium}.radio_Note .lable_note[data-v-2127471b]{font-size:16px;line-height:22px;color:#6e6e73;font-weight:400;font-family:Roboto Medium}.container_name[data-v-2127471b] .el-form-item__content{align-items:start}[data-v-2127471b] .el-form-item__error{position:relative}.item-name[data-v-2127471b]{width:51%;padding-right:20px;padding-bottom:12px;box-sizing:border-box}.item-name-right[data-v-2127471b]{width:49%;padding-bottom:12px;padding-right:0}.btnsItem[data-v-2127471b]{width:100%;margin:0 auto;justify-content:right}.btnsItem[data-v-2127471b] .el-form-item__content{justify-content:right}label[data-v-2127471b]{display:block}.title-content[data-v-2127471b]{font-size:22px;line-height:30px;color:#1d1d1d;font-weight:300;font-family:Roboto Medium}[data-v-2127471b] .el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__wrapper{background-color:#fff;width:80px}[data-v-2127471b] .el-input__wrapper{height:60px;border-radius:8px;border:1px solid #c7c8ca;box-shadow:none!important}.phone_item[data-v-2127471b] .el-input__wrapper{border-left:0px!important}.phone_item[data-v-2127471b] .el-input-group__prepend{box-shadow:none!important}.phone_item[data-v-2127471b] .el-input-group__prepend .el-input__wrapper{height:60px;border-radius:8px;border:1px solid #c7c8ca!important;padding-left:16px;padding-right:16px;border-right:0px!important;box-shadow:none!important}.phone_item[data-v-2127471b] .el-input-group__prepend .el-input__wrapper .el-input__suffix{display:none;width:0!important}.phone_item[data-v-2127471b] .el-input-group__prepend:hover{box-shadow:none!important}.phone_item[data-v-2127471b] .el-input-group__prepend:hover .el-input__wrapper:hover{border:none;border-right:0px!important;box-shadow:none!important;padding-left:16px;padding-right:16px}.phone_item[data-v-2127471b] .el-input-group__prepend:hover .el-input__wrapper:hover .el-input__suffix{display:none;width:0!important}.input-item[data-v-2127471b] .el-input-group__prepend{border:1px solid #c7c8ca!important;border-top-left-radius:8px;border-bottom-left-radius:8px;border-right:0px!important;box-shadow:none!important;background-color:unset!important;padding:0 16px;font-size:14px;line-height:22px;color:#0b0b0b;font-weight:400;font-family:Roboto Medium}.input-item[data-v-2127471b] .el-input__wrapper{border-left:0px!important;border-right:0px!important}.input-item[data-v-2127471b] .el-input-group__append{border:1px solid #c7c8ca!important;border-top-right-radius:8px;border-bottom-right-radius:8px;border-left:0px!important;box-shadow:none!important;background-color:unset!important;padding:0 16px;font-size:14px;line-height:22px;color:#0b0b0b;font-weight:400;font-family:Roboto Medium}[data-v-2127471b] .el-select{width:100%}.custom-required[data-v-2127471b]{content:"*";color:#e2a650;margin-left:4px}.item_tips_blow[data-v-2127471b]{font-size:14px;line-height:22px;color:#00000073;font-weight:400;font-family:Roboto Medium;width:100%;word-wrap:break-word;white-space:normal}