sinosoft-common-form 1.5.8 → 1.6.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 +207 -208
- package/common-form.umd.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
package/common-form.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as H, reactive as J, shallowRef as X, h as $, computed as ll, onMounted as el, onBeforeUnmount as ol, watch as al, toRefs as nl, nextTick as dl, resolveComponent as C, openBlock as a, createBlock as y, mergeProps as sl, withModifiers as rl, withCtx as n, createVNode as b, createElementBlock as i, Fragment as O, renderList as R, withDirectives as il, createElementVNode as A, normalizeStyle as g, toDisplayString as u, createTextVNode as _, createCommentVNode as c, renderSlot as M, normalizeClass as h, withKeys as U, createSlots as Z, vShow as yl, pushScopeId as pl, popScopeId as fl } from "vue";
|
|
2
2
|
const cl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==", ul = {
|
|
3
3
|
props: {
|
|
4
4
|
fieldList: {
|
|
@@ -22,105 +22,105 @@ const cl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
22
22
|
options: Object
|
|
23
23
|
},
|
|
24
24
|
setup(f, { emit: D }) {
|
|
25
|
-
const
|
|
25
|
+
const w = H(!0), e = J({
|
|
26
26
|
model: {}
|
|
27
|
-
}), k =
|
|
27
|
+
}), k = H(null), Q = X({
|
|
28
28
|
render() {
|
|
29
29
|
return $("img", {
|
|
30
30
|
src: cl
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
}),
|
|
33
|
+
}), t = ll(() => Object.assign([], f.options)), N = () => {
|
|
34
34
|
e.model = f.model;
|
|
35
|
-
},
|
|
36
|
-
var
|
|
37
|
-
r ? (
|
|
38
|
-
var
|
|
39
|
-
(
|
|
40
|
-
if (G)
|
|
41
|
-
D(
|
|
35
|
+
}, x = (s, r, d) => {
|
|
36
|
+
var I;
|
|
37
|
+
r ? (w.value = !1, dl(() => {
|
|
38
|
+
var V;
|
|
39
|
+
(V = k.value) == null || V.validate((G) => {
|
|
40
|
+
if (console.log(1111111111, state.model), G)
|
|
41
|
+
D(d || "submit", e.model, s);
|
|
42
42
|
else
|
|
43
43
|
return !1;
|
|
44
44
|
});
|
|
45
|
-
})) : (
|
|
46
|
-
},
|
|
47
|
-
D("selectChange",
|
|
48
|
-
},
|
|
49
|
-
D("radioChange",
|
|
50
|
-
}, j = (
|
|
51
|
-
D("checkChange",
|
|
52
|
-
},
|
|
53
|
-
const
|
|
54
|
-
if (
|
|
55
|
-
D("checkChange",
|
|
45
|
+
})) : (d === "reset" && ((I = k.value) == null || I.resetFields()), D(d || "submit", e.model, s));
|
|
46
|
+
}, F = (s, r) => {
|
|
47
|
+
D("selectChange", s, r);
|
|
48
|
+
}, v = (s, r) => {
|
|
49
|
+
D("radioChange", s, r);
|
|
50
|
+
}, j = (s, r) => {
|
|
51
|
+
D("checkChange", s, r);
|
|
52
|
+
}, E = (s, r) => {
|
|
53
|
+
const d = e.model[r].length;
|
|
54
|
+
if (d === 1) {
|
|
55
|
+
D("checkChange", s, r);
|
|
56
56
|
return;
|
|
57
57
|
} else
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
D("dateChange",
|
|
65
|
-
},
|
|
66
|
-
console.log(k.value), D("inputBlur",
|
|
67
|
-
},
|
|
68
|
-
D("inputFocus",
|
|
69
|
-
},
|
|
70
|
-
D("inputChange",
|
|
71
|
-
},
|
|
72
|
-
D("inputInput",
|
|
73
|
-
},
|
|
58
|
+
d > 1 ? (e.model[r].shift(), D("checkChange", s, r)) : d < 1 && D("checkChange", s, r);
|
|
59
|
+
}, S = (s, r, d) => {
|
|
60
|
+
x(s, r, d);
|
|
61
|
+
}, z = (s, r) => {
|
|
62
|
+
s && (r == null ? void 0 : r.key) === "Enter" && x(void 0, !0, "submit");
|
|
63
|
+
}, L = (s, r) => {
|
|
64
|
+
D("dateChange", s, r);
|
|
65
|
+
}, B = (s, r) => {
|
|
66
|
+
console.log(k.value), D("inputBlur", s, r);
|
|
67
|
+
}, Y = (s, r) => {
|
|
68
|
+
D("inputFocus", s, r);
|
|
69
|
+
}, q = (s, r) => {
|
|
70
|
+
D("inputChange", s, r);
|
|
71
|
+
}, W = (s, r) => {
|
|
72
|
+
D("inputInput", s, r);
|
|
73
|
+
}, l = (s) => {
|
|
74
74
|
var r;
|
|
75
|
-
(r = k.value) == null || r.resetFields(
|
|
76
|
-
},
|
|
75
|
+
(r = k.value) == null || r.resetFields(s);
|
|
76
|
+
}, T = (s) => {
|
|
77
77
|
var r;
|
|
78
|
-
(r = k.value) == null || r.clearValidate(
|
|
79
|
-
},
|
|
80
|
-
window.innerWidth < 768 ? (console.log("屏幕宽度小于768px"),
|
|
78
|
+
(r = k.value) == null || r.clearValidate(s);
|
|
79
|
+
}, o = H(!1), p = () => {
|
|
80
|
+
window.innerWidth < 768 ? (console.log("屏幕宽度小于768px"), o.value = !0) : o.value = !1;
|
|
81
81
|
};
|
|
82
82
|
return el(() => {
|
|
83
|
-
var
|
|
84
|
-
N(), (
|
|
83
|
+
var s;
|
|
84
|
+
N(), (s = k.value) == null || s.resetFields(), window.addEventListener("resize", p);
|
|
85
85
|
}), ol(() => {
|
|
86
|
-
window.removeEventListener("resize",
|
|
86
|
+
window.removeEventListener("resize", p);
|
|
87
87
|
}), al(
|
|
88
88
|
() => f.fieldList,
|
|
89
|
-
(
|
|
90
|
-
|
|
89
|
+
(s, r) => {
|
|
90
|
+
s !== r && N();
|
|
91
91
|
}
|
|
92
92
|
), {
|
|
93
93
|
...nl(e),
|
|
94
94
|
formRef: k,
|
|
95
95
|
states: e,
|
|
96
|
-
formOptions:
|
|
97
|
-
onSubmit:
|
|
98
|
-
selectChange:
|
|
99
|
-
radioChange:
|
|
96
|
+
formOptions: t,
|
|
97
|
+
onSubmit: x,
|
|
98
|
+
selectChange: F,
|
|
99
|
+
radioChange: v,
|
|
100
100
|
checkChange: j,
|
|
101
|
-
handleCheckedChange:
|
|
102
|
-
prefixIcon:
|
|
103
|
-
handleClick:
|
|
104
|
-
handleKeyUp:
|
|
105
|
-
resetFieldsTest:
|
|
106
|
-
clearValidateTest:
|
|
107
|
-
dateChange:
|
|
108
|
-
inputBlur:
|
|
109
|
-
inputFocus:
|
|
110
|
-
inputChange:
|
|
111
|
-
inputInput:
|
|
112
|
-
noFormRule:
|
|
113
|
-
phoneWrap:
|
|
101
|
+
handleCheckedChange: E,
|
|
102
|
+
prefixIcon: Q,
|
|
103
|
+
handleClick: S,
|
|
104
|
+
handleKeyUp: z,
|
|
105
|
+
resetFieldsTest: l,
|
|
106
|
+
clearValidateTest: T,
|
|
107
|
+
dateChange: L,
|
|
108
|
+
inputBlur: B,
|
|
109
|
+
inputFocus: Y,
|
|
110
|
+
inputChange: q,
|
|
111
|
+
inputInput: W,
|
|
112
|
+
noFormRule: w,
|
|
113
|
+
phoneWrap: o
|
|
114
114
|
// spaceRule,
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
|
-
const
|
|
119
|
-
const
|
|
118
|
+
const tl = (f, D) => {
|
|
119
|
+
const w = f.__vccOpts || f;
|
|
120
120
|
for (const [e, k] of D)
|
|
121
|
-
|
|
122
|
-
return
|
|
123
|
-
},
|
|
121
|
+
w[e] = k;
|
|
122
|
+
return w;
|
|
123
|
+
}, P = (f) => (pl("data-v-0bf3a46a"), f = f(), fl(), f), bl = { class: "header-title" }, hl = { class: "title-content" }, gl = {
|
|
124
124
|
key: 0,
|
|
125
125
|
class: "custom-required"
|
|
126
126
|
}, _l = {
|
|
@@ -159,13 +159,13 @@ const bl = (f, D) => {
|
|
|
159
159
|
}, Fl = {
|
|
160
160
|
key: 0,
|
|
161
161
|
class: "phone_item_content_before"
|
|
162
|
-
},
|
|
162
|
+
}, vl = /* @__PURE__ */ P(() => /* @__PURE__ */ A("div", { class: "line_middle" }, "-", -1)), jl = /* @__PURE__ */ P(() => /* @__PURE__ */ A("div", { class: "line_middle" }, "-", -1)), zl = {
|
|
163
163
|
key: 2,
|
|
164
164
|
class: "line_middle"
|
|
165
165
|
}, Ll = {
|
|
166
166
|
key: 4,
|
|
167
167
|
class: "line_middle"
|
|
168
|
-
}, Tl = /* @__PURE__ */
|
|
168
|
+
}, Tl = /* @__PURE__ */ P(() => /* @__PURE__ */ A("div", {
|
|
169
169
|
class: "line",
|
|
170
170
|
style: { "border-top": "1px solid #e8e8e8", width: "100%", height: "0px", margin: "39px 0" }
|
|
171
171
|
}, null, -1)), El = {
|
|
@@ -175,47 +175,47 @@ const bl = (f, D) => {
|
|
|
175
175
|
key: 0,
|
|
176
176
|
class: "custom-required"
|
|
177
177
|
};
|
|
178
|
-
function Bl(f, D,
|
|
179
|
-
const
|
|
180
|
-
return a(), y(
|
|
178
|
+
function Bl(f, D, w, e, k, Q) {
|
|
179
|
+
const t = C("el-form-item"), N = C("el-input"), x = C("el-col"), F = C("el-row"), v = C("el-radio"), j = C("el-radio-group"), E = C("el-checkbox"), S = C("el-checkbox-group"), z = C("el-option"), L = C("el-select"), B = C("a-date-picker"), Y = C("el-date-picker"), q = C("sinosoft-common-button"), W = C("el-form");
|
|
180
|
+
return a(), y(W, sl({
|
|
181
181
|
"hide-required-asterisk": "",
|
|
182
182
|
onSubmit: D[0] || (D[0] = rl(() => {
|
|
183
183
|
}, ["prevent"])),
|
|
184
|
-
model:
|
|
184
|
+
model: w.model
|
|
185
185
|
}, e.formOptions, {
|
|
186
186
|
"label-position": e.formOptions.labelPosition,
|
|
187
187
|
ref: "formRef"
|
|
188
188
|
}), {
|
|
189
189
|
default: n(() => [
|
|
190
|
-
|
|
190
|
+
b(F, { gutter: 20 }, {
|
|
191
191
|
default: n(() => [
|
|
192
|
-
(a(!0), i(
|
|
192
|
+
(a(!0), i(O, null, R(w.fieldList, (l, T) => il((a(), y(x, {
|
|
193
193
|
xs: l.xs ? l.xs : 24,
|
|
194
194
|
sm: l.sm ? l.sm : 24,
|
|
195
195
|
md: l.md ? l.md : 8,
|
|
196
196
|
lg: l.lg ? l.lg : 8,
|
|
197
197
|
xl: l.xl ? l.xl : 8,
|
|
198
|
-
key:
|
|
198
|
+
key: T
|
|
199
199
|
}, {
|
|
200
200
|
default: n(() => [
|
|
201
201
|
A("div", {
|
|
202
202
|
style: g(l.style)
|
|
203
203
|
}, [
|
|
204
|
-
l.type === "title" ? (a(), y(
|
|
204
|
+
l.type === "title" ? (a(), y(t, { key: 0 }, {
|
|
205
205
|
default: n(() => [
|
|
206
|
-
A("div",
|
|
206
|
+
A("div", bl, [
|
|
207
207
|
A("span", hl, u(l.title), 1)
|
|
208
208
|
])
|
|
209
209
|
]),
|
|
210
210
|
_: 2
|
|
211
|
-
}, 1024)) : l.type === "name" && typeof l.field != "string" && l.field && "nameEnFamily" in l.field && l.rules && "nameEnFamily" in l.rules ? (a(), y(
|
|
211
|
+
}, 1024)) : l.type === "name" && typeof l.field != "string" && l.field && "nameEnFamily" in l.field && l.rules && "nameEnFamily" in l.rules ? (a(), y(t, {
|
|
212
212
|
key: 1,
|
|
213
213
|
label: l.label,
|
|
214
214
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
215
215
|
class: "container_name"
|
|
216
216
|
}, {
|
|
217
217
|
label: n(() => [
|
|
218
|
-
l.slotLabelName ?
|
|
218
|
+
l.slotLabelName ? M(f.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), i("div", {
|
|
219
219
|
key: 0,
|
|
220
220
|
style: g(l.labelStyle)
|
|
221
221
|
}, [
|
|
@@ -224,9 +224,9 @@ function Bl(f, D, x, e, k, K) {
|
|
|
224
224
|
], 4))
|
|
225
225
|
]),
|
|
226
226
|
default: n(() => [
|
|
227
|
-
|
|
227
|
+
b(F, { gutter: 20 }, {
|
|
228
228
|
default: n(() => [
|
|
229
|
-
|
|
229
|
+
b(x, {
|
|
230
230
|
xs: 24,
|
|
231
231
|
sm: 12,
|
|
232
232
|
md: 12,
|
|
@@ -234,14 +234,14 @@ function Bl(f, D, x, e, k, K) {
|
|
|
234
234
|
xl: 12
|
|
235
235
|
}, {
|
|
236
236
|
default: n(() => [
|
|
237
|
-
l.field.nameEnFamily ? (a(), y(
|
|
237
|
+
l.field.nameEnFamily ? (a(), y(t, {
|
|
238
238
|
key: 0,
|
|
239
239
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.nameEnFamily,
|
|
240
240
|
prop: l.field.nameEnFamily,
|
|
241
241
|
class: "item-name item-name-top"
|
|
242
242
|
}, {
|
|
243
243
|
default: n(() => [
|
|
244
|
-
|
|
244
|
+
b(N, {
|
|
245
245
|
onBlur: (o) => e.inputBlur(o, l.field.nameEnFamily),
|
|
246
246
|
onFocus: (o) => e.inputFocus(o, l.field.nameEnFamily),
|
|
247
247
|
onChange: (o) => e.inputChange(o, l.field.nameEnFamily),
|
|
@@ -256,7 +256,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
256
256
|
type: l.type ? l.type : "text",
|
|
257
257
|
placeholder: l.placeholderNameEnFamily,
|
|
258
258
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNameEnFamily) && !l.openDisabled,
|
|
259
|
-
onKeyup:
|
|
259
|
+
onKeyup: U((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
260
260
|
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "class", "maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
261
261
|
]),
|
|
262
262
|
_: 2
|
|
@@ -264,7 +264,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
264
264
|
]),
|
|
265
265
|
_: 2
|
|
266
266
|
}, 1024),
|
|
267
|
-
|
|
267
|
+
b(x, {
|
|
268
268
|
xs: 24,
|
|
269
269
|
sm: 12,
|
|
270
270
|
md: 12,
|
|
@@ -272,14 +272,14 @@ function Bl(f, D, x, e, k, K) {
|
|
|
272
272
|
xl: 12
|
|
273
273
|
}, {
|
|
274
274
|
default: n(() => [
|
|
275
|
-
l.field.nameEn ? (a(), y(
|
|
275
|
+
l.field.nameEn ? (a(), y(t, {
|
|
276
276
|
key: 0,
|
|
277
277
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.nameEn,
|
|
278
278
|
prop: l.field.nameEn,
|
|
279
279
|
class: "item-name item-name-top"
|
|
280
280
|
}, {
|
|
281
281
|
default: n(() => [
|
|
282
|
-
|
|
282
|
+
b(N, {
|
|
283
283
|
onBlur: (o) => e.inputBlur(o, l.field.nameEn),
|
|
284
284
|
onFocus: (o) => e.inputFocus(o, l.field.nameEn),
|
|
285
285
|
onChange: (o) => e.inputChange(o, l.field.nameEn),
|
|
@@ -294,7 +294,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
294
294
|
type: l.type ? l.type : "text",
|
|
295
295
|
placeholder: l.placeholderNameEn,
|
|
296
296
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNameEn) && !l.openDisabled,
|
|
297
|
-
onKeyup:
|
|
297
|
+
onKeyup: U((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
298
298
|
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "class", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
299
299
|
]),
|
|
300
300
|
_: 2
|
|
@@ -305,9 +305,9 @@ function Bl(f, D, x, e, k, K) {
|
|
|
305
305
|
]),
|
|
306
306
|
_: 2
|
|
307
307
|
}, 1024),
|
|
308
|
-
|
|
308
|
+
b(F, { gutter: 20 }, {
|
|
309
309
|
default: n(() => [
|
|
310
|
-
|
|
310
|
+
b(x, {
|
|
311
311
|
xs: 24,
|
|
312
312
|
sm: 12,
|
|
313
313
|
md: 12,
|
|
@@ -315,14 +315,14 @@ function Bl(f, D, x, e, k, K) {
|
|
|
315
315
|
xl: 12
|
|
316
316
|
}, {
|
|
317
317
|
default: n(() => [
|
|
318
|
-
l.field.nameChFamily ? (a(), y(
|
|
318
|
+
l.field.nameChFamily ? (a(), y(t, {
|
|
319
319
|
key: 0,
|
|
320
320
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.nameChFamily,
|
|
321
321
|
prop: l.field.nameChFamily,
|
|
322
322
|
class: "item-name item-name-bottom"
|
|
323
323
|
}, {
|
|
324
324
|
default: n(() => [
|
|
325
|
-
|
|
325
|
+
b(N, {
|
|
326
326
|
onBlur: (o) => e.inputBlur(o, l.field.nameChFamily),
|
|
327
327
|
onFocus: (o) => e.inputFocus(o, l.field.nameChFamily),
|
|
328
328
|
onChange: (o) => e.inputChange(o, l.field.nameChFamily),
|
|
@@ -340,7 +340,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
340
340
|
type: l.type ? l.type : "text",
|
|
341
341
|
placeholder: l.placeholderNameChFamily,
|
|
342
342
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNameChFamily) && !l.openDisabled,
|
|
343
|
-
onKeyup:
|
|
343
|
+
onKeyup: U((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
344
344
|
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "class", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
345
345
|
]),
|
|
346
346
|
_: 2
|
|
@@ -348,7 +348,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
348
348
|
]),
|
|
349
349
|
_: 2
|
|
350
350
|
}, 1024),
|
|
351
|
-
|
|
351
|
+
b(x, {
|
|
352
352
|
xs: 24,
|
|
353
353
|
sm: 12,
|
|
354
354
|
md: 12,
|
|
@@ -356,14 +356,14 @@ function Bl(f, D, x, e, k, K) {
|
|
|
356
356
|
xl: 12
|
|
357
357
|
}, {
|
|
358
358
|
default: n(() => [
|
|
359
|
-
l.field.nameCh ? (a(), y(
|
|
359
|
+
l.field.nameCh ? (a(), y(t, {
|
|
360
360
|
key: 0,
|
|
361
361
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.nameCh,
|
|
362
362
|
prop: l.field.nameCh,
|
|
363
363
|
class: "item-name item-name-bottom"
|
|
364
364
|
}, {
|
|
365
365
|
default: n(() => [
|
|
366
|
-
|
|
366
|
+
b(N, {
|
|
367
367
|
onBlur: (o) => e.inputBlur(o, l.field.nameCh),
|
|
368
368
|
onFocus: (o) => e.inputFocus(o, l.field.nameCh),
|
|
369
369
|
onChange: (o) => e.inputChange(o, l.field.nameCh),
|
|
@@ -378,7 +378,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
378
378
|
type: l.type ? l.type : "text",
|
|
379
379
|
placeholder: l.placeholderNameCh,
|
|
380
380
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNameCh) && !l.openDisabled,
|
|
381
|
-
onKeyup:
|
|
381
|
+
onKeyup: U((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
382
382
|
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "class", "maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
383
383
|
]),
|
|
384
384
|
_: 2
|
|
@@ -391,7 +391,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
391
391
|
}, 1024)
|
|
392
392
|
]),
|
|
393
393
|
_: 2
|
|
394
|
-
}, 1032, ["label", "disabled"])) : l.type === "gender" && typeof l.field == "string" ? (a(), y(
|
|
394
|
+
}, 1032, ["label", "disabled"])) : l.type === "gender" && typeof l.field == "string" ? (a(), y(t, {
|
|
395
395
|
key: 2,
|
|
396
396
|
label: l.label,
|
|
397
397
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
@@ -399,7 +399,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
399
399
|
class: "radio_row"
|
|
400
400
|
}, {
|
|
401
401
|
label: n(() => [
|
|
402
|
-
l.slotLabelName ?
|
|
402
|
+
l.slotLabelName ? M(f.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), i("div", {
|
|
403
403
|
key: 0,
|
|
404
404
|
style: g(l.labelStyle)
|
|
405
405
|
}, [
|
|
@@ -408,7 +408,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
408
408
|
], 4))
|
|
409
409
|
]),
|
|
410
410
|
default: n(() => [
|
|
411
|
-
|
|
411
|
+
b(j, {
|
|
412
412
|
modelValue: e.states.model[l.field],
|
|
413
413
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
414
414
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
@@ -417,7 +417,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
417
417
|
default: n(() => {
|
|
418
418
|
var o;
|
|
419
419
|
return [
|
|
420
|
-
(a(!0), i(
|
|
420
|
+
(a(!0), i(O, null, R((o = l.options) == null ? void 0 : o.data, (p) => (a(), y(v, {
|
|
421
421
|
label: p.code,
|
|
422
422
|
size: "large",
|
|
423
423
|
key: p.code
|
|
@@ -437,7 +437,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
437
437
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
|
|
438
438
|
]),
|
|
439
439
|
_: 2
|
|
440
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "radio" && typeof l.field == "string" ? (a(), y(
|
|
440
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "radio" && typeof l.field == "string" ? (a(), y(t, {
|
|
441
441
|
key: 3,
|
|
442
442
|
label: l.label,
|
|
443
443
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
@@ -445,7 +445,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
445
445
|
class: h([l.labelNode ? "radio_Note" : "rule_err"])
|
|
446
446
|
}, {
|
|
447
447
|
label: n(() => [
|
|
448
|
-
l.slotLabelName ?
|
|
448
|
+
l.slotLabelName ? M(f.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), i("div", {
|
|
449
449
|
key: 0,
|
|
450
450
|
style: g(l.labelStyle)
|
|
451
451
|
}, [
|
|
@@ -454,7 +454,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
454
454
|
], 4))
|
|
455
455
|
]),
|
|
456
456
|
default: n(() => [
|
|
457
|
-
|
|
457
|
+
b(j, {
|
|
458
458
|
modelValue: e.states.model[l.field],
|
|
459
459
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
460
460
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
@@ -467,7 +467,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
467
467
|
default: n(() => {
|
|
468
468
|
var o;
|
|
469
469
|
return [
|
|
470
|
-
(a(!0), i(
|
|
470
|
+
(a(!0), i(O, null, R((o = l.options) == null ? void 0 : o.data, (p) => (a(), y(v, {
|
|
471
471
|
size: "large",
|
|
472
472
|
label: p.code,
|
|
473
473
|
key: p.code,
|
|
@@ -484,7 +484,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
484
484
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange", "style", "class"])
|
|
485
485
|
]),
|
|
486
486
|
_: 2
|
|
487
|
-
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "radioNote" && typeof l.field == "string" ? (a(), y(
|
|
487
|
+
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "radioNote" && typeof l.field == "string" ? (a(), y(t, {
|
|
488
488
|
key: 4,
|
|
489
489
|
label: l.label,
|
|
490
490
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
@@ -497,7 +497,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
497
497
|
A("span", Nl, u(l.labelNode), 1),
|
|
498
498
|
l.required ? (a(), i("span", Al, "*")) : c("", !0)
|
|
499
499
|
]),
|
|
500
|
-
|
|
500
|
+
b(j, {
|
|
501
501
|
modelValue: e.states.model[l.field],
|
|
502
502
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
503
503
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
@@ -510,7 +510,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
510
510
|
default: n(() => {
|
|
511
511
|
var o;
|
|
512
512
|
return [
|
|
513
|
-
(a(!0), i(
|
|
513
|
+
(a(!0), i(O, null, R((o = l.options) == null ? void 0 : o.data, (p) => (a(), y(v, {
|
|
514
514
|
size: "large",
|
|
515
515
|
label: p.code,
|
|
516
516
|
key: p.code
|
|
@@ -526,14 +526,14 @@ function Bl(f, D, x, e, k, K) {
|
|
|
526
526
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange", "style", "class"])
|
|
527
527
|
]),
|
|
528
528
|
_: 2
|
|
529
|
-
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "checkbox" && typeof l.field == "string" ? (a(), y(
|
|
529
|
+
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "checkbox" && typeof l.field == "string" ? (a(), y(t, {
|
|
530
530
|
key: 5,
|
|
531
531
|
label: l.label,
|
|
532
532
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
533
533
|
prop: l.field
|
|
534
534
|
}, {
|
|
535
535
|
label: n(() => [
|
|
536
|
-
l.slotLabelName ?
|
|
536
|
+
l.slotLabelName ? M(f.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), i("div", {
|
|
537
537
|
key: 0,
|
|
538
538
|
style: g(l.labelStyle)
|
|
539
539
|
}, [
|
|
@@ -542,7 +542,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
542
542
|
], 4))
|
|
543
543
|
]),
|
|
544
544
|
default: n(() => [
|
|
545
|
-
|
|
545
|
+
b(S, {
|
|
546
546
|
modelValue: e.states.model[l.field],
|
|
547
547
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
548
548
|
onChange: (o) => e.checkChange(o, l.field),
|
|
@@ -554,7 +554,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
554
554
|
default: n(() => {
|
|
555
555
|
var o;
|
|
556
556
|
return [
|
|
557
|
-
(a(!0), i(
|
|
557
|
+
(a(!0), i(O, null, R((o = l.options) == null ? void 0 : o.data, (p) => (a(), y(E, {
|
|
558
558
|
key: p.code,
|
|
559
559
|
label: p.code,
|
|
560
560
|
disabled: p.isDisabled
|
|
@@ -570,14 +570,14 @@ function Bl(f, D, x, e, k, K) {
|
|
|
570
570
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
|
|
571
571
|
]),
|
|
572
572
|
_: 2
|
|
573
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "checkboxRadio" && typeof l.field == "string" ? (a(), y(
|
|
573
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "checkboxRadio" && typeof l.field == "string" ? (a(), y(t, {
|
|
574
574
|
key: 6,
|
|
575
575
|
label: l.label,
|
|
576
576
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
577
577
|
prop: l.field
|
|
578
578
|
}, {
|
|
579
579
|
label: n(() => [
|
|
580
|
-
l.slotLabelName ?
|
|
580
|
+
l.slotLabelName ? M(f.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), i("div", {
|
|
581
581
|
key: 0,
|
|
582
582
|
style: g(l.labelStyle)
|
|
583
583
|
}, [
|
|
@@ -586,7 +586,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
586
586
|
], 4))
|
|
587
587
|
]),
|
|
588
588
|
default: n(() => [
|
|
589
|
-
|
|
589
|
+
b(S, {
|
|
590
590
|
modelValue: e.states.model[l.field],
|
|
591
591
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
592
592
|
onChange: (o) => e.handleCheckedChange(o, l.field),
|
|
@@ -598,7 +598,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
598
598
|
default: n(() => {
|
|
599
599
|
var o;
|
|
600
600
|
return [
|
|
601
|
-
(a(!0), i(
|
|
601
|
+
(a(!0), i(O, null, R((o = l.options) == null ? void 0 : o.data, (p) => (a(), y(E, {
|
|
602
602
|
key: p.code,
|
|
603
603
|
label: p.code,
|
|
604
604
|
disabled: p.isDisabled
|
|
@@ -614,7 +614,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
614
614
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
|
|
615
615
|
]),
|
|
616
616
|
_: 2
|
|
617
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "select" && typeof l.field == "string" ? (a(), y(
|
|
617
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "select" && typeof l.field == "string" ? (a(), y(t, {
|
|
618
618
|
key: 7,
|
|
619
619
|
label: l.label,
|
|
620
620
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
@@ -622,7 +622,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
622
622
|
prop: l.field
|
|
623
623
|
}, {
|
|
624
624
|
label: n(() => [
|
|
625
|
-
l.slotLabelName ?
|
|
625
|
+
l.slotLabelName ? M(f.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), i("div", {
|
|
626
626
|
key: 0,
|
|
627
627
|
style: g(l.labelStyle)
|
|
628
628
|
}, [
|
|
@@ -631,7 +631,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
631
631
|
], 4))
|
|
632
632
|
]),
|
|
633
633
|
default: n(() => [
|
|
634
|
-
|
|
634
|
+
b(L, {
|
|
635
635
|
"popper-class": "selectTriangles",
|
|
636
636
|
teleported: !1,
|
|
637
637
|
modelValue: e.states.model[l.field],
|
|
@@ -648,7 +648,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
648
648
|
default: n(() => {
|
|
649
649
|
var o;
|
|
650
650
|
return [
|
|
651
|
-
(a(!0), i(
|
|
651
|
+
(a(!0), i(O, null, R((o = l.options) == null ? void 0 : o.data, (p) => (a(), y(z, {
|
|
652
652
|
key: p.code,
|
|
653
653
|
label: p.name,
|
|
654
654
|
value: p.code
|
|
@@ -663,7 +663,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
663
663
|
}, u(l.tipsBlow), 5)
|
|
664
664
|
]),
|
|
665
665
|
_: 2
|
|
666
|
-
}, 1032, ["label", "rules", "disabled", "prop"])) : l.type === "date" && typeof l.field == "string" ? (a(), y(
|
|
666
|
+
}, 1032, ["label", "rules", "disabled", "prop"])) : l.type === "date" && typeof l.field == "string" ? (a(), y(t, {
|
|
667
667
|
key: 8,
|
|
668
668
|
label: l.label,
|
|
669
669
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
@@ -671,7 +671,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
671
671
|
class: "date_item"
|
|
672
672
|
}, {
|
|
673
673
|
label: n(() => [
|
|
674
|
-
l.slotLabelName ?
|
|
674
|
+
l.slotLabelName ? M(f.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), i("div", {
|
|
675
675
|
key: 0,
|
|
676
676
|
style: g(l.labelStyle)
|
|
677
677
|
}, [
|
|
@@ -680,38 +680,37 @@ function Bl(f, D, x, e, k, K) {
|
|
|
680
680
|
], 4))
|
|
681
681
|
]),
|
|
682
682
|
default: n(() => [
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
teleported: !1,
|
|
683
|
+
b(B, {
|
|
684
|
+
size: "large",
|
|
686
685
|
format: "DD/MM/YYYY",
|
|
687
686
|
"value-format": "DD/MM/YYYY",
|
|
687
|
+
value: e.states.model[l.field],
|
|
688
|
+
"onUpdate:value": (o) => e.states.model[l.field] = o,
|
|
688
689
|
"disabled-date": l.disabledDate,
|
|
689
690
|
onChange: (o) => e.dateChange(
|
|
690
691
|
o,
|
|
691
692
|
typeof l.field == "string" ? l.field : ""
|
|
692
693
|
),
|
|
693
|
-
|
|
694
|
-
modelValue: e.states.model[l.field],
|
|
695
|
-
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
694
|
+
suffixIcon: e.prefixIcon,
|
|
696
695
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
697
|
-
|
|
698
|
-
|
|
696
|
+
inputReadOnly: l.readonly,
|
|
697
|
+
picker: l.type,
|
|
699
698
|
placeholder: l.placeholder || l.label,
|
|
700
699
|
class: h(
|
|
701
700
|
(l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
702
701
|
)
|
|
703
|
-
}, null, 8, ["
|
|
702
|
+
}, null, 8, ["value", "onUpdate:value", "disabled-date", "onChange", "suffixIcon", "disabled", "inputReadOnly", "picker", "placeholder", "class"]),
|
|
704
703
|
l.showTo ? (a(), i("span", xl, u(l.showTo), 1)) : c("", !0)
|
|
705
704
|
]),
|
|
706
705
|
_: 2
|
|
707
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "daterange" && typeof l.field == "string" ? (a(), y(
|
|
706
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "daterange" && typeof l.field == "string" ? (a(), y(t, {
|
|
708
707
|
key: 9,
|
|
709
708
|
label: l.label,
|
|
710
709
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
711
710
|
prop: l.field
|
|
712
711
|
}, {
|
|
713
712
|
label: n(() => [
|
|
714
|
-
l.slotLabelName ?
|
|
713
|
+
l.slotLabelName ? M(f.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), i("div", {
|
|
715
714
|
key: 0,
|
|
716
715
|
style: g(l.labelStyle)
|
|
717
716
|
}, [
|
|
@@ -720,7 +719,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
720
719
|
], 4))
|
|
721
720
|
]),
|
|
722
721
|
default: n(() => [
|
|
723
|
-
|
|
722
|
+
b(Y, {
|
|
724
723
|
"popper-class": "selectTriangles",
|
|
725
724
|
teleported: !1,
|
|
726
725
|
format: "DD/MM/YYYY",
|
|
@@ -744,7 +743,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
744
743
|
}, null, 8, ["disabled-date", "onChange", "modelValue", "onUpdate:modelValue", "prefix-icon", "start-placeholder", "end-placeholder", "class"])
|
|
745
744
|
]),
|
|
746
745
|
_: 2
|
|
747
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "slotItem" ? (a(), y(
|
|
746
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "slotItem" ? (a(), y(t, {
|
|
748
747
|
key: 10,
|
|
749
748
|
label: l.label,
|
|
750
749
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
@@ -752,7 +751,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
752
751
|
class: "rule_err"
|
|
753
752
|
}, {
|
|
754
753
|
label: n(() => [
|
|
755
|
-
l.slotLabelName ?
|
|
754
|
+
l.slotLabelName ? M(f.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), i("div", {
|
|
756
755
|
key: 0,
|
|
757
756
|
style: g(l.labelStyle)
|
|
758
757
|
}, [
|
|
@@ -761,10 +760,10 @@ function Bl(f, D, x, e, k, K) {
|
|
|
761
760
|
], 4))
|
|
762
761
|
]),
|
|
763
762
|
default: n(() => [
|
|
764
|
-
|
|
763
|
+
M(f.$slots, l.slotItemName, {}, void 0, !0)
|
|
765
764
|
]),
|
|
766
765
|
_: 2
|
|
767
|
-
}, 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(), y(
|
|
766
|
+
}, 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(), y(t, {
|
|
768
767
|
key: 11,
|
|
769
768
|
label: l.label,
|
|
770
769
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.phoneNumber,
|
|
@@ -772,7 +771,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
772
771
|
class: "phone_item"
|
|
773
772
|
}, {
|
|
774
773
|
label: n(() => [
|
|
775
|
-
l.slotLabelName ?
|
|
774
|
+
l.slotLabelName ? M(f.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), i("div", {
|
|
776
775
|
key: 0,
|
|
777
776
|
style: g(l.labelStyle)
|
|
778
777
|
}, [
|
|
@@ -781,19 +780,19 @@ function Bl(f, D, x, e, k, K) {
|
|
|
781
780
|
], 4))
|
|
782
781
|
]),
|
|
783
782
|
default: n(() => {
|
|
784
|
-
var o, p;
|
|
783
|
+
var o, p, s, r;
|
|
785
784
|
return [
|
|
786
785
|
A("div", {
|
|
787
786
|
class: h(e.phoneWrap ? ["phone_item_content", "phone_item_content_wrap"] : "phone_item_content")
|
|
788
787
|
}, [
|
|
789
788
|
e.phoneWrap ? (a(), i("div", Fl, [
|
|
790
|
-
l.field.nationCode ? (a(), y(
|
|
789
|
+
l.field.nationCode ? (a(), y(L, {
|
|
791
790
|
key: 0,
|
|
792
791
|
"popper-class": "selectTriangles",
|
|
793
792
|
teleported: !1,
|
|
794
793
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNation) && !l.openDisabled,
|
|
795
794
|
modelValue: e.states.model[l.field.nationCode],
|
|
796
|
-
"onUpdate:modelValue": (
|
|
795
|
+
"onUpdate:modelValue": (d) => e.states.model[l.field.nationCode] = d,
|
|
797
796
|
placeholder: ((o = l.nationOptions) == null ? void 0 : o.placeholder) || "",
|
|
798
797
|
class: h(
|
|
799
798
|
(l.isReadonly || l.isReadonlyNation || e.formOptions.isAllReadonly) && !l.openDisabled ? "selectreadonly" : ""
|
|
@@ -802,56 +801,56 @@ function Bl(f, D, x, e, k, K) {
|
|
|
802
801
|
"fit-input-width": !0
|
|
803
802
|
}, {
|
|
804
803
|
default: n(() => {
|
|
805
|
-
var
|
|
804
|
+
var d;
|
|
806
805
|
return [
|
|
807
|
-
(a(!0), i(
|
|
808
|
-
label:
|
|
809
|
-
value:
|
|
810
|
-
key:
|
|
806
|
+
(a(!0), i(O, null, R((d = l.nationOptions) == null ? void 0 : d.data, (I, V) => (a(), y(z, {
|
|
807
|
+
label: I.name,
|
|
808
|
+
value: I.code,
|
|
809
|
+
key: V
|
|
811
810
|
}, null, 8, ["label", "value"]))), 128))
|
|
812
811
|
];
|
|
813
812
|
}),
|
|
814
813
|
_: 2
|
|
815
814
|
}, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class", "style"])) : c("", !0),
|
|
816
|
-
|
|
815
|
+
vl,
|
|
817
816
|
l.field.areaCode ? (a(), y(N, {
|
|
818
817
|
key: 1,
|
|
819
|
-
onBlur: (
|
|
820
|
-
|
|
818
|
+
onBlur: (d) => e.inputBlur(
|
|
819
|
+
d,
|
|
821
820
|
typeof l.field == "string" ? l.field : ""
|
|
822
821
|
),
|
|
823
|
-
onFocus: (
|
|
824
|
-
|
|
822
|
+
onFocus: (d) => e.inputFocus(
|
|
823
|
+
d,
|
|
825
824
|
typeof l.field == "string" ? l.field : ""
|
|
826
825
|
),
|
|
827
|
-
onChange: (
|
|
828
|
-
|
|
826
|
+
onChange: (d) => e.inputChange(
|
|
827
|
+
d,
|
|
829
828
|
typeof l.field == "string" ? l.field : ""
|
|
830
829
|
),
|
|
831
|
-
onInput: (
|
|
832
|
-
|
|
830
|
+
onInput: (d) => e.inputInput(
|
|
831
|
+
d,
|
|
833
832
|
typeof l.field == "string" ? l.field : ""
|
|
834
833
|
),
|
|
835
834
|
maxlength: l.maxlength,
|
|
836
835
|
modelValue: e.states.model[l.field.areaCode],
|
|
837
|
-
"onUpdate:modelValue": (
|
|
836
|
+
"onUpdate:modelValue": (d) => e.states.model[l.field.areaCode] = d,
|
|
838
837
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyArea) && !l.openDisabled,
|
|
839
|
-
placeholder: l.
|
|
838
|
+
placeholder: ((p = l.areaOptions) == null ? void 0 : p.placeholder) || "",
|
|
840
839
|
class: h(
|
|
841
840
|
(l.isReadonly || l.isReadonlyArea || e.formOptions.isAllReadonly) && !l.openDisabled ? "selectreadonly" : "areaCode_input"
|
|
842
841
|
),
|
|
843
842
|
clearable: l.clearable
|
|
844
843
|
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "clearable"])) : c("", !0),
|
|
845
|
-
|
|
844
|
+
jl
|
|
846
845
|
])) : c("", !0),
|
|
847
|
-
l.field.nationCode && !e.phoneWrap ? (a(), y(
|
|
846
|
+
l.field.nationCode && !e.phoneWrap ? (a(), y(L, {
|
|
848
847
|
key: 1,
|
|
849
848
|
"popper-class": "selectTriangles",
|
|
850
849
|
teleported: !1,
|
|
851
850
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNation) && !l.openDisabled,
|
|
852
851
|
modelValue: e.states.model[l.field.nationCode],
|
|
853
|
-
"onUpdate:modelValue": (
|
|
854
|
-
placeholder: ((
|
|
852
|
+
"onUpdate:modelValue": (d) => e.states.model[l.field.nationCode] = d,
|
|
853
|
+
placeholder: ((s = l.nationOptions) == null ? void 0 : s.placeholder) || "",
|
|
855
854
|
class: h(
|
|
856
855
|
(l.isReadonly || l.isReadonlyNation || e.formOptions.isAllReadonly) && !l.openDisabled ? "selectreadonly" : ""
|
|
857
856
|
),
|
|
@@ -859,12 +858,12 @@ function Bl(f, D, x, e, k, K) {
|
|
|
859
858
|
"fit-input-width": !0
|
|
860
859
|
}, {
|
|
861
860
|
default: n(() => {
|
|
862
|
-
var
|
|
861
|
+
var d;
|
|
863
862
|
return [
|
|
864
|
-
(a(!0), i(
|
|
865
|
-
label:
|
|
866
|
-
value:
|
|
867
|
-
key:
|
|
863
|
+
(a(!0), i(O, null, R((d = l.nationOptions) == null ? void 0 : d.data, (I, V) => (a(), y(z, {
|
|
864
|
+
label: I.name,
|
|
865
|
+
value: I.code,
|
|
866
|
+
key: V
|
|
868
867
|
}, null, 8, ["label", "value"]))), 128))
|
|
869
868
|
];
|
|
870
869
|
}),
|
|
@@ -873,27 +872,27 @@ function Bl(f, D, x, e, k, K) {
|
|
|
873
872
|
e.phoneWrap ? c("", !0) : (a(), i("div", zl, "-")),
|
|
874
873
|
l.field.areaCode && !e.phoneWrap ? (a(), y(N, {
|
|
875
874
|
key: 3,
|
|
876
|
-
onBlur: (
|
|
877
|
-
|
|
875
|
+
onBlur: (d) => e.inputBlur(
|
|
876
|
+
d,
|
|
878
877
|
typeof l.field == "string" ? l.field : ""
|
|
879
878
|
),
|
|
880
|
-
onFocus: (
|
|
881
|
-
|
|
879
|
+
onFocus: (d) => e.inputFocus(
|
|
880
|
+
d,
|
|
882
881
|
typeof l.field == "string" ? l.field : ""
|
|
883
882
|
),
|
|
884
|
-
onChange: (
|
|
885
|
-
|
|
883
|
+
onChange: (d) => e.inputChange(
|
|
884
|
+
d,
|
|
886
885
|
typeof l.field == "string" ? l.field : ""
|
|
887
886
|
),
|
|
888
|
-
onInput: (
|
|
889
|
-
|
|
887
|
+
onInput: (d) => e.inputInput(
|
|
888
|
+
d,
|
|
890
889
|
typeof l.field == "string" ? l.field : ""
|
|
891
890
|
),
|
|
892
891
|
maxlength: l.maxlength,
|
|
893
892
|
modelValue: e.states.model[l.field.areaCode],
|
|
894
|
-
"onUpdate:modelValue": (
|
|
893
|
+
"onUpdate:modelValue": (d) => e.states.model[l.field.areaCode] = d,
|
|
895
894
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyArea) && !l.openDisabled,
|
|
896
|
-
placeholder: l.
|
|
895
|
+
placeholder: ((r = l.areaOptions) == null ? void 0 : r.placeholder) || "",
|
|
897
896
|
class: h(
|
|
898
897
|
(l.isReadonly || l.isReadonlyArea || e.formOptions.isAllReadonly) && !l.openDisabled ? "selectreadonly" : "areaCode_input"
|
|
899
898
|
),
|
|
@@ -902,25 +901,25 @@ function Bl(f, D, x, e, k, K) {
|
|
|
902
901
|
e.phoneWrap ? c("", !0) : (a(), i("div", Ll, "-")),
|
|
903
902
|
l.field.phoneNumber ? (a(), y(N, {
|
|
904
903
|
key: 5,
|
|
905
|
-
onBlur: (
|
|
906
|
-
|
|
904
|
+
onBlur: (d) => e.inputBlur(
|
|
905
|
+
d,
|
|
907
906
|
typeof l.field == "string" ? l.field : ""
|
|
908
907
|
),
|
|
909
|
-
onFocus: (
|
|
910
|
-
|
|
908
|
+
onFocus: (d) => e.inputFocus(
|
|
909
|
+
d,
|
|
911
910
|
typeof l.field == "string" ? l.field : ""
|
|
912
911
|
),
|
|
913
|
-
onChange: (
|
|
914
|
-
|
|
912
|
+
onChange: (d) => e.inputChange(
|
|
913
|
+
d,
|
|
915
914
|
typeof l.field == "string" ? l.field : ""
|
|
916
915
|
),
|
|
917
|
-
onInput: (
|
|
918
|
-
|
|
916
|
+
onInput: (d) => e.inputInput(
|
|
917
|
+
d,
|
|
919
918
|
typeof l.field == "string" ? l.field : ""
|
|
920
919
|
),
|
|
921
920
|
maxlength: l.maxlength,
|
|
922
921
|
modelValue: e.states.model[l.field.phoneNumber],
|
|
923
|
-
"onUpdate:modelValue": (
|
|
922
|
+
"onUpdate:modelValue": (d) => e.states.model[l.field.phoneNumber] = d,
|
|
924
923
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyPhoneNumber) && !l.openDisabled,
|
|
925
924
|
placeholder: l.placeholder || "",
|
|
926
925
|
class: h(
|
|
@@ -932,7 +931,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
932
931
|
];
|
|
933
932
|
}),
|
|
934
933
|
_: 2
|
|
935
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "line" ? (a(), y(
|
|
934
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "line" ? (a(), y(t, {
|
|
936
935
|
key: 12,
|
|
937
936
|
label: l.label
|
|
938
937
|
}, {
|
|
@@ -940,14 +939,14 @@ function Bl(f, D, x, e, k, K) {
|
|
|
940
939
|
Tl
|
|
941
940
|
]),
|
|
942
941
|
_: 2
|
|
943
|
-
}, 1032, ["label"])) : l.type === "number" && typeof l.field == "string" ? (a(), y(
|
|
942
|
+
}, 1032, ["label"])) : l.type === "number" && typeof l.field == "string" ? (a(), y(t, {
|
|
944
943
|
key: 13,
|
|
945
944
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
946
945
|
prop: l.field,
|
|
947
946
|
class: h(l.prepend ? "input-item" : "")
|
|
948
947
|
}, {
|
|
949
948
|
label: n(() => [
|
|
950
|
-
l.slotLabelName ?
|
|
949
|
+
l.slotLabelName ? M(f.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), i("div", {
|
|
951
950
|
key: 0,
|
|
952
951
|
style: g(l.labelStyle)
|
|
953
952
|
}, [
|
|
@@ -956,7 +955,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
956
955
|
], 4))
|
|
957
956
|
]),
|
|
958
957
|
default: n(() => [
|
|
959
|
-
|
|
958
|
+
b(N, {
|
|
960
959
|
onBlur: (o) => e.inputBlur(
|
|
961
960
|
o,
|
|
962
961
|
typeof l.field == "string" ? l.field : ""
|
|
@@ -988,7 +987,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
988
987
|
class: h(
|
|
989
988
|
(l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
990
989
|
),
|
|
991
|
-
onKeyup:
|
|
990
|
+
onKeyup: U((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
992
991
|
}, Z({ _: 2 }, [
|
|
993
992
|
l.prepend ? {
|
|
994
993
|
name: "prepend",
|
|
@@ -1007,14 +1006,14 @@ function Bl(f, D, x, e, k, K) {
|
|
|
1007
1006
|
]), 1032, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "show-word-limit", "readonly", "type", "rows", "placeholder", "disabled", "showPassword", "clearable", "class", "onKeyup"])
|
|
1008
1007
|
]),
|
|
1009
1008
|
_: 2
|
|
1010
|
-
}, 1032, ["rules", "prop", "class"])) : (a(), y(
|
|
1009
|
+
}, 1032, ["rules", "prop", "class"])) : (a(), y(t, {
|
|
1011
1010
|
key: 14,
|
|
1012
1011
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
1013
1012
|
prop: l.field,
|
|
1014
1013
|
class: h(l.prepend ? "input-item" : "")
|
|
1015
1014
|
}, {
|
|
1016
1015
|
label: n(() => [
|
|
1017
|
-
l.slotLabelName ?
|
|
1016
|
+
l.slotLabelName ? M(f.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), i("div", {
|
|
1018
1017
|
key: 0,
|
|
1019
1018
|
style: g(l.labelStyle)
|
|
1020
1019
|
}, [
|
|
@@ -1023,7 +1022,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
1023
1022
|
], 4))
|
|
1024
1023
|
]),
|
|
1025
1024
|
default: n(() => [
|
|
1026
|
-
|
|
1025
|
+
b(N, {
|
|
1027
1026
|
onBlur: (o) => e.inputBlur(
|
|
1028
1027
|
o,
|
|
1029
1028
|
typeof l.field == "string" ? l.field : ""
|
|
@@ -1054,7 +1053,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
1054
1053
|
class: h(
|
|
1055
1054
|
(l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
1056
1055
|
),
|
|
1057
|
-
onKeyup:
|
|
1056
|
+
onKeyup: U((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
1058
1057
|
}, Z({ _: 2 }, [
|
|
1059
1058
|
l.prepend ? {
|
|
1060
1059
|
name: "prepend",
|
|
@@ -1083,14 +1082,14 @@ function Bl(f, D, x, e, k, K) {
|
|
|
1083
1082
|
]),
|
|
1084
1083
|
_: 3
|
|
1085
1084
|
}),
|
|
1086
|
-
t
|
|
1085
|
+
b(t, { class: "btnsItem" }, {
|
|
1087
1086
|
default: n(() => [
|
|
1088
|
-
|
|
1089
|
-
model:
|
|
1087
|
+
M(f.$slots, "buttons", {
|
|
1088
|
+
model: w.model,
|
|
1090
1089
|
onBtnClick: e.onSubmit
|
|
1091
1090
|
}, () => [
|
|
1092
|
-
(a(!0), i(
|
|
1093
|
-
l.isShow ? (a(), y(
|
|
1091
|
+
(a(!0), i(O, null, R(e.formOptions.btnConfig, (l, T) => (a(), i("div", { key: T }, [
|
|
1092
|
+
l.isShow ? (a(), y(q, {
|
|
1094
1093
|
key: 0,
|
|
1095
1094
|
btnCode: l.btnCode,
|
|
1096
1095
|
plain: l.plain,
|
|
@@ -1131,11 +1130,11 @@ function Bl(f, D, x, e, k, K) {
|
|
|
1131
1130
|
_: 3
|
|
1132
1131
|
}, 16, ["model", "label-position"]);
|
|
1133
1132
|
}
|
|
1134
|
-
const m = /* @__PURE__ */
|
|
1135
|
-
function
|
|
1136
|
-
|
|
1133
|
+
const m = /* @__PURE__ */ tl(ul, [["render", Bl], ["__scopeId", "data-v-0bf3a46a"]]);
|
|
1134
|
+
function K(f, D = {}) {
|
|
1135
|
+
K.installed || (K.installed = !0, f.component("common-el-form", m));
|
|
1137
1136
|
}
|
|
1138
|
-
m.install =
|
|
1137
|
+
m.install = K;
|
|
1139
1138
|
export {
|
|
1140
1139
|
m as default
|
|
1141
1140
|
};
|