sinosoft-common-form 1.5.8 → 1.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common-form.es.js +354 -354
- package/common-form.umd.js +1 -1
- package/package.json +1 -1
- package/sinosoft-common-form-1.5.9.tgz +0 -0
- package/style.css +1 -1
package/common-form.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as W, 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 M, openBlock as n, createBlock as i, mergeProps as sl, withModifiers as rl, withCtx as d, createVNode as t, createElementBlock as r, Fragment as k, renderList as R, withDirectives as il, createElementVNode as A, normalizeStyle as h, toDisplayString as c, createTextVNode as g, createCommentVNode as f, renderSlot as C, normalizeClass as b, withKeys as V, 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
|
|
24
|
+
setup(p, { emit: _ }) {
|
|
25
|
+
const w = W(!0), e = J({
|
|
26
26
|
model: {}
|
|
27
|
-
}),
|
|
27
|
+
}), O = W(null), P = X({
|
|
28
28
|
render() {
|
|
29
29
|
return $("img", {
|
|
30
30
|
src: cl
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
}),
|
|
34
|
-
e.model =
|
|
35
|
-
},
|
|
36
|
-
var
|
|
37
|
-
|
|
33
|
+
}), u = ll(() => Object.assign([], p.options)), N = () => {
|
|
34
|
+
e.model = p.model;
|
|
35
|
+
}, x = (s, a, D) => {
|
|
36
|
+
var I;
|
|
37
|
+
a ? (w.value = !1, dl(() => {
|
|
38
38
|
var Q;
|
|
39
|
-
(Q =
|
|
39
|
+
(Q = O.value) == null || Q.validate((G) => {
|
|
40
40
|
if (G)
|
|
41
|
-
D
|
|
41
|
+
_(D || "submit", e.model, s);
|
|
42
42
|
else
|
|
43
43
|
return !1;
|
|
44
44
|
});
|
|
45
|
-
})) : (
|
|
46
|
-
}, U = (
|
|
47
|
-
|
|
48
|
-
}, F = (
|
|
49
|
-
|
|
50
|
-
}, j = (
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
const
|
|
54
|
-
if (
|
|
55
|
-
|
|
45
|
+
})) : (D === "reset" && ((I = O.value) == null || I.resetFields()), _(D || "submit", e.model, s));
|
|
46
|
+
}, U = (s, a) => {
|
|
47
|
+
_("selectChange", s, a);
|
|
48
|
+
}, F = (s, a) => {
|
|
49
|
+
_("radioChange", s, a);
|
|
50
|
+
}, j = (s, a) => {
|
|
51
|
+
_("checkChange", s, a);
|
|
52
|
+
}, E = (s, a) => {
|
|
53
|
+
const D = e.model[a].length;
|
|
54
|
+
if (D === 1) {
|
|
55
|
+
_("checkChange", s, a);
|
|
56
56
|
return;
|
|
57
57
|
} else
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
}, v = (
|
|
62
|
-
|
|
63
|
-
}, z = (
|
|
64
|
-
|
|
65
|
-
},
|
|
66
|
-
console.log(
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
}, l = (
|
|
72
|
-
|
|
73
|
-
}, L = (
|
|
74
|
-
var
|
|
75
|
-
(
|
|
76
|
-
}, o = (
|
|
77
|
-
var
|
|
78
|
-
(
|
|
79
|
-
},
|
|
80
|
-
window.innerWidth < 768 ? (console.log("屏幕宽度小于768px"),
|
|
58
|
+
D > 1 ? (e.model[a].shift(), _("checkChange", s, a)) : D < 1 && _("checkChange", s, a);
|
|
59
|
+
}, S = (s, a, D) => {
|
|
60
|
+
x(s, a, D);
|
|
61
|
+
}, v = (s, a) => {
|
|
62
|
+
s && (a == null ? void 0 : a.key) === "Enter" && x(void 0, !0, "submit");
|
|
63
|
+
}, z = (s, a) => {
|
|
64
|
+
_("dateChange", s, a);
|
|
65
|
+
}, B = (s, a) => {
|
|
66
|
+
console.log(O.value), _("inputBlur", s, a);
|
|
67
|
+
}, Y = (s, a) => {
|
|
68
|
+
_("inputFocus", s, a);
|
|
69
|
+
}, q = (s, a) => {
|
|
70
|
+
_("inputChange", s, a);
|
|
71
|
+
}, l = (s, a) => {
|
|
72
|
+
_("inputInput", s, a);
|
|
73
|
+
}, L = (s) => {
|
|
74
|
+
var a;
|
|
75
|
+
(a = O.value) == null || a.resetFields(s);
|
|
76
|
+
}, o = (s) => {
|
|
77
|
+
var a;
|
|
78
|
+
(a = O.value) == null || a.clearValidate(s);
|
|
79
|
+
}, y = W(!1), T = () => {
|
|
80
|
+
window.innerWidth < 768 ? (console.log("屏幕宽度小于768px"), y.value = !0) : y.value = !1;
|
|
81
81
|
};
|
|
82
82
|
return el(() => {
|
|
83
|
-
var
|
|
84
|
-
N(), (
|
|
83
|
+
var s;
|
|
84
|
+
N(), (s = O.value) == null || s.resetFields(), window.addEventListener("resize", T);
|
|
85
85
|
}), ol(() => {
|
|
86
|
-
window.removeEventListener("resize",
|
|
86
|
+
window.removeEventListener("resize", T);
|
|
87
87
|
}), al(
|
|
88
|
-
() =>
|
|
89
|
-
(
|
|
90
|
-
|
|
88
|
+
() => p.fieldList,
|
|
89
|
+
(s, a) => {
|
|
90
|
+
s !== a && N();
|
|
91
91
|
}
|
|
92
92
|
), {
|
|
93
93
|
...nl(e),
|
|
94
|
-
formRef:
|
|
94
|
+
formRef: O,
|
|
95
95
|
states: e,
|
|
96
|
-
formOptions:
|
|
97
|
-
onSubmit:
|
|
96
|
+
formOptions: u,
|
|
97
|
+
onSubmit: x,
|
|
98
98
|
selectChange: U,
|
|
99
99
|
radioChange: F,
|
|
100
100
|
checkChange: j,
|
|
101
|
-
handleCheckedChange:
|
|
102
|
-
prefixIcon:
|
|
103
|
-
handleClick:
|
|
101
|
+
handleCheckedChange: E,
|
|
102
|
+
prefixIcon: P,
|
|
103
|
+
handleClick: S,
|
|
104
104
|
handleKeyUp: v,
|
|
105
105
|
resetFieldsTest: L,
|
|
106
106
|
clearValidateTest: o,
|
|
107
107
|
dateChange: z,
|
|
108
|
-
inputBlur:
|
|
109
|
-
inputFocus:
|
|
110
|
-
inputChange:
|
|
108
|
+
inputBlur: B,
|
|
109
|
+
inputFocus: Y,
|
|
110
|
+
inputChange: q,
|
|
111
111
|
inputInput: l,
|
|
112
|
-
noFormRule:
|
|
113
|
-
phoneWrap:
|
|
112
|
+
noFormRule: w,
|
|
113
|
+
phoneWrap: y
|
|
114
114
|
// spaceRule,
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
|
-
const
|
|
119
|
-
const
|
|
120
|
-
for (const [e,
|
|
121
|
-
|
|
122
|
-
return
|
|
123
|
-
},
|
|
118
|
+
const tl = (p, _) => {
|
|
119
|
+
const w = p.__vccOpts || p;
|
|
120
|
+
for (const [e, O] of _)
|
|
121
|
+
w[e] = O;
|
|
122
|
+
return w;
|
|
123
|
+
}, K = (p) => (pl("data-v-837d3003"), p = p(), fl(), p), 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 bl = (f, D) => {
|
|
|
132
132
|
}, Ml = { class: "lable" }, Nl = { class: "lable_note" }, Al = {
|
|
133
133
|
key: 0,
|
|
134
134
|
class: "custom-required"
|
|
135
|
-
},
|
|
135
|
+
}, Ol = {
|
|
136
136
|
key: 0,
|
|
137
137
|
class: "custom-required"
|
|
138
|
-
},
|
|
138
|
+
}, kl = {
|
|
139
139
|
key: 0,
|
|
140
140
|
class: "custom-required"
|
|
141
141
|
}, Rl = {
|
|
@@ -159,13 +159,13 @@ const bl = (f, D) => {
|
|
|
159
159
|
}, Fl = {
|
|
160
160
|
key: 0,
|
|
161
161
|
class: "phone_item_content_before"
|
|
162
|
-
}, jl = /* @__PURE__ */
|
|
162
|
+
}, jl = /* @__PURE__ */ K(() => /* @__PURE__ */ A("div", { class: "line_middle" }, "-", -1)), vl = /* @__PURE__ */ K(() => /* @__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__ */ K(() => /* @__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,21 +175,21 @@ const bl = (f, D) => {
|
|
|
175
175
|
key: 0,
|
|
176
176
|
class: "custom-required"
|
|
177
177
|
};
|
|
178
|
-
function Bl(
|
|
179
|
-
const
|
|
180
|
-
return
|
|
178
|
+
function Bl(p, _, w, e, O, P) {
|
|
179
|
+
const u = M("el-form-item"), N = M("el-input"), x = M("el-col"), U = M("el-row"), F = M("el-radio"), j = M("el-radio-group"), E = M("el-checkbox"), S = M("el-checkbox-group"), v = M("el-option"), z = M("el-select"), B = M("el-date-picker"), Y = M("sinosoft-common-button"), q = M("el-form");
|
|
180
|
+
return n(), i(q, sl({
|
|
181
181
|
"hide-required-asterisk": "",
|
|
182
|
-
onSubmit:
|
|
182
|
+
onSubmit: _[0] || (_[0] = rl(() => {
|
|
183
183
|
}, ["prevent"])),
|
|
184
|
-
model:
|
|
184
|
+
model: w.model
|
|
185
185
|
}, e.formOptions, {
|
|
186
186
|
"label-position": e.formOptions.labelPosition,
|
|
187
187
|
ref: "formRef"
|
|
188
188
|
}), {
|
|
189
|
-
default:
|
|
189
|
+
default: d(() => [
|
|
190
190
|
t(U, { gutter: 20 }, {
|
|
191
|
-
default:
|
|
192
|
-
(
|
|
191
|
+
default: d(() => [
|
|
192
|
+
(n(!0), r(k, null, R(w.fieldList, (l, L) => il((n(), i(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,
|
|
@@ -197,56 +197,56 @@ function Bl(f, D, x, e, k, K) {
|
|
|
197
197
|
xl: l.xl ? l.xl : 8,
|
|
198
198
|
key: L
|
|
199
199
|
}, {
|
|
200
|
-
default:
|
|
200
|
+
default: d(() => [
|
|
201
201
|
A("div", {
|
|
202
|
-
style:
|
|
202
|
+
style: h(l.style)
|
|
203
203
|
}, [
|
|
204
|
-
l.type === "title" ? (
|
|
205
|
-
default:
|
|
206
|
-
A("div",
|
|
207
|
-
A("span", hl,
|
|
204
|
+
l.type === "title" ? (n(), i(u, { key: 0 }, {
|
|
205
|
+
default: d(() => [
|
|
206
|
+
A("div", bl, [
|
|
207
|
+
A("span", hl, c(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 ? (n(), i(u, {
|
|
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 ? C(
|
|
217
|
+
label: d(() => [
|
|
218
|
+
l.slotLabelName ? C(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
219
219
|
key: 0,
|
|
220
|
-
style:
|
|
220
|
+
style: h(l.labelStyle)
|
|
221
221
|
}, [
|
|
222
|
-
|
|
223
|
-
l.required ? (
|
|
222
|
+
g(c(l.label) + " ", 1),
|
|
223
|
+
l.required ? (n(), r("span", gl, "*")) : f("", !0)
|
|
224
224
|
], 4))
|
|
225
225
|
]),
|
|
226
|
-
default:
|
|
226
|
+
default: d(() => [
|
|
227
227
|
t(U, { gutter: 20 }, {
|
|
228
|
-
default:
|
|
229
|
-
t(
|
|
228
|
+
default: d(() => [
|
|
229
|
+
t(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: d(() => [
|
|
237
|
+
l.field.nameEnFamily ? (n(), i(u, {
|
|
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:
|
|
243
|
+
default: d(() => [
|
|
244
244
|
t(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: b(
|
|
250
250
|
(l.isReadonly || l.isReadonlyNameEnFamily || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
251
251
|
),
|
|
252
252
|
maxlength: l.maxlengthNameEnFamily,
|
|
@@ -260,25 +260,25 @@ function Bl(f, D, x, e, k, K) {
|
|
|
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"])) : f("", !0)
|
|
264
264
|
]),
|
|
265
265
|
_: 2
|
|
266
266
|
}, 1024),
|
|
267
|
-
t(
|
|
267
|
+
t(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: d(() => [
|
|
275
|
+
l.field.nameEn ? (n(), i(u, {
|
|
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:
|
|
281
|
+
default: d(() => [
|
|
282
282
|
t(N, {
|
|
283
283
|
onBlur: (o) => e.inputBlur(o, l.field.nameEn),
|
|
284
284
|
onFocus: (o) => e.inputFocus(o, l.field.nameEn),
|
|
@@ -287,7 +287,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
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: b(
|
|
291
291
|
(l.isReadonly || l.isReadonlyNameEn || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
292
292
|
),
|
|
293
293
|
readonly: l.readonly,
|
|
@@ -298,7 +298,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
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"])) : f("", !0)
|
|
302
302
|
]),
|
|
303
303
|
_: 2
|
|
304
304
|
}, 1024)
|
|
@@ -306,22 +306,22 @@ function Bl(f, D, x, e, k, K) {
|
|
|
306
306
|
_: 2
|
|
307
307
|
}, 1024),
|
|
308
308
|
t(U, { gutter: 20 }, {
|
|
309
|
-
default:
|
|
310
|
-
t(
|
|
309
|
+
default: d(() => [
|
|
310
|
+
t(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: d(() => [
|
|
318
|
+
l.field.nameChFamily ? (n(), i(u, {
|
|
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:
|
|
324
|
+
default: d(() => [
|
|
325
325
|
t(N, {
|
|
326
326
|
onBlur: (o) => e.inputBlur(o, l.field.nameChFamily),
|
|
327
327
|
onFocus: (o) => e.inputFocus(o, l.field.nameChFamily),
|
|
@@ -331,7 +331,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
331
331
|
"nameChFamily" in l.field ? l.field.nameCh : ""
|
|
332
332
|
),
|
|
333
333
|
maxlength: l.maxlengthNameChFamily,
|
|
334
|
-
class:
|
|
334
|
+
class: b(
|
|
335
335
|
(l.isReadonly || l.isReadonlyNameChFamily || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
336
336
|
),
|
|
337
337
|
modelValue: e.states.model[l.field.nameChFamily],
|
|
@@ -344,31 +344,31 @@ function Bl(f, D, x, e, k, K) {
|
|
|
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"])) : f("", !0)
|
|
348
348
|
]),
|
|
349
349
|
_: 2
|
|
350
350
|
}, 1024),
|
|
351
|
-
t(
|
|
351
|
+
t(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: d(() => [
|
|
359
|
+
l.field.nameCh ? (n(), i(u, {
|
|
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:
|
|
365
|
+
default: d(() => [
|
|
366
366
|
t(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: b(
|
|
372
372
|
(l.isReadonly || l.isReadonlyNameCh || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
373
373
|
),
|
|
374
374
|
maxlength: l.maxlengthNameCh,
|
|
@@ -382,7 +382,7 @@ function Bl(f, D, x, e, k, K) {
|
|
|
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"])) : f("", !0)
|
|
386
386
|
]),
|
|
387
387
|
_: 2
|
|
388
388
|
}, 1024)
|
|
@@ -391,40 +391,40 @@ function Bl(f, D, x, e, k, K) {
|
|
|
391
391
|
}, 1024)
|
|
392
392
|
]),
|
|
393
393
|
_: 2
|
|
394
|
-
}, 1032, ["label", "disabled"])) : l.type === "gender" && typeof l.field == "string" ? (
|
|
394
|
+
}, 1032, ["label", "disabled"])) : l.type === "gender" && typeof l.field == "string" ? (n(), i(u, {
|
|
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 ? C(
|
|
401
|
+
label: d(() => [
|
|
402
|
+
l.slotLabelName ? C(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
403
403
|
key: 0,
|
|
404
|
-
style:
|
|
404
|
+
style: h(l.labelStyle)
|
|
405
405
|
}, [
|
|
406
|
-
|
|
407
|
-
l.required ? (
|
|
406
|
+
g(c(l.label) + " ", 1),
|
|
407
|
+
l.required ? (n(), r("span", _l, "*")) : f("", !0)
|
|
408
408
|
], 4))
|
|
409
409
|
]),
|
|
410
|
-
default:
|
|
410
|
+
default: d(() => [
|
|
411
411
|
t(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: d(() => {
|
|
418
418
|
var o;
|
|
419
419
|
return [
|
|
420
|
-
(
|
|
421
|
-
label:
|
|
420
|
+
(n(!0), r(k, null, R((o = l.options) == null ? void 0 : o.data, (y) => (n(), i(F, {
|
|
421
|
+
label: y.code,
|
|
422
422
|
size: "large",
|
|
423
|
-
key:
|
|
423
|
+
key: y.code
|
|
424
424
|
}, {
|
|
425
|
-
default:
|
|
425
|
+
default: d(() => [
|
|
426
426
|
A("img", {
|
|
427
|
-
src:
|
|
427
|
+
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",
|
|
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(f, D, x, e, k, K) {
|
|
|
437
437
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
|
|
438
438
|
]),
|
|
439
439
|
_: 2
|
|
440
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "radio" && typeof l.field == "string" ? (
|
|
440
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "radio" && typeof l.field == "string" ? (n(), i(u, {
|
|
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: b([l.labelNode ? "radio_Note" : "rule_err"])
|
|
446
446
|
}, {
|
|
447
|
-
label:
|
|
448
|
-
l.slotLabelName ? C(
|
|
447
|
+
label: d(() => [
|
|
448
|
+
l.slotLabelName ? C(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
449
449
|
key: 0,
|
|
450
|
-
style:
|
|
450
|
+
style: h(l.labelStyle)
|
|
451
451
|
}, [
|
|
452
|
-
|
|
453
|
-
l.required ? (
|
|
452
|
+
g(c(l.label) + " ", 1),
|
|
453
|
+
l.required ? (n(), r("span", Cl, "*")) : f("", !0)
|
|
454
454
|
], 4))
|
|
455
455
|
]),
|
|
456
|
-
default:
|
|
456
|
+
default: d(() => [
|
|
457
457
|
t(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: h(
|
|
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: b(l.ways !== "column" ? "radio_row" : "")
|
|
466
466
|
}, {
|
|
467
|
-
default:
|
|
467
|
+
default: d(() => {
|
|
468
468
|
var o;
|
|
469
469
|
return [
|
|
470
|
-
(
|
|
470
|
+
(n(!0), r(k, null, R((o = l.options) == null ? void 0 : o.data, (y) => (n(), i(F, {
|
|
471
471
|
size: "large",
|
|
472
|
-
label:
|
|
473
|
-
key:
|
|
474
|
-
disabled:
|
|
472
|
+
label: y.code,
|
|
473
|
+
key: y.code,
|
|
474
|
+
disabled: y.isDisabled
|
|
475
475
|
}, {
|
|
476
|
-
default:
|
|
477
|
-
|
|
476
|
+
default: d(() => [
|
|
477
|
+
g(c(y.name), 1)
|
|
478
478
|
]),
|
|
479
479
|
_: 2
|
|
480
480
|
}, 1032, ["label", "disabled"]))), 128))
|
|
@@ -484,39 +484,39 @@ function Bl(f, D, x, e, k, K) {
|
|
|
484
484
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange", "style", "class"])
|
|
485
485
|
]),
|
|
486
486
|
_: 2
|
|
487
|
-
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "radioNote" && typeof l.field == "string" ? (
|
|
487
|
+
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "radioNote" && typeof l.field == "string" ? (n(), i(u, {
|
|
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: b([l.labelNode ? "radio_Note" : "rule_err"])
|
|
493
493
|
}, {
|
|
494
|
-
default:
|
|
494
|
+
default: d(() => [
|
|
495
495
|
A("div", null, [
|
|
496
|
-
A("span", Ml,
|
|
497
|
-
A("span", Nl,
|
|
498
|
-
l.required ? (
|
|
496
|
+
A("span", Ml, c(l.labelBefore), 1),
|
|
497
|
+
A("span", Nl, c(l.labelNode), 1),
|
|
498
|
+
l.required ? (n(), r("span", Al, "*")) : f("", !0)
|
|
499
499
|
]),
|
|
500
500
|
t(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: h(
|
|
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: b(l.ways !== "column" ? "radio_row" : "")
|
|
509
509
|
}, {
|
|
510
|
-
default:
|
|
510
|
+
default: d(() => {
|
|
511
511
|
var o;
|
|
512
512
|
return [
|
|
513
|
-
(
|
|
513
|
+
(n(!0), r(k, null, R((o = l.options) == null ? void 0 : o.data, (y) => (n(), i(F, {
|
|
514
514
|
size: "large",
|
|
515
|
-
label:
|
|
516
|
-
key:
|
|
515
|
+
label: y.code,
|
|
516
|
+
key: y.code
|
|
517
517
|
}, {
|
|
518
|
-
default:
|
|
519
|
-
|
|
518
|
+
default: d(() => [
|
|
519
|
+
g(c(y.name), 1)
|
|
520
520
|
]),
|
|
521
521
|
_: 2
|
|
522
522
|
}, 1032, ["label"]))), 128))
|
|
@@ -526,41 +526,41 @@ function Bl(f, D, x, e, k, K) {
|
|
|
526
526
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange", "style", "class"])
|
|
527
527
|
]),
|
|
528
528
|
_: 2
|
|
529
|
-
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "checkbox" && typeof l.field == "string" ? (
|
|
529
|
+
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "checkbox" && typeof l.field == "string" ? (n(), i(u, {
|
|
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 ? C(
|
|
535
|
+
label: d(() => [
|
|
536
|
+
l.slotLabelName ? C(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
537
537
|
key: 0,
|
|
538
|
-
style:
|
|
538
|
+
style: h(l.labelStyle)
|
|
539
539
|
}, [
|
|
540
|
-
|
|
541
|
-
l.required ? (
|
|
540
|
+
g(c(l.label) + " ", 1),
|
|
541
|
+
l.required ? (n(), r("span", Ol, "*")) : f("", !0)
|
|
542
542
|
], 4))
|
|
543
543
|
]),
|
|
544
|
-
default:
|
|
545
|
-
t(
|
|
544
|
+
default: d(() => [
|
|
545
|
+
t(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: h(
|
|
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: d(() => {
|
|
555
555
|
var o;
|
|
556
556
|
return [
|
|
557
|
-
(
|
|
558
|
-
key:
|
|
559
|
-
label:
|
|
560
|
-
disabled:
|
|
557
|
+
(n(!0), r(k, null, R((o = l.options) == null ? void 0 : o.data, (y) => (n(), i(E, {
|
|
558
|
+
key: y.code,
|
|
559
|
+
label: y.code,
|
|
560
|
+
disabled: y.isDisabled
|
|
561
561
|
}, {
|
|
562
|
-
default:
|
|
563
|
-
|
|
562
|
+
default: d(() => [
|
|
563
|
+
g(c(y.name), 1)
|
|
564
564
|
]),
|
|
565
565
|
_: 2
|
|
566
566
|
}, 1032, ["label", "disabled"]))), 128))
|
|
@@ -570,41 +570,41 @@ function Bl(f, D, x, e, k, K) {
|
|
|
570
570
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
|
|
571
571
|
]),
|
|
572
572
|
_: 2
|
|
573
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "checkboxRadio" && typeof l.field == "string" ? (
|
|
573
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "checkboxRadio" && typeof l.field == "string" ? (n(), i(u, {
|
|
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 ? C(
|
|
579
|
+
label: d(() => [
|
|
580
|
+
l.slotLabelName ? C(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
581
581
|
key: 0,
|
|
582
|
-
style:
|
|
582
|
+
style: h(l.labelStyle)
|
|
583
583
|
}, [
|
|
584
|
-
|
|
585
|
-
l.required ? (
|
|
584
|
+
g(c(l.label) + " ", 1),
|
|
585
|
+
l.required ? (n(), r("span", kl, "*")) : f("", !0)
|
|
586
586
|
], 4))
|
|
587
587
|
]),
|
|
588
|
-
default:
|
|
589
|
-
t(
|
|
588
|
+
default: d(() => [
|
|
589
|
+
t(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: h(
|
|
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: d(() => {
|
|
599
599
|
var o;
|
|
600
600
|
return [
|
|
601
|
-
(
|
|
602
|
-
key:
|
|
603
|
-
label:
|
|
604
|
-
disabled:
|
|
601
|
+
(n(!0), r(k, null, R((o = l.options) == null ? void 0 : o.data, (y) => (n(), i(E, {
|
|
602
|
+
key: y.code,
|
|
603
|
+
label: y.code,
|
|
604
|
+
disabled: y.isDisabled
|
|
605
605
|
}, {
|
|
606
|
-
default:
|
|
607
|
-
|
|
606
|
+
default: d(() => [
|
|
607
|
+
g(c(y.name), 1)
|
|
608
608
|
]),
|
|
609
609
|
_: 2
|
|
610
610
|
}, 1032, ["label", "disabled"]))), 128))
|
|
@@ -614,23 +614,23 @@ function Bl(f, D, x, e, k, K) {
|
|
|
614
614
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
|
|
615
615
|
]),
|
|
616
616
|
_: 2
|
|
617
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "select" && typeof l.field == "string" ? (
|
|
617
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "select" && typeof l.field == "string" ? (n(), i(u, {
|
|
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 ? C(
|
|
624
|
+
label: d(() => [
|
|
625
|
+
l.slotLabelName ? C(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
626
626
|
key: 0,
|
|
627
|
-
style:
|
|
627
|
+
style: h(l.labelStyle)
|
|
628
628
|
}, [
|
|
629
|
-
|
|
630
|
-
l.required ? (
|
|
629
|
+
g(c(l.label) + " ", 1),
|
|
630
|
+
l.required ? (n(), r("span", Rl, "*")) : f("", !0)
|
|
631
631
|
], 4))
|
|
632
632
|
]),
|
|
633
|
-
default:
|
|
633
|
+
default: d(() => [
|
|
634
634
|
t(z, {
|
|
635
635
|
"popper-class": "selectTriangles",
|
|
636
636
|
teleported: !1,
|
|
@@ -639,19 +639,19 @@ function Bl(f, D, x, e, k, K) {
|
|
|
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: b(
|
|
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: d(() => {
|
|
649
649
|
var o;
|
|
650
650
|
return [
|
|
651
|
-
(
|
|
652
|
-
key:
|
|
653
|
-
label:
|
|
654
|
-
value:
|
|
651
|
+
(n(!0), r(k, null, R((o = l.options) == null ? void 0 : o.data, (y) => (n(), i(v, {
|
|
652
|
+
key: y.code,
|
|
653
|
+
label: y.name,
|
|
654
|
+
value: y.code
|
|
655
655
|
}, null, 8, ["label", "value"]))), 128))
|
|
656
656
|
];
|
|
657
657
|
}),
|
|
@@ -659,28 +659,28 @@ function Bl(f, D, x, e, k, K) {
|
|
|
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: h(l.tipsBlowStyle)
|
|
663
|
+
}, c(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" ? (n(), i(u, {
|
|
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 ? C(
|
|
673
|
+
label: d(() => [
|
|
674
|
+
l.slotLabelName ? C(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
675
675
|
key: 0,
|
|
676
|
-
style:
|
|
676
|
+
style: h(l.labelStyle)
|
|
677
677
|
}, [
|
|
678
|
-
|
|
679
|
-
l.required ? (
|
|
678
|
+
g(c(l.label) + " ", 1),
|
|
679
|
+
l.required ? (n(), r("span", wl, "*")) : f("", !0)
|
|
680
680
|
], 4))
|
|
681
681
|
]),
|
|
682
|
-
default:
|
|
683
|
-
t(
|
|
682
|
+
default: d(() => [
|
|
683
|
+
t(B, {
|
|
684
684
|
"popper-class": "selectTriangles",
|
|
685
685
|
teleported: !1,
|
|
686
686
|
format: "DD/MM/YYYY",
|
|
@@ -697,30 +697,30 @@ function Bl(f, D, x, e, k, K) {
|
|
|
697
697
|
readonly: l.readonly,
|
|
698
698
|
type: l.type,
|
|
699
699
|
placeholder: l.placeholder || l.label,
|
|
700
|
-
class:
|
|
700
|
+
class: b(
|
|
701
701
|
(l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
702
702
|
)
|
|
703
703
|
}, null, 8, ["disabled-date", "onChange", "prefix-icon", "modelValue", "onUpdate:modelValue", "disabled", "readonly", "type", "placeholder", "class"]),
|
|
704
|
-
l.showTo ? (
|
|
704
|
+
l.showTo ? (n(), r("span", xl, c(l.showTo), 1)) : f("", !0)
|
|
705
705
|
]),
|
|
706
706
|
_: 2
|
|
707
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "daterange" && typeof l.field == "string" ? (
|
|
707
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "daterange" && typeof l.field == "string" ? (n(), i(u, {
|
|
708
708
|
key: 9,
|
|
709
709
|
label: l.label,
|
|
710
710
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
711
711
|
prop: l.field
|
|
712
712
|
}, {
|
|
713
|
-
label:
|
|
714
|
-
l.slotLabelName ? C(
|
|
713
|
+
label: d(() => [
|
|
714
|
+
l.slotLabelName ? C(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
715
715
|
key: 0,
|
|
716
|
-
style:
|
|
716
|
+
style: h(l.labelStyle)
|
|
717
717
|
}, [
|
|
718
|
-
|
|
719
|
-
l.required ? (
|
|
718
|
+
g(c(l.label) + " ", 1),
|
|
719
|
+
l.required ? (n(), r("span", Il, "*")) : f("", !0)
|
|
720
720
|
], 4))
|
|
721
721
|
]),
|
|
722
|
-
default:
|
|
723
|
-
t(
|
|
722
|
+
default: d(() => [
|
|
723
|
+
t(B, {
|
|
724
724
|
"popper-class": "selectTriangles",
|
|
725
725
|
teleported: !1,
|
|
726
726
|
format: "DD/MM/YYYY",
|
|
@@ -738,224 +738,224 @@ function Bl(f, D, x, e, k, K) {
|
|
|
738
738
|
"start-placeholder": l.startPlaceholder,
|
|
739
739
|
"end-placeholder": l.endPlaceholder,
|
|
740
740
|
size: "large",
|
|
741
|
-
class:
|
|
741
|
+
class: b(
|
|
742
742
|
(l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
743
743
|
)
|
|
744
744
|
}, null, 8, ["disabled-date", "onChange", "modelValue", "onUpdate:modelValue", "prefix-icon", "start-placeholder", "end-placeholder", "class"])
|
|
745
745
|
]),
|
|
746
746
|
_: 2
|
|
747
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "slotItem" ? (
|
|
747
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "slotItem" ? (n(), i(u, {
|
|
748
748
|
key: 10,
|
|
749
749
|
label: l.label,
|
|
750
750
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
751
751
|
prop: l.field,
|
|
752
752
|
class: "rule_err"
|
|
753
753
|
}, {
|
|
754
|
-
label:
|
|
755
|
-
l.slotLabelName ? C(
|
|
754
|
+
label: d(() => [
|
|
755
|
+
l.slotLabelName ? C(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
756
756
|
key: 0,
|
|
757
|
-
style:
|
|
757
|
+
style: h(l.labelStyle)
|
|
758
758
|
}, [
|
|
759
|
-
|
|
760
|
-
l.required ? (
|
|
759
|
+
g(c(l.label) + " ", 1),
|
|
760
|
+
l.required ? (n(), r("span", Vl, "*")) : f("", !0)
|
|
761
761
|
], 4))
|
|
762
762
|
]),
|
|
763
|
-
default:
|
|
764
|
-
C(
|
|
763
|
+
default: d(() => [
|
|
764
|
+
C(p.$slots, l.slotItemName, {}, void 0, !0)
|
|
765
765
|
]),
|
|
766
766
|
_: 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 ? (
|
|
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 ? (n(), i(u, {
|
|
768
768
|
key: 11,
|
|
769
769
|
label: l.label,
|
|
770
770
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.phoneNumber,
|
|
771
771
|
prop: l.field.phoneNumber,
|
|
772
772
|
class: "phone_item"
|
|
773
773
|
}, {
|
|
774
|
-
label:
|
|
775
|
-
l.slotLabelName ? C(
|
|
774
|
+
label: d(() => [
|
|
775
|
+
l.slotLabelName ? C(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
776
776
|
key: 0,
|
|
777
|
-
style:
|
|
777
|
+
style: h(l.labelStyle)
|
|
778
778
|
}, [
|
|
779
|
-
|
|
780
|
-
l.required ? (
|
|
779
|
+
g(c(l.label) + " ", 1),
|
|
780
|
+
l.required ? (n(), r("span", Ul, "*")) : f("", !0)
|
|
781
781
|
], 4))
|
|
782
782
|
]),
|
|
783
|
-
default:
|
|
784
|
-
var o,
|
|
783
|
+
default: d(() => {
|
|
784
|
+
var o, y, T, s;
|
|
785
785
|
return [
|
|
786
786
|
A("div", {
|
|
787
|
-
class:
|
|
787
|
+
class: b(e.phoneWrap ? ["phone_item_content", "phone_item_content_wrap"] : "phone_item_content")
|
|
788
788
|
}, [
|
|
789
|
-
e.phoneWrap ? (
|
|
790
|
-
l.field.nationCode ? (
|
|
789
|
+
e.phoneWrap ? (n(), r("div", Fl, [
|
|
790
|
+
l.field.nationCode ? (n(), i(z, {
|
|
791
791
|
key: 0,
|
|
792
792
|
"popper-class": "selectTriangles",
|
|
793
793
|
teleported: !1,
|
|
794
794
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNation) && !l.openDisabled,
|
|
795
795
|
modelValue: e.states.model[l.field.nationCode],
|
|
796
|
-
"onUpdate:modelValue": (
|
|
796
|
+
"onUpdate:modelValue": (a) => e.states.model[l.field.nationCode] = a,
|
|
797
797
|
placeholder: ((o = l.nationOptions) == null ? void 0 : o.placeholder) || "",
|
|
798
|
-
class:
|
|
798
|
+
class: b(
|
|
799
799
|
(l.isReadonly || l.isReadonlyNation || e.formOptions.isAllReadonly) && !l.openDisabled ? "selectreadonly" : ""
|
|
800
800
|
),
|
|
801
|
-
style:
|
|
801
|
+
style: h("width:" + l.widthNation),
|
|
802
802
|
"fit-input-width": !0
|
|
803
803
|
}, {
|
|
804
|
-
default:
|
|
805
|
-
var
|
|
804
|
+
default: d(() => {
|
|
805
|
+
var a;
|
|
806
806
|
return [
|
|
807
|
-
(
|
|
808
|
-
label:
|
|
809
|
-
value:
|
|
810
|
-
key:
|
|
807
|
+
(n(!0), r(k, null, R((a = l.nationOptions) == null ? void 0 : a.data, (D, I) => (n(), i(v, {
|
|
808
|
+
label: D.name,
|
|
809
|
+
value: D.code,
|
|
810
|
+
key: I
|
|
811
811
|
}, null, 8, ["label", "value"]))), 128))
|
|
812
812
|
];
|
|
813
813
|
}),
|
|
814
814
|
_: 2
|
|
815
|
-
}, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class", "style"])) :
|
|
815
|
+
}, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class", "style"])) : f("", !0),
|
|
816
816
|
jl,
|
|
817
|
-
l.field.areaCode ? (
|
|
817
|
+
l.field.areaCode ? (n(), i(N, {
|
|
818
818
|
key: 1,
|
|
819
|
-
onBlur: (
|
|
820
|
-
|
|
819
|
+
onBlur: (a) => e.inputBlur(
|
|
820
|
+
a,
|
|
821
821
|
typeof l.field == "string" ? l.field : ""
|
|
822
822
|
),
|
|
823
|
-
onFocus: (
|
|
824
|
-
|
|
823
|
+
onFocus: (a) => e.inputFocus(
|
|
824
|
+
a,
|
|
825
825
|
typeof l.field == "string" ? l.field : ""
|
|
826
826
|
),
|
|
827
|
-
onChange: (
|
|
828
|
-
|
|
827
|
+
onChange: (a) => e.inputChange(
|
|
828
|
+
a,
|
|
829
829
|
typeof l.field == "string" ? l.field : ""
|
|
830
830
|
),
|
|
831
|
-
onInput: (
|
|
832
|
-
|
|
831
|
+
onInput: (a) => e.inputInput(
|
|
832
|
+
a,
|
|
833
833
|
typeof l.field == "string" ? l.field : ""
|
|
834
834
|
),
|
|
835
835
|
maxlength: l.maxlength,
|
|
836
836
|
modelValue: e.states.model[l.field.areaCode],
|
|
837
|
-
"onUpdate:modelValue": (
|
|
837
|
+
"onUpdate:modelValue": (a) => e.states.model[l.field.areaCode] = a,
|
|
838
838
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyArea) && !l.openDisabled,
|
|
839
|
-
placeholder: l.
|
|
840
|
-
class:
|
|
839
|
+
placeholder: ((y = l.areaOptions) == null ? void 0 : y.placeholder) || "",
|
|
840
|
+
class: b(
|
|
841
841
|
(l.isReadonly || l.isReadonlyArea || e.formOptions.isAllReadonly) && !l.openDisabled ? "selectreadonly" : "areaCode_input"
|
|
842
842
|
),
|
|
843
843
|
clearable: l.clearable
|
|
844
|
-
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "clearable"])) :
|
|
844
|
+
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "clearable"])) : f("", !0),
|
|
845
845
|
vl
|
|
846
|
-
])) :
|
|
847
|
-
l.field.nationCode && !e.phoneWrap ? (
|
|
846
|
+
])) : f("", !0),
|
|
847
|
+
l.field.nationCode && !e.phoneWrap ? (n(), i(z, {
|
|
848
848
|
key: 1,
|
|
849
849
|
"popper-class": "selectTriangles",
|
|
850
850
|
teleported: !1,
|
|
851
851
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNation) && !l.openDisabled,
|
|
852
852
|
modelValue: e.states.model[l.field.nationCode],
|
|
853
|
-
"onUpdate:modelValue": (
|
|
854
|
-
placeholder: ((
|
|
855
|
-
class:
|
|
853
|
+
"onUpdate:modelValue": (a) => e.states.model[l.field.nationCode] = a,
|
|
854
|
+
placeholder: ((T = l.nationOptions) == null ? void 0 : T.placeholder) || "",
|
|
855
|
+
class: b(
|
|
856
856
|
(l.isReadonly || l.isReadonlyNation || e.formOptions.isAllReadonly) && !l.openDisabled ? "selectreadonly" : ""
|
|
857
857
|
),
|
|
858
|
-
style:
|
|
858
|
+
style: h("width:" + l.widthNation),
|
|
859
859
|
"fit-input-width": !0
|
|
860
860
|
}, {
|
|
861
|
-
default:
|
|
862
|
-
var
|
|
861
|
+
default: d(() => {
|
|
862
|
+
var a;
|
|
863
863
|
return [
|
|
864
|
-
(
|
|
865
|
-
label:
|
|
866
|
-
value:
|
|
867
|
-
key:
|
|
864
|
+
(n(!0), r(k, null, R((a = l.nationOptions) == null ? void 0 : a.data, (D, I) => (n(), i(v, {
|
|
865
|
+
label: D.name,
|
|
866
|
+
value: D.code,
|
|
867
|
+
key: I
|
|
868
868
|
}, null, 8, ["label", "value"]))), 128))
|
|
869
869
|
];
|
|
870
870
|
}),
|
|
871
871
|
_: 2
|
|
872
|
-
}, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class", "style"])) :
|
|
873
|
-
e.phoneWrap ?
|
|
874
|
-
l.field.areaCode && !e.phoneWrap ? (
|
|
872
|
+
}, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class", "style"])) : f("", !0),
|
|
873
|
+
e.phoneWrap ? f("", !0) : (n(), r("div", zl, "-")),
|
|
874
|
+
l.field.areaCode && !e.phoneWrap ? (n(), i(N, {
|
|
875
875
|
key: 3,
|
|
876
|
-
onBlur: (
|
|
877
|
-
|
|
876
|
+
onBlur: (a) => e.inputBlur(
|
|
877
|
+
a,
|
|
878
878
|
typeof l.field == "string" ? l.field : ""
|
|
879
879
|
),
|
|
880
|
-
onFocus: (
|
|
881
|
-
|
|
880
|
+
onFocus: (a) => e.inputFocus(
|
|
881
|
+
a,
|
|
882
882
|
typeof l.field == "string" ? l.field : ""
|
|
883
883
|
),
|
|
884
|
-
onChange: (
|
|
885
|
-
|
|
884
|
+
onChange: (a) => e.inputChange(
|
|
885
|
+
a,
|
|
886
886
|
typeof l.field == "string" ? l.field : ""
|
|
887
887
|
),
|
|
888
|
-
onInput: (
|
|
889
|
-
|
|
888
|
+
onInput: (a) => e.inputInput(
|
|
889
|
+
a,
|
|
890
890
|
typeof l.field == "string" ? l.field : ""
|
|
891
891
|
),
|
|
892
892
|
maxlength: l.maxlength,
|
|
893
893
|
modelValue: e.states.model[l.field.areaCode],
|
|
894
|
-
"onUpdate:modelValue": (
|
|
894
|
+
"onUpdate:modelValue": (a) => e.states.model[l.field.areaCode] = a,
|
|
895
895
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyArea) && !l.openDisabled,
|
|
896
|
-
placeholder: l.
|
|
897
|
-
class:
|
|
896
|
+
placeholder: ((s = l.areaOptions) == null ? void 0 : s.placeholder) || "",
|
|
897
|
+
class: b(
|
|
898
898
|
(l.isReadonly || l.isReadonlyArea || e.formOptions.isAllReadonly) && !l.openDisabled ? "selectreadonly" : "areaCode_input"
|
|
899
899
|
),
|
|
900
900
|
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 ? (
|
|
901
|
+
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "clearable"])) : f("", !0),
|
|
902
|
+
e.phoneWrap ? f("", !0) : (n(), r("div", Ll, "-")),
|
|
903
|
+
l.field.phoneNumber ? (n(), i(N, {
|
|
904
904
|
key: 5,
|
|
905
|
-
onBlur: (
|
|
906
|
-
|
|
905
|
+
onBlur: (a) => e.inputBlur(
|
|
906
|
+
a,
|
|
907
907
|
typeof l.field == "string" ? l.field : ""
|
|
908
908
|
),
|
|
909
|
-
onFocus: (
|
|
910
|
-
|
|
909
|
+
onFocus: (a) => e.inputFocus(
|
|
910
|
+
a,
|
|
911
911
|
typeof l.field == "string" ? l.field : ""
|
|
912
912
|
),
|
|
913
|
-
onChange: (
|
|
914
|
-
|
|
913
|
+
onChange: (a) => e.inputChange(
|
|
914
|
+
a,
|
|
915
915
|
typeof l.field == "string" ? l.field : ""
|
|
916
916
|
),
|
|
917
|
-
onInput: (
|
|
918
|
-
|
|
917
|
+
onInput: (a) => e.inputInput(
|
|
918
|
+
a,
|
|
919
919
|
typeof l.field == "string" ? l.field : ""
|
|
920
920
|
),
|
|
921
921
|
maxlength: l.maxlength,
|
|
922
922
|
modelValue: e.states.model[l.field.phoneNumber],
|
|
923
|
-
"onUpdate:modelValue": (
|
|
923
|
+
"onUpdate:modelValue": (a) => e.states.model[l.field.phoneNumber] = a,
|
|
924
924
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyPhoneNumber) && !l.openDisabled,
|
|
925
925
|
placeholder: l.placeholder || "",
|
|
926
|
-
class:
|
|
926
|
+
class: b(
|
|
927
927
|
(l.isReadonly || l.isReadonlyPhoneNumber || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
928
928
|
),
|
|
929
929
|
clearable: l.clearable
|
|
930
|
-
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "clearable"])) :
|
|
930
|
+
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "clearable"])) : f("", !0)
|
|
931
931
|
], 2)
|
|
932
932
|
];
|
|
933
933
|
}),
|
|
934
934
|
_: 2
|
|
935
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "line" ? (
|
|
935
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "line" ? (n(), i(u, {
|
|
936
936
|
key: 12,
|
|
937
937
|
label: l.label
|
|
938
938
|
}, {
|
|
939
|
-
default:
|
|
939
|
+
default: d(() => [
|
|
940
940
|
Tl
|
|
941
941
|
]),
|
|
942
942
|
_: 2
|
|
943
|
-
}, 1032, ["label"])) : l.type === "number" && typeof l.field == "string" ? (
|
|
943
|
+
}, 1032, ["label"])) : l.type === "number" && typeof l.field == "string" ? (n(), i(u, {
|
|
944
944
|
key: 13,
|
|
945
945
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
946
946
|
prop: l.field,
|
|
947
|
-
class:
|
|
947
|
+
class: b(l.prepend ? "input-item" : "")
|
|
948
948
|
}, {
|
|
949
|
-
label:
|
|
950
|
-
l.slotLabelName ? C(
|
|
949
|
+
label: d(() => [
|
|
950
|
+
l.slotLabelName ? C(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
951
951
|
key: 0,
|
|
952
|
-
style:
|
|
952
|
+
style: h(l.labelStyle)
|
|
953
953
|
}, [
|
|
954
|
-
|
|
955
|
-
l.required ? (
|
|
954
|
+
g(c(l.label) + " ", 1),
|
|
955
|
+
l.required ? (n(), r("span", El, "*")) : f("", !0)
|
|
956
956
|
], 4))
|
|
957
957
|
]),
|
|
958
|
-
default:
|
|
958
|
+
default: d(() => [
|
|
959
959
|
t(N, {
|
|
960
960
|
onBlur: (o) => e.inputBlur(
|
|
961
961
|
o,
|
|
@@ -985,44 +985,44 @@ function Bl(f, D, x, e, k, K) {
|
|
|
985
985
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
986
986
|
showPassword: l.showPassword,
|
|
987
987
|
clearable: l.clearable,
|
|
988
|
-
class:
|
|
988
|
+
class: b(
|
|
989
989
|
(l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
990
990
|
),
|
|
991
991
|
onKeyup: V((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
992
992
|
}, Z({ _: 2 }, [
|
|
993
993
|
l.prepend ? {
|
|
994
994
|
name: "prepend",
|
|
995
|
-
fn:
|
|
996
|
-
|
|
995
|
+
fn: d(() => [
|
|
996
|
+
g(c(l.prepend), 1)
|
|
997
997
|
]),
|
|
998
998
|
key: "0"
|
|
999
999
|
} : void 0,
|
|
1000
1000
|
l.append ? {
|
|
1001
1001
|
name: "append",
|
|
1002
|
-
fn:
|
|
1003
|
-
|
|
1002
|
+
fn: d(() => [
|
|
1003
|
+
g(c(l.append), 1)
|
|
1004
1004
|
]),
|
|
1005
1005
|
key: "1"
|
|
1006
1006
|
} : void 0
|
|
1007
1007
|
]), 1032, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "show-word-limit", "readonly", "type", "rows", "placeholder", "disabled", "showPassword", "clearable", "class", "onKeyup"])
|
|
1008
1008
|
]),
|
|
1009
1009
|
_: 2
|
|
1010
|
-
}, 1032, ["rules", "prop", "class"])) : (
|
|
1010
|
+
}, 1032, ["rules", "prop", "class"])) : (n(), i(u, {
|
|
1011
1011
|
key: 14,
|
|
1012
1012
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
1013
1013
|
prop: l.field,
|
|
1014
|
-
class:
|
|
1014
|
+
class: b(l.prepend ? "input-item" : "")
|
|
1015
1015
|
}, {
|
|
1016
|
-
label:
|
|
1017
|
-
l.slotLabelName ? C(
|
|
1016
|
+
label: d(() => [
|
|
1017
|
+
l.slotLabelName ? C(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
1018
1018
|
key: 0,
|
|
1019
|
-
style:
|
|
1019
|
+
style: h(l.labelStyle)
|
|
1020
1020
|
}, [
|
|
1021
|
-
|
|
1022
|
-
l.required ? (
|
|
1021
|
+
g(c(l.label) + " ", 1),
|
|
1022
|
+
l.required ? (n(), r("span", Sl, "*")) : f("", !0)
|
|
1023
1023
|
], 4))
|
|
1024
1024
|
]),
|
|
1025
|
-
default:
|
|
1025
|
+
default: d(() => [
|
|
1026
1026
|
t(N, {
|
|
1027
1027
|
onBlur: (o) => e.inputBlur(
|
|
1028
1028
|
o,
|
|
@@ -1051,22 +1051,22 @@ function Bl(f, D, x, e, k, K) {
|
|
|
1051
1051
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
1052
1052
|
showPassword: l.showPassword,
|
|
1053
1053
|
clearable: l.clearable,
|
|
1054
|
-
class:
|
|
1054
|
+
class: b(
|
|
1055
1055
|
(l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
1056
1056
|
),
|
|
1057
1057
|
onKeyup: V((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
1058
1058
|
}, Z({ _: 2 }, [
|
|
1059
1059
|
l.prepend ? {
|
|
1060
1060
|
name: "prepend",
|
|
1061
|
-
fn:
|
|
1062
|
-
|
|
1061
|
+
fn: d(() => [
|
|
1062
|
+
g(c(l.prepend), 1)
|
|
1063
1063
|
]),
|
|
1064
1064
|
key: "0"
|
|
1065
1065
|
} : void 0,
|
|
1066
1066
|
l.append ? {
|
|
1067
1067
|
name: "append",
|
|
1068
|
-
fn:
|
|
1069
|
-
|
|
1068
|
+
fn: d(() => [
|
|
1069
|
+
g(c(l.append), 1)
|
|
1070
1070
|
]),
|
|
1071
1071
|
key: "1"
|
|
1072
1072
|
} : void 0
|
|
@@ -1083,14 +1083,14 @@ function Bl(f, D, x, e, k, K) {
|
|
|
1083
1083
|
]),
|
|
1084
1084
|
_: 3
|
|
1085
1085
|
}),
|
|
1086
|
-
t(
|
|
1087
|
-
default:
|
|
1088
|
-
C(
|
|
1089
|
-
model:
|
|
1086
|
+
t(u, { class: "btnsItem" }, {
|
|
1087
|
+
default: d(() => [
|
|
1088
|
+
C(p.$slots, "buttons", {
|
|
1089
|
+
model: w.model,
|
|
1090
1090
|
onBtnClick: e.onSubmit
|
|
1091
1091
|
}, () => [
|
|
1092
|
-
(
|
|
1093
|
-
l.isShow ? (
|
|
1092
|
+
(n(!0), r(k, null, R(e.formOptions.btnConfig, (l, L) => (n(), r("div", { key: L }, [
|
|
1093
|
+
l.isShow ? (n(), i(Y, {
|
|
1094
1094
|
key: 0,
|
|
1095
1095
|
btnCode: l.btnCode,
|
|
1096
1096
|
plain: l.plain,
|
|
@@ -1113,15 +1113,15 @@ function Bl(f, D, x, e, k, K) {
|
|
|
1113
1113
|
size: l.size,
|
|
1114
1114
|
fontSize: l.fontSize,
|
|
1115
1115
|
fontWeight: l.fontWeight,
|
|
1116
|
-
style:
|
|
1117
|
-
class:
|
|
1116
|
+
style: h(l.style),
|
|
1117
|
+
class: b(l.class),
|
|
1118
1118
|
onHandleClick: (o) => e.handleClick(o, l.isRule, l.emitName)
|
|
1119
1119
|
}, {
|
|
1120
|
-
default:
|
|
1121
|
-
|
|
1120
|
+
default: d(() => [
|
|
1121
|
+
g(c(l.name), 1)
|
|
1122
1122
|
]),
|
|
1123
1123
|
_: 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"])) :
|
|
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"])) : f("", !0)
|
|
1125
1125
|
]))), 128))
|
|
1126
1126
|
], !0)
|
|
1127
1127
|
]),
|
|
@@ -1131,11 +1131,11 @@ function Bl(f, D, x, e, k, K) {
|
|
|
1131
1131
|
_: 3
|
|
1132
1132
|
}, 16, ["model", "label-position"]);
|
|
1133
1133
|
}
|
|
1134
|
-
const m = /* @__PURE__ */
|
|
1135
|
-
function
|
|
1136
|
-
|
|
1134
|
+
const m = /* @__PURE__ */ tl(ul, [["render", Bl], ["__scopeId", "data-v-837d3003"]]);
|
|
1135
|
+
function H(p, _ = {}) {
|
|
1136
|
+
H.installed || (H.installed = !0, p.component("common-el-form", m));
|
|
1137
1137
|
}
|
|
1138
|
-
m.install =
|
|
1138
|
+
m.install = H;
|
|
1139
1139
|
export {
|
|
1140
1140
|
m as default
|
|
1141
1141
|
};
|