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