sinosoft-common-form 2.9.1 → 2.9.2
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 +513 -517
- package/common-form.umd.js +1 -1
- package/package.json +1 -1
package/common-form.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
const oe = "data:image/svg+xml
|
|
1
|
+
import { ref as Z, reactive as hl, shallowRef as tl, h as nl, computed as Yl, onMounted as zl, onBeforeUnmount as jl, watch as Ql, toRefs as Gl, nextTick as bl, resolveComponent as M, openBlock as d, createBlock as c, mergeProps as Jl, withModifiers as Xl, withCtx as s, createVNode as g, createElementBlock as t, Fragment as I, renderList as S, withDirectives as ml, createElementVNode as L, normalizeStyle as w, toDisplayString as p, withKeys as P, normalizeClass as k, createCommentVNode as u, createTextVNode as x, renderSlot as A, createSlots as ol, vShow as $l, pushScopeId as le, popScopeId as ee } from "vue";
|
|
2
|
+
const oe = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.7502%201.87695H10.1252V0.876953C10.1252%200.808203%2010.069%200.751953%2010.0002%200.751953H9.12525C9.05649%200.751953%209.00025%200.808203%209.00025%200.876953V1.87695H5.00024V0.876953C5.00024%200.808203%204.94399%200.751953%204.87524%200.751953H4.00024C3.93149%200.751953%203.87524%200.808203%203.87524%200.876953V1.87695H1.25024C0.973682%201.87695%200.750244%202.10039%200.750244%202.37695V12.752C0.750244%2013.0285%200.973682%2013.252%201.25024%2013.252H12.7502C13.0268%2013.252%2013.2502%2013.0285%2013.2502%2012.752V2.37695C13.2502%202.10039%2013.0268%201.87695%2012.7502%201.87695ZM12.1252%2012.127H1.87524V6.18945H12.1252V12.127ZM1.87524%205.12695V3.00195H3.87524V3.75195C3.87524%203.8207%203.93149%203.87695%204.00024%203.87695H4.87524C4.94399%203.87695%205.00024%203.8207%205.00024%203.75195V3.00195H9.00025V3.75195C9.00025%203.8207%209.05649%203.87695%209.12525%203.87695H10.0002C10.069%203.87695%2010.1252%203.8207%2010.1252%203.75195V3.00195H12.1252V5.12695H1.87524Z'%20fill='black'%20fill-opacity='0.85'/%3e%3c/svg%3e", ae = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.982%202.57129H9.97754C9.90923%202.57129%209.84495%202.60477%209.80477%202.65968L5.99986%207.90433L2.19495%202.65968C2.15477%202.60477%202.09048%202.57129%202.02218%202.57129H1.01771C0.930659%202.57129%200.879766%202.6704%200.930659%202.74138L5.65298%209.25165C5.82441%209.48736%206.1753%209.48736%206.34539%209.25165L11.0677%202.74138C11.1199%202.6704%2011.0691%202.57129%2010.982%202.57129V2.57129Z'%20fill='%23C7C8CA'/%3e%3c/svg%3e", gl = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.92921%201.24463C5.11746%201.24463%201.21594%205.14615%201.21594%209.9579C1.21594%2014.7696%205.11746%2018.6712%209.92921%2018.6712C14.741%2018.6712%2018.6425%2014.7696%2018.6425%209.9579C18.6425%205.14615%2014.741%201.24463%209.92921%201.24463ZM13.1461%2013.2682L11.8625%2013.2623L9.92921%2010.9576L7.9979%2013.2604L6.7123%2013.2662C6.62673%2013.2662%206.55671%2013.1981%206.55671%2013.1106C6.55671%2013.0737%206.57032%2013.0387%206.59366%2013.0095L9.12401%209.99485L6.59366%206.98216C6.57016%206.95366%206.55712%206.91797%206.55671%206.88102C6.55671%206.79545%206.62673%206.72543%206.7123%206.72543L7.9979%206.73127L9.92921%209.036L11.8605%206.73321L13.1442%206.72738C13.2298%206.72738%2013.2998%206.79545%2013.2998%206.88297C13.2998%206.91992%2013.2862%206.95493%2013.2628%206.98411L10.7364%209.9968L13.2648%2013.0114C13.2881%2013.0406%2013.3017%2013.0756%2013.3017%2013.1126C13.3017%2013.1981%2013.2317%2013.2682%2013.1461%2013.2682Z'%20fill='black'%20fill-opacity='0.25'/%3e%3c/svg%3e", ne = {
|
|
3
3
|
props: {
|
|
4
4
|
fieldList: {
|
|
5
5
|
type: Array,
|
|
@@ -21,197 +21,194 @@ const oe = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
21
21
|
},
|
|
22
22
|
options: Object
|
|
23
23
|
},
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
24
|
+
setup(_, { emit: h }) {
|
|
25
|
+
const B = Z(!0), e = hl({
|
|
26
26
|
model: {},
|
|
27
27
|
rareMaxlength: null
|
|
28
|
-
}),
|
|
29
|
-
const r =
|
|
30
|
-
r && (
|
|
31
|
-
},
|
|
32
|
-
a ||
|
|
33
|
-
},
|
|
34
|
-
var
|
|
35
|
-
const n = ((
|
|
36
|
-
if (!((
|
|
37
|
-
|
|
38
|
-
const r = j[E(a)] || "";
|
|
28
|
+
}), E = Z(!0), q = Z(null), v = hl({}), N = (a) => typeof a.field == "object" && a.field && "nationCode" in a.field && a.field.nationCode || "", F = (a, n) => {
|
|
29
|
+
const r = N(n);
|
|
30
|
+
r && (v[r] = a.trim().toLowerCase());
|
|
31
|
+
}, H = (a, n) => {
|
|
32
|
+
a || F("", n);
|
|
33
|
+
}, Y = (a) => {
|
|
34
|
+
var f, y;
|
|
35
|
+
const n = ((f = a.nationOptions) == null ? void 0 : f.data) || [];
|
|
36
|
+
if (!((y = a.nationOptions) != null && y.filterable)) return n;
|
|
37
|
+
const r = v[N(a)] || "";
|
|
39
38
|
return r ? n.filter(
|
|
40
|
-
(
|
|
39
|
+
(V) => V.name.toLowerCase().includes(r) || V.code.toLowerCase().includes(r)
|
|
41
40
|
) : n;
|
|
42
|
-
},
|
|
41
|
+
}, z = tl({
|
|
43
42
|
render() {
|
|
44
43
|
return nl("img", {
|
|
45
44
|
src: oe
|
|
46
45
|
});
|
|
47
46
|
}
|
|
48
|
-
}),
|
|
47
|
+
}), j = tl({
|
|
49
48
|
render() {
|
|
50
49
|
return nl("img", {
|
|
51
50
|
src: ae
|
|
52
51
|
});
|
|
53
52
|
}
|
|
54
|
-
}),
|
|
53
|
+
}), W = (a) => {
|
|
55
54
|
const n = a.target;
|
|
56
|
-
n.scrollTop + n.clientHeight + 1 >= n.scrollHeight &&
|
|
57
|
-
},
|
|
55
|
+
n.scrollTop + n.clientHeight + 1 >= n.scrollHeight && h("selectChangeScroll");
|
|
56
|
+
}, Q = (a, n) => {
|
|
58
57
|
if (a) {
|
|
59
58
|
const r = document.querySelector(".single-select-loadmore .el-select-dropdown__wrap");
|
|
60
|
-
r && r.addEventListener("scroll",
|
|
59
|
+
r && r.addEventListener("scroll", W), h("handleVisibleChange", a, n);
|
|
61
60
|
}
|
|
62
|
-
},
|
|
61
|
+
}, K = tl({
|
|
63
62
|
render() {
|
|
64
63
|
return nl("img", {
|
|
65
|
-
src:
|
|
64
|
+
src: gl
|
|
66
65
|
});
|
|
67
66
|
}
|
|
68
|
-
}),
|
|
69
|
-
src:
|
|
70
|
-
}), dl =
|
|
71
|
-
e.model =
|
|
67
|
+
}), G = nl("img", {
|
|
68
|
+
src: gl
|
|
69
|
+
}), dl = Yl(() => Object.assign([], _.options)), J = () => {
|
|
70
|
+
e.model = _.model;
|
|
72
71
|
}, X = (a, n, r) => {
|
|
73
|
-
var
|
|
74
|
-
n ? (
|
|
75
|
-
var
|
|
76
|
-
(
|
|
77
|
-
if (
|
|
78
|
-
|
|
72
|
+
var f;
|
|
73
|
+
n ? (B.value = !1, bl(() => {
|
|
74
|
+
var y;
|
|
75
|
+
(y = q.value) == null || y.validate((V) => {
|
|
76
|
+
if (V)
|
|
77
|
+
h(r || "submit", e.model, a);
|
|
79
78
|
else
|
|
80
79
|
return !1;
|
|
81
80
|
});
|
|
82
|
-
})) : n ? (r === "reset" && ((
|
|
81
|
+
})) : n ? (r === "reset" && ((f = q.value) == null || f.resetFields()), h(r || "submit", e.model, a)) : (B.value = !1, h(r || "submit", e.model, a, q.value));
|
|
83
82
|
}, sl = (a, n) => {
|
|
84
|
-
|
|
83
|
+
h("selectChange", a, n);
|
|
85
84
|
}, l = (a, n) => {
|
|
86
|
-
|
|
85
|
+
h("selectFocus", a, n);
|
|
87
86
|
}, m = (a, n) => {
|
|
88
|
-
|
|
87
|
+
h("radioChange", a, n);
|
|
89
88
|
}, o = (a, n) => {
|
|
90
|
-
|
|
89
|
+
h("checkChange", a, n);
|
|
91
90
|
}, i = (a, n) => {
|
|
92
91
|
const r = e.model[n].length;
|
|
93
92
|
if (r === 1) {
|
|
94
|
-
|
|
93
|
+
h("checkChange", a, n);
|
|
95
94
|
return;
|
|
96
|
-
} else
|
|
97
|
-
|
|
98
|
-
}, D = (a, n, r) => {
|
|
95
|
+
} else r > 1 ? (e.model[n].shift(), h("checkChange", a, n)) : r < 1 && h("checkChange", a, n);
|
|
96
|
+
}, C = (a, n, r) => {
|
|
99
97
|
X(a, n, r);
|
|
100
|
-
},
|
|
98
|
+
}, b = (a, n) => {
|
|
101
99
|
a && (n == null ? void 0 : n.key) === "Enter" && X(void 0, !0, "submit");
|
|
102
|
-
}, U = (a, n, r,
|
|
103
|
-
var
|
|
104
|
-
(
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
e.rareMaxlength = "",
|
|
109
|
-
},
|
|
110
|
-
|
|
111
|
-
},
|
|
112
|
-
r && (e.model[n] = e.model[n].toUpperCase()),
|
|
100
|
+
}, U = (a, n, r, f) => {
|
|
101
|
+
var y;
|
|
102
|
+
(f === "daterange" || f === "datetimerange") && (a === null || a[0] === null || a[1] === null) && (a = []), a || ($.value += 1), (y = q.value) == null || y.validateField(n), h("dateChange", a, n);
|
|
103
|
+
}, R = (a, n) => {
|
|
104
|
+
h("onOk", a, n);
|
|
105
|
+
}, vl = (a, n, r) => {
|
|
106
|
+
e.rareMaxlength = "", h("inputBlur", a, n);
|
|
107
|
+
}, xl = (a, n) => {
|
|
108
|
+
h("inputFocus", a, n);
|
|
109
|
+
}, Rl = (a, n, r) => {
|
|
110
|
+
r && (e.model[n] = e.model[n].toUpperCase()), h("inputChange", a, n);
|
|
113
111
|
}, al = (a) => {
|
|
114
112
|
var n = 0, r = 0;
|
|
115
113
|
if (a) {
|
|
116
114
|
for (; n < a.length; ) {
|
|
117
|
-
var
|
|
118
|
-
|
|
115
|
+
var f = a.charCodeAt(n);
|
|
116
|
+
f >= 55296 && f <= 57343 ? (n += 2, r++) : n++;
|
|
119
117
|
}
|
|
120
118
|
return r;
|
|
121
119
|
}
|
|
122
120
|
return r;
|
|
123
|
-
},
|
|
124
|
-
document.getElementById(n).addEventListener("input",
|
|
125
|
-
},
|
|
126
|
-
let
|
|
127
|
-
if (
|
|
128
|
-
let
|
|
129
|
-
|
|
121
|
+
}, Ol = (a, n, r) => {
|
|
122
|
+
document.getElementById(n).addEventListener("input", Dl(a, n, r));
|
|
123
|
+
}, Dl = (a, n, r) => {
|
|
124
|
+
let f = document.getElementById(n), y = a.target.value;
|
|
125
|
+
if (y) {
|
|
126
|
+
let V = null, D = Array.from(y);
|
|
127
|
+
y !== "" && y !== void 0 && r && (V = al(y), e.rareMaxlength = r + V), e.rareMaxlength - y.length === 1 && e.rareMaxlength++, y.length > r && D.length !== r && (e.model[n] = D.slice(0, r).join(""), yl.value += 1, D = Array.from(D.slice(0, r).join("")), V = al(y)), D.length < r && (e.rareMaxlength = r + V + (r - D.length) * 2), D.length === r && (e.rareMaxlength = r), (f == null ? void 0 : f.id) === n && f.setAttribute("maxlength", e.rareMaxlength), h("selectInput", a, n, r + V);
|
|
130
128
|
}
|
|
131
|
-
},
|
|
132
|
-
let
|
|
133
|
-
e.model[n] !== "" && e.model[n] !== void 0 && r && (
|
|
134
|
-
},
|
|
129
|
+
}, Al = (a, n, r) => {
|
|
130
|
+
let f = null, y = Array.from(e.model[n]);
|
|
131
|
+
e.model[n] !== "" && e.model[n] !== void 0 && r && (f = al(e.model[n]), e.rareMaxlength = r + f), e.rareMaxlength - e.model[n].length === 1 && e.rareMaxlength++, e.model[n].length > r && y.length !== r && (e.model[n] = y.slice(0, r).join(""), y = Array.from(y.slice(0, r).join("")), f = al(e.model[n])), y.length < r && (e.rareMaxlength = r + f + (r - y.length) * 2), y.length === r && (e.rareMaxlength = r), h("inputInput", a, n, r + f);
|
|
132
|
+
}, Fl = () => ({
|
|
135
133
|
innerWidth: window.innerWidth || document.documentElement.clientWidth,
|
|
136
134
|
innerHeight: window.innerHeight || document.documentElement.clientHeight,
|
|
137
135
|
outerWidth: window.outerWidth,
|
|
138
136
|
outerHeight: window.outerHeight
|
|
139
|
-
}),
|
|
137
|
+
}), Ml = () => {
|
|
140
138
|
let a = 0;
|
|
141
|
-
const { outerWidth: n, innerWidth: r } =
|
|
139
|
+
const { outerWidth: n, innerWidth: r } = Fl();
|
|
142
140
|
return window.devicePixelRatio !== void 0 ? a = window.devicePixelRatio : n !== void 0 && r !== void 0 && (a = n / r), a && (a = Math.round(a * 100)), a;
|
|
143
|
-
},
|
|
144
|
-
|
|
145
|
-
},
|
|
146
|
-
var
|
|
141
|
+
}, Vl = (a, n) => {
|
|
142
|
+
h("remoteMethod", a, n);
|
|
143
|
+
}, Nl = (a, n, r) => {
|
|
144
|
+
var f, y, V, D;
|
|
147
145
|
if (a) {
|
|
148
|
-
let
|
|
149
|
-
if (n === "select" ? (
|
|
150
|
-
let
|
|
151
|
-
ll =
|
|
146
|
+
let O, ll, el, Wl = Ml();
|
|
147
|
+
if (n === "select" ? (O = (f = document.querySelector("." + a)) == null ? void 0 : f.querySelector(".el-input__inner"), O ? el = O.scrollWidth : (O = (y = document.querySelector("." + a)) == null ? void 0 : y.querySelector(".el-select__placeholder"), el = (D = (V = document.querySelector("." + a)) == null ? void 0 : V.querySelector(".el-select__placeholder > span")) == null ? void 0 : D.offsetWidth)) : (O = document.querySelector("#" + a), el = O.scrollWidth), O) {
|
|
148
|
+
let Kl = O == null ? void 0 : O.value, ul = O.getBoundingClientRect().width;
|
|
149
|
+
ll = Wl === 100 ? O.offsetWidth : Math.ceil(ul), el <= ll ? O.style.textOverflow = "inherit" : O.style.textOverflow = "ellipsis", ul < 40 ? E.value = !Kl : E.value = el <= ll;
|
|
152
150
|
} else
|
|
153
|
-
|
|
151
|
+
E.value = !0;
|
|
154
152
|
} else
|
|
155
|
-
|
|
156
|
-
},
|
|
157
|
-
if (!n)
|
|
158
|
-
|
|
159
|
-
const r = n.find((c) => c.code === a);
|
|
153
|
+
E.value = !0;
|
|
154
|
+
}, Il = (a, n) => {
|
|
155
|
+
if (!n) return a;
|
|
156
|
+
const r = n.find((f) => f.code === a);
|
|
160
157
|
return r ? r.name : a;
|
|
161
|
-
}, vl = (a) => {
|
|
162
|
-
var n;
|
|
163
|
-
(n = Y.value) == null || n.resetFields(a);
|
|
164
158
|
}, Sl = (a) => {
|
|
165
159
|
var n;
|
|
166
|
-
(n =
|
|
167
|
-
},
|
|
160
|
+
(n = q.value) == null || n.resetFields(a);
|
|
161
|
+
}, Tl = (a) => {
|
|
162
|
+
var n;
|
|
163
|
+
(n = q.value) == null || n.clearValidate(a);
|
|
164
|
+
}, rl = Z(!1), fl = () => {
|
|
168
165
|
window.innerWidth < 768, rl.value = !1;
|
|
169
166
|
};
|
|
170
|
-
|
|
167
|
+
zl(() => {
|
|
171
168
|
var n;
|
|
172
|
-
J(), (n =
|
|
173
|
-
|
|
169
|
+
J(), (n = q.value) == null || n.resetFields(), window.addEventListener("resize", fl), document.querySelectorAll(".ant-picker-range .ant-picker-input input").forEach((r, f) => {
|
|
170
|
+
f % 2 !== 0 && (r.setAttribute("disabled", !0), r.setAttribute("color", "rgba(0, 0, 0, 0.88)"));
|
|
174
171
|
});
|
|
175
|
-
}),
|
|
176
|
-
window.removeEventListener("resize",
|
|
177
|
-
}),
|
|
178
|
-
() =>
|
|
172
|
+
}), jl(() => {
|
|
173
|
+
window.removeEventListener("resize", fl);
|
|
174
|
+
}), Ql(
|
|
175
|
+
() => _.fieldList,
|
|
179
176
|
(a, n) => {
|
|
180
177
|
a !== n && J();
|
|
181
178
|
}
|
|
182
179
|
);
|
|
183
|
-
const $ =
|
|
180
|
+
const $ = Z(0), il = Z(0), pl = Z(0), yl = Z(0), Bl = (a) => {
|
|
184
181
|
a === "" && ($.value += 1);
|
|
185
|
-
},
|
|
186
|
-
const
|
|
182
|
+
}, ql = (a, n, r, f) => {
|
|
183
|
+
const y = {};
|
|
187
184
|
if (a.date() === n.date() && a.year() === n.year() && a.month() === n.month())
|
|
188
|
-
return
|
|
189
|
-
|
|
190
|
-
},
|
|
191
|
-
e.model[n] = r.format("DD/MM/YYYY"), $.value += 1, U(a, n),
|
|
185
|
+
return y.border = "1px solid #a26628", y.borderRadius = "4px", y;
|
|
186
|
+
h("openStatusNumber", r == null ? void 0 : r.range, f);
|
|
187
|
+
}, El = (a, n, r) => {
|
|
188
|
+
e.model[n] = r.format("DD/MM/YYYY"), $.value += 1, U(a, n), h("getDefaultToady", r, n);
|
|
192
189
|
}, Ul = (a, n, r) => {
|
|
193
|
-
(r === "daterange" || r === "datetimerange") && (a === null || a[0] === null || a[1] === null) && (a = []),
|
|
194
|
-
},
|
|
195
|
-
if (
|
|
196
|
-
return e.model[r] =
|
|
197
|
-
a || ($.value += 1),
|
|
190
|
+
(r === "daterange" || r === "datetimerange") && (a === null || a[0] === null || a[1] === null) && (a = []), h("calendarChange", a, n);
|
|
191
|
+
}, Zl = (a, n, r, f) => {
|
|
192
|
+
if (f)
|
|
193
|
+
return e.model[r] = f;
|
|
194
|
+
a || ($.value += 1), h("openChange", a, r, f);
|
|
198
195
|
};
|
|
199
196
|
il.value = 1;
|
|
200
|
-
const
|
|
201
|
-
(
|
|
202
|
-
document.querySelectorAll(".ant-picker-range .ant-picker-input input").forEach((
|
|
203
|
-
|
|
204
|
-
}),
|
|
205
|
-
ll % 2 !== 0 && (
|
|
197
|
+
const Hl = (a, n, r, f, y) => {
|
|
198
|
+
(y === "daterange" || y === "datetimerange") && f == null && (f = []), a || (il.value += 1, bl(() => {
|
|
199
|
+
document.querySelectorAll(".ant-picker-range .ant-picker-input input").forEach((D, O) => {
|
|
200
|
+
O % 2 !== 0 && (D.setAttribute("disabled", !0), D.setAttribute("color", "rgba(0, 0, 0, 0.88)")), D.value && D.removeAttribute("disabled");
|
|
201
|
+
}), f !== void 0 && f[0] && f[1] && document.querySelectorAll(`.ant-picker-range.${r} .ant-picker-input input`).forEach((O, ll) => {
|
|
202
|
+
ll % 2 !== 0 && (O.removeAttribute("disabled"), O.setAttribute("color", "rgba(0, 0, 0, 0.88)"));
|
|
206
203
|
});
|
|
207
|
-
})),
|
|
208
|
-
},
|
|
209
|
-
a || (
|
|
204
|
+
})), h("openDatePickerDaterange", a, n, r, f);
|
|
205
|
+
}, Pl = (a) => {
|
|
206
|
+
a || (pl.value += 1), h("openDatetimerange", a);
|
|
210
207
|
};
|
|
211
208
|
return {
|
|
212
|
-
...
|
|
213
|
-
formRef:
|
|
214
|
-
isShowTooltip:
|
|
209
|
+
...Gl(e),
|
|
210
|
+
formRef: q,
|
|
211
|
+
isShowTooltip: E,
|
|
215
212
|
states: e,
|
|
216
213
|
formOptions: dl,
|
|
217
214
|
onSubmit: X,
|
|
@@ -221,158 +218,157 @@ const oe = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
221
218
|
radioChange: m,
|
|
222
219
|
checkChange: o,
|
|
223
220
|
handleCheckedChange: i,
|
|
224
|
-
prefixIcon:
|
|
225
|
-
IconDropDown:
|
|
226
|
-
IconClear:
|
|
227
|
-
dateClearIcon:
|
|
228
|
-
handleClick:
|
|
229
|
-
handleKeyUp:
|
|
230
|
-
resetFieldsTest:
|
|
231
|
-
clearValidateTest:
|
|
221
|
+
prefixIcon: z,
|
|
222
|
+
IconDropDown: j,
|
|
223
|
+
IconClear: K,
|
|
224
|
+
dateClearIcon: G,
|
|
225
|
+
handleClick: C,
|
|
226
|
+
handleKeyUp: b,
|
|
227
|
+
resetFieldsTest: Sl,
|
|
228
|
+
clearValidateTest: Tl,
|
|
232
229
|
dateChange: U,
|
|
233
230
|
calendarChange: Ul,
|
|
234
|
-
onOk:
|
|
235
|
-
inputBlur:
|
|
236
|
-
inputFocus:
|
|
237
|
-
inputChange:
|
|
238
|
-
inputInput:
|
|
239
|
-
selectInput:
|
|
240
|
-
noFormRule:
|
|
231
|
+
onOk: R,
|
|
232
|
+
inputBlur: vl,
|
|
233
|
+
inputFocus: xl,
|
|
234
|
+
inputChange: Rl,
|
|
235
|
+
inputInput: Al,
|
|
236
|
+
selectInput: Ol,
|
|
237
|
+
noFormRule: B,
|
|
241
238
|
phoneWrap: rl,
|
|
242
239
|
pickerKey: $,
|
|
243
240
|
pickerKeyDaterange: il,
|
|
244
|
-
selectPickerKey:
|
|
245
|
-
datetimerange:
|
|
246
|
-
openDatePicker:
|
|
247
|
-
openDatePickerDaterange:
|
|
248
|
-
openDatetimerange:
|
|
241
|
+
selectPickerKey: yl,
|
|
242
|
+
datetimerange: pl,
|
|
243
|
+
openDatePicker: Bl,
|
|
244
|
+
openDatePickerDaterange: Hl,
|
|
245
|
+
openDatetimerange: Pl,
|
|
249
246
|
// spaceRule,
|
|
250
|
-
handleVisibleChange:
|
|
251
|
-
handleScroll:
|
|
252
|
-
visibilityChange:
|
|
253
|
-
contentName:
|
|
254
|
-
openChange:
|
|
255
|
-
getCurrentStyle:
|
|
256
|
-
getDefaultToady:
|
|
257
|
-
remoteMethod:
|
|
258
|
-
handleNationFilter:
|
|
259
|
-
handleNationVisibleChange:
|
|
260
|
-
getFilteredNationOptions:
|
|
247
|
+
handleVisibleChange: Q,
|
|
248
|
+
handleScroll: W,
|
|
249
|
+
visibilityChange: Nl,
|
|
250
|
+
contentName: Il,
|
|
251
|
+
openChange: Zl,
|
|
252
|
+
getCurrentStyle: ql,
|
|
253
|
+
getDefaultToady: El,
|
|
254
|
+
remoteMethod: Vl,
|
|
255
|
+
handleNationFilter: F,
|
|
256
|
+
handleNationVisibleChange: H,
|
|
257
|
+
getFilteredNationOptions: Y
|
|
261
258
|
};
|
|
262
259
|
}
|
|
263
|
-
},
|
|
264
|
-
const
|
|
265
|
-
const
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
}, S = (N) => (le("data-v-e2a759b3"), N = N(), ee(), N), se = { class: "header-title" }, re = { class: "title-content" }, ie = { class: "header-boldTitle" }, Me = { class: "boldTitle-content" }, te = {
|
|
260
|
+
}, Cl = "data:image/svg+xml,%3csvg%20width='22'%20height='40'%20viewBox='0%200%2022%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.0607%2016.0607L11%2015L6%2020L11%2025L12.0607%2023.9393L8.12132%2020L12.0607%2016.0607Z'%20fill='black'%20fill-opacity='0.25'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M18.0607%2016.0607L17%2015L12%2020L17%2025L18.0607%2023.9393L14.1213%2020L18.0607%2016.0607Z'%20fill='black'%20fill-opacity='0.25'/%3e%3c/svg%3e", Ll = "data:image/svg+xml,%3csvg%20width='22'%20height='40'%20viewBox='0%200%2022%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.0607%2016.0607L11%2015L6%2020L11%2025L12.0607%2023.9393L8.12132%2020L12.0607%2016.0607Z'%20fill='black'%20fill-opacity='0.25'/%3e%3c/svg%3e", _l = "data:image/svg+xml,%3csvg%20width='22'%20height='40'%20viewBox='0%200%2022%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='path-1-inside-1_421_8162'%20fill='white'%3e%3cpath%20d='M11%2015L16%2020L11%2025L9.93933%2023.9393L13.8787%2020L9.93933%2016.0607L11%2015Z'/%3e%3c/mask%3e%3cpath%20d='M11%2015L16%2020L11%2025L9.93933%2023.9393L13.8787%2020L9.93933%2016.0607L11%2015Z'%20fill='white'/%3e%3cpath%20d='M16%2020L17.0607%2021.0607L18.1213%2020L17.0607%2018.9393L16%2020ZM11%2015L12.0607%2013.9393L11%2012.8787L9.93933%2013.9393L11%2015ZM11%2025L9.93933%2026.0607L11%2027.1213L12.0607%2026.0607L11%2025ZM9.93933%2016.0607L8.87867%2015L7.81801%2016.0607L8.87867%2017.1213L9.93933%2016.0607ZM9.93933%2023.9393L8.87867%2022.8787L7.81801%2023.9393L8.87867%2025L9.93933%2023.9393ZM13.8787%2020L14.9393%2021.0607L16%2020L14.9393%2018.9393L13.8787%2020ZM17.0607%2018.9393L12.0607%2013.9393L9.93933%2016.0607L14.9393%2021.0607L17.0607%2018.9393ZM12.0607%2026.0607L17.0607%2021.0607L14.9393%2018.9393L9.93933%2023.9393L12.0607%2026.0607ZM9.93933%2013.9393L8.87867%2015L11%2017.1213L12.0607%2016.0607L9.93933%2013.9393ZM8.87867%2025L9.93933%2026.0607L12.0607%2023.9393L11%2022.8787L8.87867%2025ZM12.818%2018.9393L8.87867%2022.8787L11%2025L14.9393%2021.0607L12.818%2018.9393ZM8.87867%2017.1213L12.818%2021.0607L14.9393%2018.9393L11%2015L8.87867%2017.1213Z'%20fill='black'%20fill-opacity='0.25'%20mask='url(%23path-1-inside-1_421_8162)'/%3e%3c/svg%3e", wl = "data:image/svg+xml,%3csvg%20width='22'%20height='40'%20viewBox='0%200%2022%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='path-1-inside-1_421_8159'%20fill='white'%3e%3cpath%20d='M11%2015L16%2020L11%2025L9.93933%2023.9393L13.8787%2020L9.93933%2016.0607L11%2015Z'/%3e%3c/mask%3e%3cpath%20d='M11%2015L16%2020L11%2025L9.93933%2023.9393L13.8787%2020L9.93933%2016.0607L11%2015Z'%20fill='white'/%3e%3cpath%20d='M16%2020L17.0607%2021.0607L18.1213%2020L17.0607%2018.9393L16%2020ZM11%2015L12.0607%2013.9393L11%2012.8787L9.93933%2013.9393L11%2015ZM11%2025L9.93933%2026.0607L11%2027.1213L12.0607%2026.0607L11%2025ZM9.93933%2016.0607L8.87867%2015L7.81801%2016.0607L8.87867%2017.1213L9.93933%2016.0607ZM9.93933%2023.9393L8.87867%2022.8787L7.81801%2023.9393L8.87867%2025L9.93933%2023.9393ZM13.8787%2020L14.9393%2021.0607L16%2020L14.9393%2018.9393L13.8787%2020ZM17.0607%2018.9393L12.0607%2013.9393L9.93933%2016.0607L14.9393%2021.0607L17.0607%2018.9393ZM12.0607%2026.0607L17.0607%2021.0607L14.9393%2018.9393L9.93933%2023.9393L12.0607%2026.0607ZM9.93933%2013.9393L8.87867%2015L11%2017.1213L12.0607%2016.0607L9.93933%2013.9393ZM8.87867%2025L9.93933%2026.0607L12.0607%2023.9393L11%2022.8787L8.87867%2025ZM12.818%2018.9393L8.87867%2022.8787L11%2025L14.9393%2021.0607L12.818%2018.9393ZM8.87867%2017.1213L12.818%2021.0607L14.9393%2018.9393L11%2015L8.87867%2017.1213Z'%20fill='black'%20fill-opacity='0.25'%20mask='url(%23path-1-inside-1_421_8159)'/%3e%3cmask%20id='path-3-inside-2_421_8159'%20fill='white'%3e%3cpath%20d='M4.93926%2015L9.93926%2020L4.93926%2025L3.8786%2023.9393L7.81794%2020L3.8786%2016.0607L4.93926%2015Z'/%3e%3c/mask%3e%3cpath%20d='M4.93926%2015L9.93926%2020L4.93926%2025L3.8786%2023.9393L7.81794%2020L3.8786%2016.0607L4.93926%2015Z'%20fill='white'/%3e%3cpath%20d='M9.93926%2020L10.9999%2021.0607L12.0606%2020L10.9999%2018.9393L9.93926%2020ZM4.93926%2015L5.99992%2013.9393L4.93926%2012.8787L3.8786%2013.9393L4.93926%2015ZM4.93926%2025L3.8786%2026.0607L4.93926%2027.1213L5.99992%2026.0607L4.93926%2025ZM3.8786%2016.0607L2.81794%2015L1.75728%2016.0607L2.81794%2017.1213L3.8786%2016.0607ZM3.8786%2023.9393L2.81794%2022.8787L1.75728%2023.9393L2.81794%2025L3.8786%2023.9393ZM7.81794%2020L8.8786%2021.0607L9.93926%2020L8.8786%2018.9393L7.81794%2020ZM10.9999%2018.9393L5.99992%2013.9393L3.8786%2016.0607L8.8786%2021.0607L10.9999%2018.9393ZM5.99992%2026.0607L10.9999%2021.0607L8.8786%2018.9393L3.8786%2023.9393L5.99992%2026.0607ZM3.8786%2013.9393L2.81794%2015L4.93926%2017.1213L5.99992%2016.0607L3.8786%2013.9393ZM2.81794%2025L3.8786%2026.0607L5.99992%2023.9393L4.93926%2022.8787L2.81794%2025ZM6.75728%2018.9393L2.81794%2022.8787L4.93926%2025L8.8786%2021.0607L6.75728%2018.9393ZM2.81794%2017.1213L6.75728%2021.0607L8.8786%2018.9393L4.93926%2015L2.81794%2017.1213Z'%20fill='black'%20fill-opacity='0.25'%20mask='url(%23path-3-inside-2_421_8159)'/%3e%3c/svg%3e", de = (_, h) => {
|
|
261
|
+
const B = _.__vccOpts || _;
|
|
262
|
+
for (const [e, E] of h)
|
|
263
|
+
B[e] = E;
|
|
264
|
+
return B;
|
|
265
|
+
}, T = (_) => (le("data-v-e2a759b3"), _ = _(), ee(), _), se = { class: "header-title" }, re = { class: "title-content" }, ie = { class: "header-boldTitle" }, te = { class: "boldTitle-content" }, ce = {
|
|
270
266
|
key: 0,
|
|
271
267
|
class: "custom-required"
|
|
272
|
-
},
|
|
268
|
+
}, fe = {
|
|
273
269
|
key: 0,
|
|
274
270
|
class: "custom-required"
|
|
275
|
-
},
|
|
271
|
+
}, pe = ["src"], ye = {
|
|
276
272
|
key: 0,
|
|
277
273
|
class: "custom-required"
|
|
278
|
-
},
|
|
274
|
+
}, ue = { class: "lable" }, he = { class: "lable_note" }, be = {
|
|
279
275
|
key: 0,
|
|
280
276
|
class: "custom-required"
|
|
281
|
-
},
|
|
277
|
+
}, ge = {
|
|
282
278
|
key: 0,
|
|
283
279
|
class: "custom-required"
|
|
284
|
-
},
|
|
280
|
+
}, Ce = {
|
|
285
281
|
key: 0,
|
|
286
282
|
class: "custom-required"
|
|
287
|
-
},
|
|
283
|
+
}, Le = { class: "lable" }, _e = { class: "lable_note" }, we = {
|
|
288
284
|
key: 0,
|
|
289
285
|
class: "custom-required"
|
|
290
|
-
},
|
|
286
|
+
}, ke = {
|
|
291
287
|
key: 0,
|
|
292
288
|
class: "custom-required"
|
|
293
|
-
},
|
|
289
|
+
}, ve = {
|
|
294
290
|
key: 0,
|
|
295
291
|
class: "custom-required"
|
|
296
|
-
},
|
|
297
|
-
src:
|
|
292
|
+
}, xe = ["onClick"], Re = /* @__PURE__ */ T(() => /* @__PURE__ */ L("img", {
|
|
293
|
+
src: Cl,
|
|
298
294
|
alt: ""
|
|
299
|
-
}, null, -1)),
|
|
300
|
-
src:
|
|
295
|
+
}, null, -1)), Oe = /* @__PURE__ */ T(() => /* @__PURE__ */ L("img", {
|
|
296
|
+
src: Ll,
|
|
301
297
|
alt: ""
|
|
302
|
-
}, null, -1)),
|
|
303
|
-
src:
|
|
298
|
+
}, null, -1)), De = /* @__PURE__ */ T(() => /* @__PURE__ */ L("img", {
|
|
299
|
+
src: _l,
|
|
304
300
|
alt: ""
|
|
305
|
-
}, null, -1)),
|
|
306
|
-
src:
|
|
301
|
+
}, null, -1)), Ae = /* @__PURE__ */ T(() => /* @__PURE__ */ L("img", {
|
|
302
|
+
src: wl,
|
|
307
303
|
alt: ""
|
|
308
|
-
}, null, -1)),
|
|
304
|
+
}, null, -1)), Fe = {
|
|
309
305
|
key: 0,
|
|
310
306
|
class: "date_to"
|
|
311
|
-
},
|
|
307
|
+
}, Me = {
|
|
312
308
|
key: 0,
|
|
313
309
|
class: "custom-required"
|
|
314
|
-
},
|
|
315
|
-
src:
|
|
310
|
+
}, Ve = /* @__PURE__ */ T(() => /* @__PURE__ */ L("img", {
|
|
311
|
+
src: Cl,
|
|
316
312
|
alt: ""
|
|
317
|
-
}, null, -1)),
|
|
318
|
-
src:
|
|
313
|
+
}, null, -1)), Ne = /* @__PURE__ */ T(() => /* @__PURE__ */ L("img", {
|
|
314
|
+
src: Ll,
|
|
319
315
|
alt: ""
|
|
320
|
-
}, null, -1)),
|
|
321
|
-
src:
|
|
316
|
+
}, null, -1)), Ie = /* @__PURE__ */ T(() => /* @__PURE__ */ L("img", {
|
|
317
|
+
src: _l,
|
|
322
318
|
alt: ""
|
|
323
|
-
}, null, -1)),
|
|
324
|
-
src:
|
|
319
|
+
}, null, -1)), Se = /* @__PURE__ */ T(() => /* @__PURE__ */ L("img", {
|
|
320
|
+
src: wl,
|
|
325
321
|
alt: ""
|
|
326
|
-
}, null, -1)),
|
|
322
|
+
}, null, -1)), Te = {
|
|
327
323
|
key: 0,
|
|
328
324
|
class: "custom-required"
|
|
329
|
-
},
|
|
325
|
+
}, Be = {
|
|
330
326
|
key: 0,
|
|
331
327
|
class: "custom-required"
|
|
332
|
-
},
|
|
328
|
+
}, qe = {
|
|
333
329
|
key: 0,
|
|
334
330
|
class: "custom-required"
|
|
335
|
-
},
|
|
331
|
+
}, Ee = {
|
|
336
332
|
key: 0,
|
|
337
333
|
class: "phone_item_content_before"
|
|
338
|
-
}, Ue = /* @__PURE__ */
|
|
334
|
+
}, Ue = /* @__PURE__ */ T(() => /* @__PURE__ */ L("div", { class: "line_middle" }, "-", -1)), Ze = /* @__PURE__ */ T(() => /* @__PURE__ */ L("div", { class: "line_middle" }, "-", -1)), He = {
|
|
339
335
|
key: 1,
|
|
340
336
|
class: "line_middle"
|
|
341
|
-
},
|
|
337
|
+
}, Pe = {
|
|
342
338
|
key: 2,
|
|
343
339
|
class: "line_middle"
|
|
344
|
-
},
|
|
340
|
+
}, We = /* @__PURE__ */ T(() => /* @__PURE__ */ L("div", {
|
|
345
341
|
class: "line",
|
|
346
342
|
style: { "border-top": "1px solid #e8e8e8", width: "100%", height: "0px", margin: "39px 0" }
|
|
347
|
-
}, null, -1)),
|
|
343
|
+
}, null, -1)), Ke = {
|
|
348
344
|
key: 0,
|
|
349
345
|
class: "custom-required"
|
|
350
|
-
},
|
|
346
|
+
}, Ye = {
|
|
351
347
|
key: 0,
|
|
352
348
|
class: "custom-required"
|
|
353
|
-
},
|
|
349
|
+
}, ze = { style: { position: "relative", width: "100%" } }, je = {
|
|
354
350
|
key: 0,
|
|
355
351
|
class: "showLimit"
|
|
356
|
-
},
|
|
352
|
+
}, Qe = {
|
|
357
353
|
key: 0,
|
|
358
354
|
class: "custom-required"
|
|
359
355
|
};
|
|
360
|
-
function
|
|
361
|
-
const
|
|
362
|
-
return d(),
|
|
356
|
+
function Ge(_, h, B, e, E, q) {
|
|
357
|
+
const v = M("el-form-item"), N = M("el-input"), F = M("el-tooltip"), H = M("el-col"), Y = M("el-row"), z = M("el-radio"), j = M("el-radio-group"), W = M("el-checkbox"), Q = M("el-checkbox-group"), K = M("el-option"), G = M("el-select"), dl = M("a-date-picker"), J = M("a-range-picker"), X = M("sinosoftCommonButton"), sl = M("el-form");
|
|
358
|
+
return d(), c(sl, Jl({
|
|
363
359
|
"hide-required-asterisk": "",
|
|
364
|
-
onSubmit:
|
|
360
|
+
onSubmit: h[0] || (h[0] = Xl(() => {
|
|
365
361
|
}, ["prevent"])),
|
|
366
|
-
model:
|
|
362
|
+
model: B.model
|
|
367
363
|
}, e.formOptions, {
|
|
368
364
|
"label-position": e.formOptions.labelPosition,
|
|
369
365
|
ref: "formRef",
|
|
370
366
|
"scroll-to-error": !0
|
|
371
367
|
}), {
|
|
372
368
|
default: s(() => [
|
|
373
|
-
|
|
369
|
+
g(Y, { gutter: 24 }, {
|
|
374
370
|
default: s(() => [
|
|
375
|
-
(d(!0),
|
|
371
|
+
(d(!0), t(I, null, S(B.fieldList, (l, m) => ml((d(), c(H, {
|
|
376
372
|
xs: l.xs ? l.xs : 24,
|
|
377
373
|
sm: l.sm ? l.sm : 24,
|
|
378
374
|
md: l.md ? l.md : 8,
|
|
@@ -381,42 +377,42 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
381
377
|
key: m
|
|
382
378
|
}, {
|
|
383
379
|
default: s(() => [
|
|
384
|
-
|
|
385
|
-
style:
|
|
380
|
+
L("div", {
|
|
381
|
+
style: w(l.style)
|
|
386
382
|
}, [
|
|
387
|
-
l.type === "title" ? (d(),
|
|
383
|
+
l.type === "title" ? (d(), c(v, { key: 0 }, {
|
|
388
384
|
default: s(() => [
|
|
389
|
-
|
|
390
|
-
|
|
385
|
+
L("div", se, [
|
|
386
|
+
L("span", re, p(l.title), 1)
|
|
391
387
|
])
|
|
392
388
|
]),
|
|
393
389
|
_: 2
|
|
394
|
-
}, 1024)) : l.type === "boldTitle" ? (d(),
|
|
390
|
+
}, 1024)) : l.type === "boldTitle" ? (d(), c(v, { key: 1 }, {
|
|
395
391
|
default: s(() => [
|
|
396
|
-
|
|
397
|
-
|
|
392
|
+
L("div", ie, [
|
|
393
|
+
L("span", te, p(l.title), 1)
|
|
398
394
|
])
|
|
399
395
|
]),
|
|
400
396
|
_: 2
|
|
401
|
-
}, 1024)) : l.type === "name" && typeof l.field != "string" && l.field && "nameEnFamily" in l.field && l.rules && "nameEnFamily" in l.rules ? (d(),
|
|
397
|
+
}, 1024)) : l.type === "name" && typeof l.field != "string" && l.field && "nameEnFamily" in l.field && l.rules && "nameEnFamily" in l.rules ? (d(), c(v, {
|
|
402
398
|
key: 2,
|
|
403
399
|
label: l.label,
|
|
404
400
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
405
401
|
class: "container_name"
|
|
406
402
|
}, {
|
|
407
403
|
label: s(() => [
|
|
408
|
-
l.slotLabelName ?
|
|
404
|
+
l.slotLabelName ? A(_.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), t("div", {
|
|
409
405
|
key: 0,
|
|
410
|
-
style:
|
|
406
|
+
style: w(l.labelStyle)
|
|
411
407
|
}, [
|
|
412
|
-
|
|
413
|
-
l.required ? (d(),
|
|
408
|
+
x(p(l.label) + " ", 1),
|
|
409
|
+
l.required ? (d(), t("span", ce, "*")) : u("", !0)
|
|
414
410
|
], 4))
|
|
415
411
|
]),
|
|
416
412
|
default: s(() => [
|
|
417
|
-
|
|
413
|
+
g(Y, { gutter: 20 }, {
|
|
418
414
|
default: s(() => [
|
|
419
|
-
|
|
415
|
+
g(H, {
|
|
420
416
|
xs: 24,
|
|
421
417
|
sm: 12,
|
|
422
418
|
md: 12,
|
|
@@ -424,14 +420,14 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
424
420
|
xl: 12
|
|
425
421
|
}, {
|
|
426
422
|
default: s(() => [
|
|
427
|
-
l.field.nameEnFamily ? (d(),
|
|
423
|
+
l.field.nameEnFamily ? (d(), c(v, {
|
|
428
424
|
key: 0,
|
|
429
425
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.nameEnFamily,
|
|
430
426
|
prop: l.field.nameEnFamily,
|
|
431
427
|
class: "item-name item-name-top"
|
|
432
428
|
}, {
|
|
433
429
|
default: s(() => [
|
|
434
|
-
|
|
430
|
+
g(F, {
|
|
435
431
|
"popper-class": "input-tooltip",
|
|
436
432
|
effect: "light",
|
|
437
433
|
content: e.states.model[typeof l.field.nameEnFamily == "string" ? l.field.nameEnFamily : ""],
|
|
@@ -440,7 +436,7 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
440
436
|
"trigger-keys": []
|
|
441
437
|
}, {
|
|
442
438
|
default: s(() => [
|
|
443
|
-
|
|
439
|
+
g(N, {
|
|
444
440
|
id: l.field.nameEnFamily,
|
|
445
441
|
formatter: (o) => o.replace(/[^a-zA-Z\s-,'.]/g, ""),
|
|
446
442
|
onBlur: (o) => e.inputBlur(o, l.field.nameEnFamily),
|
|
@@ -448,7 +444,7 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
448
444
|
onChange: (o) => e.inputChange(o, l.field.nameEnFamily, "name"),
|
|
449
445
|
onInput: (o) => e.inputInput(o, l.field.nameEnFamily, l.maxlengthNameEnFamily),
|
|
450
446
|
onMouseenter: (o) => e.visibilityChange(l.field.nameEnFamily),
|
|
451
|
-
class:
|
|
447
|
+
class: k(
|
|
452
448
|
(l.isReadonly || l.isReadonlyNameEnFamily || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
453
449
|
),
|
|
454
450
|
maxlength: l.maxlengthNameEnFamily ? e.states.rareMaxlength : "",
|
|
@@ -458,18 +454,18 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
458
454
|
type: l.type ? l.type : "text",
|
|
459
455
|
placeholder: l.placeholderNameEnFamily,
|
|
460
456
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNameEnFamily) && !l.openDisabled,
|
|
461
|
-
onKeyup:
|
|
457
|
+
onKeyup: P((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
462
458
|
}, null, 8, ["id", "formatter", "onBlur", "onFocus", "onChange", "onInput", "onMouseenter", "class", "maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
463
459
|
]),
|
|
464
460
|
_: 2
|
|
465
461
|
}, 1032, ["content", "disabled"])
|
|
466
462
|
]),
|
|
467
463
|
_: 2
|
|
468
|
-
}, 1032, ["rules", "prop"])) :
|
|
464
|
+
}, 1032, ["rules", "prop"])) : u("", !0)
|
|
469
465
|
]),
|
|
470
466
|
_: 2
|
|
471
467
|
}, 1024),
|
|
472
|
-
|
|
468
|
+
g(H, {
|
|
473
469
|
xs: 24,
|
|
474
470
|
sm: 12,
|
|
475
471
|
md: 12,
|
|
@@ -477,14 +473,14 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
477
473
|
xl: 12
|
|
478
474
|
}, {
|
|
479
475
|
default: s(() => [
|
|
480
|
-
l.field.nameEn ? (d(),
|
|
476
|
+
l.field.nameEn ? (d(), c(v, {
|
|
481
477
|
key: 0,
|
|
482
478
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.nameEn,
|
|
483
479
|
prop: l.field.nameEn,
|
|
484
480
|
class: "item-name item-name-top"
|
|
485
481
|
}, {
|
|
486
482
|
default: s(() => [
|
|
487
|
-
|
|
483
|
+
g(F, {
|
|
488
484
|
"popper-class": "input-tooltip",
|
|
489
485
|
effect: "light",
|
|
490
486
|
content: e.states.model[typeof l.field.nameEn == "string" ? l.field.nameEn : ""],
|
|
@@ -493,7 +489,7 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
493
489
|
"trigger-keys": []
|
|
494
490
|
}, {
|
|
495
491
|
default: s(() => [
|
|
496
|
-
|
|
492
|
+
g(N, {
|
|
497
493
|
id: l.field.nameEn,
|
|
498
494
|
formatter: (o) => o.replace(/[^a-zA-Z\s-,'.]/g, ""),
|
|
499
495
|
onBlur: (o) => e.inputBlur(o, l.field.nameEn),
|
|
@@ -504,30 +500,30 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
504
500
|
maxlength: l.maxlengthNameEn ? e.states.rareMaxlength : "",
|
|
505
501
|
modelValue: e.states.model[l.field.nameEn],
|
|
506
502
|
"onUpdate:modelValue": (o) => e.states.model[l.field.nameEn] = o,
|
|
507
|
-
class:
|
|
503
|
+
class: k(
|
|
508
504
|
(l.isReadonly || l.isReadonlyNameEn || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
509
505
|
),
|
|
510
506
|
readonly: l.readonly,
|
|
511
507
|
type: l.type ? l.type : "text",
|
|
512
508
|
placeholder: l.placeholderNameEn,
|
|
513
509
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNameEn) && !l.openDisabled,
|
|
514
|
-
onKeyup:
|
|
510
|
+
onKeyup: P((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
515
511
|
}, null, 8, ["id", "formatter", "onBlur", "onFocus", "onChange", "onInput", "onMouseenter", "maxlength", "modelValue", "onUpdate:modelValue", "class", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
516
512
|
]),
|
|
517
513
|
_: 2
|
|
518
514
|
}, 1032, ["content", "disabled"])
|
|
519
515
|
]),
|
|
520
516
|
_: 2
|
|
521
|
-
}, 1032, ["rules", "prop"])) :
|
|
517
|
+
}, 1032, ["rules", "prop"])) : u("", !0)
|
|
522
518
|
]),
|
|
523
519
|
_: 2
|
|
524
520
|
}, 1024)
|
|
525
521
|
]),
|
|
526
522
|
_: 2
|
|
527
523
|
}, 1024),
|
|
528
|
-
|
|
524
|
+
g(Y, { gutter: 20 }, {
|
|
529
525
|
default: s(() => [
|
|
530
|
-
|
|
526
|
+
g(H, {
|
|
531
527
|
xs: 24,
|
|
532
528
|
sm: 12,
|
|
533
529
|
md: 12,
|
|
@@ -535,14 +531,14 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
535
531
|
xl: 12
|
|
536
532
|
}, {
|
|
537
533
|
default: s(() => [
|
|
538
|
-
l.field.nameChFamily ? (d(),
|
|
534
|
+
l.field.nameChFamily ? (d(), c(v, {
|
|
539
535
|
key: 0,
|
|
540
536
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.nameChFamily,
|
|
541
537
|
prop: l.field.nameChFamily,
|
|
542
538
|
class: "item-name item-name-bottom"
|
|
543
539
|
}, {
|
|
544
540
|
default: s(() => [
|
|
545
|
-
|
|
541
|
+
g(F, {
|
|
546
542
|
"popper-class": "input-tooltip",
|
|
547
543
|
effect: "light",
|
|
548
544
|
content: e.states.model[typeof l.field.nameChFamily == "string" ? l.field.nameChFamily : ""],
|
|
@@ -551,7 +547,7 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
551
547
|
"trigger-keys": []
|
|
552
548
|
}, {
|
|
553
549
|
default: s(() => [
|
|
554
|
-
|
|
550
|
+
g(N, {
|
|
555
551
|
id: l.field.nameChFamily,
|
|
556
552
|
onBlur: (o) => e.inputBlur(o, l.field.nameChFamily),
|
|
557
553
|
onFocus: (o) => e.inputFocus(o, l.field.nameChFamily),
|
|
@@ -563,7 +559,7 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
563
559
|
l.maxlengthNameChFamily
|
|
564
560
|
),
|
|
565
561
|
maxlength: l != null && l.maxlengthNameChFamily ? e.states.rareMaxlength : "",
|
|
566
|
-
class:
|
|
562
|
+
class: k(
|
|
567
563
|
(l.isReadonly || l.isReadonlyNameChFamily || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
568
564
|
),
|
|
569
565
|
modelValue: e.states.model[l.field.nameChFamily],
|
|
@@ -572,18 +568,18 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
572
568
|
type: l.type ? l.type : "text",
|
|
573
569
|
placeholder: l.placeholderNameChFamily,
|
|
574
570
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNameChFamily) && !l.openDisabled,
|
|
575
|
-
onKeyup:
|
|
571
|
+
onKeyup: P((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
576
572
|
}, null, 8, ["id", "onBlur", "onFocus", "onChange", "onMouseenter", "onInput", "maxlength", "class", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
577
573
|
]),
|
|
578
574
|
_: 2
|
|
579
575
|
}, 1032, ["content", "disabled"])
|
|
580
576
|
]),
|
|
581
577
|
_: 2
|
|
582
|
-
}, 1032, ["rules", "prop"])) :
|
|
578
|
+
}, 1032, ["rules", "prop"])) : u("", !0)
|
|
583
579
|
]),
|
|
584
580
|
_: 2
|
|
585
581
|
}, 1024),
|
|
586
|
-
|
|
582
|
+
g(H, {
|
|
587
583
|
xs: 24,
|
|
588
584
|
sm: 12,
|
|
589
585
|
md: 12,
|
|
@@ -591,14 +587,14 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
591
587
|
xl: 12
|
|
592
588
|
}, {
|
|
593
589
|
default: s(() => [
|
|
594
|
-
l.field.nameCh ? (d(),
|
|
590
|
+
l.field.nameCh ? (d(), c(v, {
|
|
595
591
|
key: 0,
|
|
596
592
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.nameCh,
|
|
597
593
|
prop: l.field.nameCh,
|
|
598
594
|
class: "item-name item-name-bottom"
|
|
599
595
|
}, {
|
|
600
596
|
default: s(() => [
|
|
601
|
-
|
|
597
|
+
g(F, {
|
|
602
598
|
"popper-class": "input-tooltip",
|
|
603
599
|
effect: "light",
|
|
604
600
|
content: e.states.model[typeof l.field.nameCh == "string" ? l.field.nameCh : ""],
|
|
@@ -607,14 +603,14 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
607
603
|
"trigger-keys": []
|
|
608
604
|
}, {
|
|
609
605
|
default: s(() => [
|
|
610
|
-
|
|
606
|
+
g(N, {
|
|
611
607
|
id: l.field.nameCh,
|
|
612
608
|
onBlur: (o) => e.inputBlur(o, l.field.nameCh),
|
|
613
609
|
onFocus: (o) => e.inputFocus(o, l.field.nameCh),
|
|
614
610
|
onChange: (o) => e.inputChange(o, l.field.nameCh, "name"),
|
|
615
611
|
onInput: (o) => e.inputInput(o, l.field.nameCh, l.maxlengthNameCh),
|
|
616
612
|
onMouseenter: (o) => e.visibilityChange(l.field.nameCh),
|
|
617
|
-
class:
|
|
613
|
+
class: k(
|
|
618
614
|
(l.isReadonly || l.isReadonlyNameCh || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
619
615
|
),
|
|
620
616
|
maxlength: l.maxlengthNameCh ? e.states.rareMaxlength : "",
|
|
@@ -624,14 +620,14 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
624
620
|
type: l.type ? l.type : "text",
|
|
625
621
|
placeholder: l.placeholderNameCh,
|
|
626
622
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNameCh) && !l.openDisabled,
|
|
627
|
-
onKeyup:
|
|
623
|
+
onKeyup: P((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
628
624
|
}, null, 8, ["id", "onBlur", "onFocus", "onChange", "onInput", "onMouseenter", "class", "maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
629
625
|
]),
|
|
630
626
|
_: 2
|
|
631
627
|
}, 1032, ["content", "disabled"])
|
|
632
628
|
]),
|
|
633
629
|
_: 2
|
|
634
|
-
}, 1032, ["rules", "prop"])) :
|
|
630
|
+
}, 1032, ["rules", "prop"])) : u("", !0)
|
|
635
631
|
]),
|
|
636
632
|
_: 2
|
|
637
633
|
}, 1024)
|
|
@@ -640,7 +636,7 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
640
636
|
}, 1024)
|
|
641
637
|
]),
|
|
642
638
|
_: 2
|
|
643
|
-
}, 1032, ["label", "disabled"])) : l.type === "gender" && typeof l.field == "string" ? (d(),
|
|
639
|
+
}, 1032, ["label", "disabled"])) : l.type === "gender" && typeof l.field == "string" ? (d(), c(v, {
|
|
644
640
|
key: 3,
|
|
645
641
|
label: l.label,
|
|
646
642
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
@@ -648,16 +644,16 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
648
644
|
class: "radio_row"
|
|
649
645
|
}, {
|
|
650
646
|
label: s(() => [
|
|
651
|
-
l.slotLabelName ?
|
|
647
|
+
l.slotLabelName ? A(_.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), t("div", {
|
|
652
648
|
key: 0,
|
|
653
|
-
style:
|
|
649
|
+
style: w(l.labelStyle)
|
|
654
650
|
}, [
|
|
655
|
-
|
|
656
|
-
l.required ? (d(),
|
|
651
|
+
x(p(l.label) + " ", 1),
|
|
652
|
+
l.required ? (d(), t("span", fe, "*")) : u("", !0)
|
|
657
653
|
], 4))
|
|
658
654
|
]),
|
|
659
655
|
default: s(() => [
|
|
660
|
-
|
|
656
|
+
g(j, {
|
|
661
657
|
modelValue: e.states.model[l.field],
|
|
662
658
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
663
659
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
@@ -666,17 +662,17 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
666
662
|
default: s(() => {
|
|
667
663
|
var o;
|
|
668
664
|
return [
|
|
669
|
-
(d(!0),
|
|
665
|
+
(d(!0), t(I, null, S((o = l.options) == null ? void 0 : o.data, (i) => (d(), c(z, {
|
|
670
666
|
label: i.code,
|
|
671
667
|
size: "large",
|
|
672
668
|
key: i.code
|
|
673
669
|
}, {
|
|
674
670
|
default: s(() => [
|
|
675
|
-
|
|
671
|
+
L("img", {
|
|
676
672
|
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",
|
|
677
673
|
style: { width: "44px", height: "44px", "margin-bottom": "-15px", "margin-left": "4px" },
|
|
678
674
|
alt: ""
|
|
679
|
-
}, null, 8,
|
|
675
|
+
}, null, 8, pe)
|
|
680
676
|
]),
|
|
681
677
|
_: 2
|
|
682
678
|
}, 1032, ["label"]))), 128))
|
|
@@ -686,44 +682,44 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
686
682
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
|
|
687
683
|
]),
|
|
688
684
|
_: 2
|
|
689
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "radio" && typeof l.field == "string" ? (d(),
|
|
685
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "radio" && typeof l.field == "string" ? (d(), c(v, {
|
|
690
686
|
key: 4,
|
|
691
687
|
label: l.label,
|
|
692
688
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
693
689
|
prop: l.field,
|
|
694
|
-
class:
|
|
690
|
+
class: k([l.labelNode ? "radio_Note" : "rule_err"])
|
|
695
691
|
}, {
|
|
696
692
|
label: s(() => [
|
|
697
|
-
l.slotLabelName ?
|
|
693
|
+
l.slotLabelName ? A(_.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), t("div", {
|
|
698
694
|
key: 0,
|
|
699
|
-
style:
|
|
695
|
+
style: w(l.labelStyle)
|
|
700
696
|
}, [
|
|
701
|
-
|
|
702
|
-
l.required ? (d(),
|
|
697
|
+
x(p(l.label) + " ", 1),
|
|
698
|
+
l.required ? (d(), t("span", ye, "*")) : u("", !0)
|
|
703
699
|
], 4))
|
|
704
700
|
]),
|
|
705
701
|
default: s(() => [
|
|
706
|
-
|
|
702
|
+
g(j, {
|
|
707
703
|
modelValue: e.states.model[l.field],
|
|
708
704
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
709
705
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
710
706
|
onChange: (o) => e.radioChange(o, l.field),
|
|
711
|
-
style:
|
|
707
|
+
style: w(
|
|
712
708
|
l.ways === "column" ? "display: flex; align-items: flex-start;flex-flow: column nowrap; " : "display: flex; align-items: flex-start;flex-flow: row nowrap; "
|
|
713
709
|
),
|
|
714
|
-
class:
|
|
710
|
+
class: k(l.ways !== "column" ? "radio_row" : "")
|
|
715
711
|
}, {
|
|
716
712
|
default: s(() => {
|
|
717
713
|
var o;
|
|
718
714
|
return [
|
|
719
|
-
(d(!0),
|
|
715
|
+
(d(!0), t(I, null, S((o = l.options) == null ? void 0 : o.data, (i) => (d(), c(z, {
|
|
720
716
|
size: "large",
|
|
721
717
|
label: i.code,
|
|
722
718
|
key: i.code,
|
|
723
719
|
disabled: i.isDisabled
|
|
724
720
|
}, {
|
|
725
721
|
default: s(() => [
|
|
726
|
-
|
|
722
|
+
x(p(i.name), 1)
|
|
727
723
|
]),
|
|
728
724
|
_: 2
|
|
729
725
|
}, 1032, ["label", "disabled"]))), 128))
|
|
@@ -733,39 +729,39 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
733
729
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange", "style", "class"])
|
|
734
730
|
]),
|
|
735
731
|
_: 2
|
|
736
|
-
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "radioNote" && typeof l.field == "string" ? (d(),
|
|
732
|
+
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "radioNote" && typeof l.field == "string" ? (d(), c(v, {
|
|
737
733
|
key: 5,
|
|
738
734
|
label: l.label,
|
|
739
735
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
740
736
|
prop: l.field,
|
|
741
|
-
class:
|
|
737
|
+
class: k([l.labelNode ? "radio_Note" : "rule_err"])
|
|
742
738
|
}, {
|
|
743
739
|
default: s(() => [
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
l.required ? (d(),
|
|
740
|
+
L("div", null, [
|
|
741
|
+
L("span", ue, p(l.labelBefore), 1),
|
|
742
|
+
L("span", he, p(l.labelNode), 1),
|
|
743
|
+
l.required ? (d(), t("span", be, "*")) : u("", !0)
|
|
748
744
|
]),
|
|
749
|
-
|
|
745
|
+
g(j, {
|
|
750
746
|
modelValue: e.states.model[l.field],
|
|
751
747
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
752
748
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
753
749
|
onChange: (o) => e.radioChange(o, l.field),
|
|
754
|
-
style:
|
|
750
|
+
style: w(
|
|
755
751
|
l.ways === "column" ? "display: flex; align-items: flex-start;flex-flow: column nowrap; " : "display: flex; align-items: flex-start;flex-flow: row nowrap; "
|
|
756
752
|
),
|
|
757
|
-
class:
|
|
753
|
+
class: k(l.ways !== "column" ? "radio_row" : "")
|
|
758
754
|
}, {
|
|
759
755
|
default: s(() => {
|
|
760
756
|
var o;
|
|
761
757
|
return [
|
|
762
|
-
(d(!0),
|
|
758
|
+
(d(!0), t(I, null, S((o = l.options) == null ? void 0 : o.data, (i) => (d(), c(z, {
|
|
763
759
|
size: "large",
|
|
764
760
|
label: i.code,
|
|
765
761
|
key: i.code
|
|
766
762
|
}, {
|
|
767
763
|
default: s(() => [
|
|
768
|
-
|
|
764
|
+
x(p(i.name), 1)
|
|
769
765
|
]),
|
|
770
766
|
_: 2
|
|
771
767
|
}, 1032, ["label"]))), 128))
|
|
@@ -775,41 +771,41 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
775
771
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange", "style", "class"])
|
|
776
772
|
]),
|
|
777
773
|
_: 2
|
|
778
|
-
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "checkbox" && typeof l.field == "string" ? (d(),
|
|
774
|
+
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "checkbox" && typeof l.field == "string" ? (d(), c(v, {
|
|
779
775
|
key: 6,
|
|
780
776
|
label: l.label,
|
|
781
777
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
782
778
|
prop: l.field
|
|
783
779
|
}, {
|
|
784
780
|
label: s(() => [
|
|
785
|
-
l.slotLabelName ?
|
|
781
|
+
l.slotLabelName ? A(_.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), t("div", {
|
|
786
782
|
key: 0,
|
|
787
|
-
style:
|
|
783
|
+
style: w(l.labelStyle)
|
|
788
784
|
}, [
|
|
789
|
-
|
|
790
|
-
l.required ? (d(),
|
|
785
|
+
x(p(l.label) + " ", 1),
|
|
786
|
+
l.required ? (d(), t("span", ge, "*")) : u("", !0)
|
|
791
787
|
], 4))
|
|
792
788
|
]),
|
|
793
789
|
default: s(() => [
|
|
794
|
-
|
|
790
|
+
g(Q, {
|
|
795
791
|
modelValue: e.states.model[l.field],
|
|
796
792
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
797
793
|
onChange: (o) => e.checkChange(o, l.field),
|
|
798
794
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
799
|
-
style:
|
|
795
|
+
style: w(
|
|
800
796
|
l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
|
|
801
797
|
)
|
|
802
798
|
}, {
|
|
803
799
|
default: s(() => {
|
|
804
800
|
var o;
|
|
805
801
|
return [
|
|
806
|
-
(d(!0),
|
|
802
|
+
(d(!0), t(I, null, S((o = l.options) == null ? void 0 : o.data, (i) => (d(), c(W, {
|
|
807
803
|
key: i.code,
|
|
808
804
|
label: i.code,
|
|
809
805
|
disabled: i.isDisabled
|
|
810
806
|
}, {
|
|
811
807
|
default: s(() => [
|
|
812
|
-
|
|
808
|
+
x(p(i.name), 1)
|
|
813
809
|
]),
|
|
814
810
|
_: 2
|
|
815
811
|
}, 1032, ["label", "disabled"]))), 128))
|
|
@@ -819,41 +815,41 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
819
815
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
|
|
820
816
|
]),
|
|
821
817
|
_: 2
|
|
822
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "checkboxRadio" && typeof l.field == "string" ? (d(),
|
|
818
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "checkboxRadio" && typeof l.field == "string" ? (d(), c(v, {
|
|
823
819
|
key: 7,
|
|
824
820
|
label: l.label,
|
|
825
821
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
826
822
|
prop: l.field
|
|
827
823
|
}, {
|
|
828
824
|
label: s(() => [
|
|
829
|
-
l.slotLabelName ?
|
|
825
|
+
l.slotLabelName ? A(_.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), t("div", {
|
|
830
826
|
key: 0,
|
|
831
|
-
style:
|
|
827
|
+
style: w(l.labelStyle)
|
|
832
828
|
}, [
|
|
833
|
-
|
|
834
|
-
l.required ? (d(),
|
|
829
|
+
x(p(l.label) + " ", 1),
|
|
830
|
+
l.required ? (d(), t("span", Ce, "*")) : u("", !0)
|
|
835
831
|
], 4))
|
|
836
832
|
]),
|
|
837
833
|
default: s(() => [
|
|
838
|
-
|
|
834
|
+
g(Q, {
|
|
839
835
|
modelValue: e.states.model[l.field],
|
|
840
836
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
841
837
|
onChange: (o) => e.handleCheckedChange(o, l.field),
|
|
842
838
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
843
|
-
style:
|
|
839
|
+
style: w(
|
|
844
840
|
l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
|
|
845
841
|
)
|
|
846
842
|
}, {
|
|
847
843
|
default: s(() => {
|
|
848
844
|
var o;
|
|
849
845
|
return [
|
|
850
|
-
(d(!0),
|
|
846
|
+
(d(!0), t(I, null, S((o = l.options) == null ? void 0 : o.data, (i) => (d(), c(W, {
|
|
851
847
|
key: i.code,
|
|
852
848
|
label: i.code,
|
|
853
849
|
disabled: i.isDisabled
|
|
854
850
|
}, {
|
|
855
851
|
default: s(() => [
|
|
856
|
-
|
|
852
|
+
x(p(i.name), 1)
|
|
857
853
|
]),
|
|
858
854
|
_: 2
|
|
859
855
|
}, 1032, ["label", "disabled"]))), 128))
|
|
@@ -863,38 +859,38 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
863
859
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
|
|
864
860
|
]),
|
|
865
861
|
_: 2
|
|
866
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "checkboxNote" && typeof l.field == "string" ? (d(),
|
|
862
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "checkboxNote" && typeof l.field == "string" ? (d(), c(v, {
|
|
867
863
|
key: 8,
|
|
868
864
|
label: l.label,
|
|
869
865
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
870
866
|
prop: l.field,
|
|
871
|
-
class:
|
|
867
|
+
class: k([l.labelNode ? "radio_Note" : "rule_err"])
|
|
872
868
|
}, {
|
|
873
869
|
default: s(() => [
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
l.required ? (d(),
|
|
870
|
+
L("div", null, [
|
|
871
|
+
L("span", Le, p(l.labelBefore), 1),
|
|
872
|
+
L("span", _e, p(l.labelNode), 1),
|
|
873
|
+
l.required ? (d(), t("span", we, "*")) : u("", !0)
|
|
878
874
|
]),
|
|
879
|
-
|
|
875
|
+
g(Q, {
|
|
880
876
|
modelValue: e.states.model[l.field],
|
|
881
877
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
882
878
|
onChange: (o) => e.checkChange(o, l.field),
|
|
883
879
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
884
|
-
style:
|
|
880
|
+
style: w(
|
|
885
881
|
l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
|
|
886
882
|
)
|
|
887
883
|
}, {
|
|
888
884
|
default: s(() => {
|
|
889
885
|
var o;
|
|
890
886
|
return [
|
|
891
|
-
(d(!0),
|
|
887
|
+
(d(!0), t(I, null, S((o = l.options) == null ? void 0 : o.data, (i) => (d(), c(W, {
|
|
892
888
|
key: i.code,
|
|
893
889
|
label: i.code,
|
|
894
890
|
disabled: i.isDisabled
|
|
895
891
|
}, {
|
|
896
892
|
default: s(() => [
|
|
897
|
-
|
|
893
|
+
x(p(i.name), 1)
|
|
898
894
|
]),
|
|
899
895
|
_: 2
|
|
900
896
|
}, 1032, ["label", "disabled"]))), 128))
|
|
@@ -904,7 +900,7 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
904
900
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
|
|
905
901
|
]),
|
|
906
902
|
_: 2
|
|
907
|
-
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "select" && typeof l.field == "string" ? (d(),
|
|
903
|
+
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "select" && typeof l.field == "string" ? (d(), c(v, {
|
|
908
904
|
key: 9,
|
|
909
905
|
label: l.label,
|
|
910
906
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
@@ -912,18 +908,18 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
912
908
|
prop: l.field
|
|
913
909
|
}, {
|
|
914
910
|
label: s(() => [
|
|
915
|
-
l.slotLabelName ?
|
|
911
|
+
l.slotLabelName ? A(_.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), t("div", {
|
|
916
912
|
key: 0,
|
|
917
|
-
style:
|
|
913
|
+
style: w(l.labelStyle)
|
|
918
914
|
}, [
|
|
919
|
-
|
|
920
|
-
l.required ? (d(),
|
|
915
|
+
x(p(l.label) + " ", 1),
|
|
916
|
+
l.required ? (d(), t("span", ke, "*")) : u("", !0)
|
|
921
917
|
], 4))
|
|
922
918
|
]),
|
|
923
919
|
default: s(() => {
|
|
924
920
|
var o;
|
|
925
921
|
return [
|
|
926
|
-
|
|
922
|
+
g(F, {
|
|
927
923
|
"popper-class": "select-tooltip",
|
|
928
924
|
effect: "light",
|
|
929
925
|
content: e.contentName(e.states.model[l.field], (o = l.options) == null ? void 0 : o.data),
|
|
@@ -932,8 +928,8 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
932
928
|
"trigger-keys": []
|
|
933
929
|
}, {
|
|
934
930
|
default: s(() => [
|
|
935
|
-
(d(),
|
|
936
|
-
class:
|
|
931
|
+
(d(), c(G, {
|
|
932
|
+
class: k(["tooltip-select", [l.field + (l.uniqueId || ""), (l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "selectreadonly" : ""]]),
|
|
937
933
|
key: e.selectPickerKey,
|
|
938
934
|
id: l.field,
|
|
939
935
|
onMouseenter: (i) => e.visibilityChange(l.field + (l.uniqueId || ""), "select"),
|
|
@@ -965,17 +961,17 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
965
961
|
default: s(() => {
|
|
966
962
|
var i;
|
|
967
963
|
return [
|
|
968
|
-
(d(!0),
|
|
969
|
-
key:
|
|
970
|
-
label:
|
|
971
|
-
value:
|
|
964
|
+
(d(!0), t(I, null, S((i = l.options) == null ? void 0 : i.data, (C) => (d(), c(K, {
|
|
965
|
+
key: C.code,
|
|
966
|
+
label: C.name,
|
|
967
|
+
value: C.code
|
|
972
968
|
}, null, 8, ["label", "value"]))), 128)),
|
|
973
|
-
l.loading ? (d(),
|
|
969
|
+
l.loading ? (d(), c(K, {
|
|
974
970
|
key: 0,
|
|
975
971
|
label: l.selectLoadingText ? l.selectLoadingText : "Loading...",
|
|
976
972
|
class: "select-loading",
|
|
977
973
|
disabled: ""
|
|
978
|
-
}, null, 8, ["label"])) :
|
|
974
|
+
}, null, 8, ["label"])) : u("", !0)
|
|
979
975
|
];
|
|
980
976
|
}),
|
|
981
977
|
_: 2
|
|
@@ -983,14 +979,14 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
983
979
|
]),
|
|
984
980
|
_: 2
|
|
985
981
|
}, 1032, ["content", "disabled"]),
|
|
986
|
-
|
|
982
|
+
L("div", {
|
|
987
983
|
class: "item_tips_blow",
|
|
988
|
-
style:
|
|
989
|
-
},
|
|
984
|
+
style: w(l.tipsBlowStyle)
|
|
985
|
+
}, p(l.tipsBlow), 5)
|
|
990
986
|
];
|
|
991
987
|
}),
|
|
992
988
|
_: 2
|
|
993
|
-
}, 1032, ["label", "rules", "disabled", "prop"])) : l.type === "date" && typeof l.field == "string" ? (d(),
|
|
989
|
+
}, 1032, ["label", "rules", "disabled", "prop"])) : l.type === "date" && typeof l.field == "string" ? (d(), c(v, {
|
|
994
990
|
key: 10,
|
|
995
991
|
label: l.label,
|
|
996
992
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
@@ -998,16 +994,16 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
998
994
|
class: "date_item"
|
|
999
995
|
}, {
|
|
1000
996
|
label: s(() => [
|
|
1001
|
-
l.slotLabelName ?
|
|
997
|
+
l.slotLabelName ? A(_.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), t("div", {
|
|
1002
998
|
key: 0,
|
|
1003
|
-
style:
|
|
999
|
+
style: w(l.labelStyle)
|
|
1004
1000
|
}, [
|
|
1005
|
-
|
|
1006
|
-
l.required ? (d(),
|
|
1001
|
+
x(p(l.label) + " ", 1),
|
|
1002
|
+
l.required ? (d(), t("span", ve, "*")) : u("", !0)
|
|
1007
1003
|
], 4))
|
|
1008
1004
|
]),
|
|
1009
1005
|
default: s(() => [
|
|
1010
|
-
(d(),
|
|
1006
|
+
(d(), c(dl, {
|
|
1011
1007
|
size: "large",
|
|
1012
1008
|
allowClear: !!l.allowClear,
|
|
1013
1009
|
format: l.format || "DD/MM/YYYY",
|
|
@@ -1025,7 +1021,7 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
1025
1021
|
picker: l.picker,
|
|
1026
1022
|
placeholder: l.placeholder || l.label,
|
|
1027
1023
|
key: e.pickerKey,
|
|
1028
|
-
class:
|
|
1024
|
+
class: k((l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""),
|
|
1029
1025
|
presets: l == null ? void 0 : l.presets,
|
|
1030
1026
|
onChange: (o) => e.dateChange(o, l.field ? l.field : "", l == null ? void 0 : l.defaultToady),
|
|
1031
1027
|
onOk: (o) => e.onOk(o, typeof l.field == "string" ? l.field : ""),
|
|
@@ -1034,69 +1030,69 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
1034
1030
|
"clear-icon": e.dateClearIcon
|
|
1035
1031
|
}, ol({
|
|
1036
1032
|
superPrevIcon: s(() => [
|
|
1037
|
-
|
|
1033
|
+
Re
|
|
1038
1034
|
]),
|
|
1039
1035
|
prevIcon: s(() => [
|
|
1040
|
-
|
|
1036
|
+
Oe
|
|
1041
1037
|
]),
|
|
1042
1038
|
nextIcon: s(() => [
|
|
1043
|
-
|
|
1039
|
+
De
|
|
1044
1040
|
]),
|
|
1045
1041
|
superNextIcon: s(() => [
|
|
1046
|
-
|
|
1042
|
+
Ae
|
|
1047
1043
|
]),
|
|
1048
1044
|
_: 2
|
|
1049
1045
|
}, [
|
|
1050
1046
|
l != null && l.defaultToady ? {
|
|
1051
1047
|
name: "dateRender",
|
|
1052
1048
|
fn: s(({ current: o }) => [
|
|
1053
|
-
|
|
1049
|
+
L("div", {
|
|
1054
1050
|
class: "ant-picker-cell-inner",
|
|
1055
|
-
style:
|
|
1056
|
-
},
|
|
1051
|
+
style: w(e.getCurrentStyle(o, l == null ? void 0 : l.defaultToady))
|
|
1052
|
+
}, p(o.date()), 5)
|
|
1057
1053
|
]),
|
|
1058
1054
|
key: "0"
|
|
1059
1055
|
} : void 0,
|
|
1060
1056
|
!(l != null && l.ToadyStatus) || l != null && l.ToadyStatus ? {
|
|
1061
1057
|
name: "renderExtraFooter",
|
|
1062
1058
|
fn: s(() => [
|
|
1063
|
-
l != null && l.disabledDateToday ? (d(),
|
|
1059
|
+
l != null && l.disabledDateToday ? (d(), t("span", {
|
|
1064
1060
|
key: 0,
|
|
1065
|
-
class:
|
|
1066
|
-
},
|
|
1067
|
-
l != null && l.disabledDateToday ?
|
|
1061
|
+
class: k([l != null && l.disabledDateToday ? "disabledDateToday" : "todayClass"])
|
|
1062
|
+
}, p((l == null ? void 0 : l.todayLanguage) || "Today"), 3)) : u("", !0),
|
|
1063
|
+
l != null && l.disabledDateToday ? u("", !0) : (d(), t("span", {
|
|
1068
1064
|
key: 1,
|
|
1069
|
-
class:
|
|
1065
|
+
class: k([l != null && l.disabledDateToday ? "disabledDateToday" : "todayClass"]),
|
|
1070
1066
|
onClick: (o) => e.getDefaultToady(
|
|
1071
1067
|
e.states.model[l.field],
|
|
1072
1068
|
typeof l.field == "string" ? l.field : "",
|
|
1073
1069
|
(l == null ? void 0 : l.defaultToady) || /* @__PURE__ */ new Date()
|
|
1074
1070
|
)
|
|
1075
|
-
},
|
|
1071
|
+
}, p((l == null ? void 0 : l.todayLanguage) || "Today"), 11, xe))
|
|
1076
1072
|
]),
|
|
1077
1073
|
key: "1"
|
|
1078
1074
|
} : void 0
|
|
1079
1075
|
]), 1032, ["allowClear", "format", "defaultPickerValue", "valueFormat", "value", "onUpdate:value", "disabled-date", "suffixIcon", "disabled", "showToday", "renderExtraFooter", "inputReadOnly", "mode", "picker", "placeholder", "class", "presets", "onChange", "onOk", "onBlur", "onOpenChange", "clear-icon"])),
|
|
1080
|
-
l.showTo ? (d(),
|
|
1076
|
+
l.showTo ? (d(), t("span", Fe, p(l.showTo), 1)) : u("", !0)
|
|
1081
1077
|
]),
|
|
1082
1078
|
_: 2
|
|
1083
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "daterange" && typeof l.field == "string" ? (d(),
|
|
1079
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "daterange" && typeof l.field == "string" ? (d(), c(v, {
|
|
1084
1080
|
key: 11,
|
|
1085
1081
|
label: l.label,
|
|
1086
1082
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
1087
1083
|
prop: l.field
|
|
1088
1084
|
}, {
|
|
1089
1085
|
label: s(() => [
|
|
1090
|
-
l.slotLabelName ?
|
|
1086
|
+
l.slotLabelName ? A(_.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), t("div", {
|
|
1091
1087
|
key: 0,
|
|
1092
|
-
style:
|
|
1088
|
+
style: w(l.labelStyle)
|
|
1093
1089
|
}, [
|
|
1094
|
-
|
|
1095
|
-
l.required ? (d(),
|
|
1090
|
+
x(p(l.label) + " ", 1),
|
|
1091
|
+
l.required ? (d(), t("span", Me, "*")) : u("", !0)
|
|
1096
1092
|
], 4))
|
|
1097
1093
|
]),
|
|
1098
1094
|
default: s(() => [
|
|
1099
|
-
(d(),
|
|
1095
|
+
(d(), c(J, {
|
|
1100
1096
|
"popper-class": "selectTriangles",
|
|
1101
1097
|
allowClear: !!l.allowClear,
|
|
1102
1098
|
defaultPickerValue: l == null ? void 0 : l.defaultPickerValue,
|
|
@@ -1113,7 +1109,7 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
1113
1109
|
separator: l.separator || "To",
|
|
1114
1110
|
placeholder: l.placeholder,
|
|
1115
1111
|
size: "large",
|
|
1116
|
-
class:
|
|
1112
|
+
class: k(
|
|
1117
1113
|
[l.field, (l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""]
|
|
1118
1114
|
),
|
|
1119
1115
|
key: e.pickerKeyDaterange,
|
|
@@ -1136,49 +1132,49 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
1136
1132
|
"clear-icon": e.dateClearIcon
|
|
1137
1133
|
}, ol({
|
|
1138
1134
|
superPrevIcon: s(() => [
|
|
1139
|
-
|
|
1135
|
+
Ve
|
|
1140
1136
|
]),
|
|
1141
1137
|
prevIcon: s(() => [
|
|
1142
|
-
|
|
1138
|
+
Ne
|
|
1143
1139
|
]),
|
|
1144
1140
|
nextIcon: s(() => [
|
|
1145
|
-
|
|
1141
|
+
Ie
|
|
1146
1142
|
]),
|
|
1147
1143
|
superNextIcon: s(() => [
|
|
1148
|
-
|
|
1144
|
+
Se
|
|
1149
1145
|
]),
|
|
1150
1146
|
_: 2
|
|
1151
1147
|
}, [
|
|
1152
1148
|
l != null && l.defaultToady ? {
|
|
1153
1149
|
name: "dateRender",
|
|
1154
1150
|
fn: s(({ current: o, info: i }) => [
|
|
1155
|
-
|
|
1151
|
+
L("div", {
|
|
1156
1152
|
class: "ant-picker-cell-inner",
|
|
1157
|
-
style:
|
|
1158
|
-
},
|
|
1153
|
+
style: w(e.getCurrentStyle(o, l == null ? void 0 : l.defaultToady, i, l.field))
|
|
1154
|
+
}, p(o.date()), 5)
|
|
1159
1155
|
]),
|
|
1160
1156
|
key: "0"
|
|
1161
1157
|
} : void 0
|
|
1162
1158
|
]), 1032, ["allowClear", "defaultPickerValue", "format", "valueFormat", "disabled-date", "disabled-time", "showTime", "mode", "picker", "value", "onUpdate:value", "suffixIcon", "separator", "placeholder", "class", "onChange", "onCalendarChange", "onOk", "onOpenChange", "clear-icon"]))
|
|
1163
1159
|
]),
|
|
1164
1160
|
_: 2
|
|
1165
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "datetimerange" && typeof l.field == "string" ? (d(),
|
|
1161
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "datetimerange" && typeof l.field == "string" ? (d(), c(v, {
|
|
1166
1162
|
key: 12,
|
|
1167
1163
|
label: l.label,
|
|
1168
1164
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
1169
1165
|
prop: l.field
|
|
1170
1166
|
}, {
|
|
1171
1167
|
label: s(() => [
|
|
1172
|
-
l.slotLabelName ?
|
|
1168
|
+
l.slotLabelName ? A(_.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), t("div", {
|
|
1173
1169
|
key: 0,
|
|
1174
|
-
style:
|
|
1170
|
+
style: w(l.labelStyle)
|
|
1175
1171
|
}, [
|
|
1176
|
-
|
|
1177
|
-
l.required ? (d(),
|
|
1172
|
+
x(p(l.label) + " ", 1),
|
|
1173
|
+
l.required ? (d(), t("span", Te, "*")) : u("", !0)
|
|
1178
1174
|
], 4))
|
|
1179
1175
|
]),
|
|
1180
1176
|
default: s(() => [
|
|
1181
|
-
(d(),
|
|
1177
|
+
(d(), c(J, {
|
|
1182
1178
|
"popper-class": "selectTriangles",
|
|
1183
1179
|
allowClear: !!l.allowClear,
|
|
1184
1180
|
defaultPickerValue: l == null ? void 0 : l.defaultValue,
|
|
@@ -1195,7 +1191,7 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
1195
1191
|
separator: l.separator || "To",
|
|
1196
1192
|
placeholder: l.placeholder,
|
|
1197
1193
|
size: "large",
|
|
1198
|
-
class:
|
|
1194
|
+
class: k(
|
|
1199
1195
|
(l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
1200
1196
|
),
|
|
1201
1197
|
key: e.datetimerange,
|
|
@@ -1218,7 +1214,7 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
1218
1214
|
}, null, 8, ["allowClear", "defaultPickerValue", "format", "valueFormat", "disabled-date", "disabled-time", "showTime", "mode", "picker", "value", "onUpdate:value", "suffixIcon", "separator", "placeholder", "class", "onChange", "onCalendarChange", "onOk", "onOpenChange", "clear-icon"]))
|
|
1219
1215
|
]),
|
|
1220
1216
|
_: 2
|
|
1221
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "slotItem" ? (d(),
|
|
1217
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "slotItem" ? (d(), c(v, {
|
|
1222
1218
|
key: 13,
|
|
1223
1219
|
label: l.label,
|
|
1224
1220
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
@@ -1226,19 +1222,19 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
1226
1222
|
class: "rule_err"
|
|
1227
1223
|
}, {
|
|
1228
1224
|
label: s(() => [
|
|
1229
|
-
l.slotLabelName ?
|
|
1225
|
+
l.slotLabelName ? A(_.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), t("div", {
|
|
1230
1226
|
key: 0,
|
|
1231
|
-
style:
|
|
1227
|
+
style: w(l.labelStyle)
|
|
1232
1228
|
}, [
|
|
1233
|
-
|
|
1234
|
-
l.required ? (d(),
|
|
1229
|
+
x(p(l.label) + " ", 1),
|
|
1230
|
+
l.required ? (d(), t("span", Be, "*")) : u("", !0)
|
|
1235
1231
|
], 4))
|
|
1236
1232
|
]),
|
|
1237
1233
|
default: s(() => [
|
|
1238
|
-
|
|
1234
|
+
A(_.$slots, l.slotItemName, {}, void 0, !0)
|
|
1239
1235
|
]),
|
|
1240
1236
|
_: 2
|
|
1241
|
-
}, 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 ? (d(),
|
|
1237
|
+
}, 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 ? (d(), c(v, {
|
|
1242
1238
|
key: 14,
|
|
1243
1239
|
label: l.label,
|
|
1244
1240
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.phoneNumber,
|
|
@@ -1246,22 +1242,22 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
1246
1242
|
class: "phone_item"
|
|
1247
1243
|
}, {
|
|
1248
1244
|
label: s(() => [
|
|
1249
|
-
l.slotLabelName ?
|
|
1245
|
+
l.slotLabelName ? A(_.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), t("div", {
|
|
1250
1246
|
key: 0,
|
|
1251
|
-
style:
|
|
1247
|
+
style: w(l.labelStyle)
|
|
1252
1248
|
}, [
|
|
1253
|
-
|
|
1254
|
-
l.required ? (d(),
|
|
1249
|
+
x(p(l.label) + " ", 1),
|
|
1250
|
+
l.required ? (d(), t("span", qe, "*")) : u("", !0)
|
|
1255
1251
|
], 4))
|
|
1256
1252
|
]),
|
|
1257
1253
|
default: s(() => {
|
|
1258
1254
|
var o, i;
|
|
1259
1255
|
return [
|
|
1260
|
-
|
|
1261
|
-
class:
|
|
1256
|
+
L("div", {
|
|
1257
|
+
class: k(e.phoneWrap ? ["phone_item_content", "phone_item_content_wrap"] : "phone_item_content")
|
|
1262
1258
|
}, [
|
|
1263
|
-
e.phoneWrap ? (d(),
|
|
1264
|
-
|
|
1259
|
+
e.phoneWrap ? (d(), t("div", Ee, [
|
|
1260
|
+
g(F, {
|
|
1265
1261
|
"popper-class": "input-tooltip",
|
|
1266
1262
|
effect: "light",
|
|
1267
1263
|
content: e.contentName(e.states.model[l.field.nationCode], (o = l.nationOptions) == null ? void 0 : o.data),
|
|
@@ -1270,43 +1266,43 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
1270
1266
|
"trigger-keys": []
|
|
1271
1267
|
}, {
|
|
1272
1268
|
default: s(() => {
|
|
1273
|
-
var
|
|
1269
|
+
var C, b, U;
|
|
1274
1270
|
return [
|
|
1275
|
-
l.field.nationCode ? (d(),
|
|
1271
|
+
l.field.nationCode ? (d(), c(G, {
|
|
1276
1272
|
key: 0,
|
|
1277
|
-
class:
|
|
1273
|
+
class: k(["tooltip-select", [(l.isReadonly || l.isReadonlyNation || e.formOptions.isAllReadonly) && !l.openDisabled ? "selectreadonly" : "areaCode_input", l.field.nationCode + (l.uniqueId || ""), "nationSelect"]]),
|
|
1278
1274
|
id: l.field.nationCode,
|
|
1279
|
-
onMouseenter: (
|
|
1275
|
+
onMouseenter: (R) => e.visibilityChange(l.field.nationCode + (l.uniqueId || ""), "select", !0),
|
|
1280
1276
|
"popper-class": "selectTriangles selectTrianglesPhone",
|
|
1281
1277
|
teleported: !1,
|
|
1282
1278
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNation) && !l.openDisabled,
|
|
1283
1279
|
modelValue: e.states.model[l.field.nationCode],
|
|
1284
|
-
"onUpdate:modelValue": (
|
|
1285
|
-
placeholder: ((
|
|
1286
|
-
style:
|
|
1280
|
+
"onUpdate:modelValue": (R) => e.states.model[l.field.nationCode] = R,
|
|
1281
|
+
placeholder: ((C = l.nationOptions) == null ? void 0 : C.placeholder) || "",
|
|
1282
|
+
style: w("width:" + l.widthNation),
|
|
1287
1283
|
"fit-input-width": !0,
|
|
1288
1284
|
"suffix-icon": e.IconDropDown,
|
|
1289
1285
|
"clear-icon": e.IconClear,
|
|
1290
|
-
filterable: (
|
|
1286
|
+
filterable: (b = l.nationOptions) == null ? void 0 : b.filterable,
|
|
1291
1287
|
remote: !!((U = l.nationOptions) != null && U.filterable),
|
|
1292
|
-
"remote-method": (
|
|
1293
|
-
onVisibleChange: (
|
|
1288
|
+
"remote-method": (R) => e.handleNationFilter(R, l),
|
|
1289
|
+
onVisibleChange: (R) => e.handleNationVisibleChange(R, l)
|
|
1294
1290
|
}, {
|
|
1295
1291
|
default: s(() => [
|
|
1296
|
-
(d(!0),
|
|
1297
|
-
label:
|
|
1298
|
-
value:
|
|
1299
|
-
key:
|
|
1292
|
+
(d(!0), t(I, null, S(e.getFilteredNationOptions(l), (R) => (d(), c(K, {
|
|
1293
|
+
label: R.name,
|
|
1294
|
+
value: R.code,
|
|
1295
|
+
key: R.code
|
|
1300
1296
|
}, null, 8, ["label", "value"]))), 128))
|
|
1301
1297
|
]),
|
|
1302
1298
|
_: 2
|
|
1303
|
-
}, 1032, ["id", "onMouseenter", "disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class", "style", "suffix-icon", "clear-icon", "filterable", "remote", "remote-method", "onVisibleChange"])) :
|
|
1299
|
+
}, 1032, ["id", "onMouseenter", "disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class", "style", "suffix-icon", "clear-icon", "filterable", "remote", "remote-method", "onVisibleChange"])) : u("", !0)
|
|
1304
1300
|
];
|
|
1305
1301
|
}),
|
|
1306
1302
|
_: 2
|
|
1307
1303
|
}, 1032, ["content", "disabled"]),
|
|
1308
1304
|
Ue,
|
|
1309
|
-
|
|
1305
|
+
g(F, {
|
|
1310
1306
|
"popper-class": "input-tooltip",
|
|
1311
1307
|
effect: "light",
|
|
1312
1308
|
content: e.states.model[typeof l.field.areaCode == "string" ? l.field.areaCode : ""],
|
|
@@ -1315,32 +1311,32 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
1315
1311
|
"trigger-keys": []
|
|
1316
1312
|
}, {
|
|
1317
1313
|
default: s(() => {
|
|
1318
|
-
var
|
|
1314
|
+
var C;
|
|
1319
1315
|
return [
|
|
1320
|
-
l.field.areaCode ? (d(),
|
|
1316
|
+
l.field.areaCode ? (d(), c(N, {
|
|
1321
1317
|
key: 0,
|
|
1322
|
-
class:
|
|
1318
|
+
class: k(["tooltip-input", (l.isReadonly || l.isReadonlyArea || e.formOptions.isAllReadonly) && !l.openDisabled ? "inputReadonly" : "areaCode_input"]),
|
|
1323
1319
|
id: l.field.areaCode,
|
|
1324
|
-
onMouseenter: (
|
|
1325
|
-
onBlur: (
|
|
1326
|
-
onFocus: (
|
|
1327
|
-
onChange: (
|
|
1328
|
-
onInput: (
|
|
1320
|
+
onMouseenter: (b) => e.visibilityChange(l.field.areaCode, "phone-input"),
|
|
1321
|
+
onBlur: (b) => e.inputBlur(b, typeof l.field == "string" ? l.field : l.field.areaCode),
|
|
1322
|
+
onFocus: (b) => e.inputFocus(b, typeof l.field == "string" ? l.field : l.field.areaCode),
|
|
1323
|
+
onChange: (b) => e.inputChange(b, typeof l.field == "string" ? l.field : l.field.areaCode),
|
|
1324
|
+
onInput: (b) => e.inputInput(b, typeof l.field == "string" ? l.field : l.field.areaCode),
|
|
1329
1325
|
maxlength: l.maxlengthAreaCode || 20,
|
|
1330
|
-
formatter: (
|
|
1326
|
+
formatter: (b) => b.replace(/[^\d]/g, ""),
|
|
1331
1327
|
modelValue: e.states.model[l.field.areaCode],
|
|
1332
|
-
"onUpdate:modelValue": (
|
|
1328
|
+
"onUpdate:modelValue": (b) => e.states.model[l.field.areaCode] = b,
|
|
1333
1329
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyArea) && !l.openDisabled,
|
|
1334
|
-
placeholder: ((
|
|
1330
|
+
placeholder: ((C = l.areaOptions) == null ? void 0 : C.placeholder) || "",
|
|
1335
1331
|
clearable: l.clearable
|
|
1336
|
-
}, null, 8, ["id", "onMouseenter", "onBlur", "onFocus", "onChange", "onInput", "maxlength", "formatter", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "clearable"])) :
|
|
1332
|
+
}, null, 8, ["id", "onMouseenter", "onBlur", "onFocus", "onChange", "onInput", "maxlength", "formatter", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "clearable"])) : u("", !0)
|
|
1337
1333
|
];
|
|
1338
1334
|
}),
|
|
1339
1335
|
_: 2
|
|
1340
1336
|
}, 1032, ["content", "disabled"]),
|
|
1341
|
-
|
|
1342
|
-
])) :
|
|
1343
|
-
|
|
1337
|
+
Ze
|
|
1338
|
+
])) : u("", !0),
|
|
1339
|
+
g(F, {
|
|
1344
1340
|
"popper-class": "input-tooltip",
|
|
1345
1341
|
effect: "light",
|
|
1346
1342
|
content: e.contentName(e.states.model[l.field.nationCode], (i = l.nationOptions) == null ? void 0 : i.data),
|
|
@@ -1349,11 +1345,11 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
1349
1345
|
"trigger-keys": []
|
|
1350
1346
|
}, {
|
|
1351
1347
|
default: s(() => {
|
|
1352
|
-
var
|
|
1348
|
+
var C, b, U;
|
|
1353
1349
|
return [
|
|
1354
|
-
l.field.nationCode && !e.phoneWrap ? (d(),
|
|
1350
|
+
l.field.nationCode && !e.phoneWrap ? (d(), c(G, {
|
|
1355
1351
|
key: 0,
|
|
1356
|
-
class:
|
|
1352
|
+
class: k([
|
|
1357
1353
|
"tooltip-select",
|
|
1358
1354
|
[
|
|
1359
1355
|
(l.isReadonly || l.isReadonlyNation || e.formOptions.isAllReadonly) && !l.openDisabled ? "selectreadonly" : "",
|
|
@@ -1362,37 +1358,37 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
1362
1358
|
]
|
|
1363
1359
|
]),
|
|
1364
1360
|
id: l.field.nationCode,
|
|
1365
|
-
onMouseenter: (
|
|
1361
|
+
onMouseenter: (R) => e.visibilityChange(l.field.nationCode + (l.uniqueId || ""), "select", !0),
|
|
1366
1362
|
"popper-class": "selectTriangles selectTrianglesPhone",
|
|
1367
1363
|
teleported: !1,
|
|
1368
1364
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNation) && !l.openDisabled,
|
|
1369
1365
|
modelValue: e.states.model[l.field.nationCode],
|
|
1370
|
-
"onUpdate:modelValue": (
|
|
1371
|
-
placeholder: ((
|
|
1372
|
-
style:
|
|
1366
|
+
"onUpdate:modelValue": (R) => e.states.model[l.field.nationCode] = R,
|
|
1367
|
+
placeholder: ((C = l.nationOptions) == null ? void 0 : C.placeholder) || "",
|
|
1368
|
+
style: w("width:" + l.widthNation),
|
|
1373
1369
|
"fit-input-width": !0,
|
|
1374
1370
|
"suffix-icon": e.IconDropDown,
|
|
1375
1371
|
"clear-icon": e.IconClear,
|
|
1376
|
-
filterable: (
|
|
1372
|
+
filterable: (b = l.nationOptions) == null ? void 0 : b.filterable,
|
|
1377
1373
|
remote: !!((U = l.nationOptions) != null && U.filterable),
|
|
1378
|
-
"remote-method": (
|
|
1379
|
-
onVisibleChange: (
|
|
1374
|
+
"remote-method": (R) => e.handleNationFilter(R, l),
|
|
1375
|
+
onVisibleChange: (R) => e.handleNationVisibleChange(R, l)
|
|
1380
1376
|
}, {
|
|
1381
1377
|
default: s(() => [
|
|
1382
|
-
(d(!0),
|
|
1383
|
-
label:
|
|
1384
|
-
value:
|
|
1385
|
-
key:
|
|
1378
|
+
(d(!0), t(I, null, S(e.getFilteredNationOptions(l), (R) => (d(), c(K, {
|
|
1379
|
+
label: R.name,
|
|
1380
|
+
value: R.code,
|
|
1381
|
+
key: R.code
|
|
1386
1382
|
}, null, 8, ["label", "value"]))), 128))
|
|
1387
1383
|
]),
|
|
1388
1384
|
_: 2
|
|
1389
|
-
}, 1032, ["id", "onMouseenter", "disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class", "style", "suffix-icon", "clear-icon", "filterable", "remote", "remote-method", "onVisibleChange"])) :
|
|
1385
|
+
}, 1032, ["id", "onMouseenter", "disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class", "style", "suffix-icon", "clear-icon", "filterable", "remote", "remote-method", "onVisibleChange"])) : u("", !0)
|
|
1390
1386
|
];
|
|
1391
1387
|
}),
|
|
1392
1388
|
_: 2
|
|
1393
1389
|
}, 1032, ["content", "disabled"]),
|
|
1394
|
-
e.phoneWrap ?
|
|
1395
|
-
|
|
1390
|
+
e.phoneWrap ? u("", !0) : (d(), t("div", He, " - ")),
|
|
1391
|
+
g(F, {
|
|
1396
1392
|
"popper-class": "input-tooltip",
|
|
1397
1393
|
effect: "light",
|
|
1398
1394
|
content: e.states.model[typeof l.field.areaCode == "string" ? l.field.areaCode : ""],
|
|
@@ -1401,47 +1397,47 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
1401
1397
|
"trigger-keys": []
|
|
1402
1398
|
}, {
|
|
1403
1399
|
default: s(() => {
|
|
1404
|
-
var
|
|
1400
|
+
var C;
|
|
1405
1401
|
return [
|
|
1406
|
-
l.field.areaCode && !e.phoneWrap ? (d(),
|
|
1402
|
+
l.field.areaCode && !e.phoneWrap ? (d(), c(N, {
|
|
1407
1403
|
key: 0,
|
|
1408
|
-
class:
|
|
1404
|
+
class: k([
|
|
1409
1405
|
"tooltip-input",
|
|
1410
1406
|
(l.isReadonly || l.isReadonlyArea || e.formOptions.isAllReadonly) && !l.openDisabled ? "inputReadonly" : "areaCode_input"
|
|
1411
1407
|
]),
|
|
1412
1408
|
id: l.field.areaCode,
|
|
1413
|
-
onMouseenter: (
|
|
1414
|
-
onBlur: (
|
|
1415
|
-
|
|
1409
|
+
onMouseenter: (b) => e.visibilityChange(l.field.areaCode, "phone-input"),
|
|
1410
|
+
onBlur: (b) => e.inputBlur(
|
|
1411
|
+
b,
|
|
1416
1412
|
typeof l.field == "string" ? l.field : l.field.areaCode
|
|
1417
1413
|
),
|
|
1418
|
-
onFocus: (
|
|
1419
|
-
|
|
1414
|
+
onFocus: (b) => e.inputFocus(
|
|
1415
|
+
b,
|
|
1420
1416
|
typeof l.field == "string" ? l.field : l.field.areaCode
|
|
1421
1417
|
),
|
|
1422
|
-
onChange: (
|
|
1423
|
-
|
|
1418
|
+
onChange: (b) => e.inputChange(
|
|
1419
|
+
b,
|
|
1424
1420
|
typeof l.field == "string" ? l.field : l.field.areaCode
|
|
1425
1421
|
),
|
|
1426
|
-
onInput: (
|
|
1427
|
-
|
|
1422
|
+
onInput: (b) => e.inputInput(
|
|
1423
|
+
b,
|
|
1428
1424
|
typeof l.field == "string" ? l.field : l.field.areaCode
|
|
1429
1425
|
),
|
|
1430
1426
|
maxlength: l.maxlengthAreaCode || 20,
|
|
1431
|
-
formatter: (
|
|
1427
|
+
formatter: (b) => b.replace(/[^\d]/g, ""),
|
|
1432
1428
|
modelValue: e.states.model[l.field.areaCode],
|
|
1433
|
-
"onUpdate:modelValue": (
|
|
1429
|
+
"onUpdate:modelValue": (b) => e.states.model[l.field.areaCode] = b,
|
|
1434
1430
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyArea) && !l.openDisabled,
|
|
1435
|
-
placeholder: ((
|
|
1436
|
-
style:
|
|
1431
|
+
placeholder: ((C = l.areaOptions) == null ? void 0 : C.placeholder) || "",
|
|
1432
|
+
style: w("width:" + l.widthArea),
|
|
1437
1433
|
clearable: l.clearable
|
|
1438
|
-
}, null, 8, ["id", "onMouseenter", "onBlur", "onFocus", "onChange", "onInput", "maxlength", "formatter", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "style", "clearable"])) :
|
|
1434
|
+
}, null, 8, ["id", "onMouseenter", "onBlur", "onFocus", "onChange", "onInput", "maxlength", "formatter", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "style", "clearable"])) : u("", !0)
|
|
1439
1435
|
];
|
|
1440
1436
|
}),
|
|
1441
1437
|
_: 2
|
|
1442
1438
|
}, 1032, ["content", "disabled"]),
|
|
1443
|
-
e.phoneWrap ?
|
|
1444
|
-
|
|
1439
|
+
e.phoneWrap ? u("", !0) : (d(), t("div", Pe, " - ")),
|
|
1440
|
+
g(F, {
|
|
1445
1441
|
"popper-class": "input-tooltip",
|
|
1446
1442
|
effect: "light",
|
|
1447
1443
|
content: e.states.model[typeof l.field.phoneNumber == "string" ? l.field.phoneNumber : ""],
|
|
@@ -1450,39 +1446,39 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
1450
1446
|
"trigger-keys": []
|
|
1451
1447
|
}, {
|
|
1452
1448
|
default: s(() => [
|
|
1453
|
-
l.field.phoneNumber ? (d(),
|
|
1449
|
+
l.field.phoneNumber ? (d(), c(N, {
|
|
1454
1450
|
key: 0,
|
|
1455
|
-
class:
|
|
1451
|
+
class: k([
|
|
1456
1452
|
"tooltip-input",
|
|
1457
1453
|
(l.isReadonly || l.isReadonlyPhoneNumber || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
1458
1454
|
]),
|
|
1459
1455
|
id: l.field.phoneNumber,
|
|
1460
|
-
onMouseenter: (
|
|
1461
|
-
onBlur: (
|
|
1462
|
-
|
|
1456
|
+
onMouseenter: (C) => e.visibilityChange(l.field.phoneNumber),
|
|
1457
|
+
onBlur: (C) => e.inputBlur(
|
|
1458
|
+
C,
|
|
1463
1459
|
typeof l.field == "string" ? l.field : l.field.phoneNumber
|
|
1464
1460
|
),
|
|
1465
|
-
onFocus: (
|
|
1466
|
-
|
|
1461
|
+
onFocus: (C) => e.inputFocus(
|
|
1462
|
+
C,
|
|
1467
1463
|
typeof l.field == "string" ? l.field : l.field.phoneNumber
|
|
1468
1464
|
),
|
|
1469
|
-
onChange: (
|
|
1470
|
-
|
|
1465
|
+
onChange: (C) => e.inputChange(
|
|
1466
|
+
C,
|
|
1471
1467
|
typeof l.field == "string" ? l.field : l.field.phoneNumber
|
|
1472
1468
|
),
|
|
1473
|
-
onInput: (
|
|
1474
|
-
|
|
1469
|
+
onInput: (C) => e.inputInput(
|
|
1470
|
+
C,
|
|
1475
1471
|
typeof l.field == "string" ? l.field : l.field.phoneNumber
|
|
1476
1472
|
),
|
|
1477
1473
|
maxlength: l.maxlength || 20,
|
|
1478
|
-
formatter: (
|
|
1474
|
+
formatter: (C) => C.replace(/[^\d]/g, ""),
|
|
1479
1475
|
modelValue: e.states.model[l.field.phoneNumber],
|
|
1480
|
-
"onUpdate:modelValue": (
|
|
1476
|
+
"onUpdate:modelValue": (C) => e.states.model[l.field.phoneNumber] = C,
|
|
1481
1477
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyPhoneNumber) && !l.openDisabled,
|
|
1482
1478
|
placeholder: l.placeholder || "",
|
|
1483
|
-
style:
|
|
1479
|
+
style: w("width:" + l.widthPhoneNumber),
|
|
1484
1480
|
clearable: l.clearable
|
|
1485
|
-
}, null, 8, ["id", "onMouseenter", "onBlur", "onFocus", "onChange", "onInput", "maxlength", "formatter", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "style", "clearable"])) :
|
|
1481
|
+
}, null, 8, ["id", "onMouseenter", "onBlur", "onFocus", "onChange", "onInput", "maxlength", "formatter", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "style", "clearable"])) : u("", !0)
|
|
1486
1482
|
]),
|
|
1487
1483
|
_: 2
|
|
1488
1484
|
}, 1032, ["content", "disabled"])
|
|
@@ -1490,31 +1486,31 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
1490
1486
|
];
|
|
1491
1487
|
}),
|
|
1492
1488
|
_: 2
|
|
1493
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "line" ? (d(),
|
|
1489
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "line" ? (d(), c(v, {
|
|
1494
1490
|
key: 15,
|
|
1495
1491
|
label: l.label
|
|
1496
1492
|
}, {
|
|
1497
1493
|
default: s(() => [
|
|
1498
|
-
|
|
1494
|
+
We
|
|
1499
1495
|
]),
|
|
1500
1496
|
_: 2
|
|
1501
|
-
}, 1032, ["label"])) : l.type === "number" && typeof l.field == "string" ? (d(),
|
|
1497
|
+
}, 1032, ["label"])) : l.type === "number" && typeof l.field == "string" ? (d(), c(v, {
|
|
1502
1498
|
key: 16,
|
|
1503
1499
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
1504
1500
|
prop: l.field,
|
|
1505
|
-
class:
|
|
1501
|
+
class: k(l.prepend ? "input-item" : "")
|
|
1506
1502
|
}, {
|
|
1507
1503
|
label: s(() => [
|
|
1508
|
-
l.slotLabelName ?
|
|
1504
|
+
l.slotLabelName ? A(_.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), t("div", {
|
|
1509
1505
|
key: 0,
|
|
1510
|
-
style:
|
|
1506
|
+
style: w(l.labelStyle)
|
|
1511
1507
|
}, [
|
|
1512
|
-
|
|
1513
|
-
l.required ? (d(),
|
|
1508
|
+
x(p(l.label) + " ", 1),
|
|
1509
|
+
l.required ? (d(), t("span", Ke, "*")) : u("", !0)
|
|
1514
1510
|
], 4))
|
|
1515
1511
|
]),
|
|
1516
1512
|
default: s(() => [
|
|
1517
|
-
|
|
1513
|
+
g(N, {
|
|
1518
1514
|
onBlur: (o) => e.inputBlur(
|
|
1519
1515
|
o,
|
|
1520
1516
|
typeof l.field == "string" ? l.field : ""
|
|
@@ -1543,45 +1539,45 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
1543
1539
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
1544
1540
|
showPassword: l.showPassword,
|
|
1545
1541
|
clearable: l.clearable,
|
|
1546
|
-
class:
|
|
1542
|
+
class: k(
|
|
1547
1543
|
(l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
1548
1544
|
),
|
|
1549
|
-
onKeyup:
|
|
1545
|
+
onKeyup: P((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
1550
1546
|
}, ol({ _: 2 }, [
|
|
1551
1547
|
l.prepend ? {
|
|
1552
1548
|
name: "prepend",
|
|
1553
1549
|
fn: s(() => [
|
|
1554
|
-
|
|
1550
|
+
x(p(l.prepend), 1)
|
|
1555
1551
|
]),
|
|
1556
1552
|
key: "0"
|
|
1557
1553
|
} : void 0,
|
|
1558
1554
|
l.append ? {
|
|
1559
1555
|
name: "append",
|
|
1560
1556
|
fn: s(() => [
|
|
1561
|
-
|
|
1557
|
+
x(p(l.append), 1)
|
|
1562
1558
|
]),
|
|
1563
1559
|
key: "1"
|
|
1564
1560
|
} : void 0
|
|
1565
1561
|
]), 1032, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "show-word-limit", "readonly", "type", "rows", "placeholder", "disabled", "showPassword", "clearable", "class", "onKeyup"])
|
|
1566
1562
|
]),
|
|
1567
1563
|
_: 2
|
|
1568
|
-
}, 1032, ["rules", "prop", "class"])) : l.type === "textarea" && typeof l.field == "string" ? (d(),
|
|
1564
|
+
}, 1032, ["rules", "prop", "class"])) : l.type === "textarea" && typeof l.field == "string" ? (d(), c(v, {
|
|
1569
1565
|
key: 17,
|
|
1570
1566
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
1571
1567
|
prop: l.field,
|
|
1572
|
-
class:
|
|
1568
|
+
class: k(l.prepend ? "input-item" : "")
|
|
1573
1569
|
}, {
|
|
1574
1570
|
label: s(() => [
|
|
1575
|
-
l.slotLabelName ?
|
|
1571
|
+
l.slotLabelName ? A(_.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), t("div", {
|
|
1576
1572
|
key: 0,
|
|
1577
|
-
style:
|
|
1573
|
+
style: w(l.labelStyle)
|
|
1578
1574
|
}, [
|
|
1579
|
-
|
|
1580
|
-
l.required ? (d(),
|
|
1575
|
+
x(p(l.label) + " ", 1),
|
|
1576
|
+
l.required ? (d(), t("span", Ye, "*")) : u("", !0)
|
|
1581
1577
|
], 4))
|
|
1582
1578
|
]),
|
|
1583
1579
|
default: s(() => [
|
|
1584
|
-
|
|
1580
|
+
g(F, {
|
|
1585
1581
|
"popper-class": "input-tooltip",
|
|
1586
1582
|
effect: "light",
|
|
1587
1583
|
content: e.states.model[typeof l.field == "string" ? l.field : ""],
|
|
@@ -1590,9 +1586,9 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
1590
1586
|
"trigger-keys": []
|
|
1591
1587
|
}, {
|
|
1592
1588
|
default: s(() => [
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
class:
|
|
1589
|
+
L("div", ze, [
|
|
1590
|
+
g(N, {
|
|
1591
|
+
class: k(["tooltip-input", (l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""]),
|
|
1596
1592
|
id: l.field,
|
|
1597
1593
|
onMouseenter: (o) => e.visibilityChange(l.field),
|
|
1598
1594
|
onBlur: (o) => e.inputBlur(o, typeof l.field == "string" ? l.field : ""),
|
|
@@ -1610,51 +1606,51 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
1610
1606
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
1611
1607
|
showPassword: l.showPassword,
|
|
1612
1608
|
clearable: l.clearable,
|
|
1613
|
-
onKeyup:
|
|
1609
|
+
onKeyup: P((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
1614
1610
|
}, ol({ _: 2 }, [
|
|
1615
1611
|
l.prepend ? {
|
|
1616
1612
|
name: "prepend",
|
|
1617
1613
|
fn: s(() => [
|
|
1618
|
-
|
|
1614
|
+
x(p(l.prepend), 1)
|
|
1619
1615
|
]),
|
|
1620
1616
|
key: "0"
|
|
1621
1617
|
} : void 0,
|
|
1622
1618
|
l.append ? {
|
|
1623
1619
|
name: "append",
|
|
1624
1620
|
fn: s(() => [
|
|
1625
|
-
|
|
1621
|
+
x(p(l.append), 1)
|
|
1626
1622
|
]),
|
|
1627
1623
|
key: "1"
|
|
1628
1624
|
} : void 0
|
|
1629
1625
|
]), 1032, ["id", "onMouseenter", "onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "rows", "placeholder", "disabled", "showPassword", "clearable", "class", "onKeyup"]),
|
|
1630
|
-
l.showWordLimit ? (d(),
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
])) :
|
|
1626
|
+
l.showWordLimit ? (d(), t("div", je, [
|
|
1627
|
+
L("span", null, p(l.textareaLength || 0), 1),
|
|
1628
|
+
x("/"),
|
|
1629
|
+
L("span", null, p(l.maxlength), 1)
|
|
1630
|
+
])) : u("", !0)
|
|
1635
1631
|
])
|
|
1636
1632
|
]),
|
|
1637
1633
|
_: 2
|
|
1638
1634
|
}, 1032, ["content", "disabled"])
|
|
1639
1635
|
]),
|
|
1640
1636
|
_: 2
|
|
1641
|
-
}, 1032, ["rules", "prop", "class"])) : (d(),
|
|
1637
|
+
}, 1032, ["rules", "prop", "class"])) : (d(), c(v, {
|
|
1642
1638
|
key: 18,
|
|
1643
1639
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
1644
1640
|
prop: l.field,
|
|
1645
|
-
class:
|
|
1641
|
+
class: k(l.prepend ? "input-item" : "")
|
|
1646
1642
|
}, {
|
|
1647
1643
|
label: s(() => [
|
|
1648
|
-
l.slotLabelName ?
|
|
1644
|
+
l.slotLabelName ? A(_.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (d(), t("div", {
|
|
1649
1645
|
key: 0,
|
|
1650
|
-
style:
|
|
1646
|
+
style: w(l.labelStyle)
|
|
1651
1647
|
}, [
|
|
1652
|
-
|
|
1653
|
-
l.required ? (d(),
|
|
1648
|
+
x(p(l.label) + " ", 1),
|
|
1649
|
+
l.required ? (d(), t("span", Qe, "*")) : u("", !0)
|
|
1654
1650
|
], 4))
|
|
1655
1651
|
]),
|
|
1656
1652
|
default: s(() => [
|
|
1657
|
-
|
|
1653
|
+
g(F, {
|
|
1658
1654
|
"popper-class": "input-tooltip",
|
|
1659
1655
|
effect: "light",
|
|
1660
1656
|
content: e.states.model[typeof l.field == "string" ? l.field : ""],
|
|
@@ -1663,8 +1659,8 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
1663
1659
|
"trigger-keys": []
|
|
1664
1660
|
}, {
|
|
1665
1661
|
default: s(() => [
|
|
1666
|
-
|
|
1667
|
-
class:
|
|
1662
|
+
g(N, {
|
|
1663
|
+
class: k(["tooltip-input", [(l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""]]),
|
|
1668
1664
|
id: l.field + (l.uniqueId || ""),
|
|
1669
1665
|
onMouseenter: (o) => e.visibilityChange(l.field + (l.uniqueId || "")),
|
|
1670
1666
|
onBlur: (o) => e.inputBlur(o, typeof l.field == "string" ? l.field : ""),
|
|
@@ -1682,19 +1678,19 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
1682
1678
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
1683
1679
|
showPassword: l.showPassword,
|
|
1684
1680
|
clearable: l.clearable,
|
|
1685
|
-
onKeyup:
|
|
1681
|
+
onKeyup: P((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
1686
1682
|
}, ol({ _: 2 }, [
|
|
1687
1683
|
l.prepend ? {
|
|
1688
1684
|
name: "prepend",
|
|
1689
1685
|
fn: s(() => [
|
|
1690
|
-
|
|
1686
|
+
x(p(l.prepend), 1)
|
|
1691
1687
|
]),
|
|
1692
1688
|
key: "0"
|
|
1693
1689
|
} : void 0,
|
|
1694
1690
|
l.append ? {
|
|
1695
1691
|
name: "append",
|
|
1696
1692
|
fn: s(() => [
|
|
1697
|
-
|
|
1693
|
+
x(p(l.append), 1)
|
|
1698
1694
|
]),
|
|
1699
1695
|
key: "1"
|
|
1700
1696
|
} : void 0
|
|
@@ -1714,14 +1710,14 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
1714
1710
|
]),
|
|
1715
1711
|
_: 3
|
|
1716
1712
|
}),
|
|
1717
|
-
|
|
1713
|
+
g(v, { class: "btnsItem" }, {
|
|
1718
1714
|
default: s(() => [
|
|
1719
|
-
|
|
1720
|
-
model:
|
|
1715
|
+
A(_.$slots, "buttons", {
|
|
1716
|
+
model: B.model,
|
|
1721
1717
|
onBtnClick: e.onSubmit
|
|
1722
1718
|
}, () => [
|
|
1723
|
-
(d(!0),
|
|
1724
|
-
l.isShow ? (d(),
|
|
1719
|
+
(d(!0), t(I, null, S(e.formOptions.btnConfig, (l, m) => (d(), t("div", { key: m }, [
|
|
1720
|
+
l.isShow ? (d(), c(X, {
|
|
1725
1721
|
key: 0,
|
|
1726
1722
|
btnCode: l.btnCode,
|
|
1727
1723
|
plain: l.plain,
|
|
@@ -1744,15 +1740,15 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
1744
1740
|
size: l.size,
|
|
1745
1741
|
fontSize: l.fontSize,
|
|
1746
1742
|
fontWeight: l.fontWeight,
|
|
1747
|
-
style:
|
|
1748
|
-
class:
|
|
1743
|
+
style: w(l.style),
|
|
1744
|
+
class: k(l.class),
|
|
1749
1745
|
onHandleClick: (o) => e.handleClick(o, l.isRule, l.emitName)
|
|
1750
1746
|
}, {
|
|
1751
1747
|
default: s(() => [
|
|
1752
|
-
|
|
1748
|
+
x(p(l.name), 1)
|
|
1753
1749
|
]),
|
|
1754
1750
|
_: 2
|
|
1755
|
-
}, 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"])) :
|
|
1751
|
+
}, 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"])) : u("", !0)
|
|
1756
1752
|
]))), 128))
|
|
1757
1753
|
], !0)
|
|
1758
1754
|
]),
|
|
@@ -1762,11 +1758,11 @@ function Ke(N, f, R, e, V, Y) {
|
|
|
1762
1758
|
_: 3
|
|
1763
1759
|
}, 16, ["model", "label-position"]);
|
|
1764
1760
|
}
|
|
1765
|
-
const
|
|
1766
|
-
function
|
|
1767
|
-
|
|
1761
|
+
const kl = /* @__PURE__ */ de(ne, [["render", Ge], ["__scopeId", "data-v-e2a759b3"]]);
|
|
1762
|
+
function cl(_, h = {}) {
|
|
1763
|
+
cl.installed || (cl.installed = !0, _.component("common-el-form", kl));
|
|
1768
1764
|
}
|
|
1769
|
-
|
|
1765
|
+
kl.install = cl;
|
|
1770
1766
|
export {
|
|
1771
|
-
|
|
1767
|
+
kl as default
|
|
1772
1768
|
};
|