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