jtui-vite 1.0.2 → 1.0.3
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/dist/jtui-vite.es.js +370 -383
- package/dist/jtui-vite.umd.js +1 -1
- package/dist/resolver.js +60 -0
- package/package.json +17 -6
package/dist/jtui-vite.es.js
CHANGED
|
@@ -1,38 +1,20 @@
|
|
|
1
1
|
import './jtui-vite.css';
|
|
2
|
-
import { resolveComponent as _, createBlock as
|
|
3
|
-
|
|
4
|
-
const c = o.__vccOpts || o;
|
|
5
|
-
for (const [a, m] of i)
|
|
6
|
-
c[a] = m;
|
|
7
|
-
return c;
|
|
8
|
-
}, Re = {
|
|
9
|
-
name: "cus-button"
|
|
10
|
-
};
|
|
11
|
-
function Ae(o, i, c, a, m, H) {
|
|
12
|
-
const E = _("el-button");
|
|
13
|
-
return n(), f(E, Ce(Fe(o.$attrs)), {
|
|
14
|
-
default: g(() => [
|
|
15
|
-
ie(o.$slots, "default")
|
|
16
|
-
]),
|
|
17
|
-
_: 3
|
|
18
|
-
}, 16);
|
|
19
|
-
}
|
|
20
|
-
const Ue = /* @__PURE__ */ _e(Re, [["render", Ae]]);
|
|
21
|
-
function Se(o) {
|
|
2
|
+
import { resolveComponent as _, createBlock as p, openBlock as r, withCtx as E, createCommentVNode as h, createVNode as ae, createElementBlock as D, Fragment as P, renderList as q, normalizeStyle as C, renderSlot as ie, toDisplayString as W, withModifiers as me, normalizeClass as be, createTextVNode as ce, createElementVNode as ge, ref as te, getCurrentInstance as _e, reactive as ye, toRef as Ce, computed as xe, shallowRef as Fe, onBeforeUnmount as Ve, watch as ke, nextTick as Ee, useCssVars as Me } from "vue";
|
|
3
|
+
function Ye(u) {
|
|
22
4
|
var i = { 11: "北京", 12: "天津", 13: "河北", 14: "山西", 15: "内蒙古", 21: "辽宁", 22: "吉林", 23: "黑龙江 ", 31: "上海", 32: "江苏", 33: "浙江", 34: "安徽", 35: "福建", 36: "江西", 37: "山东", 41: "河南", 42: "湖北 ", 43: "湖南", 44: "广东", 45: "广西", 46: "海南", 50: "重庆", 51: "四川", 52: "贵州", 53: "云南", 54: "西藏 ", 61: "陕西", 62: "甘肃", 63: "青海", 64: "宁夏", 65: "新疆", 71: "台湾", 81: "香港", 82: "澳门", 91: "国外 " }, c = !0;
|
|
23
|
-
if (!
|
|
5
|
+
if (!u || !/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[012])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(u))
|
|
24
6
|
c = !1;
|
|
25
|
-
else if (!i[
|
|
7
|
+
else if (!i[u.substr(0, 2)])
|
|
26
8
|
c = !1;
|
|
27
|
-
else if (
|
|
28
|
-
|
|
29
|
-
for (var a = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2], m = [1, 0, "X", 9, 8, 7, 6, 5, 4, 3, 2],
|
|
30
|
-
|
|
31
|
-
m[
|
|
9
|
+
else if (u.length == 18) {
|
|
10
|
+
u = u.split("");
|
|
11
|
+
for (var a = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2], m = [1, 0, "X", 9, 8, 7, 6, 5, 4, 3, 2], O = 0, v = 0, R = 0, K = 0; K < 17; K++)
|
|
12
|
+
v = u[K], R = a[K], O += v * R;
|
|
13
|
+
m[O % 11], m[O % 11] != u[17] && (c = !1);
|
|
32
14
|
}
|
|
33
15
|
return c;
|
|
34
16
|
}
|
|
35
|
-
class
|
|
17
|
+
class Ke {
|
|
36
18
|
//必传(失去焦点)
|
|
37
19
|
required() {
|
|
38
20
|
return { required: !0, whitespace: !0, message: "该项必须填写", trigger: "blur" };
|
|
@@ -64,7 +46,7 @@ class Te {
|
|
|
64
46
|
//身份证
|
|
65
47
|
idCard() {
|
|
66
48
|
return { validator: (c, a, m) => {
|
|
67
|
-
|
|
49
|
+
Ye(a) || m(new Error("身份证号码不正确")), m();
|
|
68
50
|
}, trigger: "blur" };
|
|
69
51
|
}
|
|
70
52
|
//手机号
|
|
@@ -91,166 +73,166 @@ class Te {
|
|
|
91
73
|
}, trigger: "blur" };
|
|
92
74
|
}
|
|
93
75
|
}
|
|
94
|
-
function
|
|
95
|
-
return
|
|
76
|
+
function Be(u) {
|
|
77
|
+
return u && u.__esModule && Object.prototype.hasOwnProperty.call(u, "default") ? u.default : u;
|
|
96
78
|
}
|
|
97
|
-
var he = { exports: {} },
|
|
98
|
-
function
|
|
99
|
-
return
|
|
79
|
+
var he = { exports: {} }, Re = he.exports, ve;
|
|
80
|
+
function Ae() {
|
|
81
|
+
return ve || (ve = 1, (function(u, i) {
|
|
100
82
|
(function(c, a) {
|
|
101
|
-
|
|
102
|
-
})(
|
|
103
|
-
var c = 1e3, a = 6e4, m = 36e5,
|
|
104
|
-
var
|
|
105
|
-
return "[" + e + (
|
|
106
|
-
} }, X = function(e,
|
|
83
|
+
u.exports = a();
|
|
84
|
+
})(Re, (function() {
|
|
85
|
+
var c = 1e3, a = 6e4, m = 36e5, O = "millisecond", v = "second", R = "minute", K = "hour", V = "day", H = "week", k = "month", z = "quarter", A = "year", U = "date", Z = "Invalid Date", oe = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ue = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, ne = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(e) {
|
|
86
|
+
var o = ["th", "st", "nd", "rd"], l = e % 100;
|
|
87
|
+
return "[" + e + (o[(l - 20) % 10] || o[l] || o[0]) + "]";
|
|
88
|
+
} }, X = function(e, o, l) {
|
|
107
89
|
var d = String(e);
|
|
108
|
-
return !d || d.length >=
|
|
90
|
+
return !d || d.length >= o ? e : "" + Array(o + 1 - d.length).join(l) + e;
|
|
109
91
|
}, re = { s: X, z: function(e) {
|
|
110
|
-
var
|
|
111
|
-
return (
|
|
112
|
-
}, m: function e(
|
|
113
|
-
if (
|
|
114
|
-
var d = 12 * (l.year() -
|
|
115
|
-
return +(-(d + (l -
|
|
92
|
+
var o = -e.utcOffset(), l = Math.abs(o), d = Math.floor(l / 60), n = l % 60;
|
|
93
|
+
return (o <= 0 ? "+" : "-") + X(d, 2, "0") + ":" + X(n, 2, "0");
|
|
94
|
+
}, m: function e(o, l) {
|
|
95
|
+
if (o.date() < l.date()) return -e(l, o);
|
|
96
|
+
var d = 12 * (l.year() - o.year()) + (l.month() - o.month()), n = o.clone().add(d, k), f = l - n < 0, y = o.clone().add(d + (f ? -1 : 1), k);
|
|
97
|
+
return +(-(d + (l - n) / (f ? n - y : y - n)) || 0);
|
|
116
98
|
}, a: function(e) {
|
|
117
99
|
return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
|
|
118
100
|
}, p: function(e) {
|
|
119
|
-
return { M: k, y: A, w:
|
|
101
|
+
return { M: k, y: A, w: H, d: V, D: U, h: K, m: R, s: v, ms: O, Q: z }[e] || String(e || "").toLowerCase().replace(/s$/, "");
|
|
120
102
|
}, u: function(e) {
|
|
121
103
|
return e === void 0;
|
|
122
104
|
} }, Q = "en", L = {};
|
|
123
105
|
L[Q] = ne;
|
|
124
106
|
var de = "$isDayjsObject", le = function(e) {
|
|
125
107
|
return e instanceof $ || !(!e || !e[de]);
|
|
126
|
-
}, G = function e(
|
|
127
|
-
var
|
|
128
|
-
if (!
|
|
129
|
-
if (typeof
|
|
130
|
-
var
|
|
131
|
-
L[
|
|
132
|
-
var y =
|
|
133
|
-
if (!
|
|
108
|
+
}, G = function e(o, l, d) {
|
|
109
|
+
var n;
|
|
110
|
+
if (!o) return Q;
|
|
111
|
+
if (typeof o == "string") {
|
|
112
|
+
var f = o.toLowerCase();
|
|
113
|
+
L[f] && (n = f), l && (L[f] = l, n = f);
|
|
114
|
+
var y = o.split("-");
|
|
115
|
+
if (!n && y.length > 1) return e(y[0]);
|
|
134
116
|
} else {
|
|
135
|
-
var
|
|
136
|
-
L[
|
|
117
|
+
var g = o.name;
|
|
118
|
+
L[g] = o, n = g;
|
|
137
119
|
}
|
|
138
|
-
return !d &&
|
|
139
|
-
},
|
|
120
|
+
return !d && n && (Q = n), n || !d && Q;
|
|
121
|
+
}, x = function(e, o) {
|
|
140
122
|
if (le(e)) return e.clone();
|
|
141
|
-
var l = typeof
|
|
123
|
+
var l = typeof o == "object" ? o : {};
|
|
142
124
|
return l.date = e, l.args = arguments, new $(l);
|
|
143
125
|
}, b = re;
|
|
144
|
-
b.l = G, b.i = le, b.w = function(e,
|
|
145
|
-
return
|
|
126
|
+
b.l = G, b.i = le, b.w = function(e, o) {
|
|
127
|
+
return x(e, { locale: o.$L, utc: o.$u, x: o.$x, $offset: o.$offset });
|
|
146
128
|
};
|
|
147
129
|
var $ = (function() {
|
|
148
130
|
function e(l) {
|
|
149
131
|
this.$L = G(l.locale, null, !0), this.parse(l), this.$x = this.$x || l.x || {}, this[de] = !0;
|
|
150
132
|
}
|
|
151
|
-
var
|
|
152
|
-
return
|
|
133
|
+
var o = e.prototype;
|
|
134
|
+
return o.parse = function(l) {
|
|
153
135
|
this.$d = (function(d) {
|
|
154
|
-
var
|
|
155
|
-
if (
|
|
156
|
-
if (b.u(
|
|
157
|
-
if (
|
|
158
|
-
if (typeof
|
|
159
|
-
var y =
|
|
136
|
+
var n = d.date, f = d.utc;
|
|
137
|
+
if (n === null) return /* @__PURE__ */ new Date(NaN);
|
|
138
|
+
if (b.u(n)) return /* @__PURE__ */ new Date();
|
|
139
|
+
if (n instanceof Date) return new Date(n);
|
|
140
|
+
if (typeof n == "string" && !/Z$/i.test(n)) {
|
|
141
|
+
var y = n.match(oe);
|
|
160
142
|
if (y) {
|
|
161
|
-
var
|
|
162
|
-
return
|
|
143
|
+
var g = y[2] - 1 || 0, w = (y[7] || "0").substring(0, 3);
|
|
144
|
+
return f ? new Date(Date.UTC(y[1], g, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, w)) : new Date(y[1], g, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, w);
|
|
163
145
|
}
|
|
164
146
|
}
|
|
165
|
-
return new Date(
|
|
147
|
+
return new Date(n);
|
|
166
148
|
})(l), this.init();
|
|
167
|
-
},
|
|
149
|
+
}, o.init = function() {
|
|
168
150
|
var l = this.$d;
|
|
169
151
|
this.$y = l.getFullYear(), this.$M = l.getMonth(), this.$D = l.getDate(), this.$W = l.getDay(), this.$H = l.getHours(), this.$m = l.getMinutes(), this.$s = l.getSeconds(), this.$ms = l.getMilliseconds();
|
|
170
|
-
},
|
|
152
|
+
}, o.$utils = function() {
|
|
171
153
|
return b;
|
|
172
|
-
},
|
|
154
|
+
}, o.isValid = function() {
|
|
173
155
|
return this.$d.toString() !== Z;
|
|
174
|
-
},
|
|
175
|
-
var
|
|
176
|
-
return this.startOf(d) <=
|
|
177
|
-
},
|
|
178
|
-
return
|
|
179
|
-
},
|
|
180
|
-
return this.endOf(d) <
|
|
181
|
-
},
|
|
182
|
-
return b.u(l) ? this[d] : this.set(
|
|
183
|
-
},
|
|
156
|
+
}, o.isSame = function(l, d) {
|
|
157
|
+
var n = x(l);
|
|
158
|
+
return this.startOf(d) <= n && n <= this.endOf(d);
|
|
159
|
+
}, o.isAfter = function(l, d) {
|
|
160
|
+
return x(l) < this.startOf(d);
|
|
161
|
+
}, o.isBefore = function(l, d) {
|
|
162
|
+
return this.endOf(d) < x(l);
|
|
163
|
+
}, o.$g = function(l, d, n) {
|
|
164
|
+
return b.u(l) ? this[d] : this.set(n, l);
|
|
165
|
+
}, o.unix = function() {
|
|
184
166
|
return Math.floor(this.valueOf() / 1e3);
|
|
185
|
-
},
|
|
167
|
+
}, o.valueOf = function() {
|
|
186
168
|
return this.$d.getTime();
|
|
187
|
-
},
|
|
188
|
-
var
|
|
189
|
-
var N = b.w(
|
|
190
|
-
return
|
|
169
|
+
}, o.startOf = function(l, d) {
|
|
170
|
+
var n = this, f = !!b.u(d) || d, y = b.p(l), g = function(S, B) {
|
|
171
|
+
var N = b.w(n.$u ? Date.UTC(n.$y, B, S) : new Date(n.$y, B, S), n);
|
|
172
|
+
return f ? N : N.endOf(V);
|
|
191
173
|
}, w = function(S, B) {
|
|
192
|
-
return b.w(
|
|
193
|
-
}, M = this.$W, t = this.$M, s = this.$D,
|
|
174
|
+
return b.w(n.toDate()[S].apply(n.toDate("s"), (f ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(B)), n);
|
|
175
|
+
}, M = this.$W, t = this.$M, s = this.$D, F = "set" + (this.$u ? "UTC" : "");
|
|
194
176
|
switch (y) {
|
|
195
177
|
case A:
|
|
196
|
-
return
|
|
178
|
+
return f ? g(1, 0) : g(31, 11);
|
|
197
179
|
case k:
|
|
198
|
-
return
|
|
199
|
-
case
|
|
180
|
+
return f ? g(1, t) : g(0, t + 1);
|
|
181
|
+
case H:
|
|
200
182
|
var Y = this.$locale().weekStart || 0, T = (M < Y ? M + 7 : M) - Y;
|
|
201
|
-
return
|
|
183
|
+
return g(f ? s - T : s + (6 - T), t);
|
|
202
184
|
case V:
|
|
203
185
|
case U:
|
|
204
|
-
return w(
|
|
186
|
+
return w(F + "Hours", 0);
|
|
205
187
|
case K:
|
|
206
|
-
return w(
|
|
188
|
+
return w(F + "Minutes", 1);
|
|
207
189
|
case R:
|
|
208
|
-
return w(
|
|
209
|
-
case
|
|
210
|
-
return w(
|
|
190
|
+
return w(F + "Seconds", 2);
|
|
191
|
+
case v:
|
|
192
|
+
return w(F + "Milliseconds", 3);
|
|
211
193
|
default:
|
|
212
194
|
return this.clone();
|
|
213
195
|
}
|
|
214
|
-
},
|
|
196
|
+
}, o.endOf = function(l) {
|
|
215
197
|
return this.startOf(l, !1);
|
|
216
|
-
},
|
|
217
|
-
var
|
|
218
|
-
if (
|
|
198
|
+
}, o.$set = function(l, d) {
|
|
199
|
+
var n, f = b.p(l), y = "set" + (this.$u ? "UTC" : ""), g = (n = {}, n[V] = y + "Date", n[U] = y + "Date", n[k] = y + "Month", n[A] = y + "FullYear", n[K] = y + "Hours", n[R] = y + "Minutes", n[v] = y + "Seconds", n[O] = y + "Milliseconds", n)[f], w = f === V ? this.$D + (d - this.$W) : d;
|
|
200
|
+
if (f === k || f === A) {
|
|
219
201
|
var M = this.clone().set(U, 1);
|
|
220
|
-
M.$d[
|
|
221
|
-
} else
|
|
202
|
+
M.$d[g](w), M.init(), this.$d = M.set(U, Math.min(this.$D, M.daysInMonth())).$d;
|
|
203
|
+
} else g && this.$d[g](w);
|
|
222
204
|
return this.init(), this;
|
|
223
|
-
},
|
|
205
|
+
}, o.set = function(l, d) {
|
|
224
206
|
return this.clone().$set(l, d);
|
|
225
|
-
},
|
|
207
|
+
}, o.get = function(l) {
|
|
226
208
|
return this[b.p(l)]();
|
|
227
|
-
},
|
|
228
|
-
var
|
|
209
|
+
}, o.add = function(l, d) {
|
|
210
|
+
var n, f = this;
|
|
229
211
|
l = Number(l);
|
|
230
|
-
var y = b.p(d),
|
|
231
|
-
var s =
|
|
232
|
-
return b.w(s.date(s.date() + Math.round(t * l)),
|
|
212
|
+
var y = b.p(d), g = function(t) {
|
|
213
|
+
var s = x(f);
|
|
214
|
+
return b.w(s.date(s.date() + Math.round(t * l)), f);
|
|
233
215
|
};
|
|
234
216
|
if (y === k) return this.set(k, this.$M + l);
|
|
235
217
|
if (y === A) return this.set(A, this.$y + l);
|
|
236
|
-
if (y === V) return
|
|
237
|
-
if (y ===
|
|
238
|
-
var w = (
|
|
218
|
+
if (y === V) return g(1);
|
|
219
|
+
if (y === H) return g(7);
|
|
220
|
+
var w = (n = {}, n[R] = a, n[K] = m, n[v] = c, n)[y] || 1, M = this.$d.getTime() + l * w;
|
|
239
221
|
return b.w(M, this);
|
|
240
|
-
},
|
|
222
|
+
}, o.subtract = function(l, d) {
|
|
241
223
|
return this.add(-1 * l, d);
|
|
242
|
-
},
|
|
243
|
-
var d = this,
|
|
244
|
-
if (!this.isValid()) return
|
|
245
|
-
var
|
|
246
|
-
return B && (B[N] || B(d,
|
|
224
|
+
}, o.format = function(l) {
|
|
225
|
+
var d = this, n = this.$locale();
|
|
226
|
+
if (!this.isValid()) return n.invalidDate || Z;
|
|
227
|
+
var f = l || "YYYY-MM-DDTHH:mm:ssZ", y = b.z(this), g = this.$H, w = this.$m, M = this.$M, t = n.weekdays, s = n.months, F = n.meridiem, Y = function(B, N, J, ee) {
|
|
228
|
+
return B && (B[N] || B(d, f)) || J[N].slice(0, ee);
|
|
247
229
|
}, T = function(B) {
|
|
248
|
-
return b.s(
|
|
249
|
-
}, S =
|
|
230
|
+
return b.s(g % 12 || 12, B, "0");
|
|
231
|
+
}, S = F || function(B, N, J) {
|
|
250
232
|
var ee = B < 12 ? "AM" : "PM";
|
|
251
233
|
return J ? ee.toLowerCase() : ee;
|
|
252
234
|
};
|
|
253
|
-
return
|
|
235
|
+
return f.replace(ue, (function(B, N) {
|
|
254
236
|
return N || (function(J) {
|
|
255
237
|
switch (J) {
|
|
256
238
|
case "YY":
|
|
@@ -262,7 +244,7 @@ function Oe() {
|
|
|
262
244
|
case "MM":
|
|
263
245
|
return b.s(M + 1, 2, "0");
|
|
264
246
|
case "MMM":
|
|
265
|
-
return Y(
|
|
247
|
+
return Y(n.monthsShort, M, s, 3);
|
|
266
248
|
case "MMMM":
|
|
267
249
|
return Y(s, M);
|
|
268
250
|
case "D":
|
|
@@ -272,23 +254,23 @@ function Oe() {
|
|
|
272
254
|
case "d":
|
|
273
255
|
return String(d.$W);
|
|
274
256
|
case "dd":
|
|
275
|
-
return Y(
|
|
257
|
+
return Y(n.weekdaysMin, d.$W, t, 2);
|
|
276
258
|
case "ddd":
|
|
277
|
-
return Y(
|
|
259
|
+
return Y(n.weekdaysShort, d.$W, t, 3);
|
|
278
260
|
case "dddd":
|
|
279
261
|
return t[d.$W];
|
|
280
262
|
case "H":
|
|
281
|
-
return String(
|
|
263
|
+
return String(g);
|
|
282
264
|
case "HH":
|
|
283
|
-
return b.s(
|
|
265
|
+
return b.s(g, 2, "0");
|
|
284
266
|
case "h":
|
|
285
267
|
return T(1);
|
|
286
268
|
case "hh":
|
|
287
269
|
return T(2);
|
|
288
270
|
case "a":
|
|
289
|
-
return S(
|
|
271
|
+
return S(g, w, !0);
|
|
290
272
|
case "A":
|
|
291
|
-
return S(
|
|
273
|
+
return S(g, w, !1);
|
|
292
274
|
case "m":
|
|
293
275
|
return String(w);
|
|
294
276
|
case "mm":
|
|
@@ -305,119 +287,119 @@ function Oe() {
|
|
|
305
287
|
return null;
|
|
306
288
|
})(B) || y.replace(":", "");
|
|
307
289
|
}));
|
|
308
|
-
},
|
|
290
|
+
}, o.utcOffset = function() {
|
|
309
291
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
310
|
-
},
|
|
311
|
-
var
|
|
292
|
+
}, o.diff = function(l, d, n) {
|
|
293
|
+
var f, y = this, g = b.p(d), w = x(l), M = (w.utcOffset() - this.utcOffset()) * a, t = this - w, s = function() {
|
|
312
294
|
return b.m(y, w);
|
|
313
295
|
};
|
|
314
|
-
switch (
|
|
296
|
+
switch (g) {
|
|
315
297
|
case A:
|
|
316
|
-
|
|
298
|
+
f = s() / 12;
|
|
317
299
|
break;
|
|
318
300
|
case k:
|
|
319
|
-
|
|
301
|
+
f = s();
|
|
320
302
|
break;
|
|
321
|
-
case
|
|
322
|
-
|
|
303
|
+
case z:
|
|
304
|
+
f = s() / 3;
|
|
323
305
|
break;
|
|
324
|
-
case
|
|
325
|
-
|
|
306
|
+
case H:
|
|
307
|
+
f = (t - M) / 6048e5;
|
|
326
308
|
break;
|
|
327
309
|
case V:
|
|
328
|
-
|
|
310
|
+
f = (t - M) / 864e5;
|
|
329
311
|
break;
|
|
330
312
|
case K:
|
|
331
|
-
|
|
313
|
+
f = t / m;
|
|
332
314
|
break;
|
|
333
315
|
case R:
|
|
334
|
-
|
|
316
|
+
f = t / a;
|
|
335
317
|
break;
|
|
336
|
-
case
|
|
337
|
-
|
|
318
|
+
case v:
|
|
319
|
+
f = t / c;
|
|
338
320
|
break;
|
|
339
321
|
default:
|
|
340
|
-
|
|
322
|
+
f = t;
|
|
341
323
|
}
|
|
342
|
-
return
|
|
343
|
-
},
|
|
324
|
+
return n ? f : b.a(f);
|
|
325
|
+
}, o.daysInMonth = function() {
|
|
344
326
|
return this.endOf(k).$D;
|
|
345
|
-
},
|
|
327
|
+
}, o.$locale = function() {
|
|
346
328
|
return L[this.$L];
|
|
347
|
-
},
|
|
329
|
+
}, o.locale = function(l, d) {
|
|
348
330
|
if (!l) return this.$L;
|
|
349
|
-
var
|
|
350
|
-
return
|
|
351
|
-
},
|
|
331
|
+
var n = this.clone(), f = G(l, d, !0);
|
|
332
|
+
return f && (n.$L = f), n;
|
|
333
|
+
}, o.clone = function() {
|
|
352
334
|
return b.w(this.$d, this);
|
|
353
|
-
},
|
|
335
|
+
}, o.toDate = function() {
|
|
354
336
|
return new Date(this.valueOf());
|
|
355
|
-
},
|
|
337
|
+
}, o.toJSON = function() {
|
|
356
338
|
return this.isValid() ? this.toISOString() : null;
|
|
357
|
-
},
|
|
339
|
+
}, o.toISOString = function() {
|
|
358
340
|
return this.$d.toISOString();
|
|
359
|
-
},
|
|
341
|
+
}, o.toString = function() {
|
|
360
342
|
return this.$d.toUTCString();
|
|
361
343
|
}, e;
|
|
362
344
|
})(), se = $.prototype;
|
|
363
|
-
return
|
|
364
|
-
se[e[1]] = function(
|
|
365
|
-
return this.$g(
|
|
345
|
+
return x.prototype = se, [["$ms", O], ["$s", v], ["$m", R], ["$H", K], ["$W", V], ["$M", k], ["$y", A], ["$D", U]].forEach((function(e) {
|
|
346
|
+
se[e[1]] = function(o) {
|
|
347
|
+
return this.$g(o, e[0], e[1]);
|
|
366
348
|
};
|
|
367
|
-
})),
|
|
368
|
-
return e.$i || (e(
|
|
369
|
-
},
|
|
370
|
-
return
|
|
371
|
-
},
|
|
349
|
+
})), x.extend = function(e, o) {
|
|
350
|
+
return e.$i || (e(o, $, x), e.$i = !0), x;
|
|
351
|
+
}, x.locale = G, x.isDayjs = le, x.unix = function(e) {
|
|
352
|
+
return x(1e3 * e);
|
|
353
|
+
}, x.en = L[Q], x.Ls = L, x.p = {}, x;
|
|
372
354
|
}));
|
|
373
355
|
})(he)), he.exports;
|
|
374
356
|
}
|
|
375
|
-
var
|
|
376
|
-
const
|
|
357
|
+
var Ue = Ae();
|
|
358
|
+
const j = /* @__PURE__ */ Be(Ue), Se = [
|
|
377
359
|
{
|
|
378
360
|
text: "昨天",
|
|
379
361
|
value: () => {
|
|
380
|
-
const
|
|
381
|
-
return [
|
|
362
|
+
const u = j().subtract(1, "days").hour(0).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss"), i = j().subtract(1, "days").hour(23).minute(59).second(59).format("YYYY-MM-DD HH:mm:ss");
|
|
363
|
+
return [u, i];
|
|
382
364
|
}
|
|
383
365
|
},
|
|
384
366
|
{
|
|
385
367
|
text: "今天",
|
|
386
368
|
value: () => {
|
|
387
|
-
const
|
|
388
|
-
return [
|
|
369
|
+
const u = j().hour(0).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss"), i = j().format("YYYY-MM-DD HH:mm:ss");
|
|
370
|
+
return [u, i];
|
|
389
371
|
}
|
|
390
372
|
},
|
|
391
373
|
{
|
|
392
374
|
text: "最近2天",
|
|
393
375
|
value: () => {
|
|
394
|
-
const
|
|
395
|
-
return [
|
|
376
|
+
const u = j().subtract(2, "days").hour(0).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss"), i = j().subtract(1, "days").hour(23).minute(59).second(59).format("YYYY-MM-DD HH:mm:ss");
|
|
377
|
+
return [u, i];
|
|
396
378
|
}
|
|
397
379
|
},
|
|
398
380
|
{
|
|
399
381
|
text: "最近3天",
|
|
400
382
|
value: () => {
|
|
401
|
-
const
|
|
402
|
-
return [
|
|
383
|
+
const u = j().subtract(3, "days").hour(0).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss"), i = j().subtract(1, "days").hour(23).minute(59).second(59).format("YYYY-MM-DD HH:mm:ss");
|
|
384
|
+
return [u, i];
|
|
403
385
|
}
|
|
404
386
|
},
|
|
405
387
|
{
|
|
406
388
|
text: "最近一周",
|
|
407
389
|
value: () => {
|
|
408
|
-
const
|
|
409
|
-
return [
|
|
390
|
+
const u = j().subtract(1, "weeks").hour(0).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss"), i = j().subtract(1, "days").hour(23).minute(59).second(59).format("YYYY-MM-DD HH:mm:ss");
|
|
391
|
+
return [u, i];
|
|
410
392
|
}
|
|
411
393
|
},
|
|
412
394
|
{
|
|
413
395
|
text: "最近一个月",
|
|
414
396
|
value: () => {
|
|
415
|
-
const
|
|
416
|
-
return [
|
|
397
|
+
const u = j().subtract(1, "months").hour(0).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss"), i = j().subtract(1, "days").hour(23).minute(59).second(59).format("YYYY-MM-DD HH:mm:ss");
|
|
398
|
+
return [u, i];
|
|
417
399
|
}
|
|
418
400
|
}
|
|
419
401
|
];
|
|
420
|
-
var
|
|
402
|
+
var Te = {
|
|
421
403
|
name: "zh-cn",
|
|
422
404
|
el: {
|
|
423
405
|
breadcrumb: {
|
|
@@ -611,7 +593,12 @@ var je = {
|
|
|
611
593
|
}
|
|
612
594
|
}
|
|
613
595
|
};
|
|
614
|
-
const
|
|
596
|
+
const He = (u, i) => {
|
|
597
|
+
const c = u.__vccOpts || u;
|
|
598
|
+
for (const [a, m] of i)
|
|
599
|
+
c[a] = m;
|
|
600
|
+
return c;
|
|
601
|
+
}, pe = {
|
|
615
602
|
name: "jt-form",
|
|
616
603
|
emits: ["switchChange", "focus", "blur", "casChange", "cusBtn"],
|
|
617
604
|
// components: { Editor, Toolbar },
|
|
@@ -684,37 +671,37 @@ const ye = {
|
|
|
684
671
|
default: null
|
|
685
672
|
}
|
|
686
673
|
},
|
|
687
|
-
setup(
|
|
674
|
+
setup(u, { emit: i }) {
|
|
688
675
|
let c = te(!0);
|
|
689
|
-
const a =
|
|
690
|
-
let m =
|
|
691
|
-
const
|
|
676
|
+
const a = _e();
|
|
677
|
+
let m = ye({});
|
|
678
|
+
const O = Ce(u, "lazyLoadParams"), v = xe(() => u.model), R = te(!1), K = te(), V = ye({
|
|
692
679
|
selectid: "",
|
|
693
680
|
keywords: ""
|
|
694
|
-
}),
|
|
695
|
-
let k = [],
|
|
696
|
-
const U =
|
|
681
|
+
}), H = te([{ retjson: {}, DataArray: [], Result: "" }]);
|
|
682
|
+
let k = [], z = te(!1), A = te(!1);
|
|
683
|
+
const U = ye({
|
|
697
684
|
PageIndex: 1,
|
|
698
685
|
PageRowCount: 50,
|
|
699
686
|
total: 100
|
|
700
|
-
}), Z =
|
|
687
|
+
}), Z = Fe(), oe = {}, ue = (t) => ({
|
|
701
688
|
placeholder: t.placeholder ? t.placeholder : "请输入内容...",
|
|
702
689
|
readOnly: t.readOnly ? t.readOnly : !1,
|
|
703
690
|
autoFocus: t.autoFocus ? t.autoFocus : !0,
|
|
704
691
|
maxLength: t.maxlength ? t.maxlength : null
|
|
705
692
|
});
|
|
706
|
-
|
|
693
|
+
Ve(() => {
|
|
707
694
|
const t = Z.value;
|
|
708
695
|
t?.destroy();
|
|
709
696
|
});
|
|
710
697
|
const ne = (t, s) => {
|
|
711
|
-
|
|
698
|
+
v.value[s.modelKey] = atob(v.value[s.modelKey]), Z.value = t;
|
|
712
699
|
};
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
"submitKey" in s && (
|
|
700
|
+
ke(v.value, (t) => {
|
|
701
|
+
u.formConfig.forEach((s) => {
|
|
702
|
+
"submitKey" in s && (v.value[s.submitKey] = t[s.modelKey]);
|
|
716
703
|
});
|
|
717
|
-
}),
|
|
704
|
+
}), u.rules && (c.value = !1, L(), Ee(() => {
|
|
718
705
|
c.value = !0;
|
|
719
706
|
}));
|
|
720
707
|
function X(t) {
|
|
@@ -734,16 +721,16 @@ const ye = {
|
|
|
734
721
|
i("switchChange", t[0], s);
|
|
735
722
|
}
|
|
736
723
|
function L() {
|
|
737
|
-
let t = new
|
|
738
|
-
Object.keys(
|
|
739
|
-
m[s] = [],
|
|
740
|
-
if (typeof
|
|
741
|
-
let Y =
|
|
724
|
+
let t = new Ke();
|
|
725
|
+
Object.keys(u.rules).forEach((s) => {
|
|
726
|
+
m[s] = [], u.rules[s].forEach((F) => {
|
|
727
|
+
if (typeof F == "string") {
|
|
728
|
+
let Y = F.split("-");
|
|
742
729
|
if (Y[1]) {
|
|
743
730
|
let T = Y[1].split(",");
|
|
744
731
|
m[s].push(t[Y[0]](...T));
|
|
745
732
|
} else
|
|
746
|
-
m[s].push(t[
|
|
733
|
+
m[s].push(t[F]());
|
|
747
734
|
}
|
|
748
735
|
});
|
|
749
736
|
});
|
|
@@ -755,7 +742,7 @@ const ye = {
|
|
|
755
742
|
i("blur", t, s);
|
|
756
743
|
}
|
|
757
744
|
function G(t) {
|
|
758
|
-
let { path: s, childPath:
|
|
745
|
+
let { path: s, childPath: F } = t, Y = t.multiple || !1, T = t.checkStrictly || !1;
|
|
759
746
|
return {
|
|
760
747
|
lazy: !0,
|
|
761
748
|
multiple: Y,
|
|
@@ -763,17 +750,17 @@ const ye = {
|
|
|
763
750
|
async lazyLoad(S, B) {
|
|
764
751
|
const { level: N, data: J } = S;
|
|
765
752
|
if (N === 0) {
|
|
766
|
-
const { data: ee } = await
|
|
767
|
-
s +
|
|
768
|
-
t.params ||
|
|
753
|
+
const { data: ee } = await u.axios.post(
|
|
754
|
+
s + F,
|
|
755
|
+
t.params || O.value
|
|
769
756
|
);
|
|
770
757
|
B(
|
|
771
|
-
ee.map((
|
|
772
|
-
label:
|
|
773
|
-
leaf:
|
|
774
|
-
path:
|
|
775
|
-
value:
|
|
776
|
-
other:
|
|
758
|
+
ee.map((I) => ({
|
|
759
|
+
label: I.name,
|
|
760
|
+
leaf: I.path === "-" || !I.path,
|
|
761
|
+
path: I.path,
|
|
762
|
+
value: I.id,
|
|
763
|
+
other: I
|
|
777
764
|
}))
|
|
778
765
|
);
|
|
779
766
|
}
|
|
@@ -782,39 +769,39 @@ const ye = {
|
|
|
782
769
|
B();
|
|
783
770
|
return;
|
|
784
771
|
}
|
|
785
|
-
const { data: ee } = await
|
|
772
|
+
const { data: ee } = await u.axios.post(
|
|
786
773
|
s + J.path,
|
|
787
|
-
t.params ||
|
|
774
|
+
t.params || O.value
|
|
788
775
|
);
|
|
789
776
|
B(
|
|
790
|
-
ee.map((
|
|
791
|
-
label:
|
|
792
|
-
leaf:
|
|
793
|
-
path:
|
|
794
|
-
value:
|
|
795
|
-
other:
|
|
777
|
+
ee.map((I) => ({
|
|
778
|
+
label: I.name,
|
|
779
|
+
leaf: I.path === "-" || !I.path,
|
|
780
|
+
path: I.path,
|
|
781
|
+
value: I.id,
|
|
782
|
+
other: I
|
|
796
783
|
}))
|
|
797
784
|
);
|
|
798
785
|
}
|
|
799
786
|
}
|
|
800
787
|
};
|
|
801
788
|
}
|
|
802
|
-
function
|
|
803
|
-
const
|
|
804
|
-
i("casChange",
|
|
789
|
+
function x(t, s) {
|
|
790
|
+
const F = a.refs[t][0].getCheckedNodes();
|
|
791
|
+
i("casChange", F, s);
|
|
805
792
|
}
|
|
806
793
|
function b(t, s) {
|
|
807
794
|
i("cusBtn", t, s);
|
|
808
795
|
}
|
|
809
796
|
function $() {
|
|
810
|
-
return
|
|
811
|
-
t.type == "htmlarea" && (
|
|
812
|
-
}), a.refs[
|
|
797
|
+
return u.formConfig.forEach((t) => {
|
|
798
|
+
t.type == "htmlarea" && (v.value[t.modelKey + "_base64"] = btoa(v.value[t.modelKey]));
|
|
799
|
+
}), a.refs[u.id].validate();
|
|
813
800
|
}
|
|
814
801
|
function se() {
|
|
815
|
-
a.refs[
|
|
802
|
+
a.refs[u.id].resetFields();
|
|
816
803
|
}
|
|
817
|
-
const e = te(null),
|
|
804
|
+
const e = te(null), o = (t) => {
|
|
818
805
|
const [s] = t;
|
|
819
806
|
e.value = s;
|
|
820
807
|
}, l = () => {
|
|
@@ -823,56 +810,56 @@ const ye = {
|
|
|
823
810
|
if (!e.value)
|
|
824
811
|
return !1;
|
|
825
812
|
if (s) {
|
|
826
|
-
const
|
|
827
|
-
return t <
|
|
813
|
+
const F = new Date(e.value).getTime() - s * 24 * 60 * 60 * 1e3, Y = new Date(e.value).getTime() + s * 24 * 60 * 60 * 1e3;
|
|
814
|
+
return t < F || t > Y;
|
|
828
815
|
} else
|
|
829
816
|
return !1;
|
|
830
817
|
};
|
|
831
|
-
function
|
|
818
|
+
function n(t) {
|
|
832
819
|
return t == "datetime" || t == "datetimerange" ? "YYYY-MM-DD HH:mm" : t == "year" ? "YYYY" : t == "month" || t == "monthrange" ? "YYYY-MM" : t == "week" ? "YYYY年第ww周" : "YYYY-MM-DD";
|
|
833
820
|
}
|
|
834
|
-
async function
|
|
835
|
-
Array.isArray(
|
|
821
|
+
async function f() {
|
|
822
|
+
Array.isArray(u?.autoInputConfig?.selectData) && u.autoInputConfig.selectData.length > 0 ? V.selectid = u.autoInputConfig.selectData[0].value : delete V.selectid, u.autoInputConfig.keywords || delete V.keywords, U.PageIndex = 1, k = [], R.value = !0, Ee(() => {
|
|
836
823
|
w();
|
|
837
824
|
});
|
|
838
825
|
}
|
|
839
826
|
function y(t, s) {
|
|
840
827
|
if (t == "cellClick") {
|
|
841
|
-
const { row:
|
|
842
|
-
Object.keys(
|
|
843
|
-
Object.keys(
|
|
844
|
-
T == Y && (
|
|
828
|
+
const { row: F } = s;
|
|
829
|
+
Object.keys(F).forEach((Y) => {
|
|
830
|
+
Object.keys(u.model).forEach((T) => {
|
|
831
|
+
T == Y && (u.model[T] = F[Y]);
|
|
845
832
|
});
|
|
846
833
|
}), R.value = !1;
|
|
847
834
|
}
|
|
848
835
|
}
|
|
849
|
-
async function
|
|
836
|
+
async function g() {
|
|
850
837
|
A.value = !1, U.PageIndex = 1, k = [], w();
|
|
851
838
|
}
|
|
852
839
|
async function w() {
|
|
853
840
|
if (A.value == !0)
|
|
854
841
|
return;
|
|
855
|
-
|
|
856
|
-
const { data: t } = await
|
|
857
|
-
|
|
858
|
-
Object.assign(V,
|
|
842
|
+
z.value = !0;
|
|
843
|
+
const { data: t } = await u.axios.post(
|
|
844
|
+
u.autoInputConfig.path + u.autoInputConfig.childPath,
|
|
845
|
+
Object.assign(V, u.autoInputConfig.subParams, U)
|
|
859
846
|
), s = t;
|
|
860
847
|
if (s[0].Result == 0) {
|
|
861
|
-
|
|
848
|
+
z.value = !1, K.value.loadData([]);
|
|
862
849
|
return;
|
|
863
850
|
}
|
|
864
|
-
|
|
865
|
-
|
|
851
|
+
H.value[0].retjson = s[0].retjson, s[0].retjson.isPages ? (U.total = s[0].retjson.TotalCount, s[0].Result == 0 ? A.value = !0 : (k = k.concat(s[0].DataArray), K.value.loadData(k, () => {
|
|
852
|
+
z.value = !1, U.PageIndex++;
|
|
866
853
|
}))) : K.value.loadData(s[0].DataArray, () => {
|
|
867
|
-
|
|
854
|
+
z.value = !1, A.value = !0;
|
|
868
855
|
});
|
|
869
856
|
}
|
|
870
857
|
async function M(t, s) {
|
|
871
|
-
const { path:
|
|
858
|
+
const { path: F, childPath: Y } = s;
|
|
872
859
|
if (t) {
|
|
873
|
-
const { data: T } = await
|
|
874
|
-
|
|
875
|
-
s.params ||
|
|
860
|
+
const { data: T } = await u.axios.post(
|
|
861
|
+
F + Y,
|
|
862
|
+
s.params || O.value
|
|
876
863
|
);
|
|
877
864
|
s.options = T.map((S) => ({
|
|
878
865
|
label: S.name,
|
|
@@ -885,7 +872,7 @@ const ye = {
|
|
|
885
872
|
}
|
|
886
873
|
return {
|
|
887
874
|
casVisibleChange: M,
|
|
888
|
-
handleChange:
|
|
875
|
+
handleChange: o,
|
|
889
876
|
handleFocus: l,
|
|
890
877
|
disabledDate: d,
|
|
891
878
|
isShow: c,
|
|
@@ -895,22 +882,22 @@ const ye = {
|
|
|
895
882
|
resetAll: se,
|
|
896
883
|
validateAll: $,
|
|
897
884
|
itemClick: b,
|
|
898
|
-
casChange:
|
|
885
|
+
casChange: x,
|
|
899
886
|
blur: le,
|
|
900
887
|
loadData: G,
|
|
901
888
|
type2size: re,
|
|
902
889
|
rulesMap: m,
|
|
903
|
-
shortcuts:
|
|
904
|
-
timeFormat:
|
|
905
|
-
locale:
|
|
906
|
-
modelRemote:
|
|
907
|
-
openAutoInput:
|
|
890
|
+
shortcuts: Se,
|
|
891
|
+
timeFormat: n,
|
|
892
|
+
locale: Te,
|
|
893
|
+
modelRemote: v,
|
|
894
|
+
openAutoInput: f,
|
|
908
895
|
isAutoInput: R,
|
|
909
896
|
autoQuery: V,
|
|
910
|
-
autoTableData:
|
|
897
|
+
autoTableData: H,
|
|
911
898
|
customEvents: y,
|
|
912
|
-
search:
|
|
913
|
-
loading:
|
|
899
|
+
search: g,
|
|
900
|
+
loading: z,
|
|
914
901
|
page: U,
|
|
915
902
|
load: w,
|
|
916
903
|
autoInputTable: K,
|
|
@@ -921,42 +908,42 @@ const ye = {
|
|
|
921
908
|
};
|
|
922
909
|
}
|
|
923
910
|
}, we = () => {
|
|
924
|
-
|
|
925
|
-
v7306ce68:
|
|
926
|
-
c689ef3a:
|
|
911
|
+
Me((u) => ({
|
|
912
|
+
v7306ce68: u.labelWidth,
|
|
913
|
+
c689ef3a: u.labelPosition
|
|
927
914
|
}));
|
|
928
|
-
}, De =
|
|
929
|
-
|
|
930
|
-
const
|
|
915
|
+
}, De = pe.setup;
|
|
916
|
+
pe.setup = De ? (u, i) => (we(), De(u, i)) : we;
|
|
917
|
+
const Ie = {
|
|
931
918
|
key: 3,
|
|
932
919
|
class: "ht-text"
|
|
933
|
-
},
|
|
920
|
+
}, Oe = ["onClick"], Pe = {
|
|
934
921
|
key: 12,
|
|
935
922
|
style: { "margin-right": "5px" }
|
|
936
|
-
},
|
|
923
|
+
}, je = {
|
|
937
924
|
key: 14,
|
|
938
925
|
style: { "margin-left": "5px" }
|
|
939
|
-
},
|
|
926
|
+
}, ze = { class: "cell-item" }, Le = {
|
|
940
927
|
key: 0,
|
|
941
928
|
style: { color: "red" }
|
|
942
|
-
},
|
|
929
|
+
}, Ne = {
|
|
943
930
|
key: 3,
|
|
944
931
|
class: "ht-text"
|
|
945
|
-
},
|
|
932
|
+
}, qe = ["onClick"], We = {
|
|
946
933
|
key: 12,
|
|
947
934
|
style: { "margin-right": "5px" }
|
|
948
|
-
},
|
|
935
|
+
}, Ze = {
|
|
949
936
|
key: 14,
|
|
950
937
|
style: { "margin-left": "5px" }
|
|
951
|
-
},
|
|
938
|
+
}, Qe = { class: "filter-box" }, Je = {
|
|
952
939
|
key: 0,
|
|
953
940
|
class: "table-box"
|
|
954
941
|
};
|
|
955
|
-
function
|
|
956
|
-
const
|
|
957
|
-
return
|
|
958
|
-
default:
|
|
959
|
-
a.isShow ? (
|
|
942
|
+
function Xe(u, i, c, a, m, O) {
|
|
943
|
+
const v = _("el-input"), R = _("el-tooltip"), K = _("el-input-number"), V = _("el-option"), H = _("el-select"), k = _("el-cascader"), z = _("el-date-picker"), A = _("el-time-picker"), U = _("el-switch"), Z = _("el-checkbox"), oe = _("el-checkbox-group"), ue = _("el-radio"), ne = _("el-radio-group"), X = _("el-autocomplete"), re = _("el-form-item"), Q = _("Toolbar"), L = _("Editor"), de = _("el-descriptions-item"), le = _("el-descriptions"), G = _("el-form"), x = _("el-button"), b = _("table-big-data"), $ = _("el-drawer"), se = _("el-config-provider");
|
|
944
|
+
return r(), p(se, { locale: a.locale }, {
|
|
945
|
+
default: E(() => [
|
|
946
|
+
a.isShow ? (r(), p(G, {
|
|
960
947
|
key: 0,
|
|
961
948
|
model: c.model,
|
|
962
949
|
"label-width": 0,
|
|
@@ -967,33 +954,33 @@ function al(o, i, c, a, m, H) {
|
|
|
967
954
|
"inline-message": "",
|
|
968
955
|
"status-icon": ""
|
|
969
956
|
}, {
|
|
970
|
-
default:
|
|
971
|
-
(
|
|
972
|
-
c.inline ? (
|
|
957
|
+
default: E(() => [
|
|
958
|
+
(r(!0), D(P, null, q(c.formConfig, (e, o) => (r(), D(P, { key: o }, [
|
|
959
|
+
c.inline ? (r(), p(re, {
|
|
973
960
|
key: 0,
|
|
974
961
|
label: e.label,
|
|
975
962
|
"label-align": e.align || "center",
|
|
976
963
|
prop: e.modelKey,
|
|
977
964
|
style: C(e.width ? e.width : "100%")
|
|
978
965
|
}, {
|
|
979
|
-
default:
|
|
980
|
-
e.type === "empty" ? (
|
|
966
|
+
default: E(() => [
|
|
967
|
+
e.type === "empty" ? (r(), D("div", {
|
|
981
968
|
key: 0,
|
|
982
969
|
style: C({
|
|
983
970
|
height: a.type2size(c.size)
|
|
984
971
|
})
|
|
985
972
|
}, null, 4)) : h("", !0),
|
|
986
|
-
e.type === "upload" ? ie(
|
|
987
|
-
e.type === "custom" ? (
|
|
973
|
+
e.type === "upload" ? ie(u.$slots, e.slotName ? e.slotName : "upload", { key: 1 }, void 0, !0) : h("", !0),
|
|
974
|
+
e.type === "custom" ? (r(), p(R, {
|
|
988
975
|
key: 2,
|
|
989
976
|
"popper-class": "jt-form-popper",
|
|
990
977
|
placement: "top"
|
|
991
978
|
}, {
|
|
992
|
-
content:
|
|
993
|
-
ie(
|
|
979
|
+
content: E(() => [
|
|
980
|
+
ie(u.$slots, e.slotName, {}, void 0, !0)
|
|
994
981
|
]),
|
|
995
|
-
default:
|
|
996
|
-
ae(
|
|
982
|
+
default: E(() => [
|
|
983
|
+
ae(v, {
|
|
997
984
|
modelValue: a.modelRemote[e.modelKey],
|
|
998
985
|
"onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
|
|
999
986
|
placeholder: e.placeholder ? e.placeholder : ""
|
|
@@ -1001,8 +988,8 @@ function al(o, i, c, a, m, H) {
|
|
|
1001
988
|
]),
|
|
1002
989
|
_: 2
|
|
1003
990
|
}, 1024)) : h("", !0),
|
|
1004
|
-
e.type === "text" ? (
|
|
1005
|
-
e.type === "input" ? (
|
|
991
|
+
e.type === "text" ? (r(), D("span", Ie, W(c.model[e.modelKey]), 1)) : h("", !0),
|
|
992
|
+
e.type === "input" ? (r(), p(v, {
|
|
1006
993
|
key: 4,
|
|
1007
994
|
style: C({ width: e.width ? e.width + "px" : "auto" }),
|
|
1008
995
|
placeholder: e.placeholder ? e.placeholder : "",
|
|
@@ -1013,16 +1000,16 @@ function al(o, i, c, a, m, H) {
|
|
|
1013
1000
|
onFocus: (l) => a.focus(e.modelKey, l),
|
|
1014
1001
|
onBlur: (l) => a.blur(e.modelKey, l)
|
|
1015
1002
|
}, {
|
|
1016
|
-
suffix:
|
|
1017
|
-
"isPwd" in e ? (
|
|
1003
|
+
suffix: E(() => [
|
|
1004
|
+
"isPwd" in e ? (r(), D("i", {
|
|
1018
1005
|
key: 0,
|
|
1019
1006
|
class: be(["jtIcon", e.isPwd ? "iconyincangmima" : "iconxianshimima"]),
|
|
1020
1007
|
onClick: me((l) => a.eyeClick(e), ["stop"])
|
|
1021
|
-
}, null, 10,
|
|
1008
|
+
}, null, 10, Oe)) : h("", !0)
|
|
1022
1009
|
]),
|
|
1023
1010
|
_: 2
|
|
1024
1011
|
}, 1032, ["style", "placeholder", "type", "disabled", "modelValue", "onUpdate:modelValue", "onFocus", "onBlur"])) : h("", !0),
|
|
1025
|
-
e.type === "textarea" ? (
|
|
1012
|
+
e.type === "textarea" ? (r(), p(v, {
|
|
1026
1013
|
key: 5,
|
|
1027
1014
|
style: C({ width: e.width ? e.width + "px" : "auto" }),
|
|
1028
1015
|
placeholder: e.placeholder ? e.placeholder : "",
|
|
@@ -1039,7 +1026,7 @@ function al(o, i, c, a, m, H) {
|
|
|
1039
1026
|
onFocus: (l) => a.focus(e.modelKey, l),
|
|
1040
1027
|
onBlur: (l) => a.blur(e.modelKey, l)
|
|
1041
1028
|
}, null, 8, ["style", "placeholder", "disabled", "modelValue", "onUpdate:modelValue", "maxlength", "autosize", "show-word-limit", "onFocus", "onBlur"])) : h("", !0),
|
|
1042
|
-
e.type === "iNumber" ? (
|
|
1029
|
+
e.type === "iNumber" ? (r(), p(K, {
|
|
1043
1030
|
key: 6,
|
|
1044
1031
|
modelValue: a.modelRemote[e.modelKey],
|
|
1045
1032
|
"onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
|
|
@@ -1049,7 +1036,7 @@ function al(o, i, c, a, m, H) {
|
|
|
1049
1036
|
max: e.max != null ? e.max : 1 / 0,
|
|
1050
1037
|
"controls-position": "right"
|
|
1051
1038
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "style", "disabled", "min", "max"])) : h("", !0),
|
|
1052
|
-
e.type === "select" ? (
|
|
1039
|
+
e.type === "select" ? (r(), p(H, {
|
|
1053
1040
|
key: 7,
|
|
1054
1041
|
"default-first-option": "",
|
|
1055
1042
|
style: C({ width: e.width ? e.width + "px" : "auto" }),
|
|
@@ -1062,8 +1049,8 @@ function al(o, i, c, a, m, H) {
|
|
|
1062
1049
|
"collapse-tags": e.collapse !== void 0,
|
|
1063
1050
|
placeholder: e.placeholder ? e.placeholder : ""
|
|
1064
1051
|
}, {
|
|
1065
|
-
default:
|
|
1066
|
-
(
|
|
1052
|
+
default: E(() => [
|
|
1053
|
+
(r(!0), D(P, null, q(e.options, (l) => (r(), p(V, {
|
|
1067
1054
|
key: l.value,
|
|
1068
1055
|
label: l.label,
|
|
1069
1056
|
value: l.value
|
|
@@ -1071,7 +1058,7 @@ function al(o, i, c, a, m, H) {
|
|
|
1071
1058
|
]),
|
|
1072
1059
|
_: 2
|
|
1073
1060
|
}, 1032, ["style", "modelValue", "onUpdate:modelValue", "disabled", "filterable", "allow-create", "multiple", "collapse-tags", "placeholder"])) : h("", !0),
|
|
1074
|
-
e.type === "select_r" ? (
|
|
1061
|
+
e.type === "select_r" ? (r(), p(H, {
|
|
1075
1062
|
key: 8,
|
|
1076
1063
|
modelValue: a.modelRemote[e.modelKey],
|
|
1077
1064
|
"onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
|
|
@@ -1084,8 +1071,8 @@ function al(o, i, c, a, m, H) {
|
|
|
1084
1071
|
"remote-method": e.remoteMethod,
|
|
1085
1072
|
placeholder: e.placeholder ? e.placeholder : ""
|
|
1086
1073
|
}, {
|
|
1087
|
-
default:
|
|
1088
|
-
(
|
|
1074
|
+
default: E(() => [
|
|
1075
|
+
(r(!0), D(P, null, q(e.options, (l) => (r(), p(V, {
|
|
1089
1076
|
key: l.value,
|
|
1090
1077
|
label: l.label,
|
|
1091
1078
|
value: l.value
|
|
@@ -1093,7 +1080,7 @@ function al(o, i, c, a, m, H) {
|
|
|
1093
1080
|
]),
|
|
1094
1081
|
_: 2
|
|
1095
1082
|
}, 1032, ["modelValue", "onUpdate:modelValue", "style", "disabled", "multiple", "collapse-tags", "remote-method", "placeholder"])) : h("", !0),
|
|
1096
|
-
e.type === "cascader" ? (
|
|
1083
|
+
e.type === "cascader" ? (r(), p(k, {
|
|
1097
1084
|
key: 9,
|
|
1098
1085
|
filterable: e.filterable !== void 0 ? e.filterable : !0,
|
|
1099
1086
|
ref_for: !0,
|
|
@@ -1117,7 +1104,7 @@ function al(o, i, c, a, m, H) {
|
|
|
1117
1104
|
multiple: e.multiple
|
|
1118
1105
|
})
|
|
1119
1106
|
}, null, 8, ["filterable", "disabled", "collapse-tags", "show-all-levels", "placeholder", "style", "options", "onVisibleChange", "onChange", "props"])) : h("", !0),
|
|
1120
|
-
e.type === "date" ? (
|
|
1107
|
+
e.type === "date" ? (r(), p(z, {
|
|
1121
1108
|
key: 10,
|
|
1122
1109
|
modelValue: a.modelRemote[e.modelKey],
|
|
1123
1110
|
"onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
|
|
@@ -1136,7 +1123,7 @@ function al(o, i, c, a, m, H) {
|
|
|
1136
1123
|
placeholder: "选择日期",
|
|
1137
1124
|
"range-separator": "至"
|
|
1138
1125
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "shortcuts", "style", "disabled", "type", "value-format", "format", "disabled-date", "onFocus", "onCalendarChange"])) : h("", !0),
|
|
1139
|
-
e.type === "time" ? (
|
|
1126
|
+
e.type === "time" ? (r(), p(A, {
|
|
1140
1127
|
key: 11,
|
|
1141
1128
|
modelValue: a.modelRemote[e.modelKey],
|
|
1142
1129
|
"onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
|
|
@@ -1145,8 +1132,8 @@ function al(o, i, c, a, m, H) {
|
|
|
1145
1132
|
disabled: e.disabled ? e.disabled : !1,
|
|
1146
1133
|
placeholder: e.placeholder ? e.placeholder : "请选择时间"
|
|
1147
1134
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "style", "disabled", "placeholder"])) : h("", !0),
|
|
1148
|
-
e.type === "switch" ? (
|
|
1149
|
-
e.type === "switch" ? (
|
|
1135
|
+
e.type === "switch" ? (r(), D("span", Pe, W(e.bText), 1)) : h("", !0),
|
|
1136
|
+
e.type === "switch" ? (r(), p(U, {
|
|
1150
1137
|
key: 13,
|
|
1151
1138
|
modelValue: a.modelRemote[e.modelKey],
|
|
1152
1139
|
"onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
|
|
@@ -1157,19 +1144,19 @@ function al(o, i, c, a, m, H) {
|
|
|
1157
1144
|
onChange: (l) => a.switchChange(arguments, e.modelKey),
|
|
1158
1145
|
"inactive-color": "#ff4949"
|
|
1159
1146
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "active-text", "inactive-text", "onChange"])) : h("", !0),
|
|
1160
|
-
e.type === "switch" ? (
|
|
1161
|
-
e.type === "checkbox" ? (
|
|
1147
|
+
e.type === "switch" ? (r(), D("span", je, W(e.fText), 1)) : h("", !0),
|
|
1148
|
+
e.type === "checkbox" ? (r(), p(oe, {
|
|
1162
1149
|
key: 15,
|
|
1163
1150
|
modelValue: a.modelRemote[e.modelKey],
|
|
1164
1151
|
"onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l
|
|
1165
1152
|
}, {
|
|
1166
|
-
default:
|
|
1167
|
-
(
|
|
1153
|
+
default: E(() => [
|
|
1154
|
+
(r(!0), D(P, null, q(e.options, (l, d) => (r(), p(Z, {
|
|
1168
1155
|
label: l.value,
|
|
1169
1156
|
key: d,
|
|
1170
1157
|
disabled: l.disabled ? l.disabled : !1
|
|
1171
1158
|
}, {
|
|
1172
|
-
default:
|
|
1159
|
+
default: E(() => [
|
|
1173
1160
|
ce(W(l.label), 1)
|
|
1174
1161
|
]),
|
|
1175
1162
|
_: 2
|
|
@@ -1177,18 +1164,18 @@ function al(o, i, c, a, m, H) {
|
|
|
1177
1164
|
]),
|
|
1178
1165
|
_: 2
|
|
1179
1166
|
}, 1032, ["modelValue", "onUpdate:modelValue"])) : h("", !0),
|
|
1180
|
-
e.type === "radio" ? (
|
|
1167
|
+
e.type === "radio" ? (r(), p(ne, {
|
|
1181
1168
|
key: 16,
|
|
1182
1169
|
modelValue: a.modelRemote[e.modelKey],
|
|
1183
1170
|
"onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l
|
|
1184
1171
|
}, {
|
|
1185
|
-
default:
|
|
1186
|
-
(
|
|
1172
|
+
default: E(() => [
|
|
1173
|
+
(r(!0), D(P, null, q(e.options, (l, d) => (r(), p(ue, {
|
|
1187
1174
|
key: d,
|
|
1188
1175
|
disabled: l.disabled ? l.disabled : !1,
|
|
1189
1176
|
label: l.value
|
|
1190
1177
|
}, {
|
|
1191
|
-
default:
|
|
1178
|
+
default: E(() => [
|
|
1192
1179
|
ce(W(l.label), 1)
|
|
1193
1180
|
]),
|
|
1194
1181
|
_: 2
|
|
@@ -1196,7 +1183,7 @@ function al(o, i, c, a, m, H) {
|
|
|
1196
1183
|
]),
|
|
1197
1184
|
_: 2
|
|
1198
1185
|
}, 1032, ["modelValue", "onUpdate:modelValue"])) : h("", !0),
|
|
1199
|
-
e.type === "autocomplete" ? (
|
|
1186
|
+
e.type === "autocomplete" ? (r(), p(X, {
|
|
1200
1187
|
key: 17,
|
|
1201
1188
|
class: "inline-input",
|
|
1202
1189
|
style: C({ width: e.width ? e.width + "px" : "auto" }),
|
|
@@ -1209,47 +1196,47 @@ function al(o, i, c, a, m, H) {
|
|
|
1209
1196
|
_: 2
|
|
1210
1197
|
}, 1032, ["label", "label-align", "prop", "style"])) : h("", !0)
|
|
1211
1198
|
], 64))), 128)),
|
|
1212
|
-
c.inline ? h("", !0) : (
|
|
1199
|
+
c.inline ? h("", !0) : (r(), p(le, {
|
|
1213
1200
|
key: 0,
|
|
1214
1201
|
column: c.col,
|
|
1215
1202
|
size: c.size,
|
|
1216
1203
|
border: c.border,
|
|
1217
1204
|
title: c.title
|
|
1218
1205
|
}, {
|
|
1219
|
-
default:
|
|
1220
|
-
(
|
|
1206
|
+
default: E(() => [
|
|
1207
|
+
(r(!0), D(P, null, q(c.formConfig, (e, o) => (r(), p(de, {
|
|
1221
1208
|
"label-align": e.align || "center",
|
|
1222
|
-
key:
|
|
1209
|
+
key: o
|
|
1223
1210
|
}, {
|
|
1224
|
-
label:
|
|
1225
|
-
ge("div",
|
|
1226
|
-
e.modelKey in c.rules ? (
|
|
1211
|
+
label: E(() => [
|
|
1212
|
+
ge("div", ze, [
|
|
1213
|
+
e.modelKey in c.rules ? (r(), D("span", Le, "*")) : h("", !0),
|
|
1227
1214
|
ce(" " + W(e.label), 1)
|
|
1228
1215
|
])
|
|
1229
1216
|
]),
|
|
1230
|
-
default:
|
|
1217
|
+
default: E(() => [
|
|
1231
1218
|
ae(re, {
|
|
1232
1219
|
prop: e.modelKey,
|
|
1233
1220
|
style: C([{ "margin-bottom": "0", display: "inline-block" }, e.width ? e.width : "100%"])
|
|
1234
1221
|
}, {
|
|
1235
|
-
default:
|
|
1236
|
-
e.type === "empty" ? (
|
|
1222
|
+
default: E(() => [
|
|
1223
|
+
e.type === "empty" ? (r(), D("div", {
|
|
1237
1224
|
key: 0,
|
|
1238
1225
|
style: C({
|
|
1239
1226
|
height: a.type2size(c.size)
|
|
1240
1227
|
})
|
|
1241
1228
|
}, null, 4)) : h("", !0),
|
|
1242
|
-
e.type === "upload" ? ie(
|
|
1243
|
-
e.type === "custom" ? (
|
|
1229
|
+
e.type === "upload" ? ie(u.$slots, e.slotName ? e.slotName : "upload", { key: 1 }, void 0, !0) : h("", !0),
|
|
1230
|
+
e.type === "custom" ? (r(), p(R, {
|
|
1244
1231
|
key: 2,
|
|
1245
1232
|
"popper-class": "jt-form-popper",
|
|
1246
1233
|
placement: "top"
|
|
1247
1234
|
}, {
|
|
1248
|
-
content:
|
|
1249
|
-
ie(
|
|
1235
|
+
content: E(() => [
|
|
1236
|
+
ie(u.$slots, e.slotName, {}, void 0, !0)
|
|
1250
1237
|
]),
|
|
1251
|
-
default:
|
|
1252
|
-
ae(
|
|
1238
|
+
default: E(() => [
|
|
1239
|
+
ae(v, {
|
|
1253
1240
|
modelValue: a.modelRemote[e.modelKey],
|
|
1254
1241
|
"onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
|
|
1255
1242
|
placeholder: e.placeholder ? e.placeholder : ""
|
|
@@ -1257,8 +1244,8 @@ function al(o, i, c, a, m, H) {
|
|
|
1257
1244
|
]),
|
|
1258
1245
|
_: 2
|
|
1259
1246
|
}, 1024)) : h("", !0),
|
|
1260
|
-
e.type === "text" ? (
|
|
1261
|
-
e.type === "input" ? (
|
|
1247
|
+
e.type === "text" ? (r(), D("span", Ne, W(c.model[e.modelKey]), 1)) : h("", !0),
|
|
1248
|
+
e.type === "input" ? (r(), p(v, {
|
|
1262
1249
|
key: 4,
|
|
1263
1250
|
style: C({ width: e.width ? e.width + "px" : "auto" }),
|
|
1264
1251
|
placeholder: e.placeholder ? e.placeholder : "",
|
|
@@ -1269,16 +1256,16 @@ function al(o, i, c, a, m, H) {
|
|
|
1269
1256
|
onFocus: (l) => a.focus(e.modelKey, l),
|
|
1270
1257
|
onBlur: (l) => a.blur(e.modelKey, l)
|
|
1271
1258
|
}, {
|
|
1272
|
-
suffix:
|
|
1273
|
-
"isPwd" in e ? (
|
|
1259
|
+
suffix: E(() => [
|
|
1260
|
+
"isPwd" in e ? (r(), D("i", {
|
|
1274
1261
|
key: 0,
|
|
1275
1262
|
class: be(["jtIcon", e.isPwd ? "iconyincangmima" : "iconxianshimima"]),
|
|
1276
1263
|
onClick: me((l) => a.eyeClick(e), ["stop"])
|
|
1277
|
-
}, null, 10,
|
|
1264
|
+
}, null, 10, qe)) : h("", !0)
|
|
1278
1265
|
]),
|
|
1279
1266
|
_: 2
|
|
1280
1267
|
}, 1032, ["style", "placeholder", "type", "disabled", "modelValue", "onUpdate:modelValue", "onFocus", "onBlur"])) : h("", !0),
|
|
1281
|
-
e.type === "textarea" ? (
|
|
1268
|
+
e.type === "textarea" ? (r(), p(v, {
|
|
1282
1269
|
key: 5,
|
|
1283
1270
|
style: C({ width: e.width ? e.width + "px" : "auto" }),
|
|
1284
1271
|
placeholder: e.placeholder ? e.placeholder : "",
|
|
@@ -1295,7 +1282,7 @@ function al(o, i, c, a, m, H) {
|
|
|
1295
1282
|
onFocus: (l) => a.focus(e.modelKey, l),
|
|
1296
1283
|
onBlur: (l) => a.blur(e.modelKey, l)
|
|
1297
1284
|
}, null, 8, ["style", "placeholder", "disabled", "modelValue", "onUpdate:modelValue", "maxlength", "autosize", "show-word-limit", "onFocus", "onBlur"])) : h("", !0),
|
|
1298
|
-
e.type === "iNumber" ? (
|
|
1285
|
+
e.type === "iNumber" ? (r(), p(K, {
|
|
1299
1286
|
key: 6,
|
|
1300
1287
|
modelValue: a.modelRemote[e.modelKey],
|
|
1301
1288
|
"onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
|
|
@@ -1305,7 +1292,7 @@ function al(o, i, c, a, m, H) {
|
|
|
1305
1292
|
max: e.max != null ? e.max : 1 / 0,
|
|
1306
1293
|
"controls-position": "right"
|
|
1307
1294
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "style", "disabled", "min", "max"])) : h("", !0),
|
|
1308
|
-
e.type === "select" ? (
|
|
1295
|
+
e.type === "select" ? (r(), p(H, {
|
|
1309
1296
|
key: 7,
|
|
1310
1297
|
"default-first-option": "",
|
|
1311
1298
|
style: C({ width: e.width ? e.width + "px" : "auto" }),
|
|
@@ -1318,8 +1305,8 @@ function al(o, i, c, a, m, H) {
|
|
|
1318
1305
|
"collapse-tags": e.collapse !== void 0,
|
|
1319
1306
|
placeholder: e.placeholder ? e.placeholder : ""
|
|
1320
1307
|
}, {
|
|
1321
|
-
default:
|
|
1322
|
-
(
|
|
1308
|
+
default: E(() => [
|
|
1309
|
+
(r(!0), D(P, null, q(e.options, (l) => (r(), p(V, {
|
|
1323
1310
|
key: l.value,
|
|
1324
1311
|
label: l.label,
|
|
1325
1312
|
value: l.value
|
|
@@ -1327,7 +1314,7 @@ function al(o, i, c, a, m, H) {
|
|
|
1327
1314
|
]),
|
|
1328
1315
|
_: 2
|
|
1329
1316
|
}, 1032, ["style", "modelValue", "onUpdate:modelValue", "disabled", "filterable", "allow-create", "multiple", "collapse-tags", "placeholder"])) : h("", !0),
|
|
1330
|
-
e.type === "select_r" ? (
|
|
1317
|
+
e.type === "select_r" ? (r(), p(H, {
|
|
1331
1318
|
key: 8,
|
|
1332
1319
|
modelValue: a.modelRemote[e.modelKey],
|
|
1333
1320
|
"onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
|
|
@@ -1340,8 +1327,8 @@ function al(o, i, c, a, m, H) {
|
|
|
1340
1327
|
"remote-method": e.remoteMethod,
|
|
1341
1328
|
placeholder: e.placeholder ? e.placeholder : ""
|
|
1342
1329
|
}, {
|
|
1343
|
-
default:
|
|
1344
|
-
(
|
|
1330
|
+
default: E(() => [
|
|
1331
|
+
(r(!0), D(P, null, q(e.options, (l) => (r(), p(V, {
|
|
1345
1332
|
key: l.value,
|
|
1346
1333
|
label: l.label,
|
|
1347
1334
|
value: l.value
|
|
@@ -1349,7 +1336,7 @@ function al(o, i, c, a, m, H) {
|
|
|
1349
1336
|
]),
|
|
1350
1337
|
_: 2
|
|
1351
1338
|
}, 1032, ["modelValue", "onUpdate:modelValue", "style", "disabled", "multiple", "collapse-tags", "remote-method", "placeholder"])) : h("", !0),
|
|
1352
|
-
e.type === "cascader" ? (
|
|
1339
|
+
e.type === "cascader" ? (r(), p(k, {
|
|
1353
1340
|
key: 9,
|
|
1354
1341
|
filterable: e.filterable !== void 0 ? e.filterable : !0,
|
|
1355
1342
|
ref_for: !0,
|
|
@@ -1373,7 +1360,7 @@ function al(o, i, c, a, m, H) {
|
|
|
1373
1360
|
multiple: e.multiple
|
|
1374
1361
|
})
|
|
1375
1362
|
}, null, 8, ["filterable", "disabled", "collapse-tags", "show-all-levels", "placeholder", "style", "options", "onVisibleChange", "onChange", "props"])) : h("", !0),
|
|
1376
|
-
e.type === "date" ? (
|
|
1363
|
+
e.type === "date" ? (r(), p(z, {
|
|
1377
1364
|
key: 10,
|
|
1378
1365
|
shortcuts: a.shortcuts,
|
|
1379
1366
|
modelValue: a.modelRemote[e.modelKey],
|
|
@@ -1391,7 +1378,7 @@ function al(o, i, c, a, m, H) {
|
|
|
1391
1378
|
"end-placeholder": "结束日期",
|
|
1392
1379
|
placeholder: "选择日期"
|
|
1393
1380
|
}, null, 8, ["shortcuts", "modelValue", "onUpdate:modelValue", "style", "disabled", "type", "value-format", "disabled-date", "onFocus", "onCalendarChange", "format"])) : h("", !0),
|
|
1394
|
-
e.type === "time" ? (
|
|
1381
|
+
e.type === "time" ? (r(), p(A, {
|
|
1395
1382
|
key: 11,
|
|
1396
1383
|
modelValue: a.modelRemote[e.modelKey],
|
|
1397
1384
|
"onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
|
|
@@ -1400,8 +1387,8 @@ function al(o, i, c, a, m, H) {
|
|
|
1400
1387
|
disabled: e.disabled ? e.disabled : !1,
|
|
1401
1388
|
placeholder: e.placeholder ? e.placeholder : "请选择时间"
|
|
1402
1389
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "style", "disabled", "placeholder"])) : h("", !0),
|
|
1403
|
-
e.type === "switch" ? (
|
|
1404
|
-
e.type === "switch" ? (
|
|
1390
|
+
e.type === "switch" ? (r(), D("span", We, W(e.bText), 1)) : h("", !0),
|
|
1391
|
+
e.type === "switch" ? (r(), p(U, {
|
|
1405
1392
|
key: 13,
|
|
1406
1393
|
modelValue: a.modelRemote[e.modelKey],
|
|
1407
1394
|
"onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
|
|
@@ -1414,19 +1401,19 @@ function al(o, i, c, a, m, H) {
|
|
|
1414
1401
|
onChange: (l) => a.switchChange(arguments, e.modelKey),
|
|
1415
1402
|
"inactive-color": "#ff4949"
|
|
1416
1403
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "active-text", "inactive-text", "active-value", "inactive-value", "onChange"])) : h("", !0),
|
|
1417
|
-
e.type === "switch" ? (
|
|
1418
|
-
e.type === "checkbox" ? (
|
|
1404
|
+
e.type === "switch" ? (r(), D("span", Ze, W(e.fText), 1)) : h("", !0),
|
|
1405
|
+
e.type === "checkbox" ? (r(), p(oe, {
|
|
1419
1406
|
key: 15,
|
|
1420
1407
|
modelValue: a.modelRemote[e.modelKey],
|
|
1421
1408
|
"onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l
|
|
1422
1409
|
}, {
|
|
1423
|
-
default:
|
|
1424
|
-
(
|
|
1410
|
+
default: E(() => [
|
|
1411
|
+
(r(!0), D(P, null, q(e.options, (l, d) => (r(), p(Z, {
|
|
1425
1412
|
label: l.value,
|
|
1426
1413
|
key: d,
|
|
1427
1414
|
disabled: l.disabled ? l.disabled : !1
|
|
1428
1415
|
}, {
|
|
1429
|
-
default:
|
|
1416
|
+
default: E(() => [
|
|
1430
1417
|
ce(W(l.label), 1)
|
|
1431
1418
|
]),
|
|
1432
1419
|
_: 2
|
|
@@ -1434,18 +1421,18 @@ function al(o, i, c, a, m, H) {
|
|
|
1434
1421
|
]),
|
|
1435
1422
|
_: 2
|
|
1436
1423
|
}, 1032, ["modelValue", "onUpdate:modelValue"])) : h("", !0),
|
|
1437
|
-
e.type === "radio" ? (
|
|
1424
|
+
e.type === "radio" ? (r(), p(ne, {
|
|
1438
1425
|
key: 16,
|
|
1439
1426
|
modelValue: a.modelRemote[e.modelKey],
|
|
1440
1427
|
"onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l
|
|
1441
1428
|
}, {
|
|
1442
|
-
default:
|
|
1443
|
-
(
|
|
1429
|
+
default: E(() => [
|
|
1430
|
+
(r(!0), D(P, null, q(e.options, (l, d) => (r(), p(ue, {
|
|
1444
1431
|
key: d,
|
|
1445
1432
|
disabled: l.disabled ? l.disabled : !1,
|
|
1446
1433
|
label: l.value
|
|
1447
1434
|
}, {
|
|
1448
|
-
default:
|
|
1435
|
+
default: E(() => [
|
|
1449
1436
|
ce(W(l.label), 1)
|
|
1450
1437
|
]),
|
|
1451
1438
|
_: 2
|
|
@@ -1453,7 +1440,7 @@ function al(o, i, c, a, m, H) {
|
|
|
1453
1440
|
]),
|
|
1454
1441
|
_: 2
|
|
1455
1442
|
}, 1032, ["modelValue", "onUpdate:modelValue"])) : h("", !0),
|
|
1456
|
-
e.type === "autocomplete" ? (
|
|
1443
|
+
e.type === "autocomplete" ? (r(), p(X, {
|
|
1457
1444
|
key: 17,
|
|
1458
1445
|
class: "inline-input",
|
|
1459
1446
|
style: C({ width: e.width ? e.width + "px" : "auto" }),
|
|
@@ -1462,7 +1449,7 @@ function al(o, i, c, a, m, H) {
|
|
|
1462
1449
|
"fetch-suggestions": e.querySearch,
|
|
1463
1450
|
placeholder: e.placeholder ? e.placeholder : "请输入"
|
|
1464
1451
|
}, null, 8, ["style", "modelValue", "onUpdate:modelValue", "fetch-suggestions", "placeholder"])) : h("", !0),
|
|
1465
|
-
e.type === "htmlarea" ? (
|
|
1452
|
+
e.type === "htmlarea" ? (r(), D("div", {
|
|
1466
1453
|
key: 18,
|
|
1467
1454
|
style: C({ width: e.width ? e.width + "px" : "auto" })
|
|
1468
1455
|
}, [
|
|
@@ -1500,17 +1487,17 @@ function al(o, i, c, a, m, H) {
|
|
|
1500
1487
|
size: "50%",
|
|
1501
1488
|
direction: "rtl"
|
|
1502
1489
|
}, {
|
|
1503
|
-
default:
|
|
1504
|
-
ge("div",
|
|
1505
|
-
Array.isArray(c.autoInputConfig.selectData) && c.autoInputConfig.selectData.length > 0 ? (
|
|
1490
|
+
default: E(() => [
|
|
1491
|
+
ge("div", Qe, [
|
|
1492
|
+
Array.isArray(c.autoInputConfig.selectData) && c.autoInputConfig.selectData.length > 0 ? (r(), p(H, {
|
|
1506
1493
|
key: 0,
|
|
1507
1494
|
modelValue: a.autoQuery.selectid,
|
|
1508
1495
|
"onUpdate:modelValue": i[0] || (i[0] = (e) => a.autoQuery.selectid = e),
|
|
1509
1496
|
style: { "margin-right": "15px", width: "240px" },
|
|
1510
1497
|
placeholder: "请选择"
|
|
1511
1498
|
}, {
|
|
1512
|
-
default:
|
|
1513
|
-
(
|
|
1499
|
+
default: E(() => [
|
|
1500
|
+
(r(!0), D(P, null, q(c.autoInputConfig.selectData, (e) => (r(), p(V, {
|
|
1514
1501
|
key: e.value,
|
|
1515
1502
|
label: e.label,
|
|
1516
1503
|
value: e.value
|
|
@@ -1518,26 +1505,26 @@ function al(o, i, c, a, m, H) {
|
|
|
1518
1505
|
]),
|
|
1519
1506
|
_: 1
|
|
1520
1507
|
}, 8, ["modelValue"])) : h("", !0),
|
|
1521
|
-
c.autoInputConfig?.keywords ? (
|
|
1508
|
+
c.autoInputConfig?.keywords ? (r(), p(v, {
|
|
1522
1509
|
key: 1,
|
|
1523
1510
|
style: { width: "200px" },
|
|
1524
1511
|
placeholder: "请输入",
|
|
1525
1512
|
modelValue: a.autoQuery.keywords,
|
|
1526
1513
|
"onUpdate:modelValue": i[1] || (i[1] = (e) => a.autoQuery.keywords = e)
|
|
1527
1514
|
}, null, 8, ["modelValue"])) : h("", !0),
|
|
1528
|
-
Array.isArray(c.autoInputConfig.selectData) && c.autoInputConfig.selectData.length > 0 || c.autoInputConfig?.keywords ? (
|
|
1515
|
+
Array.isArray(c.autoInputConfig.selectData) && c.autoInputConfig.selectData.length > 0 || c.autoInputConfig?.keywords ? (r(), p(x, {
|
|
1529
1516
|
key: 2,
|
|
1530
1517
|
type: "primary",
|
|
1531
1518
|
style: { "margin-left": "15px" },
|
|
1532
1519
|
onClick: a.search
|
|
1533
1520
|
}, {
|
|
1534
|
-
default:
|
|
1521
|
+
default: E(() => [...i[3] || (i[3] = [
|
|
1535
1522
|
ce("查询", -1)
|
|
1536
1523
|
])]),
|
|
1537
1524
|
_: 1
|
|
1538
1525
|
}, 8, ["onClick"])) : h("", !0)
|
|
1539
1526
|
]),
|
|
1540
|
-
c.autoInputConfig ? (
|
|
1527
|
+
c.autoInputConfig ? (r(), D("div", Je, [
|
|
1541
1528
|
ae(b, {
|
|
1542
1529
|
id: "autoInputTable",
|
|
1543
1530
|
ref: "autoInputTable",
|
|
@@ -1555,17 +1542,17 @@ function al(o, i, c, a, m, H) {
|
|
|
1555
1542
|
_: 3
|
|
1556
1543
|
}, 8, ["locale"]);
|
|
1557
1544
|
}
|
|
1558
|
-
const fe = /* @__PURE__ */
|
|
1559
|
-
fe.install = function(
|
|
1560
|
-
|
|
1545
|
+
const fe = /* @__PURE__ */ He(pe, [["render", Xe], ["__scopeId", "data-v-ada8ebe2"]]);
|
|
1546
|
+
fe.install = function(u) {
|
|
1547
|
+
u.component(fe.name, fe);
|
|
1561
1548
|
};
|
|
1562
|
-
const
|
|
1563
|
-
|
|
1549
|
+
const Ge = [fe], $e = (u) => {
|
|
1550
|
+
Ge.forEach(
|
|
1564
1551
|
(i) => {
|
|
1565
|
-
|
|
1552
|
+
u.component(i.name || i.__name, i);
|
|
1566
1553
|
}
|
|
1567
1554
|
);
|
|
1568
|
-
},
|
|
1555
|
+
}, ll = { install: $e };
|
|
1569
1556
|
export {
|
|
1570
|
-
|
|
1557
|
+
ll as default
|
|
1571
1558
|
};
|