sinosoft-common-form 2.3.8 → 2.4.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 +354 -345
- 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 v, reactive as
|
|
2
|
-
const
|
|
1
|
+
import { ref as v, reactive as kl, shallowRef as el, h as al, computed as wl, onMounted as zl, onBeforeUnmount as Cl, watch as xl, toRefs as Ll, nextTick as El, resolveComponent as h, openBlock as o, createBlock as i, mergeProps as _l, withModifiers as Sl, withCtx as n, createVNode as f, createElementBlock as M, Fragment as k, renderList as w, withDirectives as Yl, createElementVNode as b, normalizeStyle as D, toDisplayString as c, createTextVNode as T, createCommentVNode as g, renderSlot as j, normalizeClass as t, withKeys as U, createSlots as K, vShow as vl, pushScopeId as Rl, popScopeId as Vl } from "vue";
|
|
2
|
+
const Ul = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAw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M2LjU1NjcxIDEzLjA3MzcgNi41NzAzMiAxMy4wMzg3IDYuNTkzNjYgMTMuMDA5NUw5LjEyNDAxIDkuOTk0ODVMNi41OTM2NiA2Ljk4MjE2QzYuNTcwMTYgNi45NTM2NiA2LjU1NzEyIDYuOTE3OTcgNi41NTY3MSA2Ljg4MTAyQzYuNTU2NzEgNi43OTU0NSA2LjYyNjczIDYuNzI1NDMgNi43MTIzIDYuNzI1NDNMNy45OTc5IDYuNzMxMjdMOS45MjkyMSA5LjAzNkwxMS44NjA1IDYuNzMzMjFMMTMuMTQ0MiA2LjcyNzM4QzEzLjIyOTggNi43MjczOCAxMy4yOTk4IDYuNzk1NDUgMTMuMjk5OCA2Ljg4Mjk3QzEzLjI5OTggNi45MTk5MiAxMy4yODYyIDYuOTU0OTMgMTMuMjYyOCA2Ljk4NDExTDEwLjczNjQgOS45OTY4TDEzLjI2NDggMTMuMDExNEMxMy4yODgxIDEzLjA0MDYgMTMuMzAxNyAxMy4wNzU2IDEzLjMwMTcgMTMuMTEyNkMxMy4zMDE3IDEzLjE5ODEgMTMuMjMxNyAxMy4yNjgyIDEzLjE0NjEgMTMuMjY4MloiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuMjUiLz4KPC9zdmc+Cg==", Bl = {
|
|
3
3
|
props: {
|
|
4
4
|
fieldList: {
|
|
5
5
|
type: Array,
|
|
@@ -21,131 +21,136 @@ const Vl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
21
21
|
},
|
|
22
22
|
options: Object
|
|
23
23
|
},
|
|
24
|
-
setup(p, { emit:
|
|
25
|
-
const C = v(!0), e =
|
|
24
|
+
setup(p, { emit: u }) {
|
|
25
|
+
const C = v(!0), e = kl({
|
|
26
26
|
model: {}
|
|
27
|
-
}), S = v(!0), x = v(null), N =
|
|
27
|
+
}), S = v(!0), x = v(null), N = el({
|
|
28
28
|
render() {
|
|
29
|
-
return
|
|
30
|
-
src:
|
|
29
|
+
return al("img", {
|
|
30
|
+
src: Ul
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
}), O =
|
|
33
|
+
}), O = el({
|
|
34
34
|
render() {
|
|
35
|
-
return
|
|
36
|
-
src:
|
|
35
|
+
return al("img", {
|
|
36
|
+
src: Fl
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
}), E = (s) => {
|
|
40
40
|
const r = s.target;
|
|
41
|
-
r.scrollTop + r.clientHeight + 1 >= r.scrollHeight &&
|
|
41
|
+
r.scrollTop + r.clientHeight + 1 >= r.scrollHeight && u("selectChangeScroll");
|
|
42
42
|
}, F = (s, r) => {
|
|
43
43
|
if (s) {
|
|
44
44
|
const y = document.querySelector(".single-select-loadmore .el-select-dropdown__wrap");
|
|
45
|
-
y && y.addEventListener("scroll", E),
|
|
45
|
+
y && y.addEventListener("scroll", E), u("handleVisibleChange", s, r);
|
|
46
46
|
}
|
|
47
|
-
}, W =
|
|
47
|
+
}, W = el({
|
|
48
48
|
render() {
|
|
49
|
-
return
|
|
50
|
-
src:
|
|
49
|
+
return al("img", {
|
|
50
|
+
src: Wl
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
}), B =
|
|
53
|
+
}), B = wl(() => Object.assign([], p.options)), R = () => {
|
|
54
54
|
e.model = p.model;
|
|
55
55
|
}, Y = (s, r, y) => {
|
|
56
|
-
var
|
|
57
|
-
r ? (C.value = !1,
|
|
56
|
+
var I;
|
|
57
|
+
r ? (C.value = !1, El(() => {
|
|
58
58
|
var _;
|
|
59
|
-
(_ = x.value) == null || _.validate((
|
|
60
|
-
if (
|
|
61
|
-
|
|
59
|
+
(_ = x.value) == null || _.validate((ll) => {
|
|
60
|
+
if (ll)
|
|
61
|
+
u(y || "submit", e.model, s);
|
|
62
62
|
else
|
|
63
63
|
return !1;
|
|
64
64
|
});
|
|
65
|
-
})) : r ? (y === "reset" && ((
|
|
65
|
+
})) : r ? (y === "reset" && ((I = x.value) == null || I.resetFields()), u(y || "submit", e.model, s)) : (C.value = !1, u(y || "submit", e.model, s, x.value));
|
|
66
66
|
}, V = (s, r) => {
|
|
67
|
-
|
|
67
|
+
u("selectChange", s, r);
|
|
68
68
|
}, Z = (s, r) => {
|
|
69
|
-
|
|
69
|
+
u("radioChange", s, r);
|
|
70
70
|
}, L = (s, r) => {
|
|
71
|
-
|
|
71
|
+
u("checkChange", s, r);
|
|
72
72
|
}, q = (s, r) => {
|
|
73
73
|
const y = e.model[r].length;
|
|
74
74
|
if (y === 1) {
|
|
75
|
-
|
|
75
|
+
u("checkChange", s, r);
|
|
76
76
|
return;
|
|
77
77
|
} else
|
|
78
|
-
y > 1 ? (e.model[r].shift(),
|
|
79
|
-
},
|
|
78
|
+
y > 1 ? (e.model[r].shift(), u("checkChange", s, r)) : y < 1 && u("checkChange", s, r);
|
|
79
|
+
}, G = (s, r, y) => {
|
|
80
80
|
Y(s, r, y);
|
|
81
81
|
}, J = (s, r) => {
|
|
82
82
|
s && (r == null ? void 0 : r.key) === "Enter" && Y(void 0, !0, "submit");
|
|
83
83
|
}, H = (s, r, y) => {
|
|
84
84
|
var Ml, il;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
g("inputBlur", s, r);
|
|
85
|
+
const I = /* @__PURE__ */ new Date(), _ = I.getDate().toString().padStart(2, "0"), ll = (I.getMonth() + 1).toString().padStart(2, "0"), Ol = I.getFullYear().toString(), Al = `${_}/${ll}/${Ol}`;
|
|
86
|
+
s === Al && y ? ((Ml = x.value) == null || Ml.validateField(r), e.model[r] = y.format("DD/MM/YYYY"), u("dateChange", y.format("DD/MM/YYYY"), r)) : ((il = x.value) == null || il.validateField(r), u("dateChange", s, r));
|
|
87
|
+
}, l = (s, r, y) => {
|
|
88
|
+
u("panelChange", r, y);
|
|
89
|
+
}, P = (s, r) => {
|
|
90
|
+
u("calendarChange", s, r);
|
|
91
|
+
}, a = (s, r) => {
|
|
92
|
+
u("onOk", s, r);
|
|
94
93
|
}, d = (s, r) => {
|
|
95
|
-
|
|
94
|
+
u("inputBlur", s, r);
|
|
96
95
|
}, A = (s, r) => {
|
|
97
|
-
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
}, fl = (s) => {
|
|
96
|
+
u("inputFocus", s, r);
|
|
97
|
+
}, Q = (s, r) => {
|
|
98
|
+
u("inputChange", s, r);
|
|
99
|
+
}, fl = (s, r) => {
|
|
100
|
+
u("inputInput", s, r);
|
|
101
|
+
}, Dl = (s) => {
|
|
101
102
|
if (s) {
|
|
102
|
-
var r = document.getElementById(s), y = r.offsetWidth,
|
|
103
|
-
|
|
103
|
+
var r = document.getElementById(s), y = r.offsetWidth, I = r.scrollWidth;
|
|
104
|
+
I > y ? S.value = !1 : S.value = !0;
|
|
104
105
|
} else
|
|
105
106
|
S.value = !0;
|
|
106
|
-
},
|
|
107
|
-
const y = r.find((
|
|
107
|
+
}, tl = (s, r) => {
|
|
108
|
+
const y = r.find((I) => I.code === s);
|
|
108
109
|
return y ? y.name : s;
|
|
109
|
-
},
|
|
110
|
+
}, bl = (s) => {
|
|
110
111
|
var r;
|
|
111
112
|
(r = x.value) == null || r.resetFields(s);
|
|
112
|
-
},
|
|
113
|
+
}, Nl = (s) => {
|
|
113
114
|
var r;
|
|
114
115
|
(r = x.value) == null || r.clearValidate(s);
|
|
115
|
-
}, X = v(!1),
|
|
116
|
+
}, X = v(!1), nl = () => {
|
|
116
117
|
window.innerWidth < 768, X.value = !1;
|
|
117
118
|
};
|
|
118
|
-
|
|
119
|
+
zl(() => {
|
|
119
120
|
var s;
|
|
120
|
-
R(), (s = x.value) == null || s.resetFields(), window.addEventListener("resize",
|
|
121
|
-
}),
|
|
122
|
-
window.removeEventListener("resize",
|
|
123
|
-
}),
|
|
121
|
+
R(), (s = x.value) == null || s.resetFields(), window.addEventListener("resize", nl);
|
|
122
|
+
}), Cl(() => {
|
|
123
|
+
window.removeEventListener("resize", nl);
|
|
124
|
+
}), xl(
|
|
124
125
|
() => p.fieldList,
|
|
125
126
|
(s, r) => {
|
|
126
127
|
s !== r && R();
|
|
127
128
|
}
|
|
128
129
|
);
|
|
129
|
-
const m = v(0),
|
|
130
|
+
const m = v(0), $ = v(0), dl = v(0), sl = () => {
|
|
130
131
|
m.value += 1;
|
|
131
|
-
},
|
|
132
|
+
}, Tl = (s, r, y, I) => {
|
|
132
133
|
const _ = {};
|
|
133
134
|
if (s.date() === r.date() && s.year() === r.year() && s.month() === r.month())
|
|
134
135
|
return _.border = "1px solid #a26628", _.borderRadius = "4px", _;
|
|
135
|
-
|
|
136
|
-
},
|
|
137
|
-
e.model[r] = y.format("DD/MM/YYYY"), sl(), H(s, r, y),
|
|
138
|
-
},
|
|
139
|
-
s || (m.value += 1),
|
|
140
|
-
|
|
141
|
-
|
|
136
|
+
u("openStatusNumber", y == null ? void 0 : y.range, I);
|
|
137
|
+
}, Il = (s, r, y) => {
|
|
138
|
+
e.model[r] = y.format("DD/MM/YYYY"), sl(), H(s, r, y), u("getDefaultToady", y, r);
|
|
139
|
+
}, hl = (s, r, y, I) => {
|
|
140
|
+
if (s || (m.value += 1), I)
|
|
141
|
+
return e.model[y] = r;
|
|
142
|
+
u("openChange", s, y, I);
|
|
143
|
+
};
|
|
144
|
+
$.value = 1;
|
|
145
|
+
const rl = (s, r, y) => {
|
|
146
|
+
s || ($.value += 1), u("openDatePickerDaterange", s);
|
|
142
147
|
};
|
|
143
148
|
rl(!0);
|
|
144
|
-
const
|
|
145
|
-
s || (dl.value += 1),
|
|
149
|
+
const jl = (s) => {
|
|
150
|
+
s || (dl.value += 1), u("openDatetimerange", s);
|
|
146
151
|
};
|
|
147
152
|
return {
|
|
148
|
-
...
|
|
153
|
+
...Ll(e),
|
|
149
154
|
formRef: x,
|
|
150
155
|
isShowTooltip: S,
|
|
151
156
|
states: e,
|
|
@@ -158,131 +163,132 @@ const Vl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
158
163
|
prefixIcon: N,
|
|
159
164
|
IconDropDown: O,
|
|
160
165
|
IconClear: W,
|
|
161
|
-
handleClick:
|
|
166
|
+
handleClick: G,
|
|
162
167
|
handleKeyUp: J,
|
|
163
|
-
resetFieldsTest:
|
|
164
|
-
clearValidateTest:
|
|
168
|
+
resetFieldsTest: bl,
|
|
169
|
+
clearValidateTest: Nl,
|
|
165
170
|
dateChange: H,
|
|
166
|
-
calendarChange:
|
|
167
|
-
onOk:
|
|
168
|
-
inputBlur:
|
|
169
|
-
inputFocus:
|
|
170
|
-
inputChange:
|
|
171
|
-
inputInput:
|
|
171
|
+
calendarChange: P,
|
|
172
|
+
onOk: a,
|
|
173
|
+
inputBlur: d,
|
|
174
|
+
inputFocus: A,
|
|
175
|
+
inputChange: Q,
|
|
176
|
+
inputInput: fl,
|
|
172
177
|
noFormRule: C,
|
|
173
178
|
phoneWrap: X,
|
|
174
179
|
pickerKey: m,
|
|
175
|
-
pickerKeyDaterange:
|
|
180
|
+
pickerKeyDaterange: $,
|
|
176
181
|
datetimerange: dl,
|
|
177
182
|
openDatePicker: sl,
|
|
178
183
|
openDatePickerDaterange: rl,
|
|
179
|
-
openDatetimerange:
|
|
184
|
+
openDatetimerange: jl,
|
|
180
185
|
// spaceRule,
|
|
181
186
|
handleVisibleChange: F,
|
|
182
187
|
handleScroll: E,
|
|
183
|
-
visibilityChange:
|
|
184
|
-
contentName:
|
|
185
|
-
openChange:
|
|
186
|
-
getCurrentStyle:
|
|
187
|
-
getDefaultToady:
|
|
188
|
+
visibilityChange: Dl,
|
|
189
|
+
contentName: tl,
|
|
190
|
+
openChange: hl,
|
|
191
|
+
getCurrentStyle: Tl,
|
|
192
|
+
getDefaultToady: Il,
|
|
193
|
+
panelChange: l
|
|
188
194
|
};
|
|
189
195
|
}
|
|
190
196
|
}, yl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjI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3ODYgMTYuMDYwN0w4Ljg3ODYgMjEuMDYwN0wxMC45OTk5IDE4LjkzOTNaTTUuOTk5OTIgMjYuMDYwN0wxMC45OTk5IDIxLjA2MDdMOC44Nzg2IDE4LjkzOTNMMy44Nzg2IDIzLjkzOTNMNS45OTk5MiAyNi4wNjA3Wk0zLjg3ODYgMTMuOTM5M0wyLjgxNzk0IDE1TDQuOTM5MjYgMTcuMTIxM0w1Ljk5OTkyIDE2LjA2MDdMMy44Nzg2IDEzLjkzOTNaTTIuODE3OTQgMjVMMy44Nzg2IDI2LjA2MDdMNS45OTk5MiAyMy45MzkzTDQuOTM5MjYgMjIuODc4N0wyLjgxNzk0IDI1Wk02Ljc1NzI4IDE4LjkzOTNMMi44MTc5NCAyMi44Nzg3TDQuOTM5MjYgMjVMOC44Nzg2IDIxLjA2MDdMNi43NTcyOCAxOC45MzkzWk0yLjgxNzk0IDE3LjEyMTNMNi43NTcyOCAyMS4wNjA3TDguODc4NiAxOC45MzkzTDQuOTM5MjYgMTVMMi44MTc5NCAxNy4xMjEzWiIgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMC4yNSIgbWFzaz0idXJsKCNwYXRoLTMtaW5zaWRlLTJfNDIxXzgxNTkpIi8+Cjwvc3ZnPgo=";
|
|
191
|
-
const
|
|
197
|
+
const Zl = (p, u) => {
|
|
192
198
|
const C = p.__vccOpts || p;
|
|
193
|
-
for (const [e, S] of
|
|
199
|
+
for (const [e, S] of u)
|
|
194
200
|
C[e] = S;
|
|
195
201
|
return C;
|
|
196
|
-
}, z = (p) => (
|
|
202
|
+
}, z = (p) => (Rl("data-v-1de562fa"), p = p(), Vl(), p), Pl = { class: "header-title" }, Ql = { class: "title-content" }, Gl = {
|
|
197
203
|
key: 0,
|
|
198
204
|
class: "custom-required"
|
|
199
|
-
},
|
|
205
|
+
}, Hl = {
|
|
200
206
|
key: 0,
|
|
201
207
|
class: "custom-required"
|
|
202
|
-
},
|
|
208
|
+
}, Kl = ["src"], ql = {
|
|
203
209
|
key: 0,
|
|
204
210
|
class: "custom-required"
|
|
205
|
-
},
|
|
206
|
-
key: 0,
|
|
207
|
-
class: "custom-required"
|
|
208
|
-
}, ml = {
|
|
211
|
+
}, Jl = { class: "lable" }, Xl = { class: "lable_note" }, ml = {
|
|
209
212
|
key: 0,
|
|
210
213
|
class: "custom-required"
|
|
211
214
|
}, $l = {
|
|
212
215
|
key: 0,
|
|
213
216
|
class: "custom-required"
|
|
214
|
-
}, le = {
|
|
217
|
+
}, le = {
|
|
215
218
|
key: 0,
|
|
216
219
|
class: "custom-required"
|
|
217
|
-
}, ae = {
|
|
220
|
+
}, ee = { class: "lable" }, ae = { class: "lable_note" }, oe = {
|
|
218
221
|
key: 0,
|
|
219
222
|
class: "custom-required"
|
|
220
223
|
}, ne = {
|
|
221
224
|
key: 0,
|
|
222
225
|
class: "custom-required"
|
|
223
|
-
}, de =
|
|
226
|
+
}, de = {
|
|
227
|
+
key: 0,
|
|
228
|
+
class: "custom-required"
|
|
229
|
+
}, se = ["onClick"], re = /* @__PURE__ */ z(() => /* @__PURE__ */ b("img", {
|
|
224
230
|
src: yl,
|
|
225
231
|
alt: ""
|
|
226
|
-
}, null, -1)),
|
|
232
|
+
}, null, -1)), Me = /* @__PURE__ */ z(() => /* @__PURE__ */ b("img", {
|
|
227
233
|
src: cl,
|
|
228
234
|
alt: ""
|
|
229
|
-
}, null, -1)),
|
|
235
|
+
}, null, -1)), ie = /* @__PURE__ */ z(() => /* @__PURE__ */ b("img", {
|
|
230
236
|
src: ul,
|
|
231
237
|
alt: ""
|
|
232
|
-
}, null, -1)),
|
|
238
|
+
}, null, -1)), ye = /* @__PURE__ */ z(() => /* @__PURE__ */ b("img", {
|
|
233
239
|
src: gl,
|
|
234
240
|
alt: ""
|
|
235
|
-
}, null, -1)),
|
|
241
|
+
}, null, -1)), ce = {
|
|
236
242
|
key: 0,
|
|
237
243
|
class: "date_to"
|
|
238
|
-
},
|
|
244
|
+
}, ue = {
|
|
239
245
|
key: 0,
|
|
240
246
|
class: "custom-required"
|
|
241
|
-
},
|
|
247
|
+
}, ge = /* @__PURE__ */ z(() => /* @__PURE__ */ b("img", {
|
|
242
248
|
src: yl,
|
|
243
249
|
alt: ""
|
|
244
|
-
}, null, -1)),
|
|
250
|
+
}, null, -1)), pe = /* @__PURE__ */ z(() => /* @__PURE__ */ b("img", {
|
|
245
251
|
src: cl,
|
|
246
252
|
alt: ""
|
|
247
|
-
}, null, -1)),
|
|
253
|
+
}, null, -1)), fe = /* @__PURE__ */ z(() => /* @__PURE__ */ b("img", {
|
|
248
254
|
src: ul,
|
|
249
255
|
alt: ""
|
|
250
|
-
}, null, -1)),
|
|
256
|
+
}, null, -1)), De = /* @__PURE__ */ z(() => /* @__PURE__ */ b("img", {
|
|
251
257
|
src: gl,
|
|
252
258
|
alt: ""
|
|
253
|
-
}, null, -1)),
|
|
254
|
-
key: 0,
|
|
255
|
-
class: "custom-required"
|
|
256
|
-
}, te = {
|
|
259
|
+
}, null, -1)), te = {
|
|
257
260
|
key: 0,
|
|
258
261
|
class: "custom-required"
|
|
259
262
|
}, be = {
|
|
260
263
|
key: 0,
|
|
261
264
|
class: "custom-required"
|
|
262
265
|
}, Ne = {
|
|
266
|
+
key: 0,
|
|
267
|
+
class: "custom-required"
|
|
268
|
+
}, Te = {
|
|
263
269
|
key: 0,
|
|
264
270
|
class: "phone_item_content_before"
|
|
265
|
-
},
|
|
271
|
+
}, Ie = /* @__PURE__ */ z(() => /* @__PURE__ */ b("div", { class: "line_middle" }, "-", -1)), he = /* @__PURE__ */ z(() => /* @__PURE__ */ b("div", { class: "line_middle" }, "-", -1)), je = {
|
|
266
272
|
key: 1,
|
|
267
273
|
class: "line_middle"
|
|
268
|
-
},
|
|
274
|
+
}, Oe = {
|
|
269
275
|
key: 2,
|
|
270
276
|
class: "line_middle"
|
|
271
|
-
},
|
|
277
|
+
}, Ae = /* @__PURE__ */ z(() => /* @__PURE__ */ b("div", {
|
|
272
278
|
class: "line",
|
|
273
279
|
style: { "border-top": "1px solid #e8e8e8", width: "100%", height: "0px", margin: "39px 0" }
|
|
274
|
-
}, null, -1)),
|
|
280
|
+
}, null, -1)), ke = {
|
|
275
281
|
key: 0,
|
|
276
282
|
class: "custom-required"
|
|
277
|
-
},
|
|
283
|
+
}, we = {
|
|
278
284
|
key: 0,
|
|
279
285
|
class: "custom-required"
|
|
280
286
|
};
|
|
281
|
-
function
|
|
282
|
-
const N =
|
|
283
|
-
return
|
|
287
|
+
function ze(p, u, C, e, S, x) {
|
|
288
|
+
const N = h("el-form-item"), O = h("el-input"), E = h("el-col"), F = h("el-row"), W = h("el-radio"), B = h("el-radio-group"), R = h("el-checkbox"), Y = h("el-checkbox-group"), V = h("el-option"), Z = h("el-select"), L = h("el-tooltip"), q = h("a-date-picker"), G = h("a-range-picker"), J = h("sinosoftCommonButton"), H = h("el-form");
|
|
289
|
+
return o(), i(H, _l({
|
|
284
290
|
"hide-required-asterisk": "",
|
|
285
|
-
onSubmit:
|
|
291
|
+
onSubmit: u[0] || (u[0] = Sl(() => {
|
|
286
292
|
}, ["prevent"])),
|
|
287
293
|
model: C.model
|
|
288
294
|
}, e.formOptions, {
|
|
@@ -293,38 +299,38 @@ function we(p, g, C, e, S, x) {
|
|
|
293
299
|
default: n(() => [
|
|
294
300
|
f(F, { gutter: 24 }, {
|
|
295
301
|
default: n(() => [
|
|
296
|
-
(
|
|
302
|
+
(o(!0), M(k, null, w(C.fieldList, (l, P) => Yl((o(), i(E, {
|
|
297
303
|
xs: l.xs ? l.xs : 24,
|
|
298
304
|
sm: l.sm ? l.sm : 24,
|
|
299
305
|
md: l.md ? l.md : 8,
|
|
300
306
|
lg: l.lg ? l.lg : 8,
|
|
301
307
|
xl: l.xl ? l.xl : 8,
|
|
302
|
-
key:
|
|
308
|
+
key: P
|
|
303
309
|
}, {
|
|
304
310
|
default: n(() => [
|
|
305
311
|
b("div", {
|
|
306
312
|
style: D(l.style)
|
|
307
313
|
}, [
|
|
308
|
-
l.type === "title" ? (
|
|
314
|
+
l.type === "title" ? (o(), i(N, { key: 0 }, {
|
|
309
315
|
default: n(() => [
|
|
310
|
-
b("div",
|
|
316
|
+
b("div", Pl, [
|
|
311
317
|
b("span", Ql, c(l.title), 1)
|
|
312
318
|
])
|
|
313
319
|
]),
|
|
314
320
|
_: 2
|
|
315
|
-
}, 1024)) : l.type === "name" && typeof l.field != "string" && l.field && "nameEnFamily" in l.field && l.rules && "nameEnFamily" in l.rules ? (
|
|
321
|
+
}, 1024)) : l.type === "name" && typeof l.field != "string" && l.field && "nameEnFamily" in l.field && l.rules && "nameEnFamily" in l.rules ? (o(), i(N, {
|
|
316
322
|
key: 1,
|
|
317
323
|
label: l.label,
|
|
318
324
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
319
325
|
class: "container_name"
|
|
320
326
|
}, {
|
|
321
327
|
label: n(() => [
|
|
322
|
-
l.slotLabelName ?
|
|
328
|
+
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (o(), M("div", {
|
|
323
329
|
key: 0,
|
|
324
330
|
style: D(l.labelStyle)
|
|
325
331
|
}, [
|
|
326
332
|
T(c(l.label) + " ", 1),
|
|
327
|
-
l.required ? (
|
|
333
|
+
l.required ? (o(), M("span", Gl, "*")) : g("", !0)
|
|
328
334
|
], 4))
|
|
329
335
|
]),
|
|
330
336
|
default: n(() => [
|
|
@@ -338,7 +344,7 @@ function we(p, g, C, e, S, x) {
|
|
|
338
344
|
xl: 12
|
|
339
345
|
}, {
|
|
340
346
|
default: n(() => [
|
|
341
|
-
l.field.nameEnFamily ? (
|
|
347
|
+
l.field.nameEnFamily ? (o(), i(N, {
|
|
342
348
|
key: 0,
|
|
343
349
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.nameEnFamily,
|
|
344
350
|
prop: l.field.nameEnFamily,
|
|
@@ -346,25 +352,25 @@ function we(p, g, C, e, S, x) {
|
|
|
346
352
|
}, {
|
|
347
353
|
default: n(() => [
|
|
348
354
|
f(O, {
|
|
349
|
-
onBlur: (
|
|
350
|
-
onFocus: (
|
|
351
|
-
onChange: (
|
|
352
|
-
onInput: (
|
|
355
|
+
onBlur: (a) => e.inputBlur(a, l.field.nameEnFamily),
|
|
356
|
+
onFocus: (a) => e.inputFocus(a, l.field.nameEnFamily),
|
|
357
|
+
onChange: (a) => e.inputChange(a, l.field.nameEnFamily),
|
|
358
|
+
onInput: (a) => e.inputInput(a, l.field.nameEnFamily),
|
|
353
359
|
class: t(
|
|
354
360
|
(l.isReadonly || l.isReadonlyNameEnFamily || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
355
361
|
),
|
|
356
362
|
maxlength: l.maxlengthNameEnFamily,
|
|
357
363
|
modelValue: e.states.model[l.field.nameEnFamily],
|
|
358
|
-
"onUpdate:modelValue": (
|
|
364
|
+
"onUpdate:modelValue": (a) => e.states.model[l.field.nameEnFamily] = a,
|
|
359
365
|
readonly: l.readonly,
|
|
360
366
|
type: l.type ? l.type : "text",
|
|
361
367
|
placeholder: l.placeholderNameEnFamily,
|
|
362
368
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNameEnFamily) && !l.openDisabled,
|
|
363
|
-
onKeyup: U((
|
|
369
|
+
onKeyup: U((a) => e.handleKeyUp(l.enterable), ["enter"])
|
|
364
370
|
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "class", "maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
365
371
|
]),
|
|
366
372
|
_: 2
|
|
367
|
-
}, 1032, ["rules", "prop"])) :
|
|
373
|
+
}, 1032, ["rules", "prop"])) : g("", !0)
|
|
368
374
|
]),
|
|
369
375
|
_: 2
|
|
370
376
|
}, 1024),
|
|
@@ -376,7 +382,7 @@ function we(p, g, C, e, S, x) {
|
|
|
376
382
|
xl: 12
|
|
377
383
|
}, {
|
|
378
384
|
default: n(() => [
|
|
379
|
-
l.field.nameEn ? (
|
|
385
|
+
l.field.nameEn ? (o(), i(N, {
|
|
380
386
|
key: 0,
|
|
381
387
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.nameEn,
|
|
382
388
|
prop: l.field.nameEn,
|
|
@@ -384,13 +390,13 @@ function we(p, g, C, e, S, x) {
|
|
|
384
390
|
}, {
|
|
385
391
|
default: n(() => [
|
|
386
392
|
f(O, {
|
|
387
|
-
onBlur: (
|
|
388
|
-
onFocus: (
|
|
389
|
-
onChange: (
|
|
390
|
-
onInput: (
|
|
393
|
+
onBlur: (a) => e.inputBlur(a, l.field.nameEn),
|
|
394
|
+
onFocus: (a) => e.inputFocus(a, l.field.nameEn),
|
|
395
|
+
onChange: (a) => e.inputChange(a, l.field.nameEn),
|
|
396
|
+
onInput: (a) => e.inputInput(a, l.field.nameEn),
|
|
391
397
|
maxlength: l.maxlengthNameEn,
|
|
392
398
|
modelValue: e.states.model[l.field.nameEn],
|
|
393
|
-
"onUpdate:modelValue": (
|
|
399
|
+
"onUpdate:modelValue": (a) => e.states.model[l.field.nameEn] = a,
|
|
394
400
|
class: t(
|
|
395
401
|
(l.isReadonly || l.isReadonlyNameEn || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
396
402
|
),
|
|
@@ -398,11 +404,11 @@ function we(p, g, C, e, S, x) {
|
|
|
398
404
|
type: l.type ? l.type : "text",
|
|
399
405
|
placeholder: l.placeholderNameEn,
|
|
400
406
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNameEn) && !l.openDisabled,
|
|
401
|
-
onKeyup: U((
|
|
407
|
+
onKeyup: U((a) => e.handleKeyUp(l.enterable), ["enter"])
|
|
402
408
|
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "class", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
403
409
|
]),
|
|
404
410
|
_: 2
|
|
405
|
-
}, 1032, ["rules", "prop"])) :
|
|
411
|
+
}, 1032, ["rules", "prop"])) : g("", !0)
|
|
406
412
|
]),
|
|
407
413
|
_: 2
|
|
408
414
|
}, 1024)
|
|
@@ -419,7 +425,7 @@ function we(p, g, C, e, S, x) {
|
|
|
419
425
|
xl: 12
|
|
420
426
|
}, {
|
|
421
427
|
default: n(() => [
|
|
422
|
-
l.field.nameChFamily ? (
|
|
428
|
+
l.field.nameChFamily ? (o(), i(N, {
|
|
423
429
|
key: 0,
|
|
424
430
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.nameChFamily,
|
|
425
431
|
prop: l.field.nameChFamily,
|
|
@@ -427,11 +433,11 @@ function we(p, g, C, e, S, x) {
|
|
|
427
433
|
}, {
|
|
428
434
|
default: n(() => [
|
|
429
435
|
f(O, {
|
|
430
|
-
onBlur: (
|
|
431
|
-
onFocus: (
|
|
432
|
-
onChange: (
|
|
433
|
-
onInput: (
|
|
434
|
-
|
|
436
|
+
onBlur: (a) => e.inputBlur(a, l.field.nameChFamily),
|
|
437
|
+
onFocus: (a) => e.inputFocus(a, l.field.nameChFamily),
|
|
438
|
+
onChange: (a) => e.inputChange(a, l.field.nameChFamily),
|
|
439
|
+
onInput: (a) => e.inputInput(
|
|
440
|
+
a,
|
|
435
441
|
"nameChFamily" in l.field ? l.field.nameCh : ""
|
|
436
442
|
),
|
|
437
443
|
maxlength: l.maxlengthNameChFamily,
|
|
@@ -439,16 +445,16 @@ function we(p, g, C, e, S, x) {
|
|
|
439
445
|
(l.isReadonly || l.isReadonlyNameChFamily || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
440
446
|
),
|
|
441
447
|
modelValue: e.states.model[l.field.nameChFamily],
|
|
442
|
-
"onUpdate:modelValue": (
|
|
448
|
+
"onUpdate:modelValue": (a) => e.states.model[l.field.nameChFamily] = a,
|
|
443
449
|
readonly: l.readonly,
|
|
444
450
|
type: l.type ? l.type : "text",
|
|
445
451
|
placeholder: l.placeholderNameChFamily,
|
|
446
452
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNameChFamily) && !l.openDisabled,
|
|
447
|
-
onKeyup: U((
|
|
453
|
+
onKeyup: U((a) => e.handleKeyUp(l.enterable), ["enter"])
|
|
448
454
|
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "class", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
449
455
|
]),
|
|
450
456
|
_: 2
|
|
451
|
-
}, 1032, ["rules", "prop"])) :
|
|
457
|
+
}, 1032, ["rules", "prop"])) : g("", !0)
|
|
452
458
|
]),
|
|
453
459
|
_: 2
|
|
454
460
|
}, 1024),
|
|
@@ -460,7 +466,7 @@ function we(p, g, C, e, S, x) {
|
|
|
460
466
|
xl: 12
|
|
461
467
|
}, {
|
|
462
468
|
default: n(() => [
|
|
463
|
-
l.field.nameCh ? (
|
|
469
|
+
l.field.nameCh ? (o(), i(N, {
|
|
464
470
|
key: 0,
|
|
465
471
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.nameCh,
|
|
466
472
|
prop: l.field.nameCh,
|
|
@@ -468,25 +474,25 @@ function we(p, g, C, e, S, x) {
|
|
|
468
474
|
}, {
|
|
469
475
|
default: n(() => [
|
|
470
476
|
f(O, {
|
|
471
|
-
onBlur: (
|
|
472
|
-
onFocus: (
|
|
473
|
-
onChange: (
|
|
474
|
-
onInput: (
|
|
477
|
+
onBlur: (a) => e.inputBlur(a, l.field.nameCh),
|
|
478
|
+
onFocus: (a) => e.inputFocus(a, l.field.nameCh),
|
|
479
|
+
onChange: (a) => e.inputChange(a, l.field.nameCh),
|
|
480
|
+
onInput: (a) => e.inputInput(a, l.field.nameCh),
|
|
475
481
|
class: t(
|
|
476
482
|
(l.isReadonly || l.isReadonlyNameCh || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
477
483
|
),
|
|
478
484
|
maxlength: l.maxlengthNameCh,
|
|
479
485
|
modelValue: e.states.model[l.field.nameCh],
|
|
480
|
-
"onUpdate:modelValue": (
|
|
486
|
+
"onUpdate:modelValue": (a) => e.states.model[l.field.nameCh] = a,
|
|
481
487
|
readonly: l.readonly,
|
|
482
488
|
type: l.type ? l.type : "text",
|
|
483
489
|
placeholder: l.placeholderNameCh,
|
|
484
490
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNameCh) && !l.openDisabled,
|
|
485
|
-
onKeyup: U((
|
|
491
|
+
onKeyup: U((a) => e.handleKeyUp(l.enterable), ["enter"])
|
|
486
492
|
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "class", "maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
487
493
|
]),
|
|
488
494
|
_: 2
|
|
489
|
-
}, 1032, ["rules", "prop"])) :
|
|
495
|
+
}, 1032, ["rules", "prop"])) : g("", !0)
|
|
490
496
|
]),
|
|
491
497
|
_: 2
|
|
492
498
|
}, 1024)
|
|
@@ -495,7 +501,7 @@ function we(p, g, C, e, S, x) {
|
|
|
495
501
|
}, 1024)
|
|
496
502
|
]),
|
|
497
503
|
_: 2
|
|
498
|
-
}, 1032, ["label", "disabled"])) : l.type === "gender" && typeof l.field == "string" ? (
|
|
504
|
+
}, 1032, ["label", "disabled"])) : l.type === "gender" && typeof l.field == "string" ? (o(), i(N, {
|
|
499
505
|
key: 2,
|
|
500
506
|
label: l.label,
|
|
501
507
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
@@ -503,25 +509,25 @@ function we(p, g, C, e, S, x) {
|
|
|
503
509
|
class: "radio_row"
|
|
504
510
|
}, {
|
|
505
511
|
label: n(() => [
|
|
506
|
-
l.slotLabelName ?
|
|
512
|
+
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (o(), M("div", {
|
|
507
513
|
key: 0,
|
|
508
514
|
style: D(l.labelStyle)
|
|
509
515
|
}, [
|
|
510
516
|
T(c(l.label) + " ", 1),
|
|
511
|
-
l.required ? (
|
|
517
|
+
l.required ? (o(), M("span", Hl, "*")) : g("", !0)
|
|
512
518
|
], 4))
|
|
513
519
|
]),
|
|
514
520
|
default: n(() => [
|
|
515
521
|
f(B, {
|
|
516
522
|
modelValue: e.states.model[l.field],
|
|
517
|
-
"onUpdate:modelValue": (
|
|
523
|
+
"onUpdate:modelValue": (a) => e.states.model[l.field] = a,
|
|
518
524
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
519
|
-
onChange: (
|
|
525
|
+
onChange: (a) => e.radioChange(a, l.field)
|
|
520
526
|
}, {
|
|
521
527
|
default: n(() => {
|
|
522
|
-
var
|
|
528
|
+
var a;
|
|
523
529
|
return [
|
|
524
|
-
(
|
|
530
|
+
(o(!0), M(k, null, w((a = l.options) == null ? void 0 : a.data, (d) => (o(), i(W, {
|
|
525
531
|
label: d.code,
|
|
526
532
|
size: "large",
|
|
527
533
|
key: d.code
|
|
@@ -531,7 +537,7 @@ function we(p, g, C, e, S, x) {
|
|
|
531
537
|
src: d.code === "M" ? "http://192.168.5.200:9000/test/sex_img_M.png" : "http://192.168.5.200:9000/test/sex_img_F.png",
|
|
532
538
|
style: { width: "44px", height: "44px", "margin-bottom": "-15px", "margin-left": "4px" },
|
|
533
539
|
alt: ""
|
|
534
|
-
}, null, 8,
|
|
540
|
+
}, null, 8, Kl)
|
|
535
541
|
]),
|
|
536
542
|
_: 2
|
|
537
543
|
}, 1032, ["label"]))), 128))
|
|
@@ -541,7 +547,7 @@ function we(p, g, C, e, S, x) {
|
|
|
541
547
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
|
|
542
548
|
]),
|
|
543
549
|
_: 2
|
|
544
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "radio" && typeof l.field == "string" ? (
|
|
550
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "radio" && typeof l.field == "string" ? (o(), i(N, {
|
|
545
551
|
key: 3,
|
|
546
552
|
label: l.label,
|
|
547
553
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
@@ -549,29 +555,29 @@ function we(p, g, C, e, S, x) {
|
|
|
549
555
|
class: t([l.labelNode ? "radio_Note" : "rule_err"])
|
|
550
556
|
}, {
|
|
551
557
|
label: n(() => [
|
|
552
|
-
l.slotLabelName ?
|
|
558
|
+
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (o(), M("div", {
|
|
553
559
|
key: 0,
|
|
554
560
|
style: D(l.labelStyle)
|
|
555
561
|
}, [
|
|
556
562
|
T(c(l.label) + " ", 1),
|
|
557
|
-
l.required ? (
|
|
563
|
+
l.required ? (o(), M("span", ql, "*")) : g("", !0)
|
|
558
564
|
], 4))
|
|
559
565
|
]),
|
|
560
566
|
default: n(() => [
|
|
561
567
|
f(B, {
|
|
562
568
|
modelValue: e.states.model[l.field],
|
|
563
|
-
"onUpdate:modelValue": (
|
|
569
|
+
"onUpdate:modelValue": (a) => e.states.model[l.field] = a,
|
|
564
570
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
565
|
-
onChange: (
|
|
571
|
+
onChange: (a) => e.radioChange(a, l.field),
|
|
566
572
|
style: D(
|
|
567
573
|
l.ways === "column" ? "display: flex; align-items: flex-start;flex-flow: column nowrap; " : "display: flex; align-items: flex-start;flex-flow: row nowrap; "
|
|
568
574
|
),
|
|
569
575
|
class: t(l.ways !== "column" ? "radio_row" : "")
|
|
570
576
|
}, {
|
|
571
577
|
default: n(() => {
|
|
572
|
-
var
|
|
578
|
+
var a;
|
|
573
579
|
return [
|
|
574
|
-
(
|
|
580
|
+
(o(!0), M(k, null, w((a = l.options) == null ? void 0 : a.data, (d) => (o(), i(W, {
|
|
575
581
|
size: "large",
|
|
576
582
|
label: d.code,
|
|
577
583
|
key: d.code,
|
|
@@ -588,7 +594,7 @@ function we(p, g, C, e, S, x) {
|
|
|
588
594
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange", "style", "class"])
|
|
589
595
|
]),
|
|
590
596
|
_: 2
|
|
591
|
-
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "radioNote" && typeof l.field == "string" ? (
|
|
597
|
+
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "radioNote" && typeof l.field == "string" ? (o(), i(N, {
|
|
592
598
|
key: 4,
|
|
593
599
|
label: l.label,
|
|
594
600
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
@@ -597,24 +603,24 @@ function we(p, g, C, e, S, x) {
|
|
|
597
603
|
}, {
|
|
598
604
|
default: n(() => [
|
|
599
605
|
b("div", null, [
|
|
600
|
-
b("span",
|
|
601
|
-
b("span",
|
|
602
|
-
l.required ? (
|
|
606
|
+
b("span", Jl, c(l.labelBefore), 1),
|
|
607
|
+
b("span", Xl, c(l.labelNode), 1),
|
|
608
|
+
l.required ? (o(), M("span", ml, "*")) : g("", !0)
|
|
603
609
|
]),
|
|
604
610
|
f(B, {
|
|
605
611
|
modelValue: e.states.model[l.field],
|
|
606
|
-
"onUpdate:modelValue": (
|
|
612
|
+
"onUpdate:modelValue": (a) => e.states.model[l.field] = a,
|
|
607
613
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
608
|
-
onChange: (
|
|
614
|
+
onChange: (a) => e.radioChange(a, l.field),
|
|
609
615
|
style: D(
|
|
610
616
|
l.ways === "column" ? "display: flex; align-items: flex-start;flex-flow: column nowrap; " : "display: flex; align-items: flex-start;flex-flow: row nowrap; "
|
|
611
617
|
),
|
|
612
618
|
class: t(l.ways !== "column" ? "radio_row" : "")
|
|
613
619
|
}, {
|
|
614
620
|
default: n(() => {
|
|
615
|
-
var
|
|
621
|
+
var a;
|
|
616
622
|
return [
|
|
617
|
-
(
|
|
623
|
+
(o(!0), M(k, null, w((a = l.options) == null ? void 0 : a.data, (d) => (o(), i(W, {
|
|
618
624
|
size: "large",
|
|
619
625
|
label: d.code,
|
|
620
626
|
key: d.code
|
|
@@ -630,35 +636,35 @@ function we(p, g, C, e, S, x) {
|
|
|
630
636
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange", "style", "class"])
|
|
631
637
|
]),
|
|
632
638
|
_: 2
|
|
633
|
-
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "checkbox" && typeof l.field == "string" ? (
|
|
639
|
+
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "checkbox" && typeof l.field == "string" ? (o(), i(N, {
|
|
634
640
|
key: 5,
|
|
635
641
|
label: l.label,
|
|
636
642
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
637
643
|
prop: l.field
|
|
638
644
|
}, {
|
|
639
645
|
label: n(() => [
|
|
640
|
-
l.slotLabelName ?
|
|
646
|
+
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (o(), M("div", {
|
|
641
647
|
key: 0,
|
|
642
648
|
style: D(l.labelStyle)
|
|
643
649
|
}, [
|
|
644
650
|
T(c(l.label) + " ", 1),
|
|
645
|
-
l.required ? (
|
|
651
|
+
l.required ? (o(), M("span", $l, "*")) : g("", !0)
|
|
646
652
|
], 4))
|
|
647
653
|
]),
|
|
648
654
|
default: n(() => [
|
|
649
655
|
f(Y, {
|
|
650
656
|
modelValue: e.states.model[l.field],
|
|
651
|
-
"onUpdate:modelValue": (
|
|
652
|
-
onChange: (
|
|
657
|
+
"onUpdate:modelValue": (a) => e.states.model[l.field] = a,
|
|
658
|
+
onChange: (a) => e.checkChange(a, l.field),
|
|
653
659
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
654
660
|
style: D(
|
|
655
661
|
l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
|
|
656
662
|
)
|
|
657
663
|
}, {
|
|
658
664
|
default: n(() => {
|
|
659
|
-
var
|
|
665
|
+
var a;
|
|
660
666
|
return [
|
|
661
|
-
(
|
|
667
|
+
(o(!0), M(k, null, w((a = l.options) == null ? void 0 : a.data, (d) => (o(), i(R, {
|
|
662
668
|
key: d.code,
|
|
663
669
|
label: d.code,
|
|
664
670
|
disabled: d.isDisabled
|
|
@@ -674,35 +680,35 @@ function we(p, g, C, e, S, x) {
|
|
|
674
680
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
|
|
675
681
|
]),
|
|
676
682
|
_: 2
|
|
677
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "checkboxRadio" && typeof l.field == "string" ? (
|
|
683
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "checkboxRadio" && typeof l.field == "string" ? (o(), i(N, {
|
|
678
684
|
key: 6,
|
|
679
685
|
label: l.label,
|
|
680
686
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
681
687
|
prop: l.field
|
|
682
688
|
}, {
|
|
683
689
|
label: n(() => [
|
|
684
|
-
l.slotLabelName ?
|
|
690
|
+
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (o(), M("div", {
|
|
685
691
|
key: 0,
|
|
686
692
|
style: D(l.labelStyle)
|
|
687
693
|
}, [
|
|
688
694
|
T(c(l.label) + " ", 1),
|
|
689
|
-
l.required ? (
|
|
695
|
+
l.required ? (o(), M("span", le, "*")) : g("", !0)
|
|
690
696
|
], 4))
|
|
691
697
|
]),
|
|
692
698
|
default: n(() => [
|
|
693
699
|
f(Y, {
|
|
694
700
|
modelValue: e.states.model[l.field],
|
|
695
|
-
"onUpdate:modelValue": (
|
|
696
|
-
onChange: (
|
|
701
|
+
"onUpdate:modelValue": (a) => e.states.model[l.field] = a,
|
|
702
|
+
onChange: (a) => e.handleCheckedChange(a, l.field),
|
|
697
703
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
698
704
|
style: D(
|
|
699
705
|
l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
|
|
700
706
|
)
|
|
701
707
|
}, {
|
|
702
708
|
default: n(() => {
|
|
703
|
-
var
|
|
709
|
+
var a;
|
|
704
710
|
return [
|
|
705
|
-
(
|
|
711
|
+
(o(!0), M(k, null, w((a = l.options) == null ? void 0 : a.data, (d) => (o(), i(R, {
|
|
706
712
|
key: d.code,
|
|
707
713
|
label: d.code,
|
|
708
714
|
disabled: d.isDisabled
|
|
@@ -718,7 +724,7 @@ function we(p, g, C, e, S, x) {
|
|
|
718
724
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
|
|
719
725
|
]),
|
|
720
726
|
_: 2
|
|
721
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "checkboxNote" && typeof l.field == "string" ? (
|
|
727
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "checkboxNote" && typeof l.field == "string" ? (o(), i(N, {
|
|
722
728
|
key: 7,
|
|
723
729
|
label: l.label,
|
|
724
730
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
@@ -727,23 +733,23 @@ function we(p, g, C, e, S, x) {
|
|
|
727
733
|
}, {
|
|
728
734
|
default: n(() => [
|
|
729
735
|
b("div", null, [
|
|
730
|
-
b("span",
|
|
731
|
-
b("span",
|
|
732
|
-
l.required ? (
|
|
736
|
+
b("span", ee, c(l.labelBefore), 1),
|
|
737
|
+
b("span", ae, c(l.labelNode), 1),
|
|
738
|
+
l.required ? (o(), M("span", oe, "*")) : g("", !0)
|
|
733
739
|
]),
|
|
734
740
|
f(Y, {
|
|
735
741
|
modelValue: e.states.model[l.field],
|
|
736
|
-
"onUpdate:modelValue": (
|
|
737
|
-
onChange: (
|
|
742
|
+
"onUpdate:modelValue": (a) => e.states.model[l.field] = a,
|
|
743
|
+
onChange: (a) => e.checkChange(a, l.field),
|
|
738
744
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
739
745
|
style: D(
|
|
740
746
|
l.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
|
|
741
747
|
)
|
|
742
748
|
}, {
|
|
743
749
|
default: n(() => {
|
|
744
|
-
var
|
|
750
|
+
var a;
|
|
745
751
|
return [
|
|
746
|
-
(
|
|
752
|
+
(o(!0), M(k, null, w((a = l.options) == null ? void 0 : a.data, (d) => (o(), i(R, {
|
|
747
753
|
key: d.code,
|
|
748
754
|
label: d.code,
|
|
749
755
|
disabled: d.isDisabled
|
|
@@ -759,7 +765,7 @@ function we(p, g, C, e, S, x) {
|
|
|
759
765
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
|
|
760
766
|
]),
|
|
761
767
|
_: 2
|
|
762
|
-
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "select" && typeof l.field == "string" ? (
|
|
768
|
+
}, 1032, ["label", "rules", "prop", "class"])) : l.type === "select" && typeof l.field == "string" ? (o(), i(N, {
|
|
763
769
|
key: 8,
|
|
764
770
|
label: l.label,
|
|
765
771
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
@@ -767,21 +773,21 @@ function we(p, g, C, e, S, x) {
|
|
|
767
773
|
prop: l.field
|
|
768
774
|
}, {
|
|
769
775
|
label: n(() => [
|
|
770
|
-
l.slotLabelName ?
|
|
776
|
+
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (o(), M("div", {
|
|
771
777
|
key: 0,
|
|
772
778
|
style: D(l.labelStyle)
|
|
773
779
|
}, [
|
|
774
780
|
T(c(l.label) + " ", 1),
|
|
775
|
-
l.required ? (
|
|
781
|
+
l.required ? (o(), M("span", ne, "*")) : g("", !0)
|
|
776
782
|
], 4))
|
|
777
783
|
]),
|
|
778
784
|
default: n(() => {
|
|
779
|
-
var
|
|
785
|
+
var a;
|
|
780
786
|
return [
|
|
781
787
|
f(L, {
|
|
782
788
|
"popper-class": "select-tooltip",
|
|
783
789
|
effect: "light",
|
|
784
|
-
content: e.contentName(e.states.model[l.field], (
|
|
790
|
+
content: e.contentName(e.states.model[l.field], (a = l.options) == null ? void 0 : a.data),
|
|
785
791
|
placement: "top",
|
|
786
792
|
disabled: e.isShowTooltip
|
|
787
793
|
}, {
|
|
@@ -812,17 +818,17 @@ function we(p, g, C, e, S, x) {
|
|
|
812
818
|
default: n(() => {
|
|
813
819
|
var d;
|
|
814
820
|
return [
|
|
815
|
-
(
|
|
821
|
+
(o(!0), M(k, null, w((d = l.options) == null ? void 0 : d.data, (A) => (o(), i(V, {
|
|
816
822
|
key: A.code,
|
|
817
823
|
label: A.name,
|
|
818
824
|
value: A.code
|
|
819
825
|
}, null, 8, ["label", "value"]))), 128)),
|
|
820
|
-
l.loading ? (
|
|
826
|
+
l.loading ? (o(), i(V, {
|
|
821
827
|
key: 0,
|
|
822
828
|
label: l.selectLoadingText ? l.selectLoadingText : "Loading...",
|
|
823
829
|
class: "select-loading",
|
|
824
830
|
disabled: ""
|
|
825
|
-
}, null, 8, ["label"])) :
|
|
831
|
+
}, null, 8, ["label"])) : g("", !0)
|
|
826
832
|
];
|
|
827
833
|
}),
|
|
828
834
|
_: 2
|
|
@@ -837,7 +843,7 @@ function we(p, g, C, e, S, x) {
|
|
|
837
843
|
];
|
|
838
844
|
}),
|
|
839
845
|
_: 2
|
|
840
|
-
}, 1032, ["label", "rules", "disabled", "prop"])) : l.type === "date" && typeof l.field == "string" ? (
|
|
846
|
+
}, 1032, ["label", "rules", "disabled", "prop"])) : l.type === "date" && typeof l.field == "string" ? (o(), i(N, {
|
|
841
847
|
key: 9,
|
|
842
848
|
label: l.label,
|
|
843
849
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
@@ -845,23 +851,23 @@ function we(p, g, C, e, S, x) {
|
|
|
845
851
|
class: "date_item"
|
|
846
852
|
}, {
|
|
847
853
|
label: n(() => [
|
|
848
|
-
l.slotLabelName ?
|
|
854
|
+
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (o(), M("div", {
|
|
849
855
|
key: 0,
|
|
850
856
|
style: D(l.labelStyle)
|
|
851
857
|
}, [
|
|
852
858
|
T(c(l.label) + " ", 1),
|
|
853
|
-
l.required ? (
|
|
859
|
+
l.required ? (o(), M("span", de, "*")) : g("", !0)
|
|
854
860
|
], 4))
|
|
855
861
|
]),
|
|
856
862
|
default: n(() => [
|
|
857
|
-
(
|
|
863
|
+
(o(), i(q, {
|
|
858
864
|
size: "large",
|
|
859
865
|
allowClear: !!l.allowClear,
|
|
860
866
|
format: "DD/MM/YYYY",
|
|
861
867
|
defaultPickerValue: l == null ? void 0 : l.defaultToady,
|
|
862
868
|
valueFormat: (l == null ? void 0 : l.valueFormat) || "DD/MM/YYYY",
|
|
863
869
|
value: e.states.model[l.field],
|
|
864
|
-
"onUpdate:value": (
|
|
870
|
+
"onUpdate:value": (a) => e.states.model[l.field] = a,
|
|
865
871
|
"disabled-date": l.disabledDate,
|
|
866
872
|
suffixIcon: l.suffixIcon,
|
|
867
873
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
@@ -876,86 +882,88 @@ function we(p, g, C, e, S, x) {
|
|
|
876
882
|
(l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
877
883
|
),
|
|
878
884
|
presets: l == null ? void 0 : l.presets,
|
|
879
|
-
onChange: (
|
|
880
|
-
|
|
885
|
+
onChange: (a) => e.dateChange(
|
|
886
|
+
a,
|
|
881
887
|
l.field ? l.field : "",
|
|
882
888
|
l == null ? void 0 : l.defaultToady
|
|
883
889
|
),
|
|
884
|
-
onCalendarChange: (
|
|
885
|
-
|
|
890
|
+
onCalendarChange: (a) => e.calendarChange(
|
|
891
|
+
a,
|
|
886
892
|
typeof l.field == "string" ? l.field : ""
|
|
887
893
|
),
|
|
888
|
-
onOk: (
|
|
889
|
-
|
|
894
|
+
onOk: (a) => e.onOk(
|
|
895
|
+
a,
|
|
890
896
|
typeof l.field == "string" ? l.field : ""
|
|
891
897
|
),
|
|
892
898
|
onBlur: e.openDatePicker,
|
|
893
|
-
onOpenChange: (
|
|
899
|
+
onOpenChange: (a) => e.openChange(a, l == null ? void 0 : l.defaultToady, l.field, e.states.model[l.field]),
|
|
900
|
+
onPanelChange: (a) => e.panelChange(a, l == null ? void 0 : l.defaultToady, l.field)
|
|
894
901
|
}, K({
|
|
895
902
|
superPrevIcon: n(() => [
|
|
896
|
-
|
|
903
|
+
re
|
|
897
904
|
]),
|
|
898
905
|
prevIcon: n(() => [
|
|
899
|
-
|
|
906
|
+
Me
|
|
900
907
|
]),
|
|
901
908
|
nextIcon: n(() => [
|
|
902
|
-
|
|
909
|
+
ie
|
|
903
910
|
]),
|
|
904
911
|
superNextIcon: n(() => [
|
|
905
|
-
|
|
912
|
+
ye
|
|
906
913
|
]),
|
|
907
914
|
_: 2
|
|
908
915
|
}, [
|
|
909
916
|
l != null && l.defaultToady ? {
|
|
910
917
|
name: "dateRender",
|
|
911
|
-
fn: n(({ current:
|
|
918
|
+
fn: n(({ current: a }) => [
|
|
912
919
|
b("div", {
|
|
913
920
|
class: "ant-picker-cell-inner",
|
|
914
|
-
style: D(e.getCurrentStyle(
|
|
915
|
-
}, c(
|
|
921
|
+
style: D(e.getCurrentStyle(a, l == null ? void 0 : l.defaultToady))
|
|
922
|
+
}, c(a.date()), 5)
|
|
916
923
|
]),
|
|
917
924
|
key: "0"
|
|
918
925
|
} : void 0,
|
|
919
926
|
!(l != null && l.ToadyStatus) || l != null && l.ToadyStatus ? {
|
|
920
927
|
name: "renderExtraFooter",
|
|
921
928
|
fn: n(() => [
|
|
922
|
-
l != null && l.disabledDateToday ? (
|
|
929
|
+
l != null && l.disabledDateToday ? (o(), M("span", {
|
|
923
930
|
key: 0,
|
|
924
931
|
class: t([l != null && l.disabledDateToday ? "disabledDateToday" : "todayClass"])
|
|
925
|
-
}, c((l == null ? void 0 : l.todayLanguage) || "Today"), 3)) :
|
|
926
|
-
l != null && l.disabledDateToday ?
|
|
932
|
+
}, c((l == null ? void 0 : l.todayLanguage) || "Today"), 3)) : g("", !0),
|
|
933
|
+
l != null && l.disabledDateToday ? g("", !0) : (o(), M("span", {
|
|
927
934
|
key: 1,
|
|
928
935
|
class: t([l != null && l.disabledDateToday ? "disabledDateToday" : "todayClass"]),
|
|
929
|
-
onClick: (
|
|
936
|
+
onClick: (a) => e.getDefaultToady(
|
|
930
937
|
e.states.model[l.field],
|
|
931
938
|
typeof l.field == "string" ? l.field : "",
|
|
932
939
|
(l == null ? void 0 : l.defaultToady) || /* @__PURE__ */ new Date()
|
|
933
940
|
)
|
|
934
|
-
}, c((l == null ? void 0 : l.todayLanguage) || "Today"), 11,
|
|
941
|
+
}, c((l == null ? void 0 : l.todayLanguage) || "Today"), 11, se))
|
|
935
942
|
]),
|
|
936
943
|
key: "1"
|
|
937
944
|
} : void 0
|
|
938
|
-
]), 1032, ["allowClear", "defaultPickerValue", "valueFormat", "value", "onUpdate:value", "disabled-date", "suffixIcon", "disabled", "showToday", "renderExtraFooter", "inputReadOnly", "mode", "picker", "placeholder", "class", "presets", "onChange", "onCalendarChange", "onOk", "onBlur", "onOpenChange"])),
|
|
939
|
-
l.showTo ? (
|
|
945
|
+
]), 1032, ["allowClear", "defaultPickerValue", "valueFormat", "value", "onUpdate:value", "disabled-date", "suffixIcon", "disabled", "showToday", "renderExtraFooter", "inputReadOnly", "mode", "picker", "placeholder", "class", "presets", "onChange", "onCalendarChange", "onOk", "onBlur", "onOpenChange", "onPanelChange"])),
|
|
946
|
+
l.showTo ? (o(), M("span", ce, c(l.showTo), 1)) : g("", !0)
|
|
940
947
|
]),
|
|
941
948
|
_: 2
|
|
942
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "daterange" && typeof l.field == "string" ? (
|
|
949
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "daterange" && typeof l.field == "string" ? (o(), i(N, {
|
|
943
950
|
key: 10,
|
|
944
951
|
label: l.label,
|
|
945
952
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
946
953
|
prop: l.field
|
|
947
954
|
}, {
|
|
948
955
|
label: n(() => [
|
|
949
|
-
l.slotLabelName ?
|
|
956
|
+
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (o(), M("div", {
|
|
950
957
|
key: 0,
|
|
951
958
|
style: D(l.labelStyle)
|
|
952
959
|
}, [
|
|
953
960
|
T(c(l.label) + " ", 1),
|
|
954
|
-
l.required ? (
|
|
961
|
+
l.required ? (o(), M("span", ue, "*")) : g("", !0)
|
|
955
962
|
], 4))
|
|
956
963
|
]),
|
|
957
964
|
default: n(() => [
|
|
958
|
-
(
|
|
965
|
+
T(" " + c(l == null ? void 0 : l.defaultPickerValue) + " ", 1),
|
|
966
|
+
(o(), i(G, {
|
|
959
967
|
"popper-class": "selectTriangles",
|
|
960
968
|
allowClear: !!l.allowClear,
|
|
961
969
|
defaultPickerValue: l == null ? void 0 : l.defaultPickerValue,
|
|
@@ -967,7 +975,7 @@ function we(p, g, C, e, S, x) {
|
|
|
967
975
|
mode: l.mode,
|
|
968
976
|
picker: l.picker,
|
|
969
977
|
value: e.states.model[l.field],
|
|
970
|
-
"onUpdate:value": (
|
|
978
|
+
"onUpdate:value": (a) => e.states.model[l.field] = a,
|
|
971
979
|
suffixIcon: l.suffixIcon,
|
|
972
980
|
separator: l.separator || "To",
|
|
973
981
|
placeholder: l.placeholder,
|
|
@@ -976,65 +984,66 @@ function we(p, g, C, e, S, x) {
|
|
|
976
984
|
(l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
977
985
|
),
|
|
978
986
|
key: e.pickerKeyDaterange,
|
|
979
|
-
onChange: (
|
|
980
|
-
|
|
987
|
+
onChange: (a) => e.dateChange(
|
|
988
|
+
a,
|
|
981
989
|
typeof l.field == "string" ? l.field : "",
|
|
982
|
-
|
|
990
|
+
l == null ? void 0 : l.defaultToady
|
|
983
991
|
),
|
|
984
|
-
onCalendarChange: (
|
|
985
|
-
|
|
992
|
+
onCalendarChange: (a) => e.calendarChange(
|
|
993
|
+
a,
|
|
986
994
|
typeof l.field == "string" ? l.field : ""
|
|
987
995
|
),
|
|
988
|
-
onOk: (
|
|
989
|
-
|
|
996
|
+
onOk: (a) => e.onOk(
|
|
997
|
+
a,
|
|
990
998
|
typeof l.field == "string" ? l.field : ""
|
|
991
999
|
),
|
|
992
|
-
|
|
1000
|
+
onPanelChange: (a) => e.panelChange(a, l == null ? void 0 : l.defaultToady, l.field),
|
|
1001
|
+
onOpenChange: (a) => e.openDatePickerDaterange(a, l == null ? void 0 : l.defaultToady, l.field)
|
|
993
1002
|
}, K({
|
|
994
1003
|
superPrevIcon: n(() => [
|
|
995
|
-
|
|
1004
|
+
ge
|
|
996
1005
|
]),
|
|
997
1006
|
prevIcon: n(() => [
|
|
998
|
-
|
|
1007
|
+
pe
|
|
999
1008
|
]),
|
|
1000
1009
|
nextIcon: n(() => [
|
|
1001
|
-
|
|
1010
|
+
fe
|
|
1002
1011
|
]),
|
|
1003
1012
|
superNextIcon: n(() => [
|
|
1004
|
-
|
|
1013
|
+
De
|
|
1005
1014
|
]),
|
|
1006
1015
|
_: 2
|
|
1007
1016
|
}, [
|
|
1008
1017
|
l != null && l.defaultToady ? {
|
|
1009
1018
|
name: "dateRender",
|
|
1010
|
-
fn: n(({ current:
|
|
1019
|
+
fn: n(({ current: a, info: d }) => [
|
|
1011
1020
|
b("div", {
|
|
1012
1021
|
class: "ant-picker-cell-inner",
|
|
1013
|
-
style: D(e.getCurrentStyle(
|
|
1014
|
-
}, c(
|
|
1022
|
+
style: D(e.getCurrentStyle(a, l == null ? void 0 : l.defaultToady, d, l.field))
|
|
1023
|
+
}, c(a.date()), 5)
|
|
1015
1024
|
]),
|
|
1016
1025
|
key: "0"
|
|
1017
1026
|
} : void 0
|
|
1018
|
-
]), 1032, ["allowClear", "defaultPickerValue", "format", "valueFormat", "disabled-date", "disabled-time", "showTime", "mode", "picker", "value", "onUpdate:value", "suffixIcon", "separator", "placeholder", "class", "onChange", "onCalendarChange", "onOk", "onOpenChange"]))
|
|
1027
|
+
]), 1032, ["allowClear", "defaultPickerValue", "format", "valueFormat", "disabled-date", "disabled-time", "showTime", "mode", "picker", "value", "onUpdate:value", "suffixIcon", "separator", "placeholder", "class", "onChange", "onCalendarChange", "onOk", "onPanelChange", "onOpenChange"]))
|
|
1019
1028
|
]),
|
|
1020
1029
|
_: 2
|
|
1021
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "datetimerange" && typeof l.field == "string" ? (
|
|
1030
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "datetimerange" && typeof l.field == "string" ? (o(), i(N, {
|
|
1022
1031
|
key: 11,
|
|
1023
1032
|
label: l.label,
|
|
1024
1033
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
1025
1034
|
prop: l.field
|
|
1026
1035
|
}, {
|
|
1027
1036
|
label: n(() => [
|
|
1028
|
-
l.slotLabelName ?
|
|
1037
|
+
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (o(), M("div", {
|
|
1029
1038
|
key: 0,
|
|
1030
1039
|
style: D(l.labelStyle)
|
|
1031
1040
|
}, [
|
|
1032
1041
|
T(c(l.label) + " ", 1),
|
|
1033
|
-
l.required ? (
|
|
1042
|
+
l.required ? (o(), M("span", te, "*")) : g("", !0)
|
|
1034
1043
|
], 4))
|
|
1035
1044
|
]),
|
|
1036
1045
|
default: n(() => [
|
|
1037
|
-
(
|
|
1046
|
+
(o(), i(G, {
|
|
1038
1047
|
"popper-class": "selectTriangles",
|
|
1039
1048
|
allowClear: !!l.allowClear,
|
|
1040
1049
|
defaultPickerValue: l == null ? void 0 : l.defaultValue,
|
|
@@ -1046,7 +1055,7 @@ function we(p, g, C, e, S, x) {
|
|
|
1046
1055
|
mode: l.mode,
|
|
1047
1056
|
picker: l.picker,
|
|
1048
1057
|
value: e.states.model[l.field],
|
|
1049
|
-
"onUpdate:value": (
|
|
1058
|
+
"onUpdate:value": (a) => e.states.model[l.field] = a,
|
|
1050
1059
|
suffixIcon: l.suffixIcon,
|
|
1051
1060
|
separator: l.separator || "To",
|
|
1052
1061
|
placeholder: l.placeholder,
|
|
@@ -1055,23 +1064,23 @@ function we(p, g, C, e, S, x) {
|
|
|
1055
1064
|
(l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
1056
1065
|
),
|
|
1057
1066
|
key: e.datetimerange,
|
|
1058
|
-
onChange: (
|
|
1059
|
-
|
|
1067
|
+
onChange: (a) => e.dateChange(
|
|
1068
|
+
a,
|
|
1060
1069
|
typeof l.field == "string" ? l.field : ""
|
|
1061
1070
|
),
|
|
1062
|
-
onCalendarChange: (
|
|
1063
|
-
|
|
1071
|
+
onCalendarChange: (a) => e.calendarChange(
|
|
1072
|
+
a,
|
|
1064
1073
|
typeof l.field == "string" ? l.field : ""
|
|
1065
1074
|
),
|
|
1066
|
-
onOk: (
|
|
1067
|
-
|
|
1075
|
+
onOk: (a) => e.onOk(
|
|
1076
|
+
a,
|
|
1068
1077
|
typeof l.field == "string" ? l.field : ""
|
|
1069
1078
|
),
|
|
1070
1079
|
onOpenChange: e.openDatetimerange
|
|
1071
1080
|
}, null, 8, ["allowClear", "defaultPickerValue", "format", "valueFormat", "disabled-date", "disabled-time", "showTime", "mode", "picker", "value", "onUpdate:value", "suffixIcon", "separator", "placeholder", "class", "onChange", "onCalendarChange", "onOk", "onOpenChange"]))
|
|
1072
1081
|
]),
|
|
1073
1082
|
_: 2
|
|
1074
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "slotItem" ? (
|
|
1083
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "slotItem" ? (o(), i(N, {
|
|
1075
1084
|
key: 12,
|
|
1076
1085
|
label: l.label,
|
|
1077
1086
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
@@ -1079,19 +1088,19 @@ function we(p, g, C, e, S, x) {
|
|
|
1079
1088
|
class: "rule_err"
|
|
1080
1089
|
}, {
|
|
1081
1090
|
label: n(() => [
|
|
1082
|
-
l.slotLabelName ?
|
|
1091
|
+
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (o(), M("div", {
|
|
1083
1092
|
key: 0,
|
|
1084
1093
|
style: D(l.labelStyle)
|
|
1085
1094
|
}, [
|
|
1086
1095
|
T(c(l.label) + " ", 1),
|
|
1087
|
-
l.required ? (
|
|
1096
|
+
l.required ? (o(), M("span", be, "*")) : g("", !0)
|
|
1088
1097
|
], 4))
|
|
1089
1098
|
]),
|
|
1090
1099
|
default: n(() => [
|
|
1091
|
-
|
|
1100
|
+
j(p.$slots, l.slotItemName, {}, void 0, !0)
|
|
1092
1101
|
]),
|
|
1093
1102
|
_: 2
|
|
1094
|
-
}, 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 ? (
|
|
1103
|
+
}, 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 ? (o(), i(N, {
|
|
1095
1104
|
key: 13,
|
|
1096
1105
|
label: l.label,
|
|
1097
1106
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules.phoneNumber,
|
|
@@ -1099,19 +1108,19 @@ function we(p, g, C, e, S, x) {
|
|
|
1099
1108
|
class: "phone_item"
|
|
1100
1109
|
}, {
|
|
1101
1110
|
label: n(() => [
|
|
1102
|
-
l.slotLabelName ?
|
|
1111
|
+
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (o(), M("div", {
|
|
1103
1112
|
key: 0,
|
|
1104
1113
|
style: D(l.labelStyle)
|
|
1105
1114
|
}, [
|
|
1106
1115
|
T(c(l.label) + " ", 1),
|
|
1107
|
-
l.required ? (
|
|
1116
|
+
l.required ? (o(), M("span", Ne, "*")) : g("", !0)
|
|
1108
1117
|
], 4))
|
|
1109
1118
|
]),
|
|
1110
1119
|
default: n(() => [
|
|
1111
1120
|
b("div", {
|
|
1112
1121
|
class: t(e.phoneWrap ? ["phone_item_content", "phone_item_content_wrap"] : "phone_item_content")
|
|
1113
1122
|
}, [
|
|
1114
|
-
e.phoneWrap ? (
|
|
1123
|
+
e.phoneWrap ? (o(), M("div", Te, [
|
|
1115
1124
|
f(L, {
|
|
1116
1125
|
"popper-class": "input-tooltip",
|
|
1117
1126
|
effect: "light",
|
|
@@ -1120,9 +1129,9 @@ function we(p, g, C, e, S, x) {
|
|
|
1120
1129
|
disabled: e.isShowTooltip
|
|
1121
1130
|
}, {
|
|
1122
1131
|
default: n(() => {
|
|
1123
|
-
var
|
|
1132
|
+
var a;
|
|
1124
1133
|
return [
|
|
1125
|
-
l.field.nationCode ? (
|
|
1134
|
+
l.field.nationCode ? (o(), i(Z, {
|
|
1126
1135
|
key: 0,
|
|
1127
1136
|
class: t(["tooltip-select", (l.isReadonly || l.isReadonlyNation || e.formOptions.isAllReadonly) && !l.openDisabled ? "selectreadonly" : "areaCode_input"]),
|
|
1128
1137
|
id: l.field.nationCode,
|
|
@@ -1132,7 +1141,7 @@ function we(p, g, C, e, S, x) {
|
|
|
1132
1141
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNation) && !l.openDisabled,
|
|
1133
1142
|
modelValue: e.states.model[l.field.nationCode],
|
|
1134
1143
|
"onUpdate:modelValue": (d) => e.states.model[l.field.nationCode] = d,
|
|
1135
|
-
placeholder: ((
|
|
1144
|
+
placeholder: ((a = l.nationOptions) == null ? void 0 : a.placeholder) || "",
|
|
1136
1145
|
style: D("width:" + l.widthNation),
|
|
1137
1146
|
"fit-input-width": !0,
|
|
1138
1147
|
"suffix-icon": e.IconDropDown,
|
|
@@ -1141,20 +1150,20 @@ function we(p, g, C, e, S, x) {
|
|
|
1141
1150
|
default: n(() => {
|
|
1142
1151
|
var d;
|
|
1143
1152
|
return [
|
|
1144
|
-
(
|
|
1153
|
+
(o(!0), M(k, null, w((d = l.nationOptions) == null ? void 0 : d.data, (A, Q) => (o(), i(V, {
|
|
1145
1154
|
label: A.name,
|
|
1146
1155
|
value: A.code,
|
|
1147
|
-
key:
|
|
1156
|
+
key: Q
|
|
1148
1157
|
}, null, 8, ["label", "value"]))), 128))
|
|
1149
1158
|
];
|
|
1150
1159
|
}),
|
|
1151
1160
|
_: 2
|
|
1152
|
-
}, 1032, ["id", "onMouseenter", "disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class", "style", "suffix-icon", "clear-icon"])) :
|
|
1161
|
+
}, 1032, ["id", "onMouseenter", "disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class", "style", "suffix-icon", "clear-icon"])) : g("", !0)
|
|
1153
1162
|
];
|
|
1154
1163
|
}),
|
|
1155
1164
|
_: 2
|
|
1156
1165
|
}, 1032, ["content", "disabled"]),
|
|
1157
|
-
|
|
1166
|
+
Ie,
|
|
1158
1167
|
f(L, {
|
|
1159
1168
|
"popper-class": "input-tooltip",
|
|
1160
1169
|
effect: "light",
|
|
@@ -1163,9 +1172,9 @@ function we(p, g, C, e, S, x) {
|
|
|
1163
1172
|
disabled: e.isShowTooltip
|
|
1164
1173
|
}, {
|
|
1165
1174
|
default: n(() => {
|
|
1166
|
-
var
|
|
1175
|
+
var a;
|
|
1167
1176
|
return [
|
|
1168
|
-
l.field.areaCode ? (
|
|
1177
|
+
l.field.areaCode ? (o(), i(O, {
|
|
1169
1178
|
key: 0,
|
|
1170
1179
|
class: t(["tooltip-input", (l.isReadonly || l.isReadonlyArea || e.formOptions.isAllReadonly) && !l.openDisabled ? "inputReadonly" : "areaCode_input"]),
|
|
1171
1180
|
id: l.field.areaCode,
|
|
@@ -1191,15 +1200,15 @@ function we(p, g, C, e, S, x) {
|
|
|
1191
1200
|
modelValue: e.states.model[l.field.areaCode],
|
|
1192
1201
|
"onUpdate:modelValue": (d) => e.states.model[l.field.areaCode] = d,
|
|
1193
1202
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyArea) && !l.openDisabled,
|
|
1194
|
-
placeholder: ((
|
|
1203
|
+
placeholder: ((a = l.areaOptions) == null ? void 0 : a.placeholder) || "",
|
|
1195
1204
|
clearable: l.clearable
|
|
1196
|
-
}, null, 8, ["id", "onMouseenter", "onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "clearable"])) :
|
|
1205
|
+
}, null, 8, ["id", "onMouseenter", "onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "clearable"])) : g("", !0)
|
|
1197
1206
|
];
|
|
1198
1207
|
}),
|
|
1199
1208
|
_: 2
|
|
1200
1209
|
}, 1032, ["content", "disabled"]),
|
|
1201
|
-
|
|
1202
|
-
])) :
|
|
1210
|
+
he
|
|
1211
|
+
])) : g("", !0),
|
|
1203
1212
|
f(L, {
|
|
1204
1213
|
"popper-class": "input-tooltip",
|
|
1205
1214
|
effect: "light",
|
|
@@ -1208,9 +1217,9 @@ function we(p, g, C, e, S, x) {
|
|
|
1208
1217
|
disabled: e.isShowTooltip
|
|
1209
1218
|
}, {
|
|
1210
1219
|
default: n(() => {
|
|
1211
|
-
var
|
|
1220
|
+
var a;
|
|
1212
1221
|
return [
|
|
1213
|
-
l.field.nationCode && !e.phoneWrap ? (
|
|
1222
|
+
l.field.nationCode && !e.phoneWrap ? (o(), i(Z, {
|
|
1214
1223
|
key: 0,
|
|
1215
1224
|
class: t([
|
|
1216
1225
|
"tooltip-select",
|
|
@@ -1223,7 +1232,7 @@ function we(p, g, C, e, S, x) {
|
|
|
1223
1232
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyNation) && !l.openDisabled,
|
|
1224
1233
|
modelValue: e.states.model[l.field.nationCode],
|
|
1225
1234
|
"onUpdate:modelValue": (d) => e.states.model[l.field.nationCode] = d,
|
|
1226
|
-
placeholder: ((
|
|
1235
|
+
placeholder: ((a = l.nationOptions) == null ? void 0 : a.placeholder) || "",
|
|
1227
1236
|
style: D("width:" + l.widthNation),
|
|
1228
1237
|
"fit-input-width": !0,
|
|
1229
1238
|
"suffix-icon": e.IconDropDown,
|
|
@@ -1232,20 +1241,20 @@ function we(p, g, C, e, S, x) {
|
|
|
1232
1241
|
default: n(() => {
|
|
1233
1242
|
var d;
|
|
1234
1243
|
return [
|
|
1235
|
-
(
|
|
1244
|
+
(o(!0), M(k, null, w((d = l.nationOptions) == null ? void 0 : d.data, (A, Q) => (o(), i(V, {
|
|
1236
1245
|
label: A.name,
|
|
1237
1246
|
value: A.code,
|
|
1238
|
-
key:
|
|
1247
|
+
key: Q
|
|
1239
1248
|
}, null, 8, ["label", "value"]))), 128))
|
|
1240
1249
|
];
|
|
1241
1250
|
}),
|
|
1242
1251
|
_: 2
|
|
1243
|
-
}, 1032, ["id", "onMouseenter", "disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class", "style", "suffix-icon", "clear-icon"])) :
|
|
1252
|
+
}, 1032, ["id", "onMouseenter", "disabled", "modelValue", "onUpdate:modelValue", "placeholder", "class", "style", "suffix-icon", "clear-icon"])) : g("", !0)
|
|
1244
1253
|
];
|
|
1245
1254
|
}),
|
|
1246
1255
|
_: 2
|
|
1247
1256
|
}, 1032, ["content", "disabled"]),
|
|
1248
|
-
e.phoneWrap ?
|
|
1257
|
+
e.phoneWrap ? g("", !0) : (o(), M("div", je, " - ")),
|
|
1249
1258
|
f(L, {
|
|
1250
1259
|
"popper-class": "input-tooltip",
|
|
1251
1260
|
effect: "light",
|
|
@@ -1254,9 +1263,9 @@ function we(p, g, C, e, S, x) {
|
|
|
1254
1263
|
disabled: e.isShowTooltip
|
|
1255
1264
|
}, {
|
|
1256
1265
|
default: n(() => {
|
|
1257
|
-
var
|
|
1266
|
+
var a;
|
|
1258
1267
|
return [
|
|
1259
|
-
l.field.areaCode && !e.phoneWrap ? (
|
|
1268
|
+
l.field.areaCode && !e.phoneWrap ? (o(), i(O, {
|
|
1260
1269
|
key: 0,
|
|
1261
1270
|
class: t([
|
|
1262
1271
|
"tooltip-input",
|
|
@@ -1285,15 +1294,15 @@ function we(p, g, C, e, S, x) {
|
|
|
1285
1294
|
modelValue: e.states.model[l.field.areaCode],
|
|
1286
1295
|
"onUpdate:modelValue": (d) => e.states.model[l.field.areaCode] = d,
|
|
1287
1296
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyArea) && !l.openDisabled,
|
|
1288
|
-
placeholder: ((
|
|
1297
|
+
placeholder: ((a = l.areaOptions) == null ? void 0 : a.placeholder) || "",
|
|
1289
1298
|
style: D("width:" + l.widthArea),
|
|
1290
1299
|
clearable: l.clearable
|
|
1291
|
-
}, null, 8, ["id", "onMouseenter", "onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "style", "clearable"])) :
|
|
1300
|
+
}, null, 8, ["id", "onMouseenter", "onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "style", "clearable"])) : g("", !0)
|
|
1292
1301
|
];
|
|
1293
1302
|
}),
|
|
1294
1303
|
_: 2
|
|
1295
1304
|
}, 1032, ["content", "disabled"]),
|
|
1296
|
-
e.phoneWrap ?
|
|
1305
|
+
e.phoneWrap ? g("", !0) : (o(), M("div", Oe, " - ")),
|
|
1297
1306
|
f(L, {
|
|
1298
1307
|
"popper-class": "input-tooltip",
|
|
1299
1308
|
effect: "light",
|
|
@@ -1302,88 +1311,88 @@ function we(p, g, C, e, S, x) {
|
|
|
1302
1311
|
disabled: e.isShowTooltip
|
|
1303
1312
|
}, {
|
|
1304
1313
|
default: n(() => [
|
|
1305
|
-
l.field.phoneNumber ? (
|
|
1314
|
+
l.field.phoneNumber ? (o(), i(O, {
|
|
1306
1315
|
key: 0,
|
|
1307
1316
|
class: t([
|
|
1308
1317
|
"tooltip-input",
|
|
1309
1318
|
(l.isReadonly || l.isReadonlyPhoneNumber || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
1310
1319
|
]),
|
|
1311
1320
|
id: l.field.phoneNumber,
|
|
1312
|
-
onMouseenter: (
|
|
1313
|
-
onBlur: (
|
|
1314
|
-
|
|
1321
|
+
onMouseenter: (a) => e.visibilityChange(l.field.phoneNumber),
|
|
1322
|
+
onBlur: (a) => e.inputBlur(
|
|
1323
|
+
a,
|
|
1315
1324
|
typeof l.field == "string" ? l.field : l.field.phoneNumber
|
|
1316
1325
|
),
|
|
1317
|
-
onFocus: (
|
|
1318
|
-
|
|
1326
|
+
onFocus: (a) => e.inputFocus(
|
|
1327
|
+
a,
|
|
1319
1328
|
typeof l.field == "string" ? l.field : l.field.phoneNumber
|
|
1320
1329
|
),
|
|
1321
|
-
onChange: (
|
|
1322
|
-
|
|
1330
|
+
onChange: (a) => e.inputChange(
|
|
1331
|
+
a,
|
|
1323
1332
|
typeof l.field == "string" ? l.field : l.field.phoneNumber
|
|
1324
1333
|
),
|
|
1325
|
-
onInput: (
|
|
1326
|
-
|
|
1334
|
+
onInput: (a) => e.inputInput(
|
|
1335
|
+
a,
|
|
1327
1336
|
typeof l.field == "string" ? l.field : l.field.phoneNumber
|
|
1328
1337
|
),
|
|
1329
1338
|
maxlength: l.maxlength,
|
|
1330
1339
|
modelValue: e.states.model[l.field.phoneNumber],
|
|
1331
|
-
"onUpdate:modelValue": (
|
|
1340
|
+
"onUpdate:modelValue": (a) => e.states.model[l.field.phoneNumber] = a,
|
|
1332
1341
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly || l.isReadonlyPhoneNumber) && !l.openDisabled,
|
|
1333
1342
|
placeholder: l.placeholder || "",
|
|
1334
1343
|
style: D("width:" + l.widthPhoneNumber),
|
|
1335
1344
|
clearable: l.clearable
|
|
1336
|
-
}, null, 8, ["id", "onMouseenter", "onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "style", "clearable"])) :
|
|
1345
|
+
}, null, 8, ["id", "onMouseenter", "onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "style", "clearable"])) : g("", !0)
|
|
1337
1346
|
]),
|
|
1338
1347
|
_: 2
|
|
1339
1348
|
}, 1032, ["content", "disabled"])
|
|
1340
1349
|
], 2)
|
|
1341
1350
|
]),
|
|
1342
1351
|
_: 2
|
|
1343
|
-
}, 1032, ["label", "rules", "prop"])) : l.type === "line" ? (
|
|
1352
|
+
}, 1032, ["label", "rules", "prop"])) : l.type === "line" ? (o(), i(N, {
|
|
1344
1353
|
key: 14,
|
|
1345
1354
|
label: l.label
|
|
1346
1355
|
}, {
|
|
1347
1356
|
default: n(() => [
|
|
1348
|
-
|
|
1357
|
+
Ae
|
|
1349
1358
|
]),
|
|
1350
1359
|
_: 2
|
|
1351
|
-
}, 1032, ["label"])) : l.type === "number" && typeof l.field == "string" ? (
|
|
1360
|
+
}, 1032, ["label"])) : l.type === "number" && typeof l.field == "string" ? (o(), i(N, {
|
|
1352
1361
|
key: 15,
|
|
1353
1362
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
1354
1363
|
prop: l.field,
|
|
1355
1364
|
class: t(l.prepend ? "input-item" : "")
|
|
1356
1365
|
}, {
|
|
1357
1366
|
label: n(() => [
|
|
1358
|
-
l.slotLabelName ?
|
|
1367
|
+
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (o(), M("div", {
|
|
1359
1368
|
key: 0,
|
|
1360
1369
|
style: D(l.labelStyle)
|
|
1361
1370
|
}, [
|
|
1362
1371
|
T(c(l.label) + " ", 1),
|
|
1363
|
-
l.required ? (
|
|
1372
|
+
l.required ? (o(), M("span", ke, "*")) : g("", !0)
|
|
1364
1373
|
], 4))
|
|
1365
1374
|
]),
|
|
1366
1375
|
default: n(() => [
|
|
1367
1376
|
f(O, {
|
|
1368
|
-
onBlur: (
|
|
1369
|
-
|
|
1377
|
+
onBlur: (a) => e.inputBlur(
|
|
1378
|
+
a,
|
|
1370
1379
|
typeof l.field == "string" ? l.field : ""
|
|
1371
1380
|
),
|
|
1372
|
-
onFocus: (
|
|
1373
|
-
|
|
1381
|
+
onFocus: (a) => e.inputFocus(
|
|
1382
|
+
a,
|
|
1374
1383
|
typeof l.field == "string" ? l.field : ""
|
|
1375
1384
|
),
|
|
1376
|
-
onChange: (
|
|
1377
|
-
|
|
1385
|
+
onChange: (a) => e.inputChange(
|
|
1386
|
+
a,
|
|
1378
1387
|
typeof l.field == "string" ? l.field : ""
|
|
1379
1388
|
),
|
|
1380
|
-
onInput: (
|
|
1381
|
-
|
|
1389
|
+
onInput: (a) => e.inputInput(
|
|
1390
|
+
a,
|
|
1382
1391
|
typeof l.field == "string" ? l.field : ""
|
|
1383
1392
|
),
|
|
1384
1393
|
maxlength: l.maxlength,
|
|
1385
1394
|
modelValue: e.states.model[typeof l.field == "string" ? l.field : ""],
|
|
1386
|
-
"onUpdate:modelValue": (
|
|
1395
|
+
"onUpdate:modelValue": (a) => e.states.model[typeof l.field == "string" ? l.field : ""] = a,
|
|
1387
1396
|
"show-word-limit": l.showWordLimit,
|
|
1388
1397
|
readonly: l.readonly,
|
|
1389
1398
|
type: l.type ? l.type : "number",
|
|
@@ -1396,7 +1405,7 @@ function we(p, g, C, e, S, x) {
|
|
|
1396
1405
|
class: t(
|
|
1397
1406
|
(l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""
|
|
1398
1407
|
),
|
|
1399
|
-
onKeyup: U((
|
|
1408
|
+
onKeyup: U((a) => e.handleKeyUp(l.enterable), ["enter"])
|
|
1400
1409
|
}, K({ _: 2 }, [
|
|
1401
1410
|
l.prepend ? {
|
|
1402
1411
|
name: "prepend",
|
|
@@ -1415,19 +1424,19 @@ function we(p, g, C, e, S, x) {
|
|
|
1415
1424
|
]), 1032, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "show-word-limit", "readonly", "type", "rows", "placeholder", "disabled", "showPassword", "clearable", "class", "onKeyup"])
|
|
1416
1425
|
]),
|
|
1417
1426
|
_: 2
|
|
1418
|
-
}, 1032, ["rules", "prop", "class"])) : (
|
|
1427
|
+
}, 1032, ["rules", "prop", "class"])) : (o(), i(N, {
|
|
1419
1428
|
key: 16,
|
|
1420
1429
|
rules: l.isHide || e.noFormRule || l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly ? [] : l.rules,
|
|
1421
1430
|
prop: l.field,
|
|
1422
1431
|
class: t(l.prepend ? "input-item" : "")
|
|
1423
1432
|
}, {
|
|
1424
1433
|
label: n(() => [
|
|
1425
|
-
l.slotLabelName ?
|
|
1434
|
+
l.slotLabelName ? j(p.$slots, l.slotLabelName, { key: 1 }, void 0, !0) : (o(), M("div", {
|
|
1426
1435
|
key: 0,
|
|
1427
1436
|
style: D(l.labelStyle)
|
|
1428
1437
|
}, [
|
|
1429
1438
|
T(c(l.label) + " ", 1),
|
|
1430
|
-
l.required ? (
|
|
1439
|
+
l.required ? (o(), M("span", we, "*")) : g("", !0)
|
|
1431
1440
|
], 4))
|
|
1432
1441
|
]),
|
|
1433
1442
|
default: n(() => [
|
|
@@ -1442,14 +1451,14 @@ function we(p, g, C, e, S, x) {
|
|
|
1442
1451
|
f(O, {
|
|
1443
1452
|
class: t(["tooltip-input", (l.isReadonly || e.formOptions.isAllReadonly) && !l.openDisabled ? "readonly" : ""]),
|
|
1444
1453
|
id: l.field,
|
|
1445
|
-
onMouseenter: (
|
|
1446
|
-
onBlur: (
|
|
1447
|
-
onFocus: (
|
|
1448
|
-
onChange: (
|
|
1449
|
-
onInput: (
|
|
1454
|
+
onMouseenter: (a) => e.visibilityChange(l.field),
|
|
1455
|
+
onBlur: (a) => e.inputBlur(a, typeof l.field == "string" ? l.field : ""),
|
|
1456
|
+
onFocus: (a) => e.inputFocus(a, typeof l.field == "string" ? l.field : ""),
|
|
1457
|
+
onChange: (a) => e.inputChange(a, typeof l.field == "string" ? l.field : ""),
|
|
1458
|
+
onInput: (a) => e.inputInput(a, typeof l.field == "string" ? l.field : ""),
|
|
1450
1459
|
maxlength: l.maxlength,
|
|
1451
1460
|
modelValue: e.states.model[typeof l.field == "string" ? l.field : ""],
|
|
1452
|
-
"onUpdate:modelValue": (
|
|
1461
|
+
"onUpdate:modelValue": (a) => e.states.model[typeof l.field == "string" ? l.field : ""] = a,
|
|
1453
1462
|
"show-word-limit": l.showWordLimit,
|
|
1454
1463
|
readonly: l.readonly,
|
|
1455
1464
|
type: l.type ? l.type : "text",
|
|
@@ -1458,7 +1467,7 @@ function we(p, g, C, e, S, x) {
|
|
|
1458
1467
|
disabled: (l.disabled || e.formOptions.isAllDisabled || e.formOptions.isAllReadonly || l.isReadonly) && !l.openDisabled,
|
|
1459
1468
|
showPassword: l.showPassword,
|
|
1460
1469
|
clearable: l.clearable,
|
|
1461
|
-
onKeyup: U((
|
|
1470
|
+
onKeyup: U((a) => e.handleKeyUp(l.enterable), ["enter"])
|
|
1462
1471
|
}, K({ _: 2 }, [
|
|
1463
1472
|
l.prepend ? {
|
|
1464
1473
|
name: "prepend",
|
|
@@ -1485,19 +1494,19 @@ function we(p, g, C, e, S, x) {
|
|
|
1485
1494
|
]),
|
|
1486
1495
|
_: 2
|
|
1487
1496
|
}, 1032, ["xs", "sm", "md", "lg", "xl"])), [
|
|
1488
|
-
[
|
|
1497
|
+
[vl, !l.isHide]
|
|
1489
1498
|
])), 128))
|
|
1490
1499
|
]),
|
|
1491
1500
|
_: 3
|
|
1492
1501
|
}),
|
|
1493
1502
|
f(N, { class: "btnsItem" }, {
|
|
1494
1503
|
default: n(() => [
|
|
1495
|
-
|
|
1504
|
+
j(p.$slots, "buttons", {
|
|
1496
1505
|
model: C.model,
|
|
1497
1506
|
onBtnClick: e.onSubmit
|
|
1498
1507
|
}, () => [
|
|
1499
|
-
(
|
|
1500
|
-
l.isShow ? (
|
|
1508
|
+
(o(!0), M(k, null, w(e.formOptions.btnConfig, (l, P) => (o(), M("div", { key: P }, [
|
|
1509
|
+
l.isShow ? (o(), i(J, {
|
|
1501
1510
|
key: 0,
|
|
1502
1511
|
btnCode: l.btnCode,
|
|
1503
1512
|
plain: l.plain,
|
|
@@ -1522,13 +1531,13 @@ function we(p, g, C, e, S, x) {
|
|
|
1522
1531
|
fontWeight: l.fontWeight,
|
|
1523
1532
|
style: D(l.style),
|
|
1524
1533
|
class: t(l.class),
|
|
1525
|
-
onHandleClick: (
|
|
1534
|
+
onHandleClick: (a) => e.handleClick(a, l.isRule, l.emitName)
|
|
1526
1535
|
}, {
|
|
1527
1536
|
default: n(() => [
|
|
1528
1537
|
T(c(l.name), 1)
|
|
1529
1538
|
]),
|
|
1530
1539
|
_: 2
|
|
1531
|
-
}, 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"])) :
|
|
1540
|
+
}, 1032, ["btnCode", "plain", "primary", "info", "text", "debounced", "link", "loading", "loadingColor", "width", "height", "circle", "color", "bgColor", "borderColor", "borderStyle", "borderWidth", "icon", "size", "fontSize", "fontWeight", "style", "class", "onHandleClick"])) : g("", !0)
|
|
1532
1541
|
]))), 128))
|
|
1533
1542
|
], !0)
|
|
1534
1543
|
]),
|
|
@@ -1538,8 +1547,8 @@ function we(p, g, C, e, S, x) {
|
|
|
1538
1547
|
_: 3
|
|
1539
1548
|
}, 16, ["model", "label-position"]);
|
|
1540
1549
|
}
|
|
1541
|
-
const pl = /* @__PURE__ */ Bl
|
|
1542
|
-
function ol(p,
|
|
1550
|
+
const pl = /* @__PURE__ */ Zl(Bl, [["render", ze], ["__scopeId", "data-v-1de562fa"]]);
|
|
1551
|
+
function ol(p, u = {}) {
|
|
1543
1552
|
ol.installed || (ol.installed = !0, p.component("common-el-form", pl));
|
|
1544
1553
|
}
|
|
1545
1554
|
pl.install = ol;
|