sinosoft-common-form 2.4.8 → 2.5.0
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 +166 -164
- package/common-form.umd.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
package/common-form.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
const
|
|
1
|
+
import { ref as R, reactive as kl, shallowRef as al, h as nl, computed as wl, onMounted as zl, onBeforeUnmount as Cl, watch as xl, toRefs as Ll, nextTick as yl, resolveComponent as h, openBlock as a, createBlock as i, mergeProps as El, withModifiers as _l, withCtx as n, createVNode as t, createElementBlock as M, Fragment as k, renderList as w, withDirectives as Sl, createElementVNode as b, normalizeStyle as f, toDisplayString as c, createTextVNode as I, createCommentVNode as u, renderSlot as j, normalizeClass as D, withKeys as W, createSlots as X, vShow as Yl, pushScopeId as vl, popScopeId as Rl } from "vue";
|
|
2
|
+
const Ul = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==", Vl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwLjk4MiAyLjU3MTI5SDkuOTc3NTRDOS45MDkyMyAyLjU3MTI5IDkuODQ0OTUgMi42MDQ3NyA5LjgwNDc3IDIuNjU5NjhMNS45OTk4NiA3LjkwNDMzTDIuMTk0OTUgMi42NTk2OEMyLjE1NDc3IDIuNjA0NzcgMi4wOTA0OCAyLjU3MTI5IDIuMDIyMTggMi41NzEyOUgxLjAxNzcxQzAuOTMwNjU5IDIuNTcxMjkgMC44Nzk3NjYgMi42NzA0IDAuOTMwNjU5IDIuNzQxMzhMNS42NTI5OCA5LjI1MTY1QzUuODI0NDEgOS40ODczNiA2LjE3NTMgOS40ODczNiA2LjM0NTM5IDkuMjUxNjVMMTEuMDY3NyAyLjc0MTM4QzExLjExOTkgMi42NzA0IDExLjA2OTEgMi41NzEyOSAxMC45ODIgMi41NzEyOVYyLjU3MTI5WiIgZmlsbD0iI0M3QzhDQSIvPgo8L3N2Zz4K", Fl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTkuOTI5MjEgMS4yNDQ2M0M1LjExNzQ2IDEuMjQ0NjMgMS4yMTU5NCA1LjE0NjE1IDEuMjE1OTQgOS45NTc5QzEuMjE1OTQgMTQuNzY5NiA1LjExNzQ2IDE4LjY3MTIgOS45MjkyMSAxOC42NzEyQzE0Ljc0MSAxOC42NzEyIDE4LjY0MjUgMTQuNzY5NiAxOC42NDI1IDkuOTU3OUMxOC42NDI1IDUuMTQ2MTUgMTQuNzQxIDEuMjQ0NjMgOS45MjkyMSAxLjI0NDYzWk0xMy4xNDYxIDEzLjI2ODJMMTEuODYyNSAxMy4yNjIzTDkuOTI5MjEgMTAuOTU3Nkw3Ljk5NzkgMTMuMjYwNEw2LjcxMjMgMTMuMjY2MkM2LjYyNjczIDEzLjI2NjIgNi41NTY3MSAxMy4xOTgxIDYuNTU2NzEgMTMuMTEwNkM2LjU1NjcxIDEzLjA3MzcgNi41NzAzMiAxMy4wMzg3IDYuNTkzNjYgMTMuMDA5NUw5LjEyNDAxIDkuOTk0ODVMNi41OTM2NiA2Ljk4MjE2QzYuNTcwMTYgNi45NTM2NiA2LjU1NzEyIDYuOTE3OTcgNi41NTY3MSA2Ljg4MTAyQzYuNTU2NzEgNi43OTU0NSA2LjYyNjczIDYuNzI1NDMgNi43MTIzIDYuNzI1NDNMNy45OTc5IDYuNzMxMjdMOS45MjkyMSA5LjAzNkwxMS44NjA1IDYuNzMzMjFMMTMuMTQ0MiA2LjcyNzM4QzEzLjIyOTggNi43MjczOCAxMy4yOTk4IDYuNzk1NDUgMTMuMjk5OCA2Ljg4Mjk3QzEzLjI5OTggNi45MTk5MiAxMy4yODYyIDYuOTU0OTMgMTMuMjYyOCA2Ljk4NDExTDEwLjczNjQgOS45OTY4TDEzLjI2NDggMTMuMDExNEMxMy4yODgxIDEzLjA0MDYgMTMuMzAxNyAxMy4wNzU2IDEzLjMwMTcgMTMuMTEyNkMxMy4zMDE3IDEzLjE5ODEgMTMuMjMxNyAxMy4yNjgyIDEzLjE0NjEgMTMuMjY4MloiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuMjUiLz4KPC9zdmc+Cg==", Wl = {
|
|
3
3
|
props: {
|
|
4
4
|
fieldList: {
|
|
5
5
|
type: Array,
|
|
@@ -22,50 +22,50 @@ const Vl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
22
22
|
options: Object
|
|
23
23
|
},
|
|
24
24
|
setup(p, { emit: g }) {
|
|
25
|
-
const C =
|
|
25
|
+
const C = R(!0), e = kl({
|
|
26
26
|
model: {}
|
|
27
|
-
}), S =
|
|
27
|
+
}), S = R(!0), x = R(null), N = al({
|
|
28
28
|
render() {
|
|
29
29
|
return nl("img", {
|
|
30
|
-
src:
|
|
30
|
+
src: Ul
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
}), O = al({
|
|
34
34
|
render() {
|
|
35
35
|
return nl("img", {
|
|
36
|
-
src:
|
|
36
|
+
src: Vl
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
}), _ = (r) => {
|
|
40
40
|
const s = r.target;
|
|
41
41
|
s.scrollTop + s.clientHeight + 1 >= s.scrollHeight && g("selectChangeScroll");
|
|
42
|
-
},
|
|
42
|
+
}, B = (r, s) => {
|
|
43
43
|
if (r) {
|
|
44
44
|
const y = document.querySelector(".single-select-loadmore .el-select-dropdown__wrap");
|
|
45
45
|
y && y.addEventListener("scroll", _), g("handleVisibleChange", r, s);
|
|
46
46
|
}
|
|
47
|
-
},
|
|
47
|
+
}, Z = al({
|
|
48
48
|
render() {
|
|
49
49
|
return nl("img", {
|
|
50
50
|
src: Fl
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
}),
|
|
53
|
+
}), Q = wl(() => Object.assign([], p.options)), U = () => {
|
|
54
54
|
e.model = p.model;
|
|
55
55
|
}, Y = (r, s, y) => {
|
|
56
|
-
var
|
|
56
|
+
var T;
|
|
57
57
|
s ? (C.value = !1, yl(() => {
|
|
58
58
|
var E;
|
|
59
|
-
(E = x.value) == null || E.validate((
|
|
60
|
-
if (
|
|
59
|
+
(E = x.value) == null || E.validate((v) => {
|
|
60
|
+
if (v)
|
|
61
61
|
g(y || "submit", e.model, r);
|
|
62
62
|
else
|
|
63
63
|
return !1;
|
|
64
64
|
});
|
|
65
|
-
})) : s ? (y === "reset" && ((
|
|
65
|
+
})) : s ? (y === "reset" && ((T = x.value) == null || T.resetFields()), g(y || "submit", e.model, r)) : (C.value = !1, g(y || "submit", e.model, r, x.value));
|
|
66
66
|
}, V = (r, s) => {
|
|
67
67
|
g("selectChange", r, s);
|
|
68
|
-
},
|
|
68
|
+
}, G = (r, s) => {
|
|
69
69
|
g("radioChange", r, s);
|
|
70
70
|
}, L = (r, s) => {
|
|
71
71
|
g("checkChange", r, s);
|
|
@@ -76,17 +76,17 @@ const Vl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
76
76
|
return;
|
|
77
77
|
} else
|
|
78
78
|
y > 1 ? (e.model[s].shift(), g("checkChange", r, s)) : y < 1 && g("checkChange", r, s);
|
|
79
|
-
},
|
|
79
|
+
}, K = (r, s, y) => {
|
|
80
80
|
Y(r, s, y);
|
|
81
81
|
}, $ = (r, s) => {
|
|
82
82
|
r && (s == null ? void 0 : s.key) === "Enter" && Y(void 0, !0, "submit");
|
|
83
|
-
},
|
|
83
|
+
}, q = (r, s, y) => {
|
|
84
84
|
var Ml, il;
|
|
85
|
-
const
|
|
85
|
+
const T = /* @__PURE__ */ new Date(), E = T.getDate().toString().padStart(2, "0"), v = (T.getMonth() + 1).toString().padStart(2, "0"), F = T.getFullYear().toString(), ol = `${E}/${v}/${F}`;
|
|
86
86
|
r === ol && y ? ((Ml = x.value) == null || Ml.validateField(s), e.model[s] = y.format("DD/MM/YYYY"), g("dateChange", y.format("DD/MM/YYYY"), s)) : ((il = x.value) == null || il.validateField(s), g("dateChange", r, s));
|
|
87
87
|
}, l = (r, s) => {
|
|
88
88
|
g("onOk", r, s);
|
|
89
|
-
},
|
|
89
|
+
}, P = (r, s) => {
|
|
90
90
|
g("inputBlur", r, s);
|
|
91
91
|
}, o = (r, s) => {
|
|
92
92
|
g("inputFocus", r, s);
|
|
@@ -94,14 +94,14 @@ const Vl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
94
94
|
g("inputChange", r, s);
|
|
95
95
|
}, A = (r, s) => {
|
|
96
96
|
g("inputInput", r, s);
|
|
97
|
-
},
|
|
97
|
+
}, H = (r) => {
|
|
98
98
|
if (r) {
|
|
99
|
-
var s = document.getElementById(r), y = s.offsetWidth,
|
|
100
|
-
|
|
99
|
+
var s = document.getElementById(r), y = s.offsetWidth, T = s.scrollWidth;
|
|
100
|
+
T > y ? S.value = !1 : S.value = !0;
|
|
101
101
|
} else
|
|
102
102
|
S.value = !0;
|
|
103
|
-
},
|
|
104
|
-
const y = s.find((
|
|
103
|
+
}, fl = (r, s) => {
|
|
104
|
+
const y = s.find((T) => T.code === r);
|
|
105
105
|
return y ? y.name : r;
|
|
106
106
|
}, Dl = (r) => {
|
|
107
107
|
var s;
|
|
@@ -109,45 +109,47 @@ const Vl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
109
109
|
}, bl = (r) => {
|
|
110
110
|
var s;
|
|
111
111
|
(s = x.value) == null || s.clearValidate(r);
|
|
112
|
-
}, ll =
|
|
112
|
+
}, ll = R(!1), sl = () => {
|
|
113
113
|
window.innerWidth < 768, ll.value = !1;
|
|
114
114
|
};
|
|
115
115
|
zl(() => {
|
|
116
116
|
var s;
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
U(), (s = x.value) == null || s.resetFields(), window.addEventListener("resize", sl), document.querySelectorAll(".ant-picker-range .ant-picker-input input").forEach((y, T) => {
|
|
118
|
+
T % 2 !== 0 && (y.setAttribute("disabled", !0), y.setAttribute("color", "rgba(0, 0, 0, 0.88)"));
|
|
119
119
|
});
|
|
120
120
|
}), Cl(() => {
|
|
121
121
|
window.removeEventListener("resize", sl);
|
|
122
122
|
}), xl(
|
|
123
123
|
() => p.fieldList,
|
|
124
124
|
(r, s) => {
|
|
125
|
-
r !== s &&
|
|
125
|
+
r !== s && U();
|
|
126
126
|
}
|
|
127
127
|
);
|
|
128
|
-
const
|
|
129
|
-
r === "" && (
|
|
130
|
-
}, Tl = (r, s, y,
|
|
128
|
+
const J = R(0), el = R(0), rl = R(0), Nl = (r) => {
|
|
129
|
+
r === "" && (J.value += 1);
|
|
130
|
+
}, Tl = (r, s, y, T) => {
|
|
131
131
|
const E = {};
|
|
132
132
|
if (r.date() === s.date() && r.year() === s.year() && r.month() === s.month())
|
|
133
133
|
return E.border = "1px solid #a26628", E.borderRadius = "4px", E;
|
|
134
|
-
g("openStatusNumber", y == null ? void 0 : y.range,
|
|
134
|
+
g("openStatusNumber", y == null ? void 0 : y.range, T);
|
|
135
135
|
}, Il = (r, s, y) => {
|
|
136
|
-
e.model[s] = y.format("DD/MM/YYYY"),
|
|
136
|
+
e.model[s] = y.format("DD/MM/YYYY"), J.value += 1, q(r, s, y), g("getDefaultToady", y, s);
|
|
137
137
|
}, hl = (r, s) => {
|
|
138
138
|
g("calendarChange", r, s);
|
|
139
|
-
}, jl = (r, s, y,
|
|
140
|
-
if (
|
|
141
|
-
return e.model[y] =
|
|
142
|
-
r || (
|
|
139
|
+
}, jl = (r, s, y, T) => {
|
|
140
|
+
if (T)
|
|
141
|
+
return e.model[y] = T;
|
|
142
|
+
r || (J.value += 1), g("openChange", r, y, T);
|
|
143
143
|
};
|
|
144
144
|
el.value = 1;
|
|
145
|
-
const Ol = (r, s, y,
|
|
145
|
+
const Ol = (r, s, y, T) => {
|
|
146
146
|
r || (el.value += 1, yl(() => {
|
|
147
|
-
document.querySelectorAll(".ant-picker-range .ant-picker-input input").forEach((
|
|
148
|
-
|
|
147
|
+
document.querySelectorAll(".ant-picker-range .ant-picker-input input").forEach((v, F) => {
|
|
148
|
+
F % 2 !== 0 && (v.setAttribute("disabled", !0), v.setAttribute("color", "rgba(0, 0, 0, 0.88)"));
|
|
149
|
+
}), T !== void 0 && T[0] && T[1] && document.querySelectorAll(`.ant-picker-range.${y} .ant-picker-input input`).forEach((F, ol) => {
|
|
150
|
+
ol % 2 !== 0 && (F.removeAttribute("disabled"), F.setAttribute("color", "rgba(0, 0, 0, 0.88)"));
|
|
149
151
|
});
|
|
150
|
-
})), g("openDatePickerDaterange", r, s, y,
|
|
152
|
+
})), g("openDatePickerDaterange", r, s, y, T);
|
|
151
153
|
}, Al = (r) => {
|
|
152
154
|
r || (rl.value += 1), g("openDatetimerange", r);
|
|
153
155
|
};
|
|
@@ -156,39 +158,39 @@ const Vl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
156
158
|
formRef: x,
|
|
157
159
|
isShowTooltip: S,
|
|
158
160
|
states: e,
|
|
159
|
-
formOptions:
|
|
161
|
+
formOptions: Q,
|
|
160
162
|
onSubmit: Y,
|
|
161
163
|
selectChange: V,
|
|
162
|
-
radioChange:
|
|
164
|
+
radioChange: G,
|
|
163
165
|
checkChange: L,
|
|
164
166
|
handleCheckedChange: m,
|
|
165
167
|
prefixIcon: N,
|
|
166
168
|
IconDropDown: O,
|
|
167
|
-
IconClear:
|
|
168
|
-
handleClick:
|
|
169
|
+
IconClear: Z,
|
|
170
|
+
handleClick: K,
|
|
169
171
|
handleKeyUp: $,
|
|
170
172
|
resetFieldsTest: Dl,
|
|
171
173
|
clearValidateTest: bl,
|
|
172
|
-
dateChange:
|
|
174
|
+
dateChange: q,
|
|
173
175
|
calendarChange: hl,
|
|
174
176
|
onOk: l,
|
|
175
|
-
inputBlur:
|
|
177
|
+
inputBlur: P,
|
|
176
178
|
inputFocus: o,
|
|
177
179
|
inputChange: d,
|
|
178
180
|
inputInput: A,
|
|
179
181
|
noFormRule: C,
|
|
180
182
|
phoneWrap: ll,
|
|
181
|
-
pickerKey:
|
|
183
|
+
pickerKey: J,
|
|
182
184
|
pickerKeyDaterange: el,
|
|
183
185
|
datetimerange: rl,
|
|
184
186
|
openDatePicker: Nl,
|
|
185
187
|
openDatePickerDaterange: Ol,
|
|
186
188
|
openDatetimerange: Al,
|
|
187
189
|
// spaceRule,
|
|
188
|
-
handleVisibleChange:
|
|
190
|
+
handleVisibleChange: B,
|
|
189
191
|
handleScroll: _,
|
|
190
|
-
visibilityChange:
|
|
191
|
-
contentName:
|
|
192
|
+
visibilityChange: H,
|
|
193
|
+
contentName: fl,
|
|
192
194
|
openChange: jl,
|
|
193
195
|
getCurrentStyle: Tl,
|
|
194
196
|
getDefaultToady: Il
|
|
@@ -200,7 +202,7 @@ const Bl = (p, g) => {
|
|
|
200
202
|
for (const [e, S] of g)
|
|
201
203
|
C[e] = S;
|
|
202
204
|
return C;
|
|
203
|
-
}, z = (p) => (vl("data-v-
|
|
205
|
+
}, z = (p) => (vl("data-v-39a4bbdf"), p = p(), Rl(), p), Zl = { class: "header-title" }, Ql = { class: "title-content" }, Gl = {
|
|
204
206
|
key: 0,
|
|
205
207
|
class: "custom-required"
|
|
206
208
|
}, Pl = {
|
|
@@ -254,10 +256,10 @@ const Bl = (p, g) => {
|
|
|
254
256
|
}, null, -1)), pe = /* @__PURE__ */ z(() => /* @__PURE__ */ b("img", {
|
|
255
257
|
src: gl,
|
|
256
258
|
alt: ""
|
|
257
|
-
}, null, -1)),
|
|
259
|
+
}, null, -1)), te = /* @__PURE__ */ z(() => /* @__PURE__ */ b("img", {
|
|
258
260
|
src: pl,
|
|
259
261
|
alt: ""
|
|
260
|
-
}, null, -1)),
|
|
262
|
+
}, null, -1)), fe = {
|
|
261
263
|
key: 0,
|
|
262
264
|
class: "custom-required"
|
|
263
265
|
}, De = {
|
|
@@ -286,8 +288,8 @@ const Bl = (p, g) => {
|
|
|
286
288
|
class: "custom-required"
|
|
287
289
|
};
|
|
288
290
|
function we(p, g, C, e, S, x) {
|
|
289
|
-
const N = h("el-form-item"), O = h("el-input"), _ = h("el-col"),
|
|
290
|
-
return a(), i(
|
|
291
|
+
const N = h("el-form-item"), O = h("el-input"), _ = h("el-col"), B = h("el-row"), Z = h("el-radio"), Q = h("el-radio-group"), U = h("el-checkbox"), Y = h("el-checkbox-group"), V = h("el-option"), G = h("el-select"), L = h("el-tooltip"), m = h("a-date-picker"), K = h("a-range-picker"), $ = h("sinosoftCommonButton"), q = h("el-form");
|
|
292
|
+
return a(), i(q, El({
|
|
291
293
|
"hide-required-asterisk": "",
|
|
292
294
|
onSubmit: g[0] || (g[0] = _l(() => {
|
|
293
295
|
}, ["prevent"])),
|
|
@@ -298,19 +300,19 @@ function we(p, g, C, e, S, x) {
|
|
|
298
300
|
"scroll-to-error": !0
|
|
299
301
|
}), {
|
|
300
302
|
default: n(() => [
|
|
301
|
-
|
|
303
|
+
t(B, { gutter: 24 }, {
|
|
302
304
|
default: n(() => [
|
|
303
|
-
(a(!0), M(k, null, w(C.fieldList, (l,
|
|
305
|
+
(a(!0), M(k, null, w(C.fieldList, (l, P) => Sl((a(), i(_, {
|
|
304
306
|
xs: l.xs ? l.xs : 24,
|
|
305
307
|
sm: l.sm ? l.sm : 24,
|
|
306
308
|
md: l.md ? l.md : 8,
|
|
307
309
|
lg: l.lg ? l.lg : 8,
|
|
308
310
|
xl: l.xl ? l.xl : 8,
|
|
309
|
-
key:
|
|
311
|
+
key: P
|
|
310
312
|
}, {
|
|
311
313
|
default: n(() => [
|
|
312
314
|
b("div", {
|
|
313
|
-
style:
|
|
315
|
+
style: f(l.style)
|
|
314
316
|
}, [
|
|
315
317
|
l.type === "title" ? (a(), i(N, { key: 0 }, {
|
|
316
318
|
default: n(() => [
|
|
@@ -328,16 +330,16 @@ function we(p, g, C, e, S, x) {
|
|
|
328
330
|
label: n(() => [
|
|
329
331
|
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), M("div", {
|
|
330
332
|
key: 0,
|
|
331
|
-
style:
|
|
333
|
+
style: f(l.labelStyle)
|
|
332
334
|
}, [
|
|
333
|
-
|
|
335
|
+
I(c(l.label) + " ", 1),
|
|
334
336
|
l.required ? (a(), M("span", Gl, "*")) : u("", !0)
|
|
335
337
|
], 4))
|
|
336
338
|
]),
|
|
337
339
|
default: n(() => [
|
|
338
|
-
|
|
340
|
+
t(B, { gutter: 20 }, {
|
|
339
341
|
default: n(() => [
|
|
340
|
-
|
|
342
|
+
t(_, {
|
|
341
343
|
xs: 24,
|
|
342
344
|
sm: 12,
|
|
343
345
|
md: 12,
|
|
@@ -352,7 +354,7 @@ function we(p, g, C, e, S, x) {
|
|
|
352
354
|
class: "item-name item-name-top"
|
|
353
355
|
}, {
|
|
354
356
|
default: n(() => [
|
|
355
|
-
|
|
357
|
+
t(O, {
|
|
356
358
|
onBlur: (o) => e.inputBlur(o, l.field.nameEnFamily),
|
|
357
359
|
onFocus: (o) => e.inputFocus(o, l.field.nameEnFamily),
|
|
358
360
|
onChange: (o) => e.inputChange(o, l.field.nameEnFamily),
|
|
@@ -367,7 +369,7 @@ function we(p, g, C, e, S, x) {
|
|
|
367
369
|
type: l.type ? l.type : "text",
|
|
368
370
|
placeholder: l.placeholderNameEnFamily,
|
|
369
371
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNameEnFamily) && !l.openDisabled,
|
|
370
|
-
onKeyup:
|
|
372
|
+
onKeyup: W((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
371
373
|
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "class", "maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
372
374
|
]),
|
|
373
375
|
_: 2
|
|
@@ -375,7 +377,7 @@ function we(p, g, C, e, S, x) {
|
|
|
375
377
|
]),
|
|
376
378
|
_: 2
|
|
377
379
|
}, 1024),
|
|
378
|
-
|
|
380
|
+
t(_, {
|
|
379
381
|
xs: 24,
|
|
380
382
|
sm: 12,
|
|
381
383
|
md: 12,
|
|
@@ -390,7 +392,7 @@ function we(p, g, C, e, S, x) {
|
|
|
390
392
|
class: "item-name item-name-top"
|
|
391
393
|
}, {
|
|
392
394
|
default: n(() => [
|
|
393
|
-
|
|
395
|
+
t(O, {
|
|
394
396
|
onBlur: (o) => e.inputBlur(o, l.field.nameEn),
|
|
395
397
|
onFocus: (o) => e.inputFocus(o, l.field.nameEn),
|
|
396
398
|
onChange: (o) => e.inputChange(o, l.field.nameEn),
|
|
@@ -405,7 +407,7 @@ function we(p, g, C, e, S, x) {
|
|
|
405
407
|
type: l.type ? l.type : "text",
|
|
406
408
|
placeholder: l.placeholderNameEn,
|
|
407
409
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNameEn) && !l.openDisabled,
|
|
408
|
-
onKeyup:
|
|
410
|
+
onKeyup: W((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
409
411
|
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "class", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
410
412
|
]),
|
|
411
413
|
_: 2
|
|
@@ -416,9 +418,9 @@ function we(p, g, C, e, S, x) {
|
|
|
416
418
|
]),
|
|
417
419
|
_: 2
|
|
418
420
|
}, 1024),
|
|
419
|
-
|
|
421
|
+
t(B, { gutter: 20 }, {
|
|
420
422
|
default: n(() => [
|
|
421
|
-
|
|
423
|
+
t(_, {
|
|
422
424
|
xs: 24,
|
|
423
425
|
sm: 12,
|
|
424
426
|
md: 12,
|
|
@@ -433,7 +435,7 @@ function we(p, g, C, e, S, x) {
|
|
|
433
435
|
class: "item-name item-name-bottom"
|
|
434
436
|
}, {
|
|
435
437
|
default: n(() => [
|
|
436
|
-
|
|
438
|
+
t(O, {
|
|
437
439
|
onBlur: (o) => e.inputBlur(o, l.field.nameChFamily),
|
|
438
440
|
onFocus: (o) => e.inputFocus(o, l.field.nameChFamily),
|
|
439
441
|
onChange: (o) => e.inputChange(o, l.field.nameChFamily),
|
|
@@ -451,7 +453,7 @@ function we(p, g, C, e, S, x) {
|
|
|
451
453
|
type: l.type ? l.type : "text",
|
|
452
454
|
placeholder: l.placeholderNameChFamily,
|
|
453
455
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNameChFamily) && !l.openDisabled,
|
|
454
|
-
onKeyup:
|
|
456
|
+
onKeyup: W((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
455
457
|
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "class", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
456
458
|
]),
|
|
457
459
|
_: 2
|
|
@@ -459,7 +461,7 @@ function we(p, g, C, e, S, x) {
|
|
|
459
461
|
]),
|
|
460
462
|
_: 2
|
|
461
463
|
}, 1024),
|
|
462
|
-
|
|
464
|
+
t(_, {
|
|
463
465
|
xs: 24,
|
|
464
466
|
sm: 12,
|
|
465
467
|
md: 12,
|
|
@@ -474,7 +476,7 @@ function we(p, g, C, e, S, x) {
|
|
|
474
476
|
class: "item-name item-name-bottom"
|
|
475
477
|
}, {
|
|
476
478
|
default: n(() => [
|
|
477
|
-
|
|
479
|
+
t(O, {
|
|
478
480
|
onBlur: (o) => e.inputBlur(o, l.field.nameCh),
|
|
479
481
|
onFocus: (o) => e.inputFocus(o, l.field.nameCh),
|
|
480
482
|
onChange: (o) => e.inputChange(o, l.field.nameCh),
|
|
@@ -489,7 +491,7 @@ function we(p, g, C, e, S, x) {
|
|
|
489
491
|
type: l.type ? l.type : "text",
|
|
490
492
|
placeholder: l.placeholderNameCh,
|
|
491
493
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNameCh) && !l.openDisabled,
|
|
492
|
-
onKeyup:
|
|
494
|
+
onKeyup: W((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
493
495
|
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "class", "maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
494
496
|
]),
|
|
495
497
|
_: 2
|
|
@@ -512,14 +514,14 @@ function we(p, g, C, e, S, x) {
|
|
|
512
514
|
label: n(() => [
|
|
513
515
|
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), M("div", {
|
|
514
516
|
key: 0,
|
|
515
|
-
style:
|
|
517
|
+
style: f(l.labelStyle)
|
|
516
518
|
}, [
|
|
517
|
-
|
|
519
|
+
I(c(l.label) + " ", 1),
|
|
518
520
|
l.required ? (a(), M("span", Pl, "*")) : u("", !0)
|
|
519
521
|
], 4))
|
|
520
522
|
]),
|
|
521
523
|
default: n(() => [
|
|
522
|
-
|
|
524
|
+
t(Q, {
|
|
523
525
|
modelValue: e.states.model[l.field],
|
|
524
526
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
525
527
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
@@ -528,7 +530,7 @@ function we(p, g, C, e, S, x) {
|
|
|
528
530
|
default: n(() => {
|
|
529
531
|
var o;
|
|
530
532
|
return [
|
|
531
|
-
(a(!0), M(k, null, w((o = l.options) == null ? void 0 : o.data, (d) => (a(), i(
|
|
533
|
+
(a(!0), M(k, null, w((o = l.options) == null ? void 0 : o.data, (d) => (a(), i(Z, {
|
|
532
534
|
label: d.code,
|
|
533
535
|
size: "large",
|
|
534
536
|
key: d.code
|
|
@@ -558,19 +560,19 @@ function we(p, g, C, e, S, x) {
|
|
|
558
560
|
label: n(() => [
|
|
559
561
|
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), M("div", {
|
|
560
562
|
key: 0,
|
|
561
|
-
style:
|
|
563
|
+
style: f(l.labelStyle)
|
|
562
564
|
}, [
|
|
563
|
-
|
|
565
|
+
I(c(l.label) + " ", 1),
|
|
564
566
|
l.required ? (a(), M("span", Kl, "*")) : u("", !0)
|
|
565
567
|
], 4))
|
|
566
568
|
]),
|
|
567
569
|
default: n(() => [
|
|
568
|
-
|
|
570
|
+
t(Q, {
|
|
569
571
|
modelValue: e.states.model[l.field],
|
|
570
572
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
571
573
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
572
574
|
onChange: (o) => e.radioChange(o, l.field),
|
|
573
|
-
style:
|
|
575
|
+
style: f(
|
|
574
576
|
l.ways === "column" ? "display: flex; align-items: flex-start;flex-flow: column nowrap; " : "display: flex; align-items: flex-start;flex-flow: row nowrap; "
|
|
575
577
|
),
|
|
576
578
|
class: D(l.ways !== "column" ? "radio_row" : "")
|
|
@@ -578,14 +580,14 @@ function we(p, g, C, e, S, x) {
|
|
|
578
580
|
default: n(() => {
|
|
579
581
|
var o;
|
|
580
582
|
return [
|
|
581
|
-
(a(!0), M(k, null, w((o = l.options) == null ? void 0 : o.data, (d) => (a(), i(
|
|
583
|
+
(a(!0), M(k, null, w((o = l.options) == null ? void 0 : o.data, (d) => (a(), i(Z, {
|
|
582
584
|
size: "large",
|
|
583
585
|
label: d.code,
|
|
584
586
|
key: d.code,
|
|
585
587
|
disabled: d.isDisabled
|
|
586
588
|
}, {
|
|
587
589
|
default: n(() => [
|
|
588
|
-
|
|
590
|
+
I(c(d.name), 1)
|
|
589
591
|
]),
|
|
590
592
|
_: 2
|
|
591
593
|
}, 1032, ["label", "disabled"]))), 128))
|
|
@@ -608,12 +610,12 @@ function we(p, g, C, e, S, x) {
|
|
|
608
610
|
b("span", Jl, c(l.labelNode), 1),
|
|
609
611
|
l.required ? (a(), M("span", Xl, "*")) : u("", !0)
|
|
610
612
|
]),
|
|
611
|
-
|
|
613
|
+
t(Q, {
|
|
612
614
|
modelValue: e.states.model[l.field],
|
|
613
615
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
614
616
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
615
617
|
onChange: (o) => e.radioChange(o, l.field),
|
|
616
|
-
style:
|
|
618
|
+
style: f(
|
|
617
619
|
l.ways === "column" ? "display: flex; align-items: flex-start;flex-flow: column nowrap; " : "display: flex; align-items: flex-start;flex-flow: row nowrap; "
|
|
618
620
|
),
|
|
619
621
|
class: D(l.ways !== "column" ? "radio_row" : "")
|
|
@@ -621,13 +623,13 @@ function we(p, g, C, e, S, x) {
|
|
|
621
623
|
default: n(() => {
|
|
622
624
|
var o;
|
|
623
625
|
return [
|
|
624
|
-
(a(!0), M(k, null, w((o = l.options) == null ? void 0 : o.data, (d) => (a(), i(
|
|
626
|
+
(a(!0), M(k, null, w((o = l.options) == null ? void 0 : o.data, (d) => (a(), i(Z, {
|
|
625
627
|
size: "large",
|
|
626
628
|
label: d.code,
|
|
627
629
|
key: d.code
|
|
628
630
|
}, {
|
|
629
631
|
default: n(() => [
|
|
630
|
-
|
|
632
|
+
I(c(d.name), 1)
|
|
631
633
|
]),
|
|
632
634
|
_: 2
|
|
633
635
|
}, 1032, ["label"]))), 128))
|
|
@@ -646,32 +648,32 @@ function we(p, g, C, e, S, x) {
|
|
|
646
648
|
label: n(() => [
|
|
647
649
|
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), M("div", {
|
|
648
650
|
key: 0,
|
|
649
|
-
style:
|
|
651
|
+
style: f(l.labelStyle)
|
|
650
652
|
}, [
|
|
651
|
-
|
|
653
|
+
I(c(l.label) + " ", 1),
|
|
652
654
|
l.required ? (a(), M("span", ml, "*")) : u("", !0)
|
|
653
655
|
], 4))
|
|
654
656
|
]),
|
|
655
657
|
default: n(() => [
|
|
656
|
-
|
|
658
|
+
t(Y, {
|
|
657
659
|
modelValue: e.states.model[l.field],
|
|
658
660
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
659
661
|
onChange: (o) => e.checkChange(o, l.field),
|
|
660
662
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
661
|
-
style:
|
|
663
|
+
style: f(
|
|
662
664
|
l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
|
|
663
665
|
)
|
|
664
666
|
}, {
|
|
665
667
|
default: n(() => {
|
|
666
668
|
var o;
|
|
667
669
|
return [
|
|
668
|
-
(a(!0), M(k, null, w((o = l.options) == null ? void 0 : o.data, (d) => (a(), i(
|
|
670
|
+
(a(!0), M(k, null, w((o = l.options) == null ? void 0 : o.data, (d) => (a(), i(U, {
|
|
669
671
|
key: d.code,
|
|
670
672
|
label: d.code,
|
|
671
673
|
disabled: d.isDisabled
|
|
672
674
|
}, {
|
|
673
675
|
default: n(() => [
|
|
674
|
-
|
|
676
|
+
I(c(d.name), 1)
|
|
675
677
|
]),
|
|
676
678
|
_: 2
|
|
677
679
|
}, 1032, ["label", "disabled"]))), 128))
|
|
@@ -690,32 +692,32 @@ function we(p, g, C, e, S, x) {
|
|
|
690
692
|
label: n(() => [
|
|
691
693
|
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), M("div", {
|
|
692
694
|
key: 0,
|
|
693
|
-
style:
|
|
695
|
+
style: f(l.labelStyle)
|
|
694
696
|
}, [
|
|
695
|
-
|
|
697
|
+
I(c(l.label) + " ", 1),
|
|
696
698
|
l.required ? (a(), M("span", $l, "*")) : u("", !0)
|
|
697
699
|
], 4))
|
|
698
700
|
]),
|
|
699
701
|
default: n(() => [
|
|
700
|
-
|
|
702
|
+
t(Y, {
|
|
701
703
|
modelValue: e.states.model[l.field],
|
|
702
704
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
703
705
|
onChange: (o) => e.handleCheckedChange(o, l.field),
|
|
704
706
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
705
|
-
style:
|
|
707
|
+
style: f(
|
|
706
708
|
l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
|
|
707
709
|
)
|
|
708
710
|
}, {
|
|
709
711
|
default: n(() => {
|
|
710
712
|
var o;
|
|
711
713
|
return [
|
|
712
|
-
(a(!0), M(k, null, w((o = l.options) == null ? void 0 : o.data, (d) => (a(), i(
|
|
714
|
+
(a(!0), M(k, null, w((o = l.options) == null ? void 0 : o.data, (d) => (a(), i(U, {
|
|
713
715
|
key: d.code,
|
|
714
716
|
label: d.code,
|
|
715
717
|
disabled: d.isDisabled
|
|
716
718
|
}, {
|
|
717
719
|
default: n(() => [
|
|
718
|
-
|
|
720
|
+
I(c(d.name), 1)
|
|
719
721
|
]),
|
|
720
722
|
_: 2
|
|
721
723
|
}, 1032, ["label", "disabled"]))), 128))
|
|
@@ -738,25 +740,25 @@ function we(p, g, C, e, S, x) {
|
|
|
738
740
|
b("span", ee, c(l.labelNode), 1),
|
|
739
741
|
l.required ? (a(), M("span", oe, "*")) : u("", !0)
|
|
740
742
|
]),
|
|
741
|
-
|
|
743
|
+
t(Y, {
|
|
742
744
|
modelValue: e.states.model[l.field],
|
|
743
745
|
"onUpdate:modelValue": (o) => e.states.model[l.field] = o,
|
|
744
746
|
onChange: (o) => e.checkChange(o, l.field),
|
|
745
747
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
746
|
-
style:
|
|
748
|
+
style: f(
|
|
747
749
|
l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
|
|
748
750
|
)
|
|
749
751
|
}, {
|
|
750
752
|
default: n(() => {
|
|
751
753
|
var o;
|
|
752
754
|
return [
|
|
753
|
-
(a(!0), M(k, null, w((o = l.options) == null ? void 0 : o.data, (d) => (a(), i(
|
|
755
|
+
(a(!0), M(k, null, w((o = l.options) == null ? void 0 : o.data, (d) => (a(), i(U, {
|
|
754
756
|
key: d.code,
|
|
755
757
|
label: d.code,
|
|
756
758
|
disabled: d.isDisabled
|
|
757
759
|
}, {
|
|
758
760
|
default: n(() => [
|
|
759
|
-
|
|
761
|
+
I(c(d.name), 1)
|
|
760
762
|
]),
|
|
761
763
|
_: 2
|
|
762
764
|
}, 1032, ["label", "disabled"]))), 128))
|
|
@@ -776,16 +778,16 @@ function we(p, g, C, e, S, x) {
|
|
|
776
778
|
label: n(() => [
|
|
777
779
|
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), M("div", {
|
|
778
780
|
key: 0,
|
|
779
|
-
style:
|
|
781
|
+
style: f(l.labelStyle)
|
|
780
782
|
}, [
|
|
781
|
-
|
|
783
|
+
I(c(l.label) + " ", 1),
|
|
782
784
|
l.required ? (a(), M("span", ae, "*")) : u("", !0)
|
|
783
785
|
], 4))
|
|
784
786
|
]),
|
|
785
787
|
default: n(() => {
|
|
786
788
|
var o;
|
|
787
789
|
return [
|
|
788
|
-
|
|
790
|
+
t(L, {
|
|
789
791
|
"popper-class": "select-tooltip",
|
|
790
792
|
effect: "light",
|
|
791
793
|
content: e.contentName(e.states.model[l.field], (o = l.options) == null ? void 0 : o.data),
|
|
@@ -793,7 +795,7 @@ function we(p, g, C, e, S, x) {
|
|
|
793
795
|
disabled: e.isShowTooltip
|
|
794
796
|
}, {
|
|
795
797
|
default: n(() => [
|
|
796
|
-
|
|
798
|
+
t(G, {
|
|
797
799
|
class: D(["tooltip-select", (l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "selectreadonly" : ""]),
|
|
798
800
|
id: l.field,
|
|
799
801
|
onMouseenter: (d) => e.visibilityChange(l.field),
|
|
@@ -839,7 +841,7 @@ function we(p, g, C, e, S, x) {
|
|
|
839
841
|
}, 1032, ["content", "disabled"]),
|
|
840
842
|
b("div", {
|
|
841
843
|
class: "item_tips_blow",
|
|
842
|
-
style:
|
|
844
|
+
style: f(l.tipsBlowStyle)
|
|
843
845
|
}, c(l.tipsBlow), 5)
|
|
844
846
|
];
|
|
845
847
|
}),
|
|
@@ -854,9 +856,9 @@ function we(p, g, C, e, S, x) {
|
|
|
854
856
|
label: n(() => [
|
|
855
857
|
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), M("div", {
|
|
856
858
|
key: 0,
|
|
857
|
-
style:
|
|
859
|
+
style: f(l.labelStyle)
|
|
858
860
|
}, [
|
|
859
|
-
|
|
861
|
+
I(c(l.label) + " ", 1),
|
|
860
862
|
l.required ? (a(), M("span", ne, "*")) : u("", !0)
|
|
861
863
|
], 4))
|
|
862
864
|
]),
|
|
@@ -914,7 +916,7 @@ function we(p, g, C, e, S, x) {
|
|
|
914
916
|
fn: n(({ current: o }) => [
|
|
915
917
|
b("div", {
|
|
916
918
|
class: "ant-picker-cell-inner",
|
|
917
|
-
style:
|
|
919
|
+
style: f(e.getCurrentStyle(o, l == null ? void 0 : l.defaultToady))
|
|
918
920
|
}, c(o.date()), 5)
|
|
919
921
|
]),
|
|
920
922
|
key: "0"
|
|
@@ -951,14 +953,14 @@ function we(p, g, C, e, S, x) {
|
|
|
951
953
|
label: n(() => [
|
|
952
954
|
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), M("div", {
|
|
953
955
|
key: 0,
|
|
954
|
-
style:
|
|
956
|
+
style: f(l.labelStyle)
|
|
955
957
|
}, [
|
|
956
|
-
|
|
958
|
+
I(c(l.label) + " ", 1),
|
|
957
959
|
l.required ? (a(), M("span", ce, "*")) : u("", !0)
|
|
958
960
|
], 4))
|
|
959
961
|
]),
|
|
960
962
|
default: n(() => [
|
|
961
|
-
(a(), i(
|
|
963
|
+
(a(), i(K, {
|
|
962
964
|
"popper-class": "selectTriangles",
|
|
963
965
|
allowClear: !!l.allowClear,
|
|
964
966
|
defaultPickerValue: l == null ? void 0 : l.defaultPickerValue,
|
|
@@ -976,7 +978,7 @@ function we(p, g, C, e, S, x) {
|
|
|
976
978
|
placeholder: l.placeholder,
|
|
977
979
|
size: "large",
|
|
978
980
|
class: D(
|
|
979
|
-
(l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
981
|
+
[l.field, (l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""]
|
|
980
982
|
),
|
|
981
983
|
key: e.pickerKeyDaterange,
|
|
982
984
|
onChange: (o) => e.dateChange(
|
|
@@ -992,7 +994,7 @@ function we(p, g, C, e, S, x) {
|
|
|
992
994
|
o,
|
|
993
995
|
typeof l.field == "string" ? l.field : ""
|
|
994
996
|
),
|
|
995
|
-
onOpenChange: (o) => e.openDatePickerDaterange(o, l == null ? void 0 : l.defaultToady, l.field)
|
|
997
|
+
onOpenChange: (o) => e.openDatePickerDaterange(o, l == null ? void 0 : l.defaultToady, l.field, e.states.model[l.field])
|
|
996
998
|
}, X({
|
|
997
999
|
superPrevIcon: n(() => [
|
|
998
1000
|
ue
|
|
@@ -1004,7 +1006,7 @@ function we(p, g, C, e, S, x) {
|
|
|
1004
1006
|
pe
|
|
1005
1007
|
]),
|
|
1006
1008
|
superNextIcon: n(() => [
|
|
1007
|
-
|
|
1009
|
+
te
|
|
1008
1010
|
]),
|
|
1009
1011
|
_: 2
|
|
1010
1012
|
}, [
|
|
@@ -1013,7 +1015,7 @@ function we(p, g, C, e, S, x) {
|
|
|
1013
1015
|
fn: n(({ current: o, info: d }) => [
|
|
1014
1016
|
b("div", {
|
|
1015
1017
|
class: "ant-picker-cell-inner",
|
|
1016
|
-
style:
|
|
1018
|
+
style: f(e.getCurrentStyle(o, l == null ? void 0 : l.defaultToady, d, l.field))
|
|
1017
1019
|
}, c(o.date()), 5)
|
|
1018
1020
|
]),
|
|
1019
1021
|
key: "0"
|
|
@@ -1030,14 +1032,14 @@ function we(p, g, C, e, S, x) {
|
|
|
1030
1032
|
label: n(() => [
|
|
1031
1033
|
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), M("div", {
|
|
1032
1034
|
key: 0,
|
|
1033
|
-
style:
|
|
1035
|
+
style: f(l.labelStyle)
|
|
1034
1036
|
}, [
|
|
1035
|
-
|
|
1036
|
-
l.required ? (a(), M("span",
|
|
1037
|
+
I(c(l.label) + " ", 1),
|
|
1038
|
+
l.required ? (a(), M("span", fe, "*")) : u("", !0)
|
|
1037
1039
|
], 4))
|
|
1038
1040
|
]),
|
|
1039
1041
|
default: n(() => [
|
|
1040
|
-
(a(), i(
|
|
1042
|
+
(a(), i(K, {
|
|
1041
1043
|
"popper-class": "selectTriangles",
|
|
1042
1044
|
allowClear: !!l.allowClear,
|
|
1043
1045
|
defaultPickerValue: l == null ? void 0 : l.defaultValue,
|
|
@@ -1084,9 +1086,9 @@ function we(p, g, C, e, S, x) {
|
|
|
1084
1086
|
label: n(() => [
|
|
1085
1087
|
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), M("div", {
|
|
1086
1088
|
key: 0,
|
|
1087
|
-
style:
|
|
1089
|
+
style: f(l.labelStyle)
|
|
1088
1090
|
}, [
|
|
1089
|
-
|
|
1091
|
+
I(c(l.label) + " ", 1),
|
|
1090
1092
|
l.required ? (a(), M("span", De, "*")) : u("", !0)
|
|
1091
1093
|
], 4))
|
|
1092
1094
|
]),
|
|
@@ -1104,9 +1106,9 @@ function we(p, g, C, e, S, x) {
|
|
|
1104
1106
|
label: n(() => [
|
|
1105
1107
|
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), M("div", {
|
|
1106
1108
|
key: 0,
|
|
1107
|
-
style:
|
|
1109
|
+
style: f(l.labelStyle)
|
|
1108
1110
|
}, [
|
|
1109
|
-
|
|
1111
|
+
I(c(l.label) + " ", 1),
|
|
1110
1112
|
l.required ? (a(), M("span", be, "*")) : u("", !0)
|
|
1111
1113
|
], 4))
|
|
1112
1114
|
]),
|
|
@@ -1115,7 +1117,7 @@ function we(p, g, C, e, S, x) {
|
|
|
1115
1117
|
class: D(e.phoneWrap ? ["phone_item_content", "phone_item_content_wrap"] : "phone_item_content")
|
|
1116
1118
|
}, [
|
|
1117
1119
|
e.phoneWrap ? (a(), M("div", Ne, [
|
|
1118
|
-
|
|
1120
|
+
t(L, {
|
|
1119
1121
|
"popper-class": "input-tooltip",
|
|
1120
1122
|
effect: "light",
|
|
1121
1123
|
content: e.states.model[typeof l.field.nationCode == "string" ? l.field.nationCode : ""],
|
|
@@ -1125,7 +1127,7 @@ function we(p, g, C, e, S, x) {
|
|
|
1125
1127
|
default: n(() => {
|
|
1126
1128
|
var o;
|
|
1127
1129
|
return [
|
|
1128
|
-
l.field.nationCode ? (a(), i(
|
|
1130
|
+
l.field.nationCode ? (a(), i(G, {
|
|
1129
1131
|
key: 0,
|
|
1130
1132
|
class: D(["tooltip-select", (l.isReadonly || l.isReadonlyNation || e.formOptions.isAllReadonly) && !l.openDisabled ? "selectreadonly" : "areaCode_input"]),
|
|
1131
1133
|
id: l.field.nationCode,
|
|
@@ -1136,7 +1138,7 @@ function we(p, g, C, e, S, x) {
|
|
|
1136
1138
|
modelValue: e.states.model[l.field.nationCode],
|
|
1137
1139
|
"onUpdate:modelValue": (d) => e.states.model[l.field.nationCode] = d,
|
|
1138
1140
|
placeholder: ((o = l.nationOptions) == null ? void 0 : o.placeholder) || "",
|
|
1139
|
-
style:
|
|
1141
|
+
style: f("width:" + l.widthNation),
|
|
1140
1142
|
"fit-input-width": !0,
|
|
1141
1143
|
"suffix-icon": e.IconDropDown,
|
|
1142
1144
|
"clear-icon": e.IconClear
|
|
@@ -1144,10 +1146,10 @@ function we(p, g, C, e, S, x) {
|
|
|
1144
1146
|
default: n(() => {
|
|
1145
1147
|
var d;
|
|
1146
1148
|
return [
|
|
1147
|
-
(a(!0), M(k, null, w((d = l.nationOptions) == null ? void 0 : d.data, (A,
|
|
1149
|
+
(a(!0), M(k, null, w((d = l.nationOptions) == null ? void 0 : d.data, (A, H) => (a(), i(V, {
|
|
1148
1150
|
label: A.name,
|
|
1149
1151
|
value: A.code,
|
|
1150
|
-
key:
|
|
1152
|
+
key: H
|
|
1151
1153
|
}, null, 8, ["label", "value"]))), 128))
|
|
1152
1154
|
];
|
|
1153
1155
|
}),
|
|
@@ -1158,7 +1160,7 @@ function we(p, g, C, e, S, x) {
|
|
|
1158
1160
|
_: 2
|
|
1159
1161
|
}, 1032, ["content", "disabled"]),
|
|
1160
1162
|
Te,
|
|
1161
|
-
|
|
1163
|
+
t(L, {
|
|
1162
1164
|
"popper-class": "input-tooltip",
|
|
1163
1165
|
effect: "light",
|
|
1164
1166
|
content: e.states.model[typeof l.field.areaCode == "string" ? l.field.areaCode : ""],
|
|
@@ -1203,7 +1205,7 @@ function we(p, g, C, e, S, x) {
|
|
|
1203
1205
|
}, 1032, ["content", "disabled"]),
|
|
1204
1206
|
Ie
|
|
1205
1207
|
])) : u("", !0),
|
|
1206
|
-
|
|
1208
|
+
t(L, {
|
|
1207
1209
|
"popper-class": "input-tooltip",
|
|
1208
1210
|
effect: "light",
|
|
1209
1211
|
content: e.states.model[typeof l.field.nationCode == "string" ? l.field.nationCode : ""],
|
|
@@ -1213,7 +1215,7 @@ function we(p, g, C, e, S, x) {
|
|
|
1213
1215
|
default: n(() => {
|
|
1214
1216
|
var o;
|
|
1215
1217
|
return [
|
|
1216
|
-
l.field.nationCode && !e.phoneWrap ? (a(), i(
|
|
1218
|
+
l.field.nationCode && !e.phoneWrap ? (a(), i(G, {
|
|
1217
1219
|
key: 0,
|
|
1218
1220
|
class: D([
|
|
1219
1221
|
"tooltip-select",
|
|
@@ -1227,7 +1229,7 @@ function we(p, g, C, e, S, x) {
|
|
|
1227
1229
|
modelValue: e.states.model[l.field.nationCode],
|
|
1228
1230
|
"onUpdate:modelValue": (d) => e.states.model[l.field.nationCode] = d,
|
|
1229
1231
|
placeholder: ((o = l.nationOptions) == null ? void 0 : o.placeholder) || "",
|
|
1230
|
-
style:
|
|
1232
|
+
style: f("width:" + l.widthNation),
|
|
1231
1233
|
"fit-input-width": !0,
|
|
1232
1234
|
"suffix-icon": e.IconDropDown,
|
|
1233
1235
|
"clear-icon": e.IconClear
|
|
@@ -1235,10 +1237,10 @@ function we(p, g, C, e, S, x) {
|
|
|
1235
1237
|
default: n(() => {
|
|
1236
1238
|
var d;
|
|
1237
1239
|
return [
|
|
1238
|
-
(a(!0), M(k, null, w((d = l.nationOptions) == null ? void 0 : d.data, (A,
|
|
1240
|
+
(a(!0), M(k, null, w((d = l.nationOptions) == null ? void 0 : d.data, (A, H) => (a(), i(V, {
|
|
1239
1241
|
label: A.name,
|
|
1240
1242
|
value: A.code,
|
|
1241
|
-
key:
|
|
1243
|
+
key: H
|
|
1242
1244
|
}, null, 8, ["label", "value"]))), 128))
|
|
1243
1245
|
];
|
|
1244
1246
|
}),
|
|
@@ -1249,7 +1251,7 @@ function we(p, g, C, e, S, x) {
|
|
|
1249
1251
|
_: 2
|
|
1250
1252
|
}, 1032, ["content", "disabled"]),
|
|
1251
1253
|
e.phoneWrap ? u("", !0) : (a(), M("div", he, " - ")),
|
|
1252
|
-
|
|
1254
|
+
t(L, {
|
|
1253
1255
|
"popper-class": "input-tooltip",
|
|
1254
1256
|
effect: "light",
|
|
1255
1257
|
content: e.states.model[typeof l.field.areaCode == "string" ? l.field.areaCode : ""],
|
|
@@ -1289,7 +1291,7 @@ function we(p, g, C, e, S, x) {
|
|
|
1289
1291
|
"onUpdate:modelValue": (d) => e.states.model[l.field.areaCode] = d,
|
|
1290
1292
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyArea) && !l.openDisabled,
|
|
1291
1293
|
placeholder: ((o = l.areaOptions) == null ? void 0 : o.placeholder) || "",
|
|
1292
|
-
style:
|
|
1294
|
+
style: f("width:" + l.widthArea),
|
|
1293
1295
|
clearable: l.clearable
|
|
1294
1296
|
}, null, 8, ["id", "onMouseenter", "onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "style", "clearable"])) : u("", !0)
|
|
1295
1297
|
];
|
|
@@ -1297,7 +1299,7 @@ function we(p, g, C, e, S, x) {
|
|
|
1297
1299
|
_: 2
|
|
1298
1300
|
}, 1032, ["content", "disabled"]),
|
|
1299
1301
|
e.phoneWrap ? u("", !0) : (a(), M("div", je, " - ")),
|
|
1300
|
-
|
|
1302
|
+
t(L, {
|
|
1301
1303
|
"popper-class": "input-tooltip",
|
|
1302
1304
|
effect: "light",
|
|
1303
1305
|
content: e.states.model[typeof l.field.phoneNumber == "string" ? l.field.phoneNumber : ""],
|
|
@@ -1334,7 +1336,7 @@ function we(p, g, C, e, S, x) {
|
|
|
1334
1336
|
"onUpdate:modelValue": (o) => e.states.model[l.field.phoneNumber] = o,
|
|
1335
1337
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyPhoneNumber) && !l.openDisabled,
|
|
1336
1338
|
placeholder: l.placeholder || "",
|
|
1337
|
-
style:
|
|
1339
|
+
style: f("width:" + l.widthPhoneNumber),
|
|
1338
1340
|
clearable: l.clearable
|
|
1339
1341
|
}, null, 8, ["id", "onMouseenter", "onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "style", "clearable"])) : u("", !0)
|
|
1340
1342
|
]),
|
|
@@ -1360,14 +1362,14 @@ function we(p, g, C, e, S, x) {
|
|
|
1360
1362
|
label: n(() => [
|
|
1361
1363
|
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), M("div", {
|
|
1362
1364
|
key: 0,
|
|
1363
|
-
style:
|
|
1365
|
+
style: f(l.labelStyle)
|
|
1364
1366
|
}, [
|
|
1365
|
-
|
|
1367
|
+
I(c(l.label) + " ", 1),
|
|
1366
1368
|
l.required ? (a(), M("span", Ae, "*")) : u("", !0)
|
|
1367
1369
|
], 4))
|
|
1368
1370
|
]),
|
|
1369
1371
|
default: n(() => [
|
|
1370
|
-
|
|
1372
|
+
t(O, {
|
|
1371
1373
|
onBlur: (o) => e.inputBlur(
|
|
1372
1374
|
o,
|
|
1373
1375
|
typeof l.field == "string" ? l.field : ""
|
|
@@ -1399,19 +1401,19 @@ function we(p, g, C, e, S, x) {
|
|
|
1399
1401
|
class: D(
|
|
1400
1402
|
(l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
1401
1403
|
),
|
|
1402
|
-
onKeyup:
|
|
1404
|
+
onKeyup: W((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
1403
1405
|
}, X({ _: 2 }, [
|
|
1404
1406
|
l.prepend ? {
|
|
1405
1407
|
name: "prepend",
|
|
1406
1408
|
fn: n(() => [
|
|
1407
|
-
|
|
1409
|
+
I(c(l.prepend), 1)
|
|
1408
1410
|
]),
|
|
1409
1411
|
key: "0"
|
|
1410
1412
|
} : void 0,
|
|
1411
1413
|
l.append ? {
|
|
1412
1414
|
name: "append",
|
|
1413
1415
|
fn: n(() => [
|
|
1414
|
-
|
|
1416
|
+
I(c(l.append), 1)
|
|
1415
1417
|
]),
|
|
1416
1418
|
key: "1"
|
|
1417
1419
|
} : void 0
|
|
@@ -1427,14 +1429,14 @@ function we(p, g, C, e, S, x) {
|
|
|
1427
1429
|
label: n(() => [
|
|
1428
1430
|
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (a(), M("div", {
|
|
1429
1431
|
key: 0,
|
|
1430
|
-
style:
|
|
1432
|
+
style: f(l.labelStyle)
|
|
1431
1433
|
}, [
|
|
1432
|
-
|
|
1434
|
+
I(c(l.label) + " ", 1),
|
|
1433
1435
|
l.required ? (a(), M("span", ke, "*")) : u("", !0)
|
|
1434
1436
|
], 4))
|
|
1435
1437
|
]),
|
|
1436
1438
|
default: n(() => [
|
|
1437
|
-
|
|
1439
|
+
t(L, {
|
|
1438
1440
|
"popper-class": "input-tooltip",
|
|
1439
1441
|
effect: "light",
|
|
1440
1442
|
content: e.states.model[typeof l.field == "string" ? l.field : ""],
|
|
@@ -1442,7 +1444,7 @@ function we(p, g, C, e, S, x) {
|
|
|
1442
1444
|
disabled: e.isShowTooltip
|
|
1443
1445
|
}, {
|
|
1444
1446
|
default: n(() => [
|
|
1445
|
-
|
|
1447
|
+
t(O, {
|
|
1446
1448
|
class: D(["tooltip-input", (l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""]),
|
|
1447
1449
|
id: l.field,
|
|
1448
1450
|
onMouseenter: (o) => e.visibilityChange(l.field),
|
|
@@ -1461,19 +1463,19 @@ function we(p, g, C, e, S, x) {
|
|
|
1461
1463
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
1462
1464
|
showPassword: l.showPassword,
|
|
1463
1465
|
clearable: l.clearable,
|
|
1464
|
-
onKeyup:
|
|
1466
|
+
onKeyup: W((o) => e.handleKeyUp(l.enterable), ["enter"])
|
|
1465
1467
|
}, X({ _: 2 }, [
|
|
1466
1468
|
l.prepend ? {
|
|
1467
1469
|
name: "prepend",
|
|
1468
1470
|
fn: n(() => [
|
|
1469
|
-
|
|
1471
|
+
I(c(l.prepend), 1)
|
|
1470
1472
|
]),
|
|
1471
1473
|
key: "0"
|
|
1472
1474
|
} : void 0,
|
|
1473
1475
|
l.append ? {
|
|
1474
1476
|
name: "append",
|
|
1475
1477
|
fn: n(() => [
|
|
1476
|
-
|
|
1478
|
+
I(c(l.append), 1)
|
|
1477
1479
|
]),
|
|
1478
1480
|
key: "1"
|
|
1479
1481
|
} : void 0
|
|
@@ -1493,13 +1495,13 @@ function we(p, g, C, e, S, x) {
|
|
|
1493
1495
|
]),
|
|
1494
1496
|
_: 3
|
|
1495
1497
|
}),
|
|
1496
|
-
|
|
1498
|
+
t(N, { class: "btnsItem" }, {
|
|
1497
1499
|
default: n(() => [
|
|
1498
1500
|
j(p.$slots, "buttons", {
|
|
1499
1501
|
model: C.model,
|
|
1500
1502
|
onBtnClick: e.onSubmit
|
|
1501
1503
|
}, () => [
|
|
1502
|
-
(a(!0), M(k, null, w(e.formOptions.btnConfig, (l,
|
|
1504
|
+
(a(!0), M(k, null, w(e.formOptions.btnConfig, (l, P) => (a(), M("div", { key: P }, [
|
|
1503
1505
|
l.isShow ? (a(), i($, {
|
|
1504
1506
|
key: 0,
|
|
1505
1507
|
btnCode: l.btnCode,
|
|
@@ -1523,12 +1525,12 @@ function we(p, g, C, e, S, x) {
|
|
|
1523
1525
|
size: l.size,
|
|
1524
1526
|
fontSize: l.fontSize,
|
|
1525
1527
|
fontWeight: l.fontWeight,
|
|
1526
|
-
style:
|
|
1528
|
+
style: f(l.style),
|
|
1527
1529
|
class: D(l.class),
|
|
1528
1530
|
onHandleClick: (o) => e.handleClick(o, l.isRule, l.emitName)
|
|
1529
1531
|
}, {
|
|
1530
1532
|
default: n(() => [
|
|
1531
|
-
|
|
1533
|
+
I(c(l.name), 1)
|
|
1532
1534
|
]),
|
|
1533
1535
|
_: 2
|
|
1534
1536
|
}, 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)
|
|
@@ -1541,11 +1543,11 @@ function we(p, g, C, e, S, x) {
|
|
|
1541
1543
|
_: 3
|
|
1542
1544
|
}, 16, ["model", "label-position"]);
|
|
1543
1545
|
}
|
|
1544
|
-
const
|
|
1546
|
+
const tl = /* @__PURE__ */ Bl(Wl, [["render", we], ["__scopeId", "data-v-39a4bbdf"]]);
|
|
1545
1547
|
function dl(p, g = {}) {
|
|
1546
|
-
dl.installed || (dl.installed = !0, p.component("common-el-form",
|
|
1548
|
+
dl.installed || (dl.installed = !0, p.component("common-el-form", tl));
|
|
1547
1549
|
}
|
|
1548
|
-
|
|
1550
|
+
tl.install = dl;
|
|
1549
1551
|
export {
|
|
1550
|
-
|
|
1552
|
+
tl as default
|
|
1551
1553
|
};
|