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