sinosoft-common-form 1.2.7 → 1.2.9

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