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