sinosoft-common-form 2.7.4 → 2.7.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 +343 -343
- package/common-form.umd.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
package/common-form.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as R, reactive as Ll, shallowRef as
|
|
1
|
+
import { ref as R, reactive as Ll, shallowRef as dl, h as sl, computed as El, onMounted as _l, onBeforeUnmount as vl, watch as Sl, toRefs as Rl, nextTick as tl, resolveComponent as C, openBlock as n, createBlock as c, mergeProps as Yl, withModifiers as Vl, withCtx as d, createVNode as f, createElementBlock as M, Fragment as L, renderList as E, withDirectives as Ul, createElementVNode as h, normalizeStyle as T, toDisplayString as u, createTextVNode as j, createCommentVNode as g, renderSlot as A, normalizeClass as I, withKeys as W, createSlots as X, vShow as Fl, pushScopeId as Wl, popScopeId as Bl } from "vue";
|
|
2
2
|
const Zl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyN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wNkM2LjU1NjcxIDEzLjA3MzcgNi41NzAzMiAxMy4wMzg3IDYuNTkzNjYgMTMuMDA5NUw5LjEyNDAxIDkuOTk0ODVMNi41OTM2NiA2Ljk4MjE2QzYuNTcwMTYgNi45NTM2NiA2LjU1NzEyIDYuOTE3OTcgNi41NTY3MSA2Ljg4MTAyQzYuNTU2NzEgNi43OTU0NSA2LjYyNjczIDYuNzI1NDMgNi43MTIzIDYuNzI1NDNMNy45OTc5IDYuNzMxMjdMOS45MjkyMSA5LjAzNkwxMS44NjA1IDYuNzMzMjFMMTMuMTQ0MiA2LjcyNzM4QzEzLjIyOTggNi43MjczOCAxMy4yOTk4IDYuNzk1NDUgMTMuMjk5OCA2Ljg4Mjk3QzEzLjI5OTggNi45MTk5MiAxMy4yODYyIDYuOTU0OTMgMTMuMjYyOCA2Ljk4NDExTDEwLjczNjQgOS45OTY4TDEzLjI2NDggMTMuMDExNEMxMy4yODgxIDEzLjA0MDYgMTMuMzAxNyAxMy4wNzU2IDEzLjMwMTcgMTMuMTEyNkMxMy4zMDE3IDEzLjE5ODEgMTMuMjMxNyAxMy4yNjgyIDEzLjE0NjEgMTMuMjY4MloiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuMjUiLz4KPC9zdmc+Cg==", Gl = {
|
|
3
3
|
props: {
|
|
4
4
|
fieldList: {
|
|
@@ -22,81 +22,81 @@ const Zl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
22
22
|
options: Object
|
|
23
23
|
},
|
|
24
24
|
setup(D, { emit: p }) {
|
|
25
|
-
const
|
|
25
|
+
const v = R(!0), e = Ll({
|
|
26
26
|
model: {},
|
|
27
27
|
rareMaxlength: null
|
|
28
28
|
});
|
|
29
29
|
console.log("model", D.model);
|
|
30
|
-
const Y = R(!0), S = R(null),
|
|
30
|
+
const Y = R(!0), S = R(null), O = dl({
|
|
31
31
|
render() {
|
|
32
|
-
return
|
|
32
|
+
return sl("img", {
|
|
33
33
|
src: Zl
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
}),
|
|
36
|
+
}), x = dl({
|
|
37
37
|
render() {
|
|
38
|
-
return
|
|
38
|
+
return sl("img", {
|
|
39
39
|
src: Pl
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
}),
|
|
42
|
+
}), w = (s) => {
|
|
43
43
|
const a = s.target;
|
|
44
44
|
a.scrollTop + a.clientHeight + 1 >= a.scrollHeight && p("selectChangeScroll");
|
|
45
45
|
}, V = (s, a) => {
|
|
46
46
|
if (s) {
|
|
47
47
|
const r = document.querySelector(".single-select-loadmore .el-select-dropdown__wrap");
|
|
48
|
-
r && r.addEventListener("scroll",
|
|
48
|
+
r && r.addEventListener("scroll", w), p("handleVisibleChange", s, a);
|
|
49
49
|
}
|
|
50
|
-
},
|
|
50
|
+
}, P = dl({
|
|
51
51
|
render() {
|
|
52
|
-
return
|
|
52
|
+
return sl("img", {
|
|
53
53
|
src: Ql
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
}),
|
|
56
|
+
}), Q = El(() => Object.assign([], D.options)), B = () => {
|
|
57
57
|
e.model = D.model;
|
|
58
58
|
}, U = (s, a, r) => {
|
|
59
59
|
var y;
|
|
60
|
-
a ? (
|
|
61
|
-
var
|
|
62
|
-
(
|
|
63
|
-
if (
|
|
60
|
+
a ? (v.value = !1, tl(() => {
|
|
61
|
+
var N;
|
|
62
|
+
(N = S.value) == null || N.validate((k) => {
|
|
63
|
+
if (k)
|
|
64
64
|
p(r || "submit", e.model, s);
|
|
65
65
|
else
|
|
66
66
|
return !1;
|
|
67
67
|
});
|
|
68
|
-
})) : a ? (r === "reset" && ((y = S.value) == null || y.resetFields()), p(r || "submit", e.model, s)) : (
|
|
69
|
-
},
|
|
68
|
+
})) : a ? (r === "reset" && ((y = S.value) == null || y.resetFields()), p(r || "submit", e.model, s)) : (v.value = !1, p(r || "submit", e.model, s, S.value));
|
|
69
|
+
}, G = (s, a) => {
|
|
70
70
|
p("selectChange", s, a);
|
|
71
|
-
},
|
|
71
|
+
}, Z = (s, a) => {
|
|
72
72
|
p("selectFocus", s, a);
|
|
73
|
-
},
|
|
73
|
+
}, H = (s, a) => {
|
|
74
74
|
p("radioChange", s, a);
|
|
75
|
-
},
|
|
75
|
+
}, ll = (s, a) => {
|
|
76
76
|
p("checkChange", s, a);
|
|
77
|
-
},
|
|
77
|
+
}, m = (s, a) => {
|
|
78
78
|
const r = e.model[a].length;
|
|
79
79
|
if (r === 1) {
|
|
80
80
|
p("checkChange", s, a);
|
|
81
81
|
return;
|
|
82
82
|
} else
|
|
83
83
|
r > 1 ? (e.model[a].shift(), p("checkChange", s, a)) : r < 1 && p("checkChange", s, a);
|
|
84
|
-
},
|
|
84
|
+
}, el = (s, a, r) => {
|
|
85
85
|
U(s, a, r);
|
|
86
|
-
},
|
|
86
|
+
}, ol = (s, a) => {
|
|
87
87
|
s && (a == null ? void 0 : a.key) === "Enter" && U(void 0, !0, "submit");
|
|
88
88
|
}, l = (s, a, r) => {
|
|
89
89
|
var y;
|
|
90
90
|
(y = S.value) == null || y.validateField(a), p("dateChange", s, a);
|
|
91
|
-
},
|
|
91
|
+
}, q = (s, a) => {
|
|
92
92
|
p("onOk", s, a);
|
|
93
93
|
}, o = (s, a, r) => {
|
|
94
94
|
e.rareMaxlength = "", p("inputBlur", s, a);
|
|
95
95
|
}, i = (s, a) => {
|
|
96
96
|
p("inputFocus", s, a);
|
|
97
|
-
},
|
|
97
|
+
}, b = (s, a, r) => {
|
|
98
98
|
r && (e.model[a] = e.model[a].toUpperCase()), p("inputChange", s, a);
|
|
99
|
-
},
|
|
99
|
+
}, t = (s) => {
|
|
100
100
|
var a = 0, r = 0;
|
|
101
101
|
if (s) {
|
|
102
102
|
for (; a < s.length; ) {
|
|
@@ -106,33 +106,33 @@ const Zl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
106
106
|
return r;
|
|
107
107
|
}
|
|
108
108
|
return r;
|
|
109
|
-
},
|
|
110
|
-
document.getElementById(a).addEventListener("input",
|
|
111
|
-
},
|
|
112
|
-
let y = document.getElementById(a),
|
|
113
|
-
if (
|
|
114
|
-
let
|
|
115
|
-
|
|
109
|
+
}, F = (s, a, r) => {
|
|
110
|
+
document.getElementById(a).addEventListener("input", K(s, a, r));
|
|
111
|
+
}, K = (s, a, r) => {
|
|
112
|
+
let y = document.getElementById(a), N = s.target.value;
|
|
113
|
+
if (N) {
|
|
114
|
+
let k = null, z = Array.from(N);
|
|
115
|
+
N !== "" && N !== void 0 && r && (k = t(N), e.rareMaxlength = r + k), e.rareMaxlength - N.length === 1 && e.rareMaxlength++, N.length > r && z.length !== r && (e.model[a] = z.slice(0, r).join(""), cl.value += 1, z = Array.from(z.slice(0, r).join("")), k = t(N)), z.length < r && (e.rareMaxlength = r + k + (r - z.length) * 2), z.length === r && (e.rareMaxlength = r), (y == null ? void 0 : y.id) === a && y.setAttribute("maxlength", e.rareMaxlength), p("selectInput", s, a, r + k);
|
|
116
116
|
}
|
|
117
117
|
}, bl = (s, a, r) => {
|
|
118
|
-
let y = null,
|
|
119
|
-
e.model[a] !== "" && e.model[a] !== void 0 && r && (y =
|
|
118
|
+
let y = null, N = Array.from(e.model[a]);
|
|
119
|
+
e.model[a] !== "" && e.model[a] !== void 0 && r && (y = t(e.model[a]), e.rareMaxlength = r + y), e.rareMaxlength - e.model[a].length === 1 && e.rareMaxlength++, e.model[a].length > r && N.length !== r && (e.model[a] = N.slice(0, r).join(""), N = Array.from(N.slice(0, r).join("")), y = t(e.model[a])), N.length < r && (e.rareMaxlength = r + y + (r - N.length) * 2), N.length === r && (e.rareMaxlength = r), p("inputInput", s, a, r + y);
|
|
120
120
|
}, hl = () => ({
|
|
121
121
|
innerWidth: window.innerWidth || document.documentElement.clientWidth,
|
|
122
122
|
innerHeight: window.innerHeight || document.documentElement.clientHeight,
|
|
123
123
|
outerWidth: window.outerWidth,
|
|
124
124
|
outerHeight: window.outerHeight
|
|
125
|
-
}),
|
|
125
|
+
}), il = () => {
|
|
126
126
|
let s = 0;
|
|
127
127
|
const { outerWidth: a, innerWidth: r } = hl();
|
|
128
128
|
return window.devicePixelRatio !== void 0 ? s = window.devicePixelRatio : a !== void 0 && r !== void 0 && (s = a / r), s && (s = Math.round(s * 100)), s;
|
|
129
129
|
}, Nl = (s, a) => {
|
|
130
130
|
var r;
|
|
131
131
|
if (s) {
|
|
132
|
-
let y,
|
|
132
|
+
let y, N, k, z = il();
|
|
133
133
|
if (a === "select" ? y = (r = document.querySelector("." + s)) == null ? void 0 : r.querySelector(".el-input__inner") : y = document.querySelector("#" + s), y) {
|
|
134
|
-
let
|
|
135
|
-
|
|
134
|
+
let J = y.getBoundingClientRect().width;
|
|
135
|
+
k = y.scrollWidth, J < 40 ? (N = J, Y.value = !(y != null && y.value)) : (N = z === 100 ? y.offsetWidth : Math.ceil(J), Y.value = k <= N), console.log("ChangeRatio()090901---domWidth----contentWidth-----", il(), N, k);
|
|
136
136
|
} else
|
|
137
137
|
Y.value = !0;
|
|
138
138
|
}
|
|
@@ -145,90 +145,90 @@ const Zl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
145
145
|
}, jl = (s) => {
|
|
146
146
|
var a;
|
|
147
147
|
(a = S.value) == null || a.clearValidate(s);
|
|
148
|
-
},
|
|
149
|
-
window.innerWidth < 768,
|
|
148
|
+
}, al = R(!1), Ml = () => {
|
|
149
|
+
window.innerWidth < 768, al.value = !1;
|
|
150
150
|
};
|
|
151
151
|
_l(() => {
|
|
152
152
|
var a;
|
|
153
|
-
|
|
153
|
+
B(), (a = S.value) == null || a.resetFields(), window.addEventListener("resize", Ml), document.querySelectorAll(".ant-picker-range .ant-picker-input input").forEach((r, y) => {
|
|
154
154
|
y % 2 !== 0 && (r.setAttribute("disabled", !0), r.setAttribute("color", "rgba(0, 0, 0, 0.88)"));
|
|
155
155
|
});
|
|
156
156
|
}), vl(() => {
|
|
157
|
-
window.removeEventListener("resize",
|
|
157
|
+
window.removeEventListener("resize", Ml);
|
|
158
158
|
}), Sl(
|
|
159
159
|
() => D.fieldList,
|
|
160
160
|
(s, a) => {
|
|
161
|
-
s !== a &&
|
|
161
|
+
s !== a && B();
|
|
162
162
|
}
|
|
163
163
|
);
|
|
164
|
-
const
|
|
165
|
-
s === "" && (
|
|
164
|
+
const $ = R(0), nl = R(0), yl = R(0), cl = R(0), Ol = (s) => {
|
|
165
|
+
s === "" && ($.value += 1);
|
|
166
166
|
}, kl = (s, a, r, y) => {
|
|
167
|
-
const
|
|
167
|
+
const N = {};
|
|
168
168
|
if (s.date() === a.date() && s.year() === a.year() && s.month() === a.month())
|
|
169
|
-
return
|
|
169
|
+
return N.border = "1px solid #a26628", N.borderRadius = "4px", N;
|
|
170
170
|
p("openStatusNumber", r == null ? void 0 : r.range, y);
|
|
171
171
|
}, Al = (s, a, r) => {
|
|
172
|
-
e.model[a] = r.format("DD/MM/YYYY"),
|
|
172
|
+
e.model[a] = r.format("DD/MM/YYYY"), $.value += 1, l(s, a), p("getDefaultToady", r, a);
|
|
173
173
|
}, wl = (s, a) => {
|
|
174
174
|
p("calendarChange", s, a);
|
|
175
175
|
}, Cl = (s, a, r, y) => {
|
|
176
176
|
if (y)
|
|
177
177
|
return e.model[r] = y;
|
|
178
|
-
s || (
|
|
178
|
+
s || ($.value += 1), p("openChange", s, r, y);
|
|
179
179
|
};
|
|
180
|
-
|
|
180
|
+
nl.value = 1;
|
|
181
181
|
const zl = (s, a, r, y) => {
|
|
182
|
-
s || (
|
|
183
|
-
document.querySelectorAll(".ant-picker-range .ant-picker-input input").forEach((
|
|
184
|
-
|
|
185
|
-
}), y !== void 0 && y[0] && y[1] && document.querySelectorAll(`.ant-picker-range.${r} .ant-picker-input input`).forEach((
|
|
186
|
-
|
|
182
|
+
s || (nl.value += 1, tl(() => {
|
|
183
|
+
document.querySelectorAll(".ant-picker-range .ant-picker-input input").forEach((k, z) => {
|
|
184
|
+
z % 2 !== 0 && (k.setAttribute("disabled", !0), k.setAttribute("color", "rgba(0, 0, 0, 0.88)")), k.value && k.removeAttribute("disabled");
|
|
185
|
+
}), y !== void 0 && y[0] && y[1] && document.querySelectorAll(`.ant-picker-range.${r} .ant-picker-input input`).forEach((z, J) => {
|
|
186
|
+
J % 2 !== 0 && (z.removeAttribute("disabled"), z.setAttribute("color", "rgba(0, 0, 0, 0.88)"));
|
|
187
187
|
});
|
|
188
188
|
})), p("openDatePickerDaterange", s, a, r, y);
|
|
189
189
|
}, xl = (s) => {
|
|
190
|
-
s || (
|
|
190
|
+
s || (yl.value += 1), p("openDatetimerange", s);
|
|
191
191
|
};
|
|
192
192
|
return {
|
|
193
193
|
...Rl(e),
|
|
194
194
|
formRef: S,
|
|
195
195
|
isShowTooltip: Y,
|
|
196
196
|
states: e,
|
|
197
|
-
formOptions:
|
|
197
|
+
formOptions: Q,
|
|
198
198
|
onSubmit: U,
|
|
199
|
-
selectChange:
|
|
200
|
-
selectFocus:
|
|
199
|
+
selectChange: G,
|
|
200
|
+
selectFocus: Z,
|
|
201
201
|
// filteroption,
|
|
202
|
-
radioChange:
|
|
203
|
-
checkChange:
|
|
204
|
-
handleCheckedChange:
|
|
205
|
-
prefixIcon:
|
|
206
|
-
IconDropDown:
|
|
207
|
-
IconClear:
|
|
208
|
-
handleClick:
|
|
209
|
-
handleKeyUp:
|
|
202
|
+
radioChange: H,
|
|
203
|
+
checkChange: ll,
|
|
204
|
+
handleCheckedChange: m,
|
|
205
|
+
prefixIcon: O,
|
|
206
|
+
IconDropDown: x,
|
|
207
|
+
IconClear: P,
|
|
208
|
+
handleClick: el,
|
|
209
|
+
handleKeyUp: ol,
|
|
210
210
|
resetFieldsTest: Il,
|
|
211
211
|
clearValidateTest: jl,
|
|
212
212
|
dateChange: l,
|
|
213
213
|
calendarChange: wl,
|
|
214
|
-
onOk:
|
|
214
|
+
onOk: q,
|
|
215
215
|
inputBlur: o,
|
|
216
216
|
inputFocus: i,
|
|
217
|
-
inputChange:
|
|
217
|
+
inputChange: b,
|
|
218
218
|
inputInput: bl,
|
|
219
|
-
selectInput:
|
|
220
|
-
noFormRule:
|
|
221
|
-
phoneWrap:
|
|
222
|
-
pickerKey:
|
|
223
|
-
pickerKeyDaterange:
|
|
224
|
-
selectPickerKey:
|
|
225
|
-
datetimerange:
|
|
219
|
+
selectInput: F,
|
|
220
|
+
noFormRule: v,
|
|
221
|
+
phoneWrap: al,
|
|
222
|
+
pickerKey: $,
|
|
223
|
+
pickerKeyDaterange: nl,
|
|
224
|
+
selectPickerKey: cl,
|
|
225
|
+
datetimerange: yl,
|
|
226
226
|
openDatePicker: Ol,
|
|
227
227
|
openDatePickerDaterange: zl,
|
|
228
228
|
openDatetimerange: xl,
|
|
229
229
|
// spaceRule,
|
|
230
230
|
handleVisibleChange: V,
|
|
231
|
-
handleScroll:
|
|
231
|
+
handleScroll: w,
|
|
232
232
|
visibilityChange: Nl,
|
|
233
233
|
contentName: Tl,
|
|
234
234
|
openChange: Cl,
|
|
@@ -236,13 +236,13 @@ const Zl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
236
236
|
getDefaultToady: Al
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
|
-
},
|
|
239
|
+
}, ul = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCAyMiA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMi4wNjA3IDE2LjA2MDdMMTEgMTVMNiAyMEwxMSAyNUwxMi4wNjA3IDIzLjkzOTNMOC4xMjEzMiAyMEwxMi4wNjA3IDE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3OTQgMjVMMy44Nzg2IDI2LjA2MDdMNS45OTk5MiAyMy45MzkzTDQuOTM5MjYgMjIuODc4N0wyLjgxNzk0IDI1Wk02Ljc1NzI4IDE4LjkzOTNMMi44MTc5NCAyMi44Nzg3TDQuOTM5MjYgMjVMOC44Nzg2IDIxLjA2MDdMNi43NTcyOCAxOC45MzkzWk0yLjgxNzk0IDE3LjEyMTNMNi43NTcyOCAyMS4wNjA3TDguODc4NiAxOC45MzkzTDQuOTM5MjYgMTVMMi44MTc5NCAxNy4xMjEzWiIgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMC4yNSIgbWFzaz0idXJsKCNwYXRoLTMtaW5zaWRlLTJfNDIxXzgxNTkpIi8+Cjwvc3ZnPgo=";
|
|
240
240
|
const Hl = (D, p) => {
|
|
241
|
-
const
|
|
241
|
+
const v = D.__vccOpts || D;
|
|
242
242
|
for (const [e, Y] of p)
|
|
243
|
-
|
|
244
|
-
return
|
|
245
|
-
},
|
|
243
|
+
v[e] = Y;
|
|
244
|
+
return v;
|
|
245
|
+
}, _ = (D) => (Wl("data-v-f3d41375"), D = D(), Bl(), D), ql = { class: "header-title" }, Kl = { class: "title-content" }, Jl = { class: "header-boldTitle" }, Xl = { class: "boldTitle-content" }, ml = {
|
|
246
246
|
key: 0,
|
|
247
247
|
class: "custom-required"
|
|
248
248
|
}, $l = {
|
|
@@ -269,36 +269,36 @@ const Hl = (D, p) => {
|
|
|
269
269
|
}, ce = {
|
|
270
270
|
key: 0,
|
|
271
271
|
class: "custom-required"
|
|
272
|
-
}, te = ["onClick"], ue = /* @__PURE__ */
|
|
273
|
-
src: tl,
|
|
274
|
-
alt: ""
|
|
275
|
-
}, null, -1)), ge = /* @__PURE__ */ E(() => /* @__PURE__ */ b("img", {
|
|
272
|
+
}, te = ["onClick"], ue = /* @__PURE__ */ _(() => /* @__PURE__ */ h("img", {
|
|
276
273
|
src: ul,
|
|
277
274
|
alt: ""
|
|
278
|
-
}, null, -1)),
|
|
275
|
+
}, null, -1)), ge = /* @__PURE__ */ _(() => /* @__PURE__ */ h("img", {
|
|
279
276
|
src: gl,
|
|
280
277
|
alt: ""
|
|
281
|
-
}, null, -1)),
|
|
278
|
+
}, null, -1)), fe = /* @__PURE__ */ _(() => /* @__PURE__ */ h("img", {
|
|
282
279
|
src: fl,
|
|
283
280
|
alt: ""
|
|
281
|
+
}, null, -1)), pe = /* @__PURE__ */ _(() => /* @__PURE__ */ h("img", {
|
|
282
|
+
src: pl,
|
|
283
|
+
alt: ""
|
|
284
284
|
}, null, -1)), De = {
|
|
285
285
|
key: 0,
|
|
286
286
|
class: "date_to"
|
|
287
287
|
}, be = {
|
|
288
288
|
key: 0,
|
|
289
289
|
class: "custom-required"
|
|
290
|
-
}, he = /* @__PURE__ */
|
|
291
|
-
src: tl,
|
|
292
|
-
alt: ""
|
|
293
|
-
}, null, -1)), Ne = /* @__PURE__ */ E(() => /* @__PURE__ */ b("img", {
|
|
290
|
+
}, he = /* @__PURE__ */ _(() => /* @__PURE__ */ h("img", {
|
|
294
291
|
src: ul,
|
|
295
292
|
alt: ""
|
|
296
|
-
}, null, -1)),
|
|
293
|
+
}, null, -1)), Ne = /* @__PURE__ */ _(() => /* @__PURE__ */ h("img", {
|
|
297
294
|
src: gl,
|
|
298
295
|
alt: ""
|
|
299
|
-
}, null, -1)),
|
|
296
|
+
}, null, -1)), Te = /* @__PURE__ */ _(() => /* @__PURE__ */ h("img", {
|
|
300
297
|
src: fl,
|
|
301
298
|
alt: ""
|
|
299
|
+
}, null, -1)), Ie = /* @__PURE__ */ _(() => /* @__PURE__ */ h("img", {
|
|
300
|
+
src: pl,
|
|
301
|
+
alt: ""
|
|
302
302
|
}, null, -1)), je = {
|
|
303
303
|
key: 0,
|
|
304
304
|
class: "custom-required"
|
|
@@ -311,13 +311,13 @@ const Hl = (D, p) => {
|
|
|
311
311
|
}, Ae = {
|
|
312
312
|
key: 0,
|
|
313
313
|
class: "phone_item_content_before"
|
|
314
|
-
}, we = /* @__PURE__ */
|
|
314
|
+
}, we = /* @__PURE__ */ _(() => /* @__PURE__ */ h("div", { class: "line_middle" }, "-", -1)), Ce = /* @__PURE__ */ _(() => /* @__PURE__ */ h("div", { class: "line_middle" }, "-", -1)), ze = {
|
|
315
315
|
key: 1,
|
|
316
316
|
class: "line_middle"
|
|
317
317
|
}, xe = {
|
|
318
318
|
key: 2,
|
|
319
319
|
class: "line_middle"
|
|
320
|
-
}, Le = /* @__PURE__ */
|
|
320
|
+
}, Le = /* @__PURE__ */ _(() => /* @__PURE__ */ h("div", {
|
|
321
321
|
class: "line",
|
|
322
322
|
style: { "border-top": "1px solid #e8e8e8", width: "100%", height: "0px", margin: "39px 0" }
|
|
323
323
|
}, null, -1)), Ee = {
|
|
@@ -333,64 +333,64 @@ const Hl = (D, p) => {
|
|
|
333
333
|
key: 0,
|
|
334
334
|
class: "custom-required"
|
|
335
335
|
};
|
|
336
|
-
function Ye(D, p,
|
|
337
|
-
const
|
|
338
|
-
return n(), c(
|
|
336
|
+
function Ye(D, p, v, e, Y, S) {
|
|
337
|
+
const O = C("el-form-item"), x = C("el-input"), w = C("el-tooltip"), V = C("el-col"), P = C("el-row"), Q = C("el-radio"), B = C("el-radio-group"), U = C("el-checkbox"), G = C("el-checkbox-group"), Z = C("el-option"), H = C("el-select"), ll = C("a-date-picker"), m = C("a-range-picker"), el = C("sinosoftCommonButton"), ol = C("el-form");
|
|
338
|
+
return n(), c(ol, Yl({
|
|
339
339
|
"hide-required-asterisk": "",
|
|
340
340
|
onSubmit: p[0] || (p[0] = Vl(() => {
|
|
341
341
|
}, ["prevent"])),
|
|
342
|
-
model:
|
|
342
|
+
model: v.model
|
|
343
343
|
}, e.formOptions, {
|
|
344
344
|
"label-position": e.formOptions.labelPosition,
|
|
345
345
|
ref: "formRef",
|
|
346
346
|
"scroll-to-error": !0
|
|
347
347
|
}), {
|
|
348
348
|
default: d(() => [
|
|
349
|
-
f(
|
|
349
|
+
f(P, { gutter: 24 }, {
|
|
350
350
|
default: d(() => [
|
|
351
|
-
(n(!0), M(
|
|
351
|
+
(n(!0), M(L, null, E(v.fieldList, (l, q) => Ul((n(), c(V, {
|
|
352
352
|
xs: l.xs ? l.xs : 24,
|
|
353
353
|
sm: l.sm ? l.sm : 24,
|
|
354
354
|
md: l.md ? l.md : 8,
|
|
355
355
|
lg: l.lg ? l.lg : 8,
|
|
356
356
|
xl: l.xl ? l.xl : 8,
|
|
357
|
-
key:
|
|
357
|
+
key: q
|
|
358
358
|
}, {
|
|
359
359
|
default: d(() => [
|
|
360
|
-
|
|
361
|
-
style:
|
|
360
|
+
h("div", {
|
|
361
|
+
style: T(l.style)
|
|
362
362
|
}, [
|
|
363
|
-
l.type === "title" ? (n(), c(
|
|
363
|
+
l.type === "title" ? (n(), c(O, { key: 0 }, {
|
|
364
364
|
default: d(() => [
|
|
365
|
-
|
|
366
|
-
|
|
365
|
+
h("div", ql, [
|
|
366
|
+
h("span", Kl, u(l.title), 1)
|
|
367
367
|
])
|
|
368
368
|
]),
|
|
369
369
|
_: 2
|
|
370
|
-
}, 1024)) : l.type === "boldTitle" ? (n(), c(
|
|
370
|
+
}, 1024)) : l.type === "boldTitle" ? (n(), c(O, { key: 1 }, {
|
|
371
371
|
default: d(() => [
|
|
372
|
-
|
|
373
|
-
|
|
372
|
+
h("div", Jl, [
|
|
373
|
+
h("span", Xl, u(l.title), 1)
|
|
374
374
|
])
|
|
375
375
|
]),
|
|
376
376
|
_: 2
|
|
377
|
-
}, 1024)) : l.type === "name" && typeof l.field != "string" && l.field && "nameEnFamily" in l.field && l.rules && "nameEnFamily" in l.rules ? (n(), c(
|
|
377
|
+
}, 1024)) : l.type === "name" && typeof l.field != "string" && l.field && "nameEnFamily" in l.field && l.rules && "nameEnFamily" in l.rules ? (n(), c(O, {
|
|
378
378
|
key: 2,
|
|
379
379
|
label: l.label,
|
|
380
380
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
381
381
|
class: "container_name"
|
|
382
382
|
}, {
|
|
383
383
|
label: d(() => [
|
|
384
|
-
l.slotLabelName ?
|
|
384
|
+
l.slotLabelName ? A(D.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), M("div", {
|
|
385
385
|
key: 0,
|
|
386
|
-
style:
|
|
386
|
+
style: T(l.labelStyle)
|
|
387
387
|
}, [
|
|
388
|
-
|
|
388
|
+
j(u(l.label) + " ", 1),
|
|
389
389
|
l.required ? (n(), M("span", ml, "*")) : g("", !0)
|
|
390
390
|
], 4))
|
|
391
391
|
]),
|
|
392
392
|
default: d(() => [
|
|
393
|
-
f(
|
|
393
|
+
f(P, { gutter: 20 }, {
|
|
394
394
|
default: d(() => [
|
|
395
395
|
f(V, {
|
|
396
396
|
xs: 24,
|
|
@@ -400,14 +400,14 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
400
400
|
xl: 12
|
|
401
401
|
}, {
|
|
402
402
|
default: d(() => [
|
|
403
|
-
l.field.nameEnFamily ? (n(), c(
|
|
403
|
+
l.field.nameEnFamily ? (n(), c(O, {
|
|
404
404
|
key: 0,
|
|
405
405
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.nameEnFamily,
|
|
406
406
|
prop: l.field.nameEnFamily,
|
|
407
407
|
class: "item-name item-name-top"
|
|
408
408
|
}, {
|
|
409
409
|
default: d(() => [
|
|
410
|
-
f(
|
|
410
|
+
f(w, {
|
|
411
411
|
"popper-class": "input-tooltip",
|
|
412
412
|
effect: "light",
|
|
413
413
|
content: e.states.model[typeof l.field.nameEnFamily == "string" ? l.field.nameEnFamily : ""],
|
|
@@ -416,14 +416,14 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
416
416
|
"trigger-keys": []
|
|
417
417
|
}, {
|
|
418
418
|
default: d(() => [
|
|
419
|
-
f(
|
|
419
|
+
f(x, {
|
|
420
420
|
id: l.field.nameEnFamily,
|
|
421
421
|
onBlur: (o) => e.inputBlur(o, l.field.nameEnFamily),
|
|
422
422
|
onFocus: (o) => e.inputFocus(o, l.field.nameEnFamily),
|
|
423
423
|
onChange: (o) => e.inputChange(o, l.field.nameEnFamily, "name"),
|
|
424
424
|
onInput: (o) => e.inputInput(o, l.field.nameEnFamily, l.maxlengthNameEnFamily),
|
|
425
425
|
onMouseenter: (o) => e.visibilityChange(l.field.nameEnFamily),
|
|
426
|
-
class:
|
|
426
|
+
class: I(
|
|
427
427
|
(l.isReadonly || l.isReadonlyNameEnFamily || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
428
428
|
),
|
|
429
429
|
maxlength: l.maxlengthNameEnFamily ? e.states.rareMaxlength : "",
|
|
@@ -433,7 +433,7 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
433
433
|
type: l.type ? l.type : "text",
|
|
434
434
|
placeholder: l.placeholderNameEnFamily,
|
|
435
435
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNameEnFamily) && !l.openDisabled,
|
|
436
|
-
onKeyup:
|
|
436
|
+
onKeyup: W((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
437
437
|
}, null, 8, ["id", "onBlur", "onFocus", "onChange", "onInput", "onMouseenter", "class", "maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
438
438
|
]),
|
|
439
439
|
_: 2
|
|
@@ -452,14 +452,14 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
452
452
|
xl: 12
|
|
453
453
|
}, {
|
|
454
454
|
default: d(() => [
|
|
455
|
-
l.field.nameEn ? (n(), c(
|
|
455
|
+
l.field.nameEn ? (n(), c(O, {
|
|
456
456
|
key: 0,
|
|
457
457
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.nameEn,
|
|
458
458
|
prop: l.field.nameEn,
|
|
459
459
|
class: "item-name item-name-top"
|
|
460
460
|
}, {
|
|
461
461
|
default: d(() => [
|
|
462
|
-
f(
|
|
462
|
+
f(w, {
|
|
463
463
|
"popper-class": "input-tooltip",
|
|
464
464
|
effect: "light",
|
|
465
465
|
content: e.states.model[typeof l.field.nameEn == "string" ? l.field.nameEn : ""],
|
|
@@ -468,7 +468,7 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
468
468
|
"trigger-keys": []
|
|
469
469
|
}, {
|
|
470
470
|
default: d(() => [
|
|
471
|
-
f(
|
|
471
|
+
f(x, {
|
|
472
472
|
id: l.field.nameEn,
|
|
473
473
|
onBlur: (o) => e.inputBlur(o, l.field.nameEn),
|
|
474
474
|
onFocus: (o) => e.inputFocus(o, l.field.nameEn),
|
|
@@ -478,14 +478,14 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
478
478
|
maxlength: l.maxlengthNameEn ? e.states.rareMaxlength : "",
|
|
479
479
|
modelValue: e.states.model[l.field.nameEn],
|
|
480
480
|
"onUpdate:modelValue": (o) => e.states.model[l.field.nameEn] = o,
|
|
481
|
-
class:
|
|
481
|
+
class: I(
|
|
482
482
|
(l.isReadonly || l.isReadonlyNameEn || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
483
483
|
),
|
|
484
484
|
readonly: l.readonly,
|
|
485
485
|
type: l.type ? l.type : "text",
|
|
486
486
|
placeholder: l.placeholderNameEn,
|
|
487
487
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNameEn) && !l.openDisabled,
|
|
488
|
-
onKeyup:
|
|
488
|
+
onKeyup: W((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
489
489
|
}, null, 8, ["id", "onBlur", "onFocus", "onChange", "onInput", "onMouseenter", "maxlength", "modelValue", "onUpdate:modelValue", "class", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
490
490
|
]),
|
|
491
491
|
_: 2
|
|
@@ -499,7 +499,7 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
499
499
|
]),
|
|
500
500
|
_: 2
|
|
501
501
|
}, 1024),
|
|
502
|
-
f(
|
|
502
|
+
f(P, { gutter: 20 }, {
|
|
503
503
|
default: d(() => [
|
|
504
504
|
f(V, {
|
|
505
505
|
xs: 24,
|
|
@@ -509,14 +509,14 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
509
509
|
xl: 12
|
|
510
510
|
}, {
|
|
511
511
|
default: d(() => [
|
|
512
|
-
l.field.nameChFamily ? (n(), c(
|
|
512
|
+
l.field.nameChFamily ? (n(), c(O, {
|
|
513
513
|
key: 0,
|
|
514
514
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.nameChFamily,
|
|
515
515
|
prop: l.field.nameChFamily,
|
|
516
516
|
class: "item-name item-name-bottom"
|
|
517
517
|
}, {
|
|
518
518
|
default: d(() => [
|
|
519
|
-
f(
|
|
519
|
+
f(w, {
|
|
520
520
|
"popper-class": "input-tooltip",
|
|
521
521
|
effect: "light",
|
|
522
522
|
content: e.states.model[typeof l.field.nameChFamily == "string" ? l.field.nameChFamily : ""],
|
|
@@ -525,7 +525,7 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
525
525
|
"trigger-keys": []
|
|
526
526
|
}, {
|
|
527
527
|
default: d(() => [
|
|
528
|
-
f(
|
|
528
|
+
f(x, {
|
|
529
529
|
id: l.field.nameChFamily,
|
|
530
530
|
onBlur: (o) => e.inputBlur(o, l.field.nameChFamily),
|
|
531
531
|
onFocus: (o) => e.inputFocus(o, l.field.nameChFamily),
|
|
@@ -537,7 +537,7 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
537
537
|
l.maxlengthNameChFamily
|
|
538
538
|
),
|
|
539
539
|
maxlength: l != null && l.maxlengthNameChFamily ? e.states.rareMaxlength : "",
|
|
540
|
-
class:
|
|
540
|
+
class: I(
|
|
541
541
|
(l.isReadonly || l.isReadonlyNameChFamily || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
542
542
|
),
|
|
543
543
|
modelValue: e.states.model[l.field.nameChFamily],
|
|
@@ -546,7 +546,7 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
546
546
|
type: l.type ? l.type : "text",
|
|
547
547
|
placeholder: l.placeholderNameChFamily,
|
|
548
548
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNameChFamily) && !l.openDisabled,
|
|
549
|
-
onKeyup:
|
|
549
|
+
onKeyup: W((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
550
550
|
}, null, 8, ["id", "onBlur", "onFocus", "onChange", "onMouseenter", "onInput", "maxlength", "class", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
551
551
|
]),
|
|
552
552
|
_: 2
|
|
@@ -565,14 +565,14 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
565
565
|
xl: 12
|
|
566
566
|
}, {
|
|
567
567
|
default: d(() => [
|
|
568
|
-
l.field.nameCh ? (n(), c(
|
|
568
|
+
l.field.nameCh ? (n(), c(O, {
|
|
569
569
|
key: 0,
|
|
570
570
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.nameCh,
|
|
571
571
|
prop: l.field.nameCh,
|
|
572
572
|
class: "item-name item-name-bottom"
|
|
573
573
|
}, {
|
|
574
574
|
default: d(() => [
|
|
575
|
-
f(
|
|
575
|
+
f(w, {
|
|
576
576
|
"popper-class": "input-tooltip",
|
|
577
577
|
effect: "light",
|
|
578
578
|
content: e.states.model[typeof l.field.nameCh == "string" ? l.field.nameCh : ""],
|
|
@@ -581,14 +581,14 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
581
581
|
"trigger-keys": []
|
|
582
582
|
}, {
|
|
583
583
|
default: d(() => [
|
|
584
|
-
f(
|
|
584
|
+
f(x, {
|
|
585
585
|
id: l.field.nameCh,
|
|
586
586
|
onBlur: (o) => e.inputBlur(o, l.field.nameCh),
|
|
587
587
|
onFocus: (o) => e.inputFocus(o, l.field.nameCh),
|
|
588
588
|
onChange: (o) => e.inputChange(o, l.field.nameCh, "name"),
|
|
589
589
|
onInput: (o) => e.inputInput(o, l.field.nameCh, l.maxlengthNameCh),
|
|
590
590
|
onMouseenter: (o) => e.visibilityChange(l.field.nameCh),
|
|
591
|
-
class:
|
|
591
|
+
class: I(
|
|
592
592
|
(l.isReadonly || l.isReadonlyNameCh || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
593
593
|
),
|
|
594
594
|
maxlength: l.maxlengthNameCh ? e.states.rareMaxlength : "",
|
|
@@ -598,7 +598,7 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
598
598
|
type: l.type ? l.type : "text",
|
|
599
599
|
placeholder: l.placeholderNameCh,
|
|
600
600
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNameCh) && !l.openDisabled,
|
|
601
|
-
onKeyup:
|
|
601
|
+
onKeyup: W((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
602
602
|
}, null, 8, ["id", "onBlur", "onFocus", "onChange", "onInput", "onMouseenter", "class", "maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
603
603
|
]),
|
|
604
604
|
_: 2
|
|
@@ -614,7 +614,7 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
614
614
|
}, 1024)
|
|
615
615
|
]),
|
|
616
616
|
_: 2
|
|
617
|
-
}, 1032, ["label", "disabled"])) : l.type === "gender" && typeof l.field == "string" ? (n(), c(
|
|
617
|
+
}, 1032, ["label", "disabled"])) : l.type === "gender" && typeof l.field == "string" ? (n(), c(O, {
|
|
618
618
|
key: 3,
|
|
619
619
|
label: l.label,
|
|
620
620
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
@@ -622,16 +622,16 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
622
622
|
class: "radio_row"
|
|
623
623
|
}, {
|
|
624
624
|
label: d(() => [
|
|
625
|
-
l.slotLabelName ?
|
|
625
|
+
l.slotLabelName ? A(D.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), M("div", {
|
|
626
626
|
key: 0,
|
|
627
|
-
style:
|
|
627
|
+
style: T(l.labelStyle)
|
|
628
628
|
}, [
|
|
629
|
-
|
|
629
|
+
j(u(l.label) + " ", 1),
|
|
630
630
|
l.required ? (n(), M("span", $l, "*")) : g("", !0)
|
|
631
631
|
], 4))
|
|
632
632
|
]),
|
|
633
633
|
default: d(() => [
|
|
634
|
-
f(
|
|
634
|
+
f(B, {
|
|
635
635
|
modelValue: e.states.model[l.field],
|
|
636
636
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
637
637
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
@@ -640,13 +640,13 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
640
640
|
default: d(() => {
|
|
641
641
|
var o;
|
|
642
642
|
return [
|
|
643
|
-
(n(!0), M(
|
|
643
|
+
(n(!0), M(L, null, E((o = l.options) == null ? void 0 : o.data, (i) => (n(), c(Q, {
|
|
644
644
|
label: i.code,
|
|
645
645
|
size: "large",
|
|
646
646
|
key: i.code
|
|
647
647
|
}, {
|
|
648
648
|
default: d(() => [
|
|
649
|
-
|
|
649
|
+
h("img", {
|
|
650
650
|
src: i.code === "M" ? "http://192.168.5.200:9000/test/sex_img_M.png" : "http://192.168.5.200:9000/test/sex_img_F.png",
|
|
651
651
|
style: { width: "44px", height: "44px", "margin-bottom": "-15px", "margin-left": "4px" },
|
|
652
652
|
alt: ""
|
|
@@ -660,44 +660,44 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
660
660
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
|
|
661
661
|
]),
|
|
662
662
|
_: 2
|
|
663
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "radio" && typeof l.field == "string" ? (n(), c(
|
|
663
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "radio" && typeof l.field == "string" ? (n(), c(O, {
|
|
664
664
|
key: 4,
|
|
665
665
|
label: l.label,
|
|
666
666
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
667
667
|
prop: l.field,
|
|
668
|
-
class:
|
|
668
|
+
class: I([l.labelNode ? "radio_Note" : "rule_err"])
|
|
669
669
|
}, {
|
|
670
670
|
label: d(() => [
|
|
671
|
-
l.slotLabelName ?
|
|
671
|
+
l.slotLabelName ? A(D.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), M("div", {
|
|
672
672
|
key: 0,
|
|
673
|
-
style:
|
|
673
|
+
style: T(l.labelStyle)
|
|
674
674
|
}, [
|
|
675
|
-
|
|
675
|
+
j(u(l.label) + " ", 1),
|
|
676
676
|
l.required ? (n(), M("span", ee, "*")) : g("", !0)
|
|
677
677
|
], 4))
|
|
678
678
|
]),
|
|
679
679
|
default: d(() => [
|
|
680
|
-
f(
|
|
680
|
+
f(B, {
|
|
681
681
|
modelValue: e.states.model[l.field],
|
|
682
682
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
683
683
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
684
684
|
onChange: (o) => e.radioChange(o, l.field),
|
|
685
|
-
style:
|
|
685
|
+
style: T(
|
|
686
686
|
l.ways === "column" ? "display: flex; align-items: flex-start;flex-flow: column nowrap; " : "display: flex; align-items: flex-start;flex-flow: row nowrap; "
|
|
687
687
|
),
|
|
688
|
-
class:
|
|
688
|
+
class: I(l.ways !== "column" ? "radio_row" : "")
|
|
689
689
|
}, {
|
|
690
690
|
default: d(() => {
|
|
691
691
|
var o;
|
|
692
692
|
return [
|
|
693
|
-
(n(!0), M(
|
|
693
|
+
(n(!0), M(L, null, E((o = l.options) == null ? void 0 : o.data, (i) => (n(), c(Q, {
|
|
694
694
|
size: "large",
|
|
695
695
|
label: i.code,
|
|
696
696
|
key: i.code,
|
|
697
697
|
disabled: i.isDisabled
|
|
698
698
|
}, {
|
|
699
699
|
default: d(() => [
|
|
700
|
-
|
|
700
|
+
j(u(i.name), 1)
|
|
701
701
|
]),
|
|
702
702
|
_: 2
|
|
703
703
|
}, 1032, ["label", "disabled"]))), 128))
|
|
@@ -707,39 +707,39 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
707
707
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange", "style", "class"])
|
|
708
708
|
]),
|
|
709
709
|
_: 2
|
|
710
|
-
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "radioNote" && typeof l.field == "string" ? (n(), c(
|
|
710
|
+
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "radioNote" && typeof l.field == "string" ? (n(), c(O, {
|
|
711
711
|
key: 5,
|
|
712
712
|
label: l.label,
|
|
713
713
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
714
714
|
prop: l.field,
|
|
715
|
-
class:
|
|
715
|
+
class: I([l.labelNode ? "radio_Note" : "rule_err"])
|
|
716
716
|
}, {
|
|
717
717
|
default: d(() => [
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
718
|
+
h("div", null, [
|
|
719
|
+
h("span", oe, u(l.labelBefore), 1),
|
|
720
|
+
h("span", ae, u(l.labelNode), 1),
|
|
721
721
|
l.required ? (n(), M("span", ne, "*")) : g("", !0)
|
|
722
722
|
]),
|
|
723
|
-
f(
|
|
723
|
+
f(B, {
|
|
724
724
|
modelValue: e.states.model[l.field],
|
|
725
725
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
726
726
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
727
727
|
onChange: (o) => e.radioChange(o, l.field),
|
|
728
|
-
style:
|
|
728
|
+
style: T(
|
|
729
729
|
l.ways === "column" ? "display: flex; align-items: flex-start;flex-flow: column nowrap; " : "display: flex; align-items: flex-start;flex-flow: row nowrap; "
|
|
730
730
|
),
|
|
731
|
-
class:
|
|
731
|
+
class: I(l.ways !== "column" ? "radio_row" : "")
|
|
732
732
|
}, {
|
|
733
733
|
default: d(() => {
|
|
734
734
|
var o;
|
|
735
735
|
return [
|
|
736
|
-
(n(!0), M(
|
|
736
|
+
(n(!0), M(L, null, E((o = l.options) == null ? void 0 : o.data, (i) => (n(), c(Q, {
|
|
737
737
|
size: "large",
|
|
738
738
|
label: i.code,
|
|
739
739
|
key: i.code
|
|
740
740
|
}, {
|
|
741
741
|
default: d(() => [
|
|
742
|
-
|
|
742
|
+
j(u(i.name), 1)
|
|
743
743
|
]),
|
|
744
744
|
_: 2
|
|
745
745
|
}, 1032, ["label"]))), 128))
|
|
@@ -749,41 +749,41 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
749
749
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange", "style", "class"])
|
|
750
750
|
]),
|
|
751
751
|
_: 2
|
|
752
|
-
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "checkbox" && typeof l.field == "string" ? (n(), c(
|
|
752
|
+
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "checkbox" && typeof l.field == "string" ? (n(), c(O, {
|
|
753
753
|
key: 6,
|
|
754
754
|
label: l.label,
|
|
755
755
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
756
756
|
prop: l.field
|
|
757
757
|
}, {
|
|
758
758
|
label: d(() => [
|
|
759
|
-
l.slotLabelName ?
|
|
759
|
+
l.slotLabelName ? A(D.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), M("div", {
|
|
760
760
|
key: 0,
|
|
761
|
-
style:
|
|
761
|
+
style: T(l.labelStyle)
|
|
762
762
|
}, [
|
|
763
|
-
|
|
763
|
+
j(u(l.label) + " ", 1),
|
|
764
764
|
l.required ? (n(), M("span", de, "*")) : g("", !0)
|
|
765
765
|
], 4))
|
|
766
766
|
]),
|
|
767
767
|
default: d(() => [
|
|
768
|
-
f(
|
|
768
|
+
f(G, {
|
|
769
769
|
modelValue: e.states.model[l.field],
|
|
770
770
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
771
771
|
onChange: (o) => e.checkChange(o, l.field),
|
|
772
772
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
773
|
-
style:
|
|
773
|
+
style: T(
|
|
774
774
|
l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
|
|
775
775
|
)
|
|
776
776
|
}, {
|
|
777
777
|
default: d(() => {
|
|
778
778
|
var o;
|
|
779
779
|
return [
|
|
780
|
-
(n(!0), M(
|
|
780
|
+
(n(!0), M(L, null, E((o = l.options) == null ? void 0 : o.data, (i) => (n(), c(U, {
|
|
781
781
|
key: i.code,
|
|
782
782
|
label: i.code,
|
|
783
783
|
disabled: i.isDisabled
|
|
784
784
|
}, {
|
|
785
785
|
default: d(() => [
|
|
786
|
-
|
|
786
|
+
j(u(i.name), 1)
|
|
787
787
|
]),
|
|
788
788
|
_: 2
|
|
789
789
|
}, 1032, ["label", "disabled"]))), 128))
|
|
@@ -793,41 +793,41 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
793
793
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
|
|
794
794
|
]),
|
|
795
795
|
_: 2
|
|
796
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "checkboxRadio" && typeof l.field == "string" ? (n(), c(
|
|
796
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "checkboxRadio" && typeof l.field == "string" ? (n(), c(O, {
|
|
797
797
|
key: 7,
|
|
798
798
|
label: l.label,
|
|
799
799
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
800
800
|
prop: l.field
|
|
801
801
|
}, {
|
|
802
802
|
label: d(() => [
|
|
803
|
-
l.slotLabelName ?
|
|
803
|
+
l.slotLabelName ? A(D.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), M("div", {
|
|
804
804
|
key: 0,
|
|
805
|
-
style:
|
|
805
|
+
style: T(l.labelStyle)
|
|
806
806
|
}, [
|
|
807
|
-
|
|
807
|
+
j(u(l.label) + " ", 1),
|
|
808
808
|
l.required ? (n(), M("span", se, "*")) : g("", !0)
|
|
809
809
|
], 4))
|
|
810
810
|
]),
|
|
811
811
|
default: d(() => [
|
|
812
|
-
f(
|
|
812
|
+
f(G, {
|
|
813
813
|
modelValue: e.states.model[l.field],
|
|
814
814
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
815
815
|
onChange: (o) => e.handleCheckedChange(o, l.field),
|
|
816
816
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
817
|
-
style:
|
|
817
|
+
style: T(
|
|
818
818
|
l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
|
|
819
819
|
)
|
|
820
820
|
}, {
|
|
821
821
|
default: d(() => {
|
|
822
822
|
var o;
|
|
823
823
|
return [
|
|
824
|
-
(n(!0), M(
|
|
824
|
+
(n(!0), M(L, null, E((o = l.options) == null ? void 0 : o.data, (i) => (n(), c(U, {
|
|
825
825
|
key: i.code,
|
|
826
826
|
label: i.code,
|
|
827
827
|
disabled: i.isDisabled
|
|
828
828
|
}, {
|
|
829
829
|
default: d(() => [
|
|
830
|
-
|
|
830
|
+
j(u(i.name), 1)
|
|
831
831
|
]),
|
|
832
832
|
_: 2
|
|
833
833
|
}, 1032, ["label", "disabled"]))), 128))
|
|
@@ -837,38 +837,38 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
837
837
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
|
|
838
838
|
]),
|
|
839
839
|
_: 2
|
|
840
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "checkboxNote" && typeof l.field == "string" ? (n(), c(
|
|
840
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "checkboxNote" && typeof l.field == "string" ? (n(), c(O, {
|
|
841
841
|
key: 8,
|
|
842
842
|
label: l.label,
|
|
843
843
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
844
844
|
prop: l.field,
|
|
845
|
-
class:
|
|
845
|
+
class: I([l.labelNode ? "radio_Note" : "rule_err"])
|
|
846
846
|
}, {
|
|
847
847
|
default: d(() => [
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
848
|
+
h("div", null, [
|
|
849
|
+
h("span", re, u(l.labelBefore), 1),
|
|
850
|
+
h("span", ie, u(l.labelNode), 1),
|
|
851
851
|
l.required ? (n(), M("span", Me, "*")) : g("", !0)
|
|
852
852
|
]),
|
|
853
|
-
f(
|
|
853
|
+
f(G, {
|
|
854
854
|
modelValue: e.states.model[l.field],
|
|
855
855
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
856
856
|
onChange: (o) => e.checkChange(o, l.field),
|
|
857
857
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
858
|
-
style:
|
|
858
|
+
style: T(
|
|
859
859
|
l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
|
|
860
860
|
)
|
|
861
861
|
}, {
|
|
862
862
|
default: d(() => {
|
|
863
863
|
var o;
|
|
864
864
|
return [
|
|
865
|
-
(n(!0), M(
|
|
865
|
+
(n(!0), M(L, null, E((o = l.options) == null ? void 0 : o.data, (i) => (n(), c(U, {
|
|
866
866
|
key: i.code,
|
|
867
867
|
label: i.code,
|
|
868
868
|
disabled: i.isDisabled
|
|
869
869
|
}, {
|
|
870
870
|
default: d(() => [
|
|
871
|
-
|
|
871
|
+
j(u(i.name), 1)
|
|
872
872
|
]),
|
|
873
873
|
_: 2
|
|
874
874
|
}, 1032, ["label", "disabled"]))), 128))
|
|
@@ -878,7 +878,7 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
878
878
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
|
|
879
879
|
]),
|
|
880
880
|
_: 2
|
|
881
|
-
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "select" && typeof l.field == "string" ? (n(), c(
|
|
881
|
+
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "select" && typeof l.field == "string" ? (n(), c(O, {
|
|
882
882
|
key: 9,
|
|
883
883
|
label: l.label,
|
|
884
884
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
@@ -886,18 +886,18 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
886
886
|
prop: l.field
|
|
887
887
|
}, {
|
|
888
888
|
label: d(() => [
|
|
889
|
-
l.slotLabelName ?
|
|
889
|
+
l.slotLabelName ? A(D.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), M("div", {
|
|
890
890
|
key: 0,
|
|
891
|
-
style:
|
|
891
|
+
style: T(l.labelStyle)
|
|
892
892
|
}, [
|
|
893
|
-
|
|
893
|
+
j(u(l.label) + " ", 1),
|
|
894
894
|
l.required ? (n(), M("span", ye, "*")) : g("", !0)
|
|
895
895
|
], 4))
|
|
896
896
|
]),
|
|
897
897
|
default: d(() => {
|
|
898
898
|
var o;
|
|
899
899
|
return [
|
|
900
|
-
f(
|
|
900
|
+
f(w, {
|
|
901
901
|
"popper-class": "select-tooltip",
|
|
902
902
|
effect: "light",
|
|
903
903
|
content: e.contentName(e.states.model[l.field], (o = l.options) == null ? void 0 : o.data),
|
|
@@ -906,8 +906,8 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
906
906
|
"trigger-keys": []
|
|
907
907
|
}, {
|
|
908
908
|
default: d(() => [
|
|
909
|
-
(n(), c(
|
|
910
|
-
class:
|
|
909
|
+
(n(), c(H, {
|
|
910
|
+
class: I(["tooltip-select", [l.field + (l.uniqueId || ""), (l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "selectreadonly" : ""]]),
|
|
911
911
|
key: e.selectPickerKey,
|
|
912
912
|
id: l.field,
|
|
913
913
|
onMouseenter: (i) => e.visibilityChange(l.field + (l.uniqueId || ""), "select"),
|
|
@@ -937,12 +937,12 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
937
937
|
default: d(() => {
|
|
938
938
|
var i;
|
|
939
939
|
return [
|
|
940
|
-
(n(!0), M(
|
|
941
|
-
key:
|
|
942
|
-
label:
|
|
943
|
-
value:
|
|
940
|
+
(n(!0), M(L, null, E((i = l.options) == null ? void 0 : i.data, (b) => (n(), c(Z, {
|
|
941
|
+
key: b.code,
|
|
942
|
+
label: b.name,
|
|
943
|
+
value: b.code
|
|
944
944
|
}, null, 8, ["label", "value"]))), 128)),
|
|
945
|
-
l.loading ? (n(), c(
|
|
945
|
+
l.loading ? (n(), c(Z, {
|
|
946
946
|
key: 0,
|
|
947
947
|
label: l.selectLoadingText ? l.selectLoadingText : "Loading...",
|
|
948
948
|
class: "select-loading",
|
|
@@ -955,14 +955,14 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
955
955
|
]),
|
|
956
956
|
_: 2
|
|
957
957
|
}, 1032, ["content", "disabled"]),
|
|
958
|
-
|
|
958
|
+
h("div", {
|
|
959
959
|
class: "item_tips_blow",
|
|
960
|
-
style:
|
|
960
|
+
style: T(l.tipsBlowStyle)
|
|
961
961
|
}, u(l.tipsBlow), 5)
|
|
962
962
|
];
|
|
963
963
|
}),
|
|
964
964
|
_: 2
|
|
965
|
-
}, 1032, ["label", "rules", "disabled", "prop"])) : l.type === "date" && typeof l.field == "string" ? (n(), c(
|
|
965
|
+
}, 1032, ["label", "rules", "disabled", "prop"])) : l.type === "date" && typeof l.field == "string" ? (n(), c(O, {
|
|
966
966
|
key: 10,
|
|
967
967
|
label: l.label,
|
|
968
968
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
@@ -970,16 +970,16 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
970
970
|
class: "date_item"
|
|
971
971
|
}, {
|
|
972
972
|
label: d(() => [
|
|
973
|
-
l.slotLabelName ?
|
|
973
|
+
l.slotLabelName ? A(D.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), M("div", {
|
|
974
974
|
key: 0,
|
|
975
|
-
style:
|
|
975
|
+
style: T(l.labelStyle)
|
|
976
976
|
}, [
|
|
977
|
-
|
|
977
|
+
j(u(l.label) + " ", 1),
|
|
978
978
|
l.required ? (n(), M("span", ce, "*")) : g("", !0)
|
|
979
979
|
], 4))
|
|
980
980
|
]),
|
|
981
981
|
default: d(() => [
|
|
982
|
-
(n(), c(
|
|
982
|
+
(n(), c(ll, {
|
|
983
983
|
size: "large",
|
|
984
984
|
allowClear: !!l.allowClear,
|
|
985
985
|
format: l.format || "DD/MM/YYYY",
|
|
@@ -997,13 +997,13 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
997
997
|
picker: l.picker,
|
|
998
998
|
placeholder: l.placeholder || l.label,
|
|
999
999
|
key: e.pickerKey,
|
|
1000
|
-
class:
|
|
1000
|
+
class: I((l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""),
|
|
1001
1001
|
presets: l == null ? void 0 : l.presets,
|
|
1002
1002
|
onChange: (o) => e.dateChange(o, l.field ? l.field : "", l == null ? void 0 : l.defaultToady),
|
|
1003
1003
|
onOk: (o) => e.onOk(o, typeof l.field == "string" ? l.field : ""),
|
|
1004
1004
|
onBlur: (o) => e.openDatePicker(e.states.model[l.field]),
|
|
1005
1005
|
onOpenChange: (o) => e.openChange(o, l == null ? void 0 : l.defaultToady, l.field, e.states.model[l.field])
|
|
1006
|
-
},
|
|
1006
|
+
}, X({
|
|
1007
1007
|
superPrevIcon: d(() => [
|
|
1008
1008
|
ue
|
|
1009
1009
|
]),
|
|
@@ -1021,9 +1021,9 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1021
1021
|
l != null && l.defaultToady ? {
|
|
1022
1022
|
name: "dateRender",
|
|
1023
1023
|
fn: d(({ current: o }) => [
|
|
1024
|
-
|
|
1024
|
+
h("div", {
|
|
1025
1025
|
class: "ant-picker-cell-inner",
|
|
1026
|
-
style:
|
|
1026
|
+
style: T(e.getCurrentStyle(o, l == null ? void 0 : l.defaultToady))
|
|
1027
1027
|
}, u(o.date()), 5)
|
|
1028
1028
|
]),
|
|
1029
1029
|
key: "0"
|
|
@@ -1033,11 +1033,11 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1033
1033
|
fn: d(() => [
|
|
1034
1034
|
l != null && l.disabledDateToday ? (n(), M("span", {
|
|
1035
1035
|
key: 0,
|
|
1036
|
-
class:
|
|
1036
|
+
class: I([l != null && l.disabledDateToday ? "disabledDateToday" : "todayClass"])
|
|
1037
1037
|
}, u((l == null ? void 0 : l.todayLanguage) || "Today"), 3)) : g("", !0),
|
|
1038
1038
|
l != null && l.disabledDateToday ? g("", !0) : (n(), M("span", {
|
|
1039
1039
|
key: 1,
|
|
1040
|
-
class:
|
|
1040
|
+
class: I([l != null && l.disabledDateToday ? "disabledDateToday" : "todayClass"]),
|
|
1041
1041
|
onClick: (o) => e.getDefaultToady(
|
|
1042
1042
|
e.states.model[l.field],
|
|
1043
1043
|
typeof l.field == "string" ? l.field : "",
|
|
@@ -1051,23 +1051,23 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1051
1051
|
l.showTo ? (n(), M("span", De, u(l.showTo), 1)) : g("", !0)
|
|
1052
1052
|
]),
|
|
1053
1053
|
_: 2
|
|
1054
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "daterange" && typeof l.field == "string" ? (n(), c(
|
|
1054
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "daterange" && typeof l.field == "string" ? (n(), c(O, {
|
|
1055
1055
|
key: 11,
|
|
1056
1056
|
label: l.label,
|
|
1057
1057
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
1058
1058
|
prop: l.field
|
|
1059
1059
|
}, {
|
|
1060
1060
|
label: d(() => [
|
|
1061
|
-
l.slotLabelName ?
|
|
1061
|
+
l.slotLabelName ? A(D.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), M("div", {
|
|
1062
1062
|
key: 0,
|
|
1063
|
-
style:
|
|
1063
|
+
style: T(l.labelStyle)
|
|
1064
1064
|
}, [
|
|
1065
|
-
|
|
1065
|
+
j(u(l.label) + " ", 1),
|
|
1066
1066
|
l.required ? (n(), M("span", be, "*")) : g("", !0)
|
|
1067
1067
|
], 4))
|
|
1068
1068
|
]),
|
|
1069
1069
|
default: d(() => [
|
|
1070
|
-
(n(), c(
|
|
1070
|
+
(n(), c(m, {
|
|
1071
1071
|
"popper-class": "selectTriangles",
|
|
1072
1072
|
allowClear: !!l.allowClear,
|
|
1073
1073
|
defaultPickerValue: l == null ? void 0 : l.defaultPickerValue,
|
|
@@ -1084,7 +1084,7 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1084
1084
|
separator: l.separator || "To",
|
|
1085
1085
|
placeholder: l.placeholder,
|
|
1086
1086
|
size: "large",
|
|
1087
|
-
class:
|
|
1087
|
+
class: I(
|
|
1088
1088
|
[l.field, (l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""]
|
|
1089
1089
|
),
|
|
1090
1090
|
key: e.pickerKeyDaterange,
|
|
@@ -1102,7 +1102,7 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1102
1102
|
typeof l.field == "string" ? l.field : ""
|
|
1103
1103
|
),
|
|
1104
1104
|
onOpenChange: (o) => e.openDatePickerDaterange(o, l == null ? void 0 : l.defaultToady, l.field, e.states.model[l.field])
|
|
1105
|
-
},
|
|
1105
|
+
}, X({
|
|
1106
1106
|
superPrevIcon: d(() => [
|
|
1107
1107
|
he
|
|
1108
1108
|
]),
|
|
@@ -1120,9 +1120,9 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1120
1120
|
l != null && l.defaultToady ? {
|
|
1121
1121
|
name: "dateRender",
|
|
1122
1122
|
fn: d(({ current: o, info: i }) => [
|
|
1123
|
-
|
|
1123
|
+
h("div", {
|
|
1124
1124
|
class: "ant-picker-cell-inner",
|
|
1125
|
-
style:
|
|
1125
|
+
style: T(e.getCurrentStyle(o, l == null ? void 0 : l.defaultToady, i, l.field))
|
|
1126
1126
|
}, u(o.date()), 5)
|
|
1127
1127
|
]),
|
|
1128
1128
|
key: "0"
|
|
@@ -1130,23 +1130,23 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1130
1130
|
]), 1032, ["allowClear", "defaultPickerValue", "format", "valueFormat", "disabled-date", "disabled-time", "showTime", "mode", "picker", "value", "onUpdate:value", "suffixIcon", "separator", "placeholder", "class", "onChange", "onCalendarChange", "onOk", "onOpenChange"]))
|
|
1131
1131
|
]),
|
|
1132
1132
|
_: 2
|
|
1133
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "datetimerange" && typeof l.field == "string" ? (n(), c(
|
|
1133
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "datetimerange" && typeof l.field == "string" ? (n(), c(O, {
|
|
1134
1134
|
key: 12,
|
|
1135
1135
|
label: l.label,
|
|
1136
1136
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
1137
1137
|
prop: l.field
|
|
1138
1138
|
}, {
|
|
1139
1139
|
label: d(() => [
|
|
1140
|
-
l.slotLabelName ?
|
|
1140
|
+
l.slotLabelName ? A(D.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), M("div", {
|
|
1141
1141
|
key: 0,
|
|
1142
|
-
style:
|
|
1142
|
+
style: T(l.labelStyle)
|
|
1143
1143
|
}, [
|
|
1144
|
-
|
|
1144
|
+
j(u(l.label) + " ", 1),
|
|
1145
1145
|
l.required ? (n(), M("span", je, "*")) : g("", !0)
|
|
1146
1146
|
], 4))
|
|
1147
1147
|
]),
|
|
1148
1148
|
default: d(() => [
|
|
1149
|
-
(n(), c(
|
|
1149
|
+
(n(), c(m, {
|
|
1150
1150
|
"popper-class": "selectTriangles",
|
|
1151
1151
|
allowClear: !!l.allowClear,
|
|
1152
1152
|
defaultPickerValue: l == null ? void 0 : l.defaultValue,
|
|
@@ -1163,7 +1163,7 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1163
1163
|
separator: l.separator || "To",
|
|
1164
1164
|
placeholder: l.placeholder,
|
|
1165
1165
|
size: "large",
|
|
1166
|
-
class:
|
|
1166
|
+
class: I(
|
|
1167
1167
|
(l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
1168
1168
|
),
|
|
1169
1169
|
key: e.datetimerange,
|
|
@@ -1183,7 +1183,7 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1183
1183
|
}, null, 8, ["allowClear", "defaultPickerValue", "format", "valueFormat", "disabled-date", "disabled-time", "showTime", "mode", "picker", "value", "onUpdate:value", "suffixIcon", "separator", "placeholder", "class", "onChange", "onCalendarChange", "onOk", "onOpenChange"]))
|
|
1184
1184
|
]),
|
|
1185
1185
|
_: 2
|
|
1186
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "slotItem" ? (n(), c(
|
|
1186
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "slotItem" ? (n(), c(O, {
|
|
1187
1187
|
key: 13,
|
|
1188
1188
|
label: l.label,
|
|
1189
1189
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
@@ -1191,19 +1191,19 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1191
1191
|
class: "rule_err"
|
|
1192
1192
|
}, {
|
|
1193
1193
|
label: d(() => [
|
|
1194
|
-
l.slotLabelName ?
|
|
1194
|
+
l.slotLabelName ? A(D.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), M("div", {
|
|
1195
1195
|
key: 0,
|
|
1196
|
-
style:
|
|
1196
|
+
style: T(l.labelStyle)
|
|
1197
1197
|
}, [
|
|
1198
|
-
|
|
1198
|
+
j(u(l.label) + " ", 1),
|
|
1199
1199
|
l.required ? (n(), M("span", Oe, "*")) : g("", !0)
|
|
1200
1200
|
], 4))
|
|
1201
1201
|
]),
|
|
1202
1202
|
default: d(() => [
|
|
1203
|
-
|
|
1203
|
+
A(D.$slots, l.slotItemName, {}, void 0, !0)
|
|
1204
1204
|
]),
|
|
1205
1205
|
_: 2
|
|
1206
|
-
}, 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(), c(
|
|
1206
|
+
}, 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(), c(O, {
|
|
1207
1207
|
key: 14,
|
|
1208
1208
|
label: l.label,
|
|
1209
1209
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.phoneNumber,
|
|
@@ -1211,35 +1211,35 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1211
1211
|
class: "phone_item"
|
|
1212
1212
|
}, {
|
|
1213
1213
|
label: d(() => [
|
|
1214
|
-
l.slotLabelName ?
|
|
1214
|
+
l.slotLabelName ? A(D.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), M("div", {
|
|
1215
1215
|
key: 0,
|
|
1216
|
-
style:
|
|
1216
|
+
style: T(l.labelStyle)
|
|
1217
1217
|
}, [
|
|
1218
|
-
|
|
1218
|
+
j(u(l.label) + " ", 1),
|
|
1219
1219
|
l.required ? (n(), M("span", ke, "*")) : g("", !0)
|
|
1220
1220
|
], 4))
|
|
1221
1221
|
]),
|
|
1222
1222
|
default: d(() => {
|
|
1223
|
-
var o;
|
|
1223
|
+
var o, i;
|
|
1224
1224
|
return [
|
|
1225
|
-
|
|
1226
|
-
class:
|
|
1225
|
+
h("div", {
|
|
1226
|
+
class: I(e.phoneWrap ? ["phone_item_content", "phone_item_content_wrap"] : "phone_item_content")
|
|
1227
1227
|
}, [
|
|
1228
1228
|
e.phoneWrap ? (n(), M("div", Ae, [
|
|
1229
|
-
f(
|
|
1229
|
+
f(w, {
|
|
1230
1230
|
"popper-class": "input-tooltip",
|
|
1231
1231
|
effect: "light",
|
|
1232
|
-
content: e.contentName(l.field.nationCode, (o = l.nationOptions) == null ? void 0 : o.data),
|
|
1232
|
+
content: e.contentName(e.states.model[l.field.nationCode], (o = l.nationOptions) == null ? void 0 : o.data),
|
|
1233
1233
|
placement: "top",
|
|
1234
1234
|
disabled: e.isShowTooltip,
|
|
1235
1235
|
"trigger-keys": []
|
|
1236
1236
|
}, {
|
|
1237
1237
|
default: d(() => {
|
|
1238
|
-
var
|
|
1238
|
+
var b;
|
|
1239
1239
|
return [
|
|
1240
|
-
l.field.nationCode ? (n(), c(
|
|
1240
|
+
l.field.nationCode ? (n(), c(H, {
|
|
1241
1241
|
key: 0,
|
|
1242
|
-
class:
|
|
1242
|
+
class: I(["tooltip-select", [(l.isReadonly || l.isReadonlyNation || e.formOptions.isAllReadonly) && !l.openDisabled ? "selectreadonly" : "areaCode_input"]]),
|
|
1243
1243
|
id: l.field.nationCode,
|
|
1244
1244
|
onMouseenter: (t) => e.visibilityChange(l.field.nationCode),
|
|
1245
1245
|
"popper-class": "selectTriangles",
|
|
@@ -1247,8 +1247,8 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1247
1247
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNation) && !l.openDisabled,
|
|
1248
1248
|
modelValue: e.states.model[l.field.nationCode],
|
|
1249
1249
|
"onUpdate:modelValue": (t) => e.states.model[l.field.nationCode] = t,
|
|
1250
|
-
placeholder: ((
|
|
1251
|
-
style:
|
|
1250
|
+
placeholder: ((b = l.nationOptions) == null ? void 0 : b.placeholder) || "",
|
|
1251
|
+
style: T("width:" + l.widthNation),
|
|
1252
1252
|
"fit-input-width": !0,
|
|
1253
1253
|
"suffix-icon": e.IconDropDown,
|
|
1254
1254
|
"clear-icon": e.IconClear
|
|
@@ -1256,10 +1256,10 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1256
1256
|
default: d(() => {
|
|
1257
1257
|
var t;
|
|
1258
1258
|
return [
|
|
1259
|
-
(n(!0), M(
|
|
1260
|
-
label:
|
|
1261
|
-
value:
|
|
1262
|
-
key:
|
|
1259
|
+
(n(!0), M(L, null, E((t = l.nationOptions) == null ? void 0 : t.data, (F, K) => (n(), c(Z, {
|
|
1260
|
+
label: F.name,
|
|
1261
|
+
value: F.code,
|
|
1262
|
+
key: K
|
|
1263
1263
|
}, null, 8, ["label", "value"]))), 128))
|
|
1264
1264
|
];
|
|
1265
1265
|
}),
|
|
@@ -1270,7 +1270,7 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1270
1270
|
_: 2
|
|
1271
1271
|
}, 1032, ["content", "disabled"]),
|
|
1272
1272
|
we,
|
|
1273
|
-
f(
|
|
1273
|
+
f(w, {
|
|
1274
1274
|
"popper-class": "input-tooltip",
|
|
1275
1275
|
effect: "light",
|
|
1276
1276
|
content: e.states.model[typeof l.field.areaCode == "string" ? l.field.areaCode : ""],
|
|
@@ -1279,11 +1279,11 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1279
1279
|
"trigger-keys": []
|
|
1280
1280
|
}, {
|
|
1281
1281
|
default: d(() => {
|
|
1282
|
-
var
|
|
1282
|
+
var b;
|
|
1283
1283
|
return [
|
|
1284
|
-
l.field.areaCode ? (n(), c(
|
|
1284
|
+
l.field.areaCode ? (n(), c(x, {
|
|
1285
1285
|
key: 0,
|
|
1286
|
-
class:
|
|
1286
|
+
class: I(["tooltip-input", (l.isReadonly || l.isReadonlyArea || e.formOptions.isAllReadonly) && !l.openDisabled ? "inputReadonly" : "areaCode_input"]),
|
|
1287
1287
|
id: l.field.areaCode,
|
|
1288
1288
|
onMouseenter: (t) => e.visibilityChange(l.field.areaCode, "phone-input"),
|
|
1289
1289
|
onBlur: (t) => e.inputBlur(t, typeof l.field == "string" ? l.field : l.field.areaCode),
|
|
@@ -1295,7 +1295,7 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1295
1295
|
modelValue: e.states.model[l.field.areaCode],
|
|
1296
1296
|
"onUpdate:modelValue": (t) => e.states.model[l.field.areaCode] = t,
|
|
1297
1297
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyArea) && !l.openDisabled,
|
|
1298
|
-
placeholder: ((
|
|
1298
|
+
placeholder: ((b = l.areaOptions) == null ? void 0 : b.placeholder) || "",
|
|
1299
1299
|
clearable: l.clearable
|
|
1300
1300
|
}, null, 8, ["id", "onMouseenter", "onBlur", "onFocus", "onChange", "onInput", "maxlength", "formatter", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "clearable"])) : g("", !0)
|
|
1301
1301
|
];
|
|
@@ -1304,20 +1304,20 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1304
1304
|
}, 1032, ["content", "disabled"]),
|
|
1305
1305
|
Ce
|
|
1306
1306
|
])) : g("", !0),
|
|
1307
|
-
f(
|
|
1307
|
+
f(w, {
|
|
1308
1308
|
"popper-class": "input-tooltip",
|
|
1309
1309
|
effect: "light",
|
|
1310
|
-
content: e.states.model[
|
|
1310
|
+
content: e.contentName(e.states.model[l.field.nationCode], (i = l.nationOptions) == null ? void 0 : i.data),
|
|
1311
1311
|
placement: "top",
|
|
1312
1312
|
disabled: e.isShowTooltip,
|
|
1313
1313
|
"trigger-keys": []
|
|
1314
1314
|
}, {
|
|
1315
1315
|
default: d(() => {
|
|
1316
|
-
var
|
|
1316
|
+
var b;
|
|
1317
1317
|
return [
|
|
1318
|
-
l.field.nationCode && !e.phoneWrap ? (n(), c(
|
|
1318
|
+
l.field.nationCode && !e.phoneWrap ? (n(), c(H, {
|
|
1319
1319
|
key: 0,
|
|
1320
|
-
class:
|
|
1320
|
+
class: I([
|
|
1321
1321
|
"tooltip-select",
|
|
1322
1322
|
(l.isReadonly || l.isReadonlyNation || e.formOptions.isAllReadonly) && !l.openDisabled ? "selectreadonly" : ""
|
|
1323
1323
|
]),
|
|
@@ -1328,8 +1328,8 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1328
1328
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNation) && !l.openDisabled,
|
|
1329
1329
|
modelValue: e.states.model[l.field.nationCode],
|
|
1330
1330
|
"onUpdate:modelValue": (t) => e.states.model[l.field.nationCode] = t,
|
|
1331
|
-
placeholder: ((
|
|
1332
|
-
style:
|
|
1331
|
+
placeholder: ((b = l.nationOptions) == null ? void 0 : b.placeholder) || "",
|
|
1332
|
+
style: T("width:" + l.widthNation),
|
|
1333
1333
|
"fit-input-width": !0,
|
|
1334
1334
|
"suffix-icon": e.IconDropDown,
|
|
1335
1335
|
"clear-icon": e.IconClear
|
|
@@ -1337,10 +1337,10 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1337
1337
|
default: d(() => {
|
|
1338
1338
|
var t;
|
|
1339
1339
|
return [
|
|
1340
|
-
(n(!0), M(
|
|
1341
|
-
label:
|
|
1342
|
-
value:
|
|
1343
|
-
key:
|
|
1340
|
+
(n(!0), M(L, null, E((t = l.nationOptions) == null ? void 0 : t.data, (F, K) => (n(), c(Z, {
|
|
1341
|
+
label: F.name,
|
|
1342
|
+
value: F.code,
|
|
1343
|
+
key: K
|
|
1344
1344
|
}, null, 8, ["label", "value"]))), 128))
|
|
1345
1345
|
];
|
|
1346
1346
|
}),
|
|
@@ -1351,7 +1351,7 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1351
1351
|
_: 2
|
|
1352
1352
|
}, 1032, ["content", "disabled"]),
|
|
1353
1353
|
e.phoneWrap ? g("", !0) : (n(), M("div", ze, " - ")),
|
|
1354
|
-
f(
|
|
1354
|
+
f(w, {
|
|
1355
1355
|
"popper-class": "input-tooltip",
|
|
1356
1356
|
effect: "light",
|
|
1357
1357
|
content: e.states.model[typeof l.field.areaCode == "string" ? l.field.areaCode : ""],
|
|
@@ -1360,11 +1360,11 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1360
1360
|
"trigger-keys": []
|
|
1361
1361
|
}, {
|
|
1362
1362
|
default: d(() => {
|
|
1363
|
-
var
|
|
1363
|
+
var b;
|
|
1364
1364
|
return [
|
|
1365
|
-
l.field.areaCode && !e.phoneWrap ? (n(), c(
|
|
1365
|
+
l.field.areaCode && !e.phoneWrap ? (n(), c(x, {
|
|
1366
1366
|
key: 0,
|
|
1367
|
-
class:
|
|
1367
|
+
class: I([
|
|
1368
1368
|
"tooltip-input",
|
|
1369
1369
|
(l.isReadonly || l.isReadonlyArea || e.formOptions.isAllReadonly) && !l.openDisabled ? "inputReadonly" : "areaCode_input"
|
|
1370
1370
|
]),
|
|
@@ -1391,8 +1391,8 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1391
1391
|
modelValue: e.states.model[l.field.areaCode],
|
|
1392
1392
|
"onUpdate:modelValue": (t) => e.states.model[l.field.areaCode] = t,
|
|
1393
1393
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyArea) && !l.openDisabled,
|
|
1394
|
-
placeholder: ((
|
|
1395
|
-
style:
|
|
1394
|
+
placeholder: ((b = l.areaOptions) == null ? void 0 : b.placeholder) || "",
|
|
1395
|
+
style: T("width:" + l.widthArea),
|
|
1396
1396
|
clearable: l.clearable
|
|
1397
1397
|
}, null, 8, ["id", "onMouseenter", "onBlur", "onFocus", "onChange", "onInput", "maxlength", "formatter", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "style", "clearable"])) : g("", !0)
|
|
1398
1398
|
];
|
|
@@ -1400,7 +1400,7 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1400
1400
|
_: 2
|
|
1401
1401
|
}, 1032, ["content", "disabled"]),
|
|
1402
1402
|
e.phoneWrap ? g("", !0) : (n(), M("div", xe, " - ")),
|
|
1403
|
-
f(
|
|
1403
|
+
f(w, {
|
|
1404
1404
|
"popper-class": "input-tooltip",
|
|
1405
1405
|
effect: "light",
|
|
1406
1406
|
content: e.states.model[typeof l.field.phoneNumber == "string" ? l.field.phoneNumber : ""],
|
|
@@ -1409,37 +1409,37 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1409
1409
|
"trigger-keys": []
|
|
1410
1410
|
}, {
|
|
1411
1411
|
default: d(() => [
|
|
1412
|
-
l.field.phoneNumber ? (n(), c(
|
|
1412
|
+
l.field.phoneNumber ? (n(), c(x, {
|
|
1413
1413
|
key: 0,
|
|
1414
|
-
class:
|
|
1414
|
+
class: I([
|
|
1415
1415
|
"tooltip-input",
|
|
1416
1416
|
(l.isReadonly || l.isReadonlyPhoneNumber || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
1417
1417
|
]),
|
|
1418
1418
|
id: l.field.phoneNumber,
|
|
1419
|
-
onMouseenter: (
|
|
1420
|
-
onBlur: (
|
|
1421
|
-
|
|
1419
|
+
onMouseenter: (b) => e.visibilityChange(l.field.phoneNumber),
|
|
1420
|
+
onBlur: (b) => e.inputBlur(
|
|
1421
|
+
b,
|
|
1422
1422
|
typeof l.field == "string" ? l.field : l.field.phoneNumber
|
|
1423
1423
|
),
|
|
1424
|
-
onFocus: (
|
|
1425
|
-
|
|
1424
|
+
onFocus: (b) => e.inputFocus(
|
|
1425
|
+
b,
|
|
1426
1426
|
typeof l.field == "string" ? l.field : l.field.phoneNumber
|
|
1427
1427
|
),
|
|
1428
|
-
onChange: (
|
|
1429
|
-
|
|
1428
|
+
onChange: (b) => e.inputChange(
|
|
1429
|
+
b,
|
|
1430
1430
|
typeof l.field == "string" ? l.field : l.field.phoneNumber
|
|
1431
1431
|
),
|
|
1432
|
-
onInput: (
|
|
1433
|
-
|
|
1432
|
+
onInput: (b) => e.inputInput(
|
|
1433
|
+
b,
|
|
1434
1434
|
typeof l.field == "string" ? l.field : l.field.phoneNumber
|
|
1435
1435
|
),
|
|
1436
1436
|
maxlength: l.maxlength || 20,
|
|
1437
|
-
formatter: (
|
|
1437
|
+
formatter: (b) => b.replace(/[^\d]/g, ""),
|
|
1438
1438
|
modelValue: e.states.model[l.field.phoneNumber],
|
|
1439
|
-
"onUpdate:modelValue": (
|
|
1439
|
+
"onUpdate:modelValue": (b) => e.states.model[l.field.phoneNumber] = b,
|
|
1440
1440
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyPhoneNumber) && !l.openDisabled,
|
|
1441
1441
|
placeholder: l.placeholder || "",
|
|
1442
|
-
style:
|
|
1442
|
+
style: T("width:" + l.widthPhoneNumber),
|
|
1443
1443
|
clearable: l.clearable
|
|
1444
1444
|
}, null, 8, ["id", "onMouseenter", "onBlur", "onFocus", "onChange", "onInput", "maxlength", "formatter", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "style", "clearable"])) : g("", !0)
|
|
1445
1445
|
]),
|
|
@@ -1449,7 +1449,7 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1449
1449
|
];
|
|
1450
1450
|
}),
|
|
1451
1451
|
_: 2
|
|
1452
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "line" ? (n(), c(
|
|
1452
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "line" ? (n(), c(O, {
|
|
1453
1453
|
key: 15,
|
|
1454
1454
|
label: l.label
|
|
1455
1455
|
}, {
|
|
@@ -1457,23 +1457,23 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1457
1457
|
Le
|
|
1458
1458
|
]),
|
|
1459
1459
|
_: 2
|
|
1460
|
-
}, 1032, ["label"])) : l.type === "number" && typeof l.field == "string" ? (n(), c(
|
|
1460
|
+
}, 1032, ["label"])) : l.type === "number" && typeof l.field == "string" ? (n(), c(O, {
|
|
1461
1461
|
key: 16,
|
|
1462
1462
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
1463
1463
|
prop: l.field,
|
|
1464
|
-
class:
|
|
1464
|
+
class: I(l.prepend ? "input-item" : "")
|
|
1465
1465
|
}, {
|
|
1466
1466
|
label: d(() => [
|
|
1467
|
-
l.slotLabelName ?
|
|
1467
|
+
l.slotLabelName ? A(D.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), M("div", {
|
|
1468
1468
|
key: 0,
|
|
1469
|
-
style:
|
|
1469
|
+
style: T(l.labelStyle)
|
|
1470
1470
|
}, [
|
|
1471
|
-
|
|
1471
|
+
j(u(l.label) + " ", 1),
|
|
1472
1472
|
l.required ? (n(), M("span", Ee, "*")) : g("", !0)
|
|
1473
1473
|
], 4))
|
|
1474
1474
|
]),
|
|
1475
1475
|
default: d(() => [
|
|
1476
|
-
f(
|
|
1476
|
+
f(x, {
|
|
1477
1477
|
onBlur: (o) => e.inputBlur(
|
|
1478
1478
|
o,
|
|
1479
1479
|
typeof l.field == "string" ? l.field : ""
|
|
@@ -1502,45 +1502,45 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1502
1502
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
1503
1503
|
showPassword: l.showPassword,
|
|
1504
1504
|
clearable: l.clearable,
|
|
1505
|
-
class:
|
|
1505
|
+
class: I(
|
|
1506
1506
|
(l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
1507
1507
|
),
|
|
1508
|
-
onKeyup:
|
|
1509
|
-
},
|
|
1508
|
+
onKeyup: W((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
1509
|
+
}, X({ _: 2 }, [
|
|
1510
1510
|
l.prepend ? {
|
|
1511
1511
|
name: "prepend",
|
|
1512
1512
|
fn: d(() => [
|
|
1513
|
-
|
|
1513
|
+
j(u(l.prepend), 1)
|
|
1514
1514
|
]),
|
|
1515
1515
|
key: "0"
|
|
1516
1516
|
} : void 0,
|
|
1517
1517
|
l.append ? {
|
|
1518
1518
|
name: "append",
|
|
1519
1519
|
fn: d(() => [
|
|
1520
|
-
|
|
1520
|
+
j(u(l.append), 1)
|
|
1521
1521
|
]),
|
|
1522
1522
|
key: "1"
|
|
1523
1523
|
} : void 0
|
|
1524
1524
|
]), 1032, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "show-word-limit", "readonly", "type", "rows", "placeholder", "disabled", "showPassword", "clearable", "class", "onKeyup"])
|
|
1525
1525
|
]),
|
|
1526
1526
|
_: 2
|
|
1527
|
-
}, 1032, ["rules", "prop", "class"])) : l.type === "textarea" && typeof l.field == "string" ? (n(), c(
|
|
1527
|
+
}, 1032, ["rules", "prop", "class"])) : l.type === "textarea" && typeof l.field == "string" ? (n(), c(O, {
|
|
1528
1528
|
key: 17,
|
|
1529
1529
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
1530
1530
|
prop: l.field,
|
|
1531
|
-
class:
|
|
1531
|
+
class: I(l.prepend ? "input-item" : "")
|
|
1532
1532
|
}, {
|
|
1533
1533
|
label: d(() => [
|
|
1534
|
-
l.slotLabelName ?
|
|
1534
|
+
l.slotLabelName ? A(D.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), M("div", {
|
|
1535
1535
|
key: 0,
|
|
1536
|
-
style:
|
|
1536
|
+
style: T(l.labelStyle)
|
|
1537
1537
|
}, [
|
|
1538
|
-
|
|
1538
|
+
j(u(l.label) + " ", 1),
|
|
1539
1539
|
l.required ? (n(), M("span", _e, "*")) : g("", !0)
|
|
1540
1540
|
], 4))
|
|
1541
1541
|
]),
|
|
1542
1542
|
default: d(() => [
|
|
1543
|
-
f(
|
|
1543
|
+
f(w, {
|
|
1544
1544
|
"popper-class": "input-tooltip",
|
|
1545
1545
|
effect: "light",
|
|
1546
1546
|
content: e.states.model[typeof l.field == "string" ? l.field : ""],
|
|
@@ -1549,9 +1549,9 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1549
1549
|
"trigger-keys": []
|
|
1550
1550
|
}, {
|
|
1551
1551
|
default: d(() => [
|
|
1552
|
-
|
|
1553
|
-
f(
|
|
1554
|
-
class:
|
|
1552
|
+
h("div", ve, [
|
|
1553
|
+
f(x, {
|
|
1554
|
+
class: I(["tooltip-input", (l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""]),
|
|
1555
1555
|
id: l.field,
|
|
1556
1556
|
onMouseenter: (o) => e.visibilityChange(l.field),
|
|
1557
1557
|
onBlur: (o) => e.inputBlur(o, typeof l.field == "string" ? l.field : ""),
|
|
@@ -1569,27 +1569,27 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1569
1569
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
1570
1570
|
showPassword: l.showPassword,
|
|
1571
1571
|
clearable: l.clearable,
|
|
1572
|
-
onKeyup:
|
|
1573
|
-
},
|
|
1572
|
+
onKeyup: W((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
1573
|
+
}, X({ _: 2 }, [
|
|
1574
1574
|
l.prepend ? {
|
|
1575
1575
|
name: "prepend",
|
|
1576
1576
|
fn: d(() => [
|
|
1577
|
-
|
|
1577
|
+
j(u(l.prepend), 1)
|
|
1578
1578
|
]),
|
|
1579
1579
|
key: "0"
|
|
1580
1580
|
} : void 0,
|
|
1581
1581
|
l.append ? {
|
|
1582
1582
|
name: "append",
|
|
1583
1583
|
fn: d(() => [
|
|
1584
|
-
|
|
1584
|
+
j(u(l.append), 1)
|
|
1585
1585
|
]),
|
|
1586
1586
|
key: "1"
|
|
1587
1587
|
} : void 0
|
|
1588
1588
|
]), 1032, ["id", "onMouseenter", "onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "rows", "placeholder", "disabled", "showPassword", "clearable", "class", "onKeyup"]),
|
|
1589
1589
|
l.showWordLimit ? (n(), M("div", Se, [
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1590
|
+
h("span", null, u(l.textareaLength || 0), 1),
|
|
1591
|
+
j("/"),
|
|
1592
|
+
h("span", null, u(l.maxlength), 1)
|
|
1593
1593
|
])) : g("", !0)
|
|
1594
1594
|
])
|
|
1595
1595
|
]),
|
|
@@ -1597,23 +1597,23 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1597
1597
|
}, 1032, ["content", "disabled"])
|
|
1598
1598
|
]),
|
|
1599
1599
|
_: 2
|
|
1600
|
-
}, 1032, ["rules", "prop", "class"])) : (n(), c(
|
|
1600
|
+
}, 1032, ["rules", "prop", "class"])) : (n(), c(O, {
|
|
1601
1601
|
key: 18,
|
|
1602
1602
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
1603
1603
|
prop: l.field,
|
|
1604
|
-
class:
|
|
1604
|
+
class: I(l.prepend ? "input-item" : "")
|
|
1605
1605
|
}, {
|
|
1606
1606
|
label: d(() => [
|
|
1607
|
-
l.slotLabelName ?
|
|
1607
|
+
l.slotLabelName ? A(D.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (n(), M("div", {
|
|
1608
1608
|
key: 0,
|
|
1609
|
-
style:
|
|
1609
|
+
style: T(l.labelStyle)
|
|
1610
1610
|
}, [
|
|
1611
|
-
|
|
1611
|
+
j(u(l.label) + " ", 1),
|
|
1612
1612
|
l.required ? (n(), M("span", Re, "*")) : g("", !0)
|
|
1613
1613
|
], 4))
|
|
1614
1614
|
]),
|
|
1615
1615
|
default: d(() => [
|
|
1616
|
-
f(
|
|
1616
|
+
f(w, {
|
|
1617
1617
|
"popper-class": "input-tooltip",
|
|
1618
1618
|
effect: "light",
|
|
1619
1619
|
content: e.states.model[typeof l.field == "string" ? l.field : ""],
|
|
@@ -1622,8 +1622,8 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1622
1622
|
"trigger-keys": []
|
|
1623
1623
|
}, {
|
|
1624
1624
|
default: d(() => [
|
|
1625
|
-
f(
|
|
1626
|
-
class:
|
|
1625
|
+
f(x, {
|
|
1626
|
+
class: I(["tooltip-input", [(l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""]]),
|
|
1627
1627
|
id: l.field + (l.uniqueId || ""),
|
|
1628
1628
|
onMouseenter: (o) => e.visibilityChange(l.field + (l.uniqueId || "")),
|
|
1629
1629
|
onBlur: (o) => e.inputBlur(o, typeof l.field == "string" ? l.field : ""),
|
|
@@ -1641,19 +1641,19 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1641
1641
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
1642
1642
|
showPassword: l.showPassword,
|
|
1643
1643
|
clearable: l.clearable,
|
|
1644
|
-
onKeyup:
|
|
1645
|
-
},
|
|
1644
|
+
onKeyup: W((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
1645
|
+
}, X({ _: 2 }, [
|
|
1646
1646
|
l.prepend ? {
|
|
1647
1647
|
name: "prepend",
|
|
1648
1648
|
fn: d(() => [
|
|
1649
|
-
|
|
1649
|
+
j(u(l.prepend), 1)
|
|
1650
1650
|
]),
|
|
1651
1651
|
key: "0"
|
|
1652
1652
|
} : void 0,
|
|
1653
1653
|
l.append ? {
|
|
1654
1654
|
name: "append",
|
|
1655
1655
|
fn: d(() => [
|
|
1656
|
-
|
|
1656
|
+
j(u(l.append), 1)
|
|
1657
1657
|
]),
|
|
1658
1658
|
key: "1"
|
|
1659
1659
|
} : void 0
|
|
@@ -1673,14 +1673,14 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1673
1673
|
]),
|
|
1674
1674
|
_: 3
|
|
1675
1675
|
}),
|
|
1676
|
-
f(
|
|
1676
|
+
f(O, { class: "btnsItem" }, {
|
|
1677
1677
|
default: d(() => [
|
|
1678
|
-
|
|
1679
|
-
model:
|
|
1678
|
+
A(D.$slots, "buttons", {
|
|
1679
|
+
model: v.model,
|
|
1680
1680
|
onBtnClick: e.onSubmit
|
|
1681
1681
|
}, () => [
|
|
1682
|
-
(n(!0), M(
|
|
1683
|
-
l.isShow ? (n(), c(
|
|
1682
|
+
(n(!0), M(L, null, E(e.formOptions.btnConfig, (l, q) => (n(), M("div", { key: q }, [
|
|
1683
|
+
l.isShow ? (n(), c(el, {
|
|
1684
1684
|
key: 0,
|
|
1685
1685
|
btnCode: l.btnCode,
|
|
1686
1686
|
plain: l.plain,
|
|
@@ -1703,12 +1703,12 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1703
1703
|
size: l.size,
|
|
1704
1704
|
fontSize: l.fontSize,
|
|
1705
1705
|
fontWeight: l.fontWeight,
|
|
1706
|
-
style:
|
|
1707
|
-
class:
|
|
1706
|
+
style: T(l.style),
|
|
1707
|
+
class: I(l.class),
|
|
1708
1708
|
onHandleClick: (o) => e.handleClick(o, l.isRule, l.emitName)
|
|
1709
1709
|
}, {
|
|
1710
1710
|
default: d(() => [
|
|
1711
|
-
|
|
1711
|
+
j(u(l.name), 1)
|
|
1712
1712
|
]),
|
|
1713
1713
|
_: 2
|
|
1714
1714
|
}, 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"])) : g("", !0)
|
|
@@ -1721,11 +1721,11 @@ function Ye(D, p, _, e, Y, S) {
|
|
|
1721
1721
|
_: 3
|
|
1722
1722
|
}, 16, ["model", "label-position"]);
|
|
1723
1723
|
}
|
|
1724
|
-
const
|
|
1725
|
-
function
|
|
1726
|
-
|
|
1724
|
+
const Dl = /* @__PURE__ */ Hl(Gl, [["render", Ye], ["__scopeId", "data-v-f3d41375"]]);
|
|
1725
|
+
function rl(D, p = {}) {
|
|
1726
|
+
rl.installed || (rl.installed = !0, D.component("common-el-form", Dl));
|
|
1727
1727
|
}
|
|
1728
|
-
|
|
1728
|
+
Dl.install = rl;
|
|
1729
1729
|
export {
|
|
1730
|
-
|
|
1730
|
+
Dl as default
|
|
1731
1731
|
};
|