sinosoft-common-form 1.3.4 → 1.3.5

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