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