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