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