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