sinosoft-common-form 1.6.4 → 1.6.6
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 +383 -406
- 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 b, 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 tl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==", bl = {
|
|
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: tl
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
}), t =
|
|
33
|
+
}), t = 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
|
-
},
|
|
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
|
+
}, T = (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), E = () => {
|
|
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", E);
|
|
89
|
+
}), nl(() => {
|
|
90
|
+
window.removeEventListener("resize", E);
|
|
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
100
|
formOptions: t,
|
|
97
101
|
onSubmit: x,
|
|
98
102
|
selectChange: F,
|
|
99
|
-
radioChange:
|
|
100
|
-
checkChange:
|
|
101
|
-
handleCheckedChange:
|
|
102
|
-
prefixIcon:
|
|
103
|
+
radioChange: V,
|
|
104
|
+
checkChange: U,
|
|
105
|
+
handleCheckedChange: T,
|
|
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-8c0e2e9d"), 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,79 +162,76 @@ 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)), El = {
|
|
166
169
|
key: 2,
|
|
167
170
|
class: "line_middle"
|
|
168
171
|
}, Tl = {
|
|
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 t =
|
|
183
|
-
return
|
|
184
|
+
function ql(f, c, w, e, O, P) {
|
|
185
|
+
const t = 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"), T = 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:
|
|
195
|
+
default: d(() => [
|
|
193
196
|
b(F, { gutter: 20 }, {
|
|
194
|
-
default:
|
|
195
|
-
(
|
|
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(t, { 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(t, {
|
|
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:
|
|
232
|
+
default: d(() => [
|
|
230
233
|
b(F, { gutter: 20 }, {
|
|
231
|
-
default:
|
|
234
|
+
default: d(() => [
|
|
232
235
|
b(x, {
|
|
233
236
|
xs: 24,
|
|
234
237
|
sm: 12,
|
|
@@ -236,15 +239,15 @@ function Yl(f, D, w, e, k, Q) {
|
|
|
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(t, {
|
|
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
|
-
b(
|
|
249
|
+
default: d(() => [
|
|
250
|
+
b(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,11 +262,11 @@ 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),
|
|
@@ -274,15 +277,15 @@ function Yl(f, D, w, e, k, Q) {
|
|
|
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(t, {
|
|
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
|
-
b(
|
|
287
|
+
default: d(() => [
|
|
288
|
+
b(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,11 +300,11 @@ 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)
|
|
@@ -309,7 +312,7 @@ function Yl(f, D, w, e, k, Q) {
|
|
|
309
312
|
_: 2
|
|
310
313
|
}, 1024),
|
|
311
314
|
b(F, { gutter: 20 }, {
|
|
312
|
-
default:
|
|
315
|
+
default: d(() => [
|
|
313
316
|
b(x, {
|
|
314
317
|
xs: 24,
|
|
315
318
|
sm: 12,
|
|
@@ -317,15 +320,15 @@ function Yl(f, D, w, e, k, Q) {
|
|
|
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(t, {
|
|
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
|
-
b(
|
|
330
|
+
default: d(() => [
|
|
331
|
+
b(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,11 +346,11 @@ 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),
|
|
@@ -358,15 +361,15 @@ function Yl(f, D, w, e, k, Q) {
|
|
|
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(t, {
|
|
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
|
-
b(
|
|
371
|
+
default: d(() => [
|
|
372
|
+
b(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(t, {
|
|
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
|
-
b(
|
|
416
|
+
default: d(() => [
|
|
417
|
+
b(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(t, {
|
|
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
|
-
b(
|
|
462
|
+
default: d(() => [
|
|
463
|
+
b(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(t, {
|
|
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
|
-
b(
|
|
506
|
+
b(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,41 +513,41 @@ 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(t, {
|
|
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:
|
|
550
|
+
default: d(() => [
|
|
548
551
|
b(S, {
|
|
549
552
|
modelValue: e.states.model[l.field],
|
|
550
553
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
@@ -554,41 +557,41 @@ 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(T, {
|
|
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(t, {
|
|
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:
|
|
594
|
+
default: d(() => [
|
|
592
595
|
b(S, {
|
|
593
596
|
modelValue: e.states.model[l.field],
|
|
594
597
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
@@ -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(T, {
|
|
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(t, {
|
|
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
|
-
b(
|
|
639
|
+
default: d(() => [
|
|
640
|
+
b(z, {
|
|
638
641
|
"popper-class": "selectTriangles",
|
|
639
642
|
teleported: !1,
|
|
640
643
|
modelValue: e.states.model[l.field],
|
|
@@ -648,197 +651,171 @@ 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(t, {
|
|
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
|
-
b(
|
|
688
|
+
default: d(() => [
|
|
689
|
+
b(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
|
+
renderExtraFooter: l.extraFooter,
|
|
699
699
|
inputReadOnly: l.readonly,
|
|
700
|
+
mode: l.type,
|
|
700
701
|
picker: l.type,
|
|
701
702
|
placeholder: l.placeholder || l.label,
|
|
702
703
|
class: h(
|
|
703
704
|
(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,
|
|
705
|
+
),
|
|
731
706
|
onChange: (o) => e.dateChange(
|
|
732
707
|
o,
|
|
733
708
|
typeof l.field == "string" ? l.field : ""
|
|
734
709
|
),
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
size: "large",
|
|
743
|
-
class: h(
|
|
744
|
-
(l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
710
|
+
onCalendarChange: (o) => e.calendarChange(
|
|
711
|
+
o,
|
|
712
|
+
typeof l.field == "string" ? l.field : ""
|
|
713
|
+
),
|
|
714
|
+
onOk: (o) => e.onOk(
|
|
715
|
+
o,
|
|
716
|
+
typeof l.field == "string" ? l.field : ""
|
|
745
717
|
)
|
|
746
|
-
}, null, 8, ["
|
|
718
|
+
}, null, 8, ["format", "valueFormat", "value", "onUpdate:value", "disabled-date", "suffixIcon", "disabled", "renderExtraFooter", "inputReadOnly", "mode", "picker", "placeholder", "class", "onChange", "onCalendarChange", "onOk"]),
|
|
719
|
+
l.showTo ? (n(), r("span", vl, u(l.showTo), 1)) : p("", !0)
|
|
747
720
|
]),
|
|
748
721
|
_: 2
|
|
749
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "
|
|
750
|
-
key:
|
|
722
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "daterange" && typeof l.field == "string" ? (n(), i(t, {
|
|
723
|
+
key: 9,
|
|
751
724
|
label: l.label,
|
|
752
725
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
753
726
|
prop: l.field
|
|
754
727
|
}, {
|
|
755
|
-
label:
|
|
756
|
-
l.slotLabelName ?
|
|
728
|
+
label: d(() => [
|
|
729
|
+
l.slotLabelName ? M(f.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
757
730
|
key: 0,
|
|
758
731
|
style: g(l.labelStyle)
|
|
759
732
|
}, [
|
|
760
733
|
_(u(l.label) + " ", 1),
|
|
761
|
-
l.required ? (
|
|
734
|
+
l.required ? (n(), r("span", Fl, "*")) : p("", !0)
|
|
762
735
|
], 4))
|
|
763
736
|
]),
|
|
764
|
-
default:
|
|
765
|
-
b(
|
|
737
|
+
default: d(() => [
|
|
738
|
+
b(Y, {
|
|
766
739
|
"popper-class": "selectTriangles",
|
|
767
740
|
teleported: !1,
|
|
768
|
-
format: "DD/MM/YYYY HH:mm:ss",
|
|
769
|
-
|
|
741
|
+
format: l.format || "DD/MM/YYYY HH:mm:ss",
|
|
742
|
+
valueFormat: (l == null ? void 0 : l.valueFormat) || "DD/MM/YYYY HH:mm:ss",
|
|
770
743
|
"disabled-date": l.disabledDate,
|
|
771
|
-
"show-time":
|
|
772
|
-
|
|
773
|
-
|
|
744
|
+
"show-time": "",
|
|
745
|
+
value: e.states.model[l.field],
|
|
746
|
+
"onUpdate:value": (o) => e.states.model[l.field] = o,
|
|
747
|
+
suffixIcon: l.suffixIcon,
|
|
748
|
+
separator: "To",
|
|
749
|
+
placeholder: l.placeholder,
|
|
750
|
+
size: "large",
|
|
751
|
+
class: h(
|
|
752
|
+
(l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
753
|
+
),
|
|
774
754
|
onChange: (o) => e.dateChange(
|
|
775
755
|
o,
|
|
776
756
|
typeof l.field == "string" ? l.field : ""
|
|
777
757
|
),
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
size: "large",
|
|
786
|
-
class: h(
|
|
787
|
-
(l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
758
|
+
onCalendarChange: (o) => e.calendarChange(
|
|
759
|
+
o,
|
|
760
|
+
typeof l.field == "string" ? l.field : ""
|
|
761
|
+
),
|
|
762
|
+
onOk: (o) => e.onOk(
|
|
763
|
+
o,
|
|
764
|
+
typeof l.field == "string" ? l.field : ""
|
|
788
765
|
)
|
|
789
|
-
}, null, 8, ["
|
|
766
|
+
}, null, 8, ["format", "valueFormat", "disabled-date", "value", "onUpdate:value", "suffixIcon", "placeholder", "class", "onChange", "onCalendarChange", "onOk"])
|
|
790
767
|
]),
|
|
791
768
|
_: 2
|
|
792
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "slotItem" ? (
|
|
793
|
-
key:
|
|
769
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "slotItem" ? (n(), i(t, {
|
|
770
|
+
key: 10,
|
|
794
771
|
label: l.label,
|
|
795
772
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
796
773
|
prop: l.field,
|
|
797
774
|
class: "rule_err"
|
|
798
775
|
}, {
|
|
799
|
-
label:
|
|
800
|
-
l.slotLabelName ?
|
|
776
|
+
label: d(() => [
|
|
777
|
+
l.slotLabelName ? M(f.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
801
778
|
key: 0,
|
|
802
779
|
style: g(l.labelStyle)
|
|
803
780
|
}, [
|
|
804
781
|
_(u(l.label) + " ", 1),
|
|
805
|
-
l.required ? (
|
|
782
|
+
l.required ? (n(), r("span", Vl, "*")) : p("", !0)
|
|
806
783
|
], 4))
|
|
807
784
|
]),
|
|
808
|
-
default:
|
|
809
|
-
|
|
785
|
+
default: d(() => [
|
|
786
|
+
M(f.$slots, l.slotItemName, {}, void 0, !0)
|
|
810
787
|
]),
|
|
811
788
|
_: 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:
|
|
789
|
+
}, 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(t, {
|
|
790
|
+
key: 11,
|
|
814
791
|
label: l.label,
|
|
815
792
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.phoneNumber,
|
|
816
793
|
prop: l.field.phoneNumber,
|
|
817
794
|
class: "phone_item"
|
|
818
795
|
}, {
|
|
819
|
-
label:
|
|
820
|
-
l.slotLabelName ?
|
|
796
|
+
label: d(() => [
|
|
797
|
+
l.slotLabelName ? M(f.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
821
798
|
key: 0,
|
|
822
799
|
style: g(l.labelStyle)
|
|
823
800
|
}, [
|
|
824
801
|
_(u(l.label) + " ", 1),
|
|
825
|
-
l.required ? (
|
|
802
|
+
l.required ? (n(), r("span", Ul, "*")) : p("", !0)
|
|
826
803
|
], 4))
|
|
827
804
|
]),
|
|
828
|
-
default:
|
|
829
|
-
var o,
|
|
805
|
+
default: d(() => {
|
|
806
|
+
var o, y, I, E;
|
|
830
807
|
return [
|
|
831
|
-
|
|
808
|
+
N("div", {
|
|
832
809
|
class: h(e.phoneWrap ? ["phone_item_content", "phone_item_content_wrap"] : "phone_item_content")
|
|
833
810
|
}, [
|
|
834
|
-
e.phoneWrap ? (
|
|
835
|
-
l.field.nationCode ? (
|
|
811
|
+
e.phoneWrap ? (n(), r("div", jl, [
|
|
812
|
+
l.field.nationCode ? (n(), i(z, {
|
|
836
813
|
key: 0,
|
|
837
814
|
"popper-class": "selectTriangles",
|
|
838
815
|
teleported: !1,
|
|
839
816
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNation) && !l.openDisabled,
|
|
840
817
|
modelValue: e.states.model[l.field.nationCode],
|
|
841
|
-
"onUpdate:modelValue": (
|
|
818
|
+
"onUpdate:modelValue": (a) => e.states.model[l.field.nationCode] = a,
|
|
842
819
|
placeholder: ((o = l.nationOptions) == null ? void 0 : o.placeholder) || "",
|
|
843
820
|
class: h(
|
|
844
821
|
(l.isReadonly || l.isReadonlyNation || e.formOptions.isAllReadonly) && !l.openDisabled ? "selectreadonly" : "areaCode_input"
|
|
@@ -846,162 +823,162 @@ function Yl(f, D, w, e, k, Q) {
|
|
|
846
823
|
style: g("width:" + l.widthNation),
|
|
847
824
|
"fit-input-width": !0
|
|
848
825
|
}, {
|
|
849
|
-
default:
|
|
850
|
-
var
|
|
826
|
+
default: d(() => {
|
|
827
|
+
var a;
|
|
851
828
|
return [
|
|
852
|
-
(
|
|
853
|
-
label:
|
|
854
|
-
value:
|
|
855
|
-
key:
|
|
829
|
+
(n(!0), r(A, null, R((a = l.nationOptions) == null ? void 0 : a.data, (s, C) => (n(), i(j, {
|
|
830
|
+
label: s.name,
|
|
831
|
+
value: s.code,
|
|
832
|
+
key: C
|
|
856
833
|
}, null, 8, ["label", "value"]))), 128))
|
|
857
834
|
];
|
|
858
835
|
}),
|
|
859
836
|
_: 2
|
|
860
|
-
}, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class", "style"])) :
|
|
861
|
-
|
|
862
|
-
l.field.areaCode ? (
|
|
837
|
+
}, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class", "style"])) : p("", !0),
|
|
838
|
+
zl,
|
|
839
|
+
l.field.areaCode ? (n(), i(k, {
|
|
863
840
|
key: 1,
|
|
864
|
-
onBlur: (
|
|
865
|
-
|
|
841
|
+
onBlur: (a) => e.inputBlur(
|
|
842
|
+
a,
|
|
866
843
|
typeof l.field == "string" ? l.field : ""
|
|
867
844
|
),
|
|
868
|
-
onFocus: (
|
|
869
|
-
|
|
845
|
+
onFocus: (a) => e.inputFocus(
|
|
846
|
+
a,
|
|
870
847
|
typeof l.field == "string" ? l.field : ""
|
|
871
848
|
),
|
|
872
|
-
onChange: (
|
|
873
|
-
|
|
849
|
+
onChange: (a) => e.inputChange(
|
|
850
|
+
a,
|
|
874
851
|
typeof l.field == "string" ? l.field : ""
|
|
875
852
|
),
|
|
876
|
-
onInput: (
|
|
877
|
-
|
|
853
|
+
onInput: (a) => e.inputInput(
|
|
854
|
+
a,
|
|
878
855
|
typeof l.field == "string" ? l.field : ""
|
|
879
856
|
),
|
|
880
857
|
maxlength: l.maxlength,
|
|
881
858
|
modelValue: e.states.model[l.field.areaCode],
|
|
882
|
-
"onUpdate:modelValue": (
|
|
859
|
+
"onUpdate:modelValue": (a) => e.states.model[l.field.areaCode] = a,
|
|
883
860
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyArea) && !l.openDisabled,
|
|
884
|
-
placeholder: ((
|
|
861
|
+
placeholder: ((y = l.areaOptions) == null ? void 0 : y.placeholder) || "",
|
|
885
862
|
class: h(
|
|
886
863
|
(l.isReadonly || l.isReadonlyArea || e.formOptions.isAllReadonly) && !l.openDisabled ? "inputReadonly" : "areaCode_input"
|
|
887
864
|
),
|
|
888
865
|
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 ? (
|
|
866
|
+
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "clearable"])) : p("", !0),
|
|
867
|
+
Ll
|
|
868
|
+
])) : p("", !0),
|
|
869
|
+
l.field.nationCode && !e.phoneWrap ? (n(), i(z, {
|
|
893
870
|
key: 1,
|
|
894
871
|
"popper-class": "selectTriangles",
|
|
895
872
|
teleported: !1,
|
|
896
873
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNation) && !l.openDisabled,
|
|
897
874
|
modelValue: e.states.model[l.field.nationCode],
|
|
898
|
-
"onUpdate:modelValue": (
|
|
899
|
-
placeholder: ((
|
|
875
|
+
"onUpdate:modelValue": (a) => e.states.model[l.field.nationCode] = a,
|
|
876
|
+
placeholder: ((I = l.nationOptions) == null ? void 0 : I.placeholder) || "",
|
|
900
877
|
class: h(
|
|
901
878
|
(l.isReadonly || l.isReadonlyNation || e.formOptions.isAllReadonly) && !l.openDisabled ? "selectreadonly" : ""
|
|
902
879
|
),
|
|
903
880
|
style: g("width:" + l.widthNation),
|
|
904
881
|
"fit-input-width": !0
|
|
905
882
|
}, {
|
|
906
|
-
default:
|
|
907
|
-
var
|
|
883
|
+
default: d(() => {
|
|
884
|
+
var a;
|
|
908
885
|
return [
|
|
909
|
-
(
|
|
910
|
-
label:
|
|
911
|
-
value:
|
|
912
|
-
key:
|
|
886
|
+
(n(!0), r(A, null, R((a = l.nationOptions) == null ? void 0 : a.data, (s, C) => (n(), i(j, {
|
|
887
|
+
label: s.name,
|
|
888
|
+
value: s.code,
|
|
889
|
+
key: C
|
|
913
890
|
}, null, 8, ["label", "value"]))), 128))
|
|
914
891
|
];
|
|
915
892
|
}),
|
|
916
893
|
_: 2
|
|
917
|
-
}, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class", "style"])) :
|
|
918
|
-
e.phoneWrap ?
|
|
919
|
-
l.field.areaCode && !e.phoneWrap ? (
|
|
894
|
+
}, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class", "style"])) : p("", !0),
|
|
895
|
+
e.phoneWrap ? p("", !0) : (n(), r("div", El, "-")),
|
|
896
|
+
l.field.areaCode && !e.phoneWrap ? (n(), i(k, {
|
|
920
897
|
key: 3,
|
|
921
|
-
onBlur: (
|
|
922
|
-
|
|
898
|
+
onBlur: (a) => e.inputBlur(
|
|
899
|
+
a,
|
|
923
900
|
typeof l.field == "string" ? l.field : ""
|
|
924
901
|
),
|
|
925
|
-
onFocus: (
|
|
926
|
-
|
|
902
|
+
onFocus: (a) => e.inputFocus(
|
|
903
|
+
a,
|
|
927
904
|
typeof l.field == "string" ? l.field : ""
|
|
928
905
|
),
|
|
929
|
-
onChange: (
|
|
930
|
-
|
|
906
|
+
onChange: (a) => e.inputChange(
|
|
907
|
+
a,
|
|
931
908
|
typeof l.field == "string" ? l.field : ""
|
|
932
909
|
),
|
|
933
|
-
onInput: (
|
|
934
|
-
|
|
910
|
+
onInput: (a) => e.inputInput(
|
|
911
|
+
a,
|
|
935
912
|
typeof l.field == "string" ? l.field : ""
|
|
936
913
|
),
|
|
937
914
|
maxlength: l.maxlength,
|
|
938
915
|
modelValue: e.states.model[l.field.areaCode],
|
|
939
|
-
"onUpdate:modelValue": (
|
|
916
|
+
"onUpdate:modelValue": (a) => e.states.model[l.field.areaCode] = a,
|
|
940
917
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyArea) && !l.openDisabled,
|
|
941
|
-
placeholder: ((
|
|
918
|
+
placeholder: ((E = l.areaOptions) == null ? void 0 : E.placeholder) || "",
|
|
942
919
|
class: h(
|
|
943
920
|
(l.isReadonly || l.isReadonlyArea || e.formOptions.isAllReadonly) && !l.openDisabled ? "inputReadonly" : "areaCode_input"
|
|
944
921
|
),
|
|
945
922
|
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 ? (
|
|
923
|
+
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "clearable"])) : p("", !0),
|
|
924
|
+
e.phoneWrap ? p("", !0) : (n(), r("div", Tl, "-")),
|
|
925
|
+
l.field.phoneNumber ? (n(), i(k, {
|
|
949
926
|
key: 5,
|
|
950
|
-
onBlur: (
|
|
951
|
-
|
|
927
|
+
onBlur: (a) => e.inputBlur(
|
|
928
|
+
a,
|
|
952
929
|
typeof l.field == "string" ? l.field : ""
|
|
953
930
|
),
|
|
954
|
-
onFocus: (
|
|
955
|
-
|
|
931
|
+
onFocus: (a) => e.inputFocus(
|
|
932
|
+
a,
|
|
956
933
|
typeof l.field == "string" ? l.field : ""
|
|
957
934
|
),
|
|
958
|
-
onChange: (
|
|
959
|
-
|
|
935
|
+
onChange: (a) => e.inputChange(
|
|
936
|
+
a,
|
|
960
937
|
typeof l.field == "string" ? l.field : ""
|
|
961
938
|
),
|
|
962
|
-
onInput: (
|
|
963
|
-
|
|
939
|
+
onInput: (a) => e.inputInput(
|
|
940
|
+
a,
|
|
964
941
|
typeof l.field == "string" ? l.field : ""
|
|
965
942
|
),
|
|
966
943
|
maxlength: l.maxlength,
|
|
967
944
|
modelValue: e.states.model[l.field.phoneNumber],
|
|
968
|
-
"onUpdate:modelValue": (
|
|
945
|
+
"onUpdate:modelValue": (a) => e.states.model[l.field.phoneNumber] = a,
|
|
969
946
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyPhoneNumber) && !l.openDisabled,
|
|
970
947
|
placeholder: l.placeholder || "",
|
|
971
948
|
class: h(
|
|
972
949
|
(l.isReadonly || l.isReadonlyPhoneNumber || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
973
950
|
),
|
|
974
951
|
clearable: l.clearable
|
|
975
|
-
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "clearable"])) :
|
|
952
|
+
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "clearable"])) : p("", !0)
|
|
976
953
|
], 2)
|
|
977
954
|
];
|
|
978
955
|
}),
|
|
979
956
|
_: 2
|
|
980
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "line" ? (
|
|
981
|
-
key:
|
|
957
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "line" ? (n(), i(t, {
|
|
958
|
+
key: 12,
|
|
982
959
|
label: l.label
|
|
983
960
|
}, {
|
|
984
|
-
default:
|
|
985
|
-
|
|
961
|
+
default: d(() => [
|
|
962
|
+
Sl
|
|
986
963
|
]),
|
|
987
964
|
_: 2
|
|
988
|
-
}, 1032, ["label"])) : l.type === "number" && typeof l.field == "string" ? (
|
|
989
|
-
key:
|
|
965
|
+
}, 1032, ["label"])) : l.type === "number" && typeof l.field == "string" ? (n(), i(t, {
|
|
966
|
+
key: 13,
|
|
990
967
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
991
968
|
prop: l.field,
|
|
992
969
|
class: h(l.prepend ? "input-item" : "")
|
|
993
970
|
}, {
|
|
994
|
-
label:
|
|
995
|
-
l.slotLabelName ?
|
|
971
|
+
label: d(() => [
|
|
972
|
+
l.slotLabelName ? M(f.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
996
973
|
key: 0,
|
|
997
974
|
style: g(l.labelStyle)
|
|
998
975
|
}, [
|
|
999
976
|
_(u(l.label) + " ", 1),
|
|
1000
|
-
l.required ? (
|
|
977
|
+
l.required ? (n(), r("span", Bl, "*")) : p("", !0)
|
|
1001
978
|
], 4))
|
|
1002
979
|
]),
|
|
1003
|
-
default:
|
|
1004
|
-
b(
|
|
980
|
+
default: d(() => [
|
|
981
|
+
b(k, {
|
|
1005
982
|
onBlur: (o) => e.inputBlur(
|
|
1006
983
|
o,
|
|
1007
984
|
typeof l.field == "string" ? l.field : ""
|
|
@@ -1033,18 +1010,18 @@ function Yl(f, D, w, e, k, Q) {
|
|
|
1033
1010
|
class: h(
|
|
1034
1011
|
(l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
1035
1012
|
),
|
|
1036
|
-
onKeyup:
|
|
1037
|
-
},
|
|
1013
|
+
onKeyup: v((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
1014
|
+
}, J({ _: 2 }, [
|
|
1038
1015
|
l.prepend ? {
|
|
1039
1016
|
name: "prepend",
|
|
1040
|
-
fn:
|
|
1017
|
+
fn: d(() => [
|
|
1041
1018
|
_(u(l.prepend), 1)
|
|
1042
1019
|
]),
|
|
1043
1020
|
key: "0"
|
|
1044
1021
|
} : void 0,
|
|
1045
1022
|
l.append ? {
|
|
1046
1023
|
name: "append",
|
|
1047
|
-
fn:
|
|
1024
|
+
fn: d(() => [
|
|
1048
1025
|
_(u(l.append), 1)
|
|
1049
1026
|
]),
|
|
1050
1027
|
key: "1"
|
|
@@ -1052,23 +1029,23 @@ function Yl(f, D, w, e, k, Q) {
|
|
|
1052
1029
|
]), 1032, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "show-word-limit", "readonly", "type", "rows", "placeholder", "disabled", "showPassword", "clearable", "class", "onKeyup"])
|
|
1053
1030
|
]),
|
|
1054
1031
|
_: 2
|
|
1055
|
-
}, 1032, ["rules", "prop", "class"])) : (
|
|
1056
|
-
key:
|
|
1032
|
+
}, 1032, ["rules", "prop", "class"])) : (n(), i(t, {
|
|
1033
|
+
key: 14,
|
|
1057
1034
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
1058
1035
|
prop: l.field,
|
|
1059
1036
|
class: h(l.prepend ? "input-item" : "")
|
|
1060
1037
|
}, {
|
|
1061
|
-
label:
|
|
1062
|
-
l.slotLabelName ?
|
|
1038
|
+
label: d(() => [
|
|
1039
|
+
l.slotLabelName ? M(f.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
1063
1040
|
key: 0,
|
|
1064
1041
|
style: g(l.labelStyle)
|
|
1065
1042
|
}, [
|
|
1066
1043
|
_(u(l.label) + " ", 1),
|
|
1067
|
-
l.required ? (
|
|
1044
|
+
l.required ? (n(), r("span", Yl, "*")) : p("", !0)
|
|
1068
1045
|
], 4))
|
|
1069
1046
|
]),
|
|
1070
|
-
default:
|
|
1071
|
-
b(
|
|
1047
|
+
default: d(() => [
|
|
1048
|
+
b(k, {
|
|
1072
1049
|
onBlur: (o) => e.inputBlur(
|
|
1073
1050
|
o,
|
|
1074
1051
|
typeof l.field == "string" ? l.field : ""
|
|
@@ -1099,18 +1076,18 @@ function Yl(f, D, w, e, k, Q) {
|
|
|
1099
1076
|
class: h(
|
|
1100
1077
|
(l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
1101
1078
|
),
|
|
1102
|
-
onKeyup:
|
|
1103
|
-
},
|
|
1079
|
+
onKeyup: v((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
1080
|
+
}, J({ _: 2 }, [
|
|
1104
1081
|
l.prepend ? {
|
|
1105
1082
|
name: "prepend",
|
|
1106
|
-
fn:
|
|
1083
|
+
fn: d(() => [
|
|
1107
1084
|
_(u(l.prepend), 1)
|
|
1108
1085
|
]),
|
|
1109
1086
|
key: "0"
|
|
1110
1087
|
} : void 0,
|
|
1111
1088
|
l.append ? {
|
|
1112
1089
|
name: "append",
|
|
1113
|
-
fn:
|
|
1090
|
+
fn: d(() => [
|
|
1114
1091
|
_(u(l.append), 1)
|
|
1115
1092
|
]),
|
|
1116
1093
|
key: "1"
|
|
@@ -1123,19 +1100,19 @@ function Yl(f, D, w, e, k, Q) {
|
|
|
1123
1100
|
]),
|
|
1124
1101
|
_: 2
|
|
1125
1102
|
}, 1032, ["xs", "sm", "md", "lg", "xl"])), [
|
|
1126
|
-
[
|
|
1103
|
+
[pl, !l.isHide]
|
|
1127
1104
|
])), 128))
|
|
1128
1105
|
]),
|
|
1129
1106
|
_: 3
|
|
1130
1107
|
}),
|
|
1131
1108
|
b(t, { class: "btnsItem" }, {
|
|
1132
|
-
default:
|
|
1133
|
-
|
|
1109
|
+
default: d(() => [
|
|
1110
|
+
M(f.$slots, "buttons", {
|
|
1134
1111
|
model: w.model,
|
|
1135
1112
|
onBtnClick: e.onSubmit
|
|
1136
1113
|
}, () => [
|
|
1137
|
-
(
|
|
1138
|
-
l.isShow ? (
|
|
1114
|
+
(n(!0), r(A, null, R(e.formOptions.btnConfig, (l, L) => (n(), r("div", { key: L }, [
|
|
1115
|
+
l.isShow ? (n(), i(q, {
|
|
1139
1116
|
key: 0,
|
|
1140
1117
|
btnCode: l.btnCode,
|
|
1141
1118
|
plain: l.plain,
|
|
@@ -1162,11 +1139,11 @@ function Yl(f, D, w, e, k, Q) {
|
|
|
1162
1139
|
class: h(l.class),
|
|
1163
1140
|
onHandleClick: (o) => e.handleClick(o, l.isRule, l.emitName)
|
|
1164
1141
|
}, {
|
|
1165
|
-
default:
|
|
1142
|
+
default: d(() => [
|
|
1166
1143
|
_(u(l.name), 1)
|
|
1167
1144
|
]),
|
|
1168
1145
|
_: 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"])) :
|
|
1146
|
+
}, 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
1147
|
]))), 128))
|
|
1171
1148
|
], !0)
|
|
1172
1149
|
]),
|
|
@@ -1176,11 +1153,11 @@ function Yl(f, D, w, e, k, Q) {
|
|
|
1176
1153
|
_: 3
|
|
1177
1154
|
}, 16, ["model", "label-position"]);
|
|
1178
1155
|
}
|
|
1179
|
-
const
|
|
1180
|
-
function K(f,
|
|
1181
|
-
K.installed || (K.installed = !0, f.component("common-el-form",
|
|
1156
|
+
const X = /* @__PURE__ */ hl(bl, [["render", ql], ["__scopeId", "data-v-8c0e2e9d"]]);
|
|
1157
|
+
function K(f, c = {}) {
|
|
1158
|
+
K.installed || (K.installed = !0, f.component("common-el-form", X));
|
|
1182
1159
|
}
|
|
1183
|
-
|
|
1160
|
+
X.install = K;
|
|
1184
1161
|
export {
|
|
1185
|
-
|
|
1162
|
+
X as default
|
|
1186
1163
|
};
|