jtui-vite 1.0.3 → 1.0.4

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.
@@ -1,405 +1,503 @@
1
1
  import './jtui-vite.css';
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) {
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;
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))
6
- c = !1;
7
- else if (!i[u.substr(0, 2)])
8
- c = !1;
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);
2
+ import { defineAsyncComponent as Ue, resolveComponent as N, createBlock as V, openBlock as y, withCtx as I, createCommentVNode as A, createVNode as ne, createElementBlock as z, Fragment as te, renderList as ae, normalizeStyle as j, renderSlot as pe, toDisplayString as Q, withModifiers as ke, normalizeClass as we, createTextVNode as de, createElementVNode as K, ref as ee, getCurrentInstance as ze, reactive as fe, toRef as Ie, computed as be, shallowRef as Le, onBeforeUnmount as Me, watch as Ne, nextTick as xe, useCssVars as Ye, withDirectives as Ce, vShow as Fe, onMounted as Ke, onUnmounted as He } from "vue";
3
+ import { ElMessage as De } from "element-plus";
4
+ function qe(n) {
5
+ var d = {
6
+ 11: "北京",
7
+ 12: "天津",
8
+ 13: "河北",
9
+ 14: "山西",
10
+ 15: "内蒙古",
11
+ 21: "辽宁",
12
+ 22: "吉林",
13
+ 23: "黑龙江 ",
14
+ 31: "上海",
15
+ 32: "江苏",
16
+ 33: "浙江",
17
+ 34: "安徽",
18
+ 35: "福建",
19
+ 36: "江西",
20
+ 37: "山东",
21
+ 41: "河南",
22
+ 42: "湖北 ",
23
+ 43: "湖南",
24
+ 44: "广东",
25
+ 45: "广西",
26
+ 46: "海南",
27
+ 50: "重庆",
28
+ 51: "四川",
29
+ 52: "贵州",
30
+ 53: "云南",
31
+ 54: "西藏 ",
32
+ 61: "陕西",
33
+ 62: "甘肃",
34
+ 63: "青海",
35
+ 64: "宁夏",
36
+ 65: "新疆",
37
+ 71: "台湾",
38
+ 81: "香港",
39
+ 82: "澳门",
40
+ 91: "国外 "
41
+ }, f = !0;
42
+ if (!n || !/^\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(n))
43
+ f = !1;
44
+ else if (!d[n.substr(0, 2)])
45
+ f = !1;
46
+ else if (n.length == 18) {
47
+ n = n.split("");
48
+ for (var l = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2], p = [1, 0, "X", 9, 8, 7, 6, 5, 4, 3, 2], i = 0, C = 0, g = 0, c = 0; c < 17; c++)
49
+ C = n[c], g = l[c], i += C * g;
50
+ p[i % 11], p[i % 11] != n[17] && (f = !1);
14
51
  }
15
- return c;
52
+ return f;
16
53
  }
17
- class Ke {
54
+ class je {
18
55
  //必传(失去焦点)
19
56
  required() {
20
- return { required: !0, whitespace: !0, message: "该项必须填写", trigger: "blur" };
57
+ return {
58
+ required: !0,
59
+ whitespace: !0,
60
+ message: "该项必须填写",
61
+ trigger: "blur"
62
+ };
21
63
  }
22
64
  //必传(获取焦点)
23
65
  requiredFocus() {
24
- return { required: !0, whitespace: !0, message: "该项必须填写", trigger: "focus" };
66
+ return {
67
+ required: !0,
68
+ whitespace: !0,
69
+ message: "该项必须填写",
70
+ trigger: "focus"
71
+ };
25
72
  }
26
73
  //字符数量范围
27
- range(i, c) {
28
- return { min: Number(i), max: Number(c), message: `长度在 ${i} 到 ${c} 个字符`, trigger: "blur" };
74
+ range(d, f) {
75
+ return {
76
+ min: Number(d),
77
+ max: Number(f),
78
+ message: `长度在 ${d} 到 ${f} 个字符`,
79
+ trigger: "blur"
80
+ };
29
81
  }
30
82
  //字符长度
31
- len(i) {
32
- return { len: Number(i), message: `字符长度必须是 ${i}`, trigger: "blur" };
83
+ len(d) {
84
+ return {
85
+ len: Number(d),
86
+ message: `字符长度必须是 ${d}`,
87
+ trigger: "blur"
88
+ };
33
89
  }
34
90
  //数字类型
35
91
  num() {
36
- return { validator: (c, a, m) => {
37
- isNaN(Number(a)) && m(new Error("必须是数字类型")), m();
38
- }, trigger: "blur" };
92
+ return {
93
+ validator: (f, l, p) => {
94
+ isNaN(Number(l)) && p(new Error("必须是数字类型")), p();
95
+ },
96
+ trigger: "blur"
97
+ };
39
98
  }
40
99
  //邮箱
41
100
  email() {
42
- return { validator: (c, a, m) => {
43
- /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(a) || m(new Error("邮箱格式不正确")), m();
44
- }, trigger: "blur" };
101
+ return {
102
+ validator: (f, l, p) => {
103
+ /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(l) || p(new Error("邮箱格式不正确")), p();
104
+ },
105
+ trigger: "blur"
106
+ };
45
107
  }
46
108
  //身份证
47
109
  idCard() {
48
- return { validator: (c, a, m) => {
49
- Ye(a) || m(new Error("身份证号码不正确")), m();
50
- }, trigger: "blur" };
110
+ return {
111
+ validator: (f, l, p) => {
112
+ qe(l) || p(new Error("身份证号码不正确")), p();
113
+ },
114
+ trigger: "blur"
115
+ };
51
116
  }
52
117
  //手机号
53
118
  phone() {
54
- return { validator: (c, a, m) => {
55
- /^1[3-9]\d{9}$/.test(a) || m(new Error("手机号码不正确")), m();
56
- }, trigger: "blur" };
119
+ return {
120
+ validator: (f, l, p) => {
121
+ /^1[3-9]\d{9}$/.test(l) || p(new Error("手机号码不正确")), p();
122
+ },
123
+ trigger: "blur"
124
+ };
57
125
  }
58
126
  //匹配英文字母
59
127
  letters() {
60
- return { validator: (c, a, m) => {
61
- /^[a-zA-Z]+$/.test(a) || a === "" ? m() : m(new Error("必须是英文字母"));
62
- }, trigger: "blur" };
128
+ return {
129
+ validator: (f, l, p) => {
130
+ /^[a-zA-Z]+$/.test(l) || l === "" ? p() : p(new Error("必须是英文字母"));
131
+ },
132
+ trigger: "blur"
133
+ };
63
134
  }
64
135
  //require All types
65
136
  requireAll() {
66
- return { validator: (c, a, m) => {
67
- a !== "" && a !== void 0 && a !== null ? m() : m(new Error("该项不能为空"));
68
- }, trigger: "blur" };
137
+ return {
138
+ validator: (f, l, p) => {
139
+ l !== "" && l !== void 0 && l !== null ? p() : p(new Error("该项不能为空"));
140
+ },
141
+ trigger: "blur"
142
+ };
69
143
  }
70
144
  requireSelect() {
71
- return { validator: (c, a, m) => {
72
- Array.isArray(a) && a.length > 0 ? m() : m(new Error("请至少选择一个"));
73
- }, trigger: "blur" };
145
+ return {
146
+ validator: (f, l, p) => {
147
+ Array.isArray(l) && l.length > 0 ? p() : p(new Error("请至少选择一个"));
148
+ },
149
+ trigger: "blur"
150
+ };
74
151
  }
75
152
  }
76
- function Be(u) {
77
- return u && u.__esModule && Object.prototype.hasOwnProperty.call(u, "default") ? u.default : u;
153
+ function Be(n) {
154
+ return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
78
155
  }
79
- var he = { exports: {} }, Re = he.exports, ve;
80
- function Ae() {
81
- return ve || (ve = 1, (function(u, i) {
82
- (function(c, a) {
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) {
89
- var d = String(e);
90
- return !d || d.length >= o ? e : "" + Array(o + 1 - d.length).join(l) + e;
91
- }, re = { s: X, z: function(e) {
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);
98
- }, a: function(e) {
99
- return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
100
- }, p: function(e) {
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$/, "");
102
- }, u: function(e) {
103
- return e === void 0;
104
- } }, Q = "en", L = {};
105
- L[Q] = ne;
106
- var de = "$isDayjsObject", le = function(e) {
107
- return e instanceof $ || !(!e || !e[de]);
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]);
156
+ var ge = { exports: {} }, Ge = ge.exports, Re;
157
+ function We() {
158
+ return Re || (Re = 1, (function(n, d) {
159
+ (function(f, l) {
160
+ n.exports = l();
161
+ })(Ge, function() {
162
+ var f = 1e3, l = 6e4, p = 36e5, i = "millisecond", C = "second", g = "minute", c = "hour", t = "day", a = "week", m = "month", u = "quarter", o = "year", h = "date", T = "Invalid Date", s = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, _ = /\[([^\]]+)]|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, F = {
163
+ name: "en",
164
+ weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
165
+ months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
166
+ ordinal: function(R) {
167
+ var r = ["th", "st", "nd", "rd"], v = R % 100;
168
+ return "[" + R + (r[(v - 20) % 10] || r[v] || r[0]) + "]";
169
+ }
170
+ }, P = function(R, r, v) {
171
+ var k = String(R);
172
+ return !k || k.length >= r ? R : "" + Array(r + 1 - k.length).join(v) + R;
173
+ }, w = {
174
+ s: P,
175
+ z: function(R) {
176
+ var r = -R.utcOffset(), v = Math.abs(r), k = Math.floor(v / 60), E = v % 60;
177
+ return (r <= 0 ? "+" : "-") + P(k, 2, "0") + ":" + P(E, 2, "0");
178
+ },
179
+ m: function R(r, v) {
180
+ if (r.date() < v.date()) return -R(v, r);
181
+ var k = 12 * (v.year() - r.year()) + (v.month() - r.month()), E = r.clone().add(k, m), M = v - E < 0, B = r.clone().add(k + (M ? -1 : 1), m);
182
+ return +(-(k + (v - E) / (M ? E - B : B - E)) || 0);
183
+ },
184
+ a: function(R) {
185
+ return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
186
+ },
187
+ p: function(R) {
188
+ return {
189
+ M: m,
190
+ y: o,
191
+ w: a,
192
+ d: t,
193
+ D: h,
194
+ h: c,
195
+ m: g,
196
+ s: C,
197
+ ms: i,
198
+ Q: u
199
+ }[R] || String(R || "").toLowerCase().replace(/s$/, "");
200
+ },
201
+ u: function(R) {
202
+ return R === void 0;
203
+ }
204
+ }, x = "en", D = {};
205
+ D[x] = F;
206
+ var U = "$isDayjsObject", W = function(R) {
207
+ return R instanceof ie || !(!R || !R[U]);
208
+ }, H = function R(r, v, k) {
209
+ var E;
210
+ if (!r) return x;
211
+ if (typeof r == "string") {
212
+ var M = r.toLowerCase();
213
+ D[M] && (E = M), v && (D[M] = v, E = M);
214
+ var B = r.split("-");
215
+ if (!E && B.length > 1) return R(B[0]);
116
216
  } else {
117
- var g = o.name;
118
- L[g] = o, n = g;
217
+ var Y = r.name;
218
+ D[Y] = r, E = Y;
119
219
  }
120
- return !d && n && (Q = n), n || !d && Q;
121
- }, x = function(e, o) {
122
- if (le(e)) return e.clone();
123
- var l = typeof o == "object" ? o : {};
124
- return l.date = e, l.args = arguments, new $(l);
125
- }, b = re;
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 });
220
+ return !k && E && (x = E), E || !k && x;
221
+ }, L = function(R, r) {
222
+ if (W(R)) return R.clone();
223
+ var v = typeof r == "object" ? r : {};
224
+ return v.date = R, v.args = arguments, new ie(v);
225
+ }, O = w;
226
+ O.l = H, O.i = W, O.w = function(R, r) {
227
+ return L(R, {
228
+ locale: r.$L,
229
+ utc: r.$u,
230
+ x: r.$x,
231
+ $offset: r.$offset
232
+ });
128
233
  };
129
- var $ = (function() {
130
- function e(l) {
131
- this.$L = G(l.locale, null, !0), this.parse(l), this.$x = this.$x || l.x || {}, this[de] = !0;
234
+ var ie = (function() {
235
+ function R(v) {
236
+ this.$L = H(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[U] = !0;
132
237
  }
133
- var o = e.prototype;
134
- return o.parse = function(l) {
135
- this.$d = (function(d) {
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);
142
- if (y) {
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);
238
+ var r = R.prototype;
239
+ return r.parse = function(v) {
240
+ this.$d = (function(k) {
241
+ var E = k.date, M = k.utc;
242
+ if (E === null) return /* @__PURE__ */ new Date(NaN);
243
+ if (O.u(E)) return /* @__PURE__ */ new Date();
244
+ if (E instanceof Date) return new Date(E);
245
+ if (typeof E == "string" && !/Z$/i.test(E)) {
246
+ var B = E.match(s);
247
+ if (B) {
248
+ var Y = B[2] - 1 || 0, q = (B[7] || "0").substring(0, 3);
249
+ return M ? new Date(Date.UTC(B[1], Y, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, q)) : new Date(B[1], Y, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, q);
145
250
  }
146
251
  }
147
- return new Date(n);
148
- })(l), this.init();
149
- }, o.init = function() {
150
- var l = this.$d;
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();
152
- }, o.$utils = function() {
153
- return b;
154
- }, o.isValid = function() {
155
- return this.$d.toString() !== Z;
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() {
252
+ return new Date(E);
253
+ })(v), this.init();
254
+ }, r.init = function() {
255
+ var v = this.$d;
256
+ this.$y = v.getFullYear(), this.$M = v.getMonth(), this.$D = v.getDate(), this.$W = v.getDay(), this.$H = v.getHours(), this.$m = v.getMinutes(), this.$s = v.getSeconds(), this.$ms = v.getMilliseconds();
257
+ }, r.$utils = function() {
258
+ return O;
259
+ }, r.isValid = function() {
260
+ return this.$d.toString() !== T;
261
+ }, r.isSame = function(v, k) {
262
+ var E = L(v);
263
+ return this.startOf(k) <= E && E <= this.endOf(k);
264
+ }, r.isAfter = function(v, k) {
265
+ return L(v) < this.startOf(k);
266
+ }, r.isBefore = function(v, k) {
267
+ return this.endOf(k) < L(v);
268
+ }, r.$g = function(v, k, E) {
269
+ return O.u(v) ? this[k] : this.set(E, v);
270
+ }, r.unix = function() {
166
271
  return Math.floor(this.valueOf() / 1e3);
167
- }, o.valueOf = function() {
272
+ }, r.valueOf = function() {
168
273
  return this.$d.getTime();
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);
173
- }, w = function(S, B) {
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" : "");
176
- switch (y) {
177
- case A:
178
- return f ? g(1, 0) : g(31, 11);
179
- case k:
180
- return f ? g(1, t) : g(0, t + 1);
181
- case H:
182
- var Y = this.$locale().weekStart || 0, T = (M < Y ? M + 7 : M) - Y;
183
- return g(f ? s - T : s + (6 - T), t);
184
- case V:
185
- case U:
186
- return w(F + "Hours", 0);
187
- case K:
188
- return w(F + "Minutes", 1);
189
- case R:
190
- return w(F + "Seconds", 2);
191
- case v:
192
- return w(F + "Milliseconds", 3);
274
+ }, r.startOf = function(v, k) {
275
+ var E = this, M = !!O.u(k) || k, B = O.p(v), Y = function($, X) {
276
+ var se = O.w(E.$u ? Date.UTC(E.$y, X, $) : new Date(E.$y, X, $), E);
277
+ return M ? se : se.endOf(t);
278
+ }, q = function($, X) {
279
+ return O.w(E.toDate()[$].apply(E.toDate("s"), (M ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(X)), E);
280
+ }, Z = this.$W, b = this.$M, S = this.$D, G = "set" + (this.$u ? "UTC" : "");
281
+ switch (B) {
282
+ case o:
283
+ return M ? Y(1, 0) : Y(31, 11);
284
+ case m:
285
+ return M ? Y(1, b) : Y(0, b + 1);
286
+ case a:
287
+ var J = this.$locale().weekStart || 0, le = (Z < J ? Z + 7 : Z) - J;
288
+ return Y(M ? S - le : S + (6 - le), b);
289
+ case t:
290
+ case h:
291
+ return q(G + "Hours", 0);
292
+ case c:
293
+ return q(G + "Minutes", 1);
294
+ case g:
295
+ return q(G + "Seconds", 2);
296
+ case C:
297
+ return q(G + "Milliseconds", 3);
193
298
  default:
194
299
  return this.clone();
195
300
  }
196
- }, o.endOf = function(l) {
197
- return this.startOf(l, !1);
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) {
201
- var M = this.clone().set(U, 1);
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);
301
+ }, r.endOf = function(v) {
302
+ return this.startOf(v, !1);
303
+ }, r.$set = function(v, k) {
304
+ var E, M = O.p(v), B = "set" + (this.$u ? "UTC" : ""), Y = (E = {}, E[t] = B + "Date", E[h] = B + "Date", E[m] = B + "Month", E[o] = B + "FullYear", E[c] = B + "Hours", E[g] = B + "Minutes", E[C] = B + "Seconds", E[i] = B + "Milliseconds", E)[M], q = M === t ? this.$D + (k - this.$W) : k;
305
+ if (M === m || M === o) {
306
+ var Z = this.clone().set(h, 1);
307
+ Z.$d[Y](q), Z.init(), this.$d = Z.set(h, Math.min(this.$D, Z.daysInMonth())).$d;
308
+ } else Y && this.$d[Y](q);
204
309
  return this.init(), this;
205
- }, o.set = function(l, d) {
206
- return this.clone().$set(l, d);
207
- }, o.get = function(l) {
208
- return this[b.p(l)]();
209
- }, o.add = function(l, d) {
210
- var n, f = this;
211
- l = Number(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);
310
+ }, r.set = function(v, k) {
311
+ return this.clone().$set(v, k);
312
+ }, r.get = function(v) {
313
+ return this[O.p(v)]();
314
+ }, r.add = function(v, k) {
315
+ var E, M = this;
316
+ v = Number(v);
317
+ var B = O.p(k), Y = function(b) {
318
+ var S = L(M);
319
+ return O.w(S.date(S.date() + Math.round(b * v)), M);
215
320
  };
216
- if (y === k) return this.set(k, this.$M + l);
217
- if (y === A) return this.set(A, this.$y + l);
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;
221
- return b.w(M, this);
222
- }, o.subtract = function(l, d) {
223
- return this.add(-1 * l, 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);
229
- }, T = function(B) {
230
- return b.s(g % 12 || 12, B, "0");
231
- }, S = F || function(B, N, J) {
232
- var ee = B < 12 ? "AM" : "PM";
233
- return J ? ee.toLowerCase() : ee;
321
+ if (B === m) return this.set(m, this.$M + v);
322
+ if (B === o) return this.set(o, this.$y + v);
323
+ if (B === t) return Y(1);
324
+ if (B === a) return Y(7);
325
+ var q = (E = {}, E[g] = l, E[c] = p, E[C] = f, E)[B] || 1, Z = this.$d.getTime() + v * q;
326
+ return O.w(Z, this);
327
+ }, r.subtract = function(v, k) {
328
+ return this.add(-1 * v, k);
329
+ }, r.format = function(v) {
330
+ var k = this, E = this.$locale();
331
+ if (!this.isValid()) return E.invalidDate || T;
332
+ var M = v || "YYYY-MM-DDTHH:mm:ssZ", B = O.z(this), Y = this.$H, q = this.$m, Z = this.$M, b = E.weekdays, S = E.months, G = E.meridiem, J = function(X, se, ue, ce) {
333
+ return X && (X[se] || X(k, M)) || ue[se].slice(0, ce);
334
+ }, le = function(X) {
335
+ return O.s(Y % 12 || 12, X, "0");
336
+ }, $ = G || function(X, se, ue) {
337
+ var ce = X < 12 ? "AM" : "PM";
338
+ return ue ? ce.toLowerCase() : ce;
234
339
  };
235
- return f.replace(ue, (function(B, N) {
236
- return N || (function(J) {
237
- switch (J) {
340
+ return M.replace(_, function(X, se) {
341
+ return se || (function(ue) {
342
+ switch (ue) {
238
343
  case "YY":
239
- return String(d.$y).slice(-2);
344
+ return String(k.$y).slice(-2);
240
345
  case "YYYY":
241
- return b.s(d.$y, 4, "0");
346
+ return O.s(k.$y, 4, "0");
242
347
  case "M":
243
- return M + 1;
348
+ return Z + 1;
244
349
  case "MM":
245
- return b.s(M + 1, 2, "0");
350
+ return O.s(Z + 1, 2, "0");
246
351
  case "MMM":
247
- return Y(n.monthsShort, M, s, 3);
352
+ return J(E.monthsShort, Z, S, 3);
248
353
  case "MMMM":
249
- return Y(s, M);
354
+ return J(S, Z);
250
355
  case "D":
251
- return d.$D;
356
+ return k.$D;
252
357
  case "DD":
253
- return b.s(d.$D, 2, "0");
358
+ return O.s(k.$D, 2, "0");
254
359
  case "d":
255
- return String(d.$W);
360
+ return String(k.$W);
256
361
  case "dd":
257
- return Y(n.weekdaysMin, d.$W, t, 2);
362
+ return J(E.weekdaysMin, k.$W, b, 2);
258
363
  case "ddd":
259
- return Y(n.weekdaysShort, d.$W, t, 3);
364
+ return J(E.weekdaysShort, k.$W, b, 3);
260
365
  case "dddd":
261
- return t[d.$W];
366
+ return b[k.$W];
262
367
  case "H":
263
- return String(g);
368
+ return String(Y);
264
369
  case "HH":
265
- return b.s(g, 2, "0");
370
+ return O.s(Y, 2, "0");
266
371
  case "h":
267
- return T(1);
372
+ return le(1);
268
373
  case "hh":
269
- return T(2);
374
+ return le(2);
270
375
  case "a":
271
- return S(g, w, !0);
376
+ return $(Y, q, !0);
272
377
  case "A":
273
- return S(g, w, !1);
378
+ return $(Y, q, !1);
274
379
  case "m":
275
- return String(w);
380
+ return String(q);
276
381
  case "mm":
277
- return b.s(w, 2, "0");
382
+ return O.s(q, 2, "0");
278
383
  case "s":
279
- return String(d.$s);
384
+ return String(k.$s);
280
385
  case "ss":
281
- return b.s(d.$s, 2, "0");
386
+ return O.s(k.$s, 2, "0");
282
387
  case "SSS":
283
- return b.s(d.$ms, 3, "0");
388
+ return O.s(k.$ms, 3, "0");
284
389
  case "Z":
285
- return y;
390
+ return B;
286
391
  }
287
392
  return null;
288
- })(B) || y.replace(":", "");
289
- }));
290
- }, o.utcOffset = function() {
393
+ })(X) || B.replace(":", "");
394
+ });
395
+ }, r.utcOffset = function() {
291
396
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
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() {
294
- return b.m(y, w);
397
+ }, r.diff = function(v, k, E) {
398
+ var M, B = this, Y = O.p(k), q = L(v), Z = (q.utcOffset() - this.utcOffset()) * l, b = this - q, S = function() {
399
+ return O.m(B, q);
295
400
  };
296
- switch (g) {
297
- case A:
298
- f = s() / 12;
401
+ switch (Y) {
402
+ case o:
403
+ M = S() / 12;
299
404
  break;
300
- case k:
301
- f = s();
405
+ case m:
406
+ M = S();
302
407
  break;
303
- case z:
304
- f = s() / 3;
408
+ case u:
409
+ M = S() / 3;
305
410
  break;
306
- case H:
307
- f = (t - M) / 6048e5;
411
+ case a:
412
+ M = (b - Z) / 6048e5;
308
413
  break;
309
- case V:
310
- f = (t - M) / 864e5;
414
+ case t:
415
+ M = (b - Z) / 864e5;
311
416
  break;
312
- case K:
313
- f = t / m;
417
+ case c:
418
+ M = b / p;
314
419
  break;
315
- case R:
316
- f = t / a;
420
+ case g:
421
+ M = b / l;
317
422
  break;
318
- case v:
319
- f = t / c;
423
+ case C:
424
+ M = b / f;
320
425
  break;
321
426
  default:
322
- f = t;
427
+ M = b;
323
428
  }
324
- return n ? f : b.a(f);
325
- }, o.daysInMonth = function() {
326
- return this.endOf(k).$D;
327
- }, o.$locale = function() {
328
- return L[this.$L];
329
- }, o.locale = function(l, d) {
330
- if (!l) return this.$L;
331
- var n = this.clone(), f = G(l, d, !0);
332
- return f && (n.$L = f), n;
333
- }, o.clone = function() {
334
- return b.w(this.$d, this);
335
- }, o.toDate = function() {
429
+ return E ? M : O.a(M);
430
+ }, r.daysInMonth = function() {
431
+ return this.endOf(m).$D;
432
+ }, r.$locale = function() {
433
+ return D[this.$L];
434
+ }, r.locale = function(v, k) {
435
+ if (!v) return this.$L;
436
+ var E = this.clone(), M = H(v, k, !0);
437
+ return M && (E.$L = M), E;
438
+ }, r.clone = function() {
439
+ return O.w(this.$d, this);
440
+ }, r.toDate = function() {
336
441
  return new Date(this.valueOf());
337
- }, o.toJSON = function() {
442
+ }, r.toJSON = function() {
338
443
  return this.isValid() ? this.toISOString() : null;
339
- }, o.toISOString = function() {
444
+ }, r.toISOString = function() {
340
445
  return this.$d.toISOString();
341
- }, o.toString = function() {
446
+ }, r.toString = function() {
342
447
  return this.$d.toUTCString();
343
- }, e;
344
- })(), se = $.prototype;
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]);
448
+ }, R;
449
+ })(), e = ie.prototype;
450
+ return L.prototype = e, [["$ms", i], ["$s", C], ["$m", g], ["$H", c], ["$W", t], ["$M", m], ["$y", o], ["$D", h]].forEach(function(R) {
451
+ e[R[1]] = function(r) {
452
+ return this.$g(r, R[0], R[1]);
348
453
  };
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;
354
- }));
355
- })(he)), he.exports;
454
+ }), L.extend = function(R, r) {
455
+ return R.$i || (R(r, ie, L), R.$i = !0), L;
456
+ }, L.locale = H, L.isDayjs = W, L.unix = function(R) {
457
+ return L(1e3 * R);
458
+ }, L.en = D[x], L.Ls = D, L.p = {}, L;
459
+ });
460
+ })(ge)), ge.exports;
356
461
  }
357
- var Ue = Ae();
358
- const j = /* @__PURE__ */ Be(Ue), Se = [
359
- {
360
- text: "昨天",
361
- value: () => {
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];
364
- }
365
- },
366
- {
367
- text: "今天",
368
- value: () => {
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];
371
- }
372
- },
373
- {
374
- text: "最近2天",
375
- value: () => {
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];
378
- }
379
- },
380
- {
381
- text: "最近3天",
382
- value: () => {
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];
385
- }
386
- },
387
- {
388
- text: "最近一周",
389
- value: () => {
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];
392
- }
393
- },
394
- {
395
- text: "最近一个月",
396
- value: () => {
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];
399
- }
462
+ var Ze = We();
463
+ const oe = /* @__PURE__ */ Be(Ze), Je = [{
464
+ text: "昨天",
465
+ value: () => {
466
+ const n = oe().subtract(1, "days").hour(0).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss"), d = oe().subtract(1, "days").hour(23).minute(59).second(59).format("YYYY-MM-DD HH:mm:ss");
467
+ return [n, d];
468
+ }
469
+ }, {
470
+ text: "今天",
471
+ value: () => {
472
+ const n = oe().hour(0).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss"), d = oe().format("YYYY-MM-DD HH:mm:ss");
473
+ return [n, d];
474
+ }
475
+ }, {
476
+ text: "最近2天",
477
+ value: () => {
478
+ const n = oe().subtract(2, "days").hour(0).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss"), d = oe().subtract(1, "days").hour(23).minute(59).second(59).format("YYYY-MM-DD HH:mm:ss");
479
+ return [n, d];
480
+ }
481
+ }, {
482
+ text: "最近3天",
483
+ value: () => {
484
+ const n = oe().subtract(3, "days").hour(0).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss"), d = oe().subtract(1, "days").hour(23).minute(59).second(59).format("YYYY-MM-DD HH:mm:ss");
485
+ return [n, d];
486
+ }
487
+ }, {
488
+ text: "最近一周",
489
+ value: () => {
490
+ const n = oe().subtract(1, "weeks").hour(0).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss"), d = oe().subtract(1, "days").hour(23).minute(59).second(59).format("YYYY-MM-DD HH:mm:ss");
491
+ return [n, d];
400
492
  }
401
- ];
402
- var Te = {
493
+ }, {
494
+ text: "最近一个月",
495
+ value: () => {
496
+ const n = oe().subtract(1, "months").hour(0).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss"), d = oe().subtract(1, "days").hour(23).minute(59).second(59).format("YYYY-MM-DD HH:mm:ss");
497
+ return [n, d];
498
+ }
499
+ }];
500
+ var Xe = {
403
501
  name: "zh-cn",
404
502
  el: {
405
503
  breadcrumb: {
@@ -593,15 +691,24 @@ var Te = {
593
691
  }
594
692
  }
595
693
  };
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 = {
694
+ const _e = (n, d) => {
695
+ const f = n.__vccOpts || n;
696
+ for (const [l, p] of d)
697
+ f[l] = p;
698
+ return f;
699
+ }, Qe = Ue(
700
+ () => import("./index.esm-BeJB3gLK.js").then((n) => n.Editor)
701
+ ), $e = Ue(
702
+ () => import("./index.esm-BeJB3gLK.js").then((n) => n.Toolbar)
703
+ ), et = () => {
704
+ if (!document.querySelector('link[href*="wangeditor"]')) {
705
+ const n = document.createElement("link");
706
+ n.rel = "stylesheet", n.href = "https://unpkg.com/@wangeditor/editor@latest/dist/css/style.css", document.head.appendChild(n);
707
+ }
708
+ }, Se = {
602
709
  name: "jt-form",
603
710
  emits: ["switchChange", "focus", "blur", "casChange", "cusBtn"],
604
- // components: { Editor, Toolbar },
711
+ components: { Editor: Qe, Toolbar: $e },
605
712
  props: {
606
713
  id: {
607
714
  type: [String, Number],
@@ -671,44 +778,44 @@ const He = (u, i) => {
671
778
  default: null
672
779
  }
673
780
  },
674
- setup(u, { emit: i }) {
675
- let c = te(!0);
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({
781
+ setup(n, { emit: d }) {
782
+ let f = ee(!0);
783
+ const l = ze();
784
+ let p = fe({});
785
+ const i = Ie(n, "lazyLoadParams"), C = be(() => n.model), g = ee(!1), c = ee(), t = fe({
679
786
  selectid: "",
680
787
  keywords: ""
681
- }), H = te([{ retjson: {}, DataArray: [], Result: "" }]);
682
- let k = [], z = te(!1), A = te(!1);
683
- const U = ye({
788
+ }), a = ee([{ retjson: {}, DataArray: [], Result: "" }]);
789
+ let m = [], u = ee(!1), o = ee(!1);
790
+ const h = fe({
684
791
  PageIndex: 1,
685
792
  PageRowCount: 50,
686
793
  total: 100
687
- }), Z = Fe(), oe = {}, ue = (t) => ({
688
- placeholder: t.placeholder ? t.placeholder : "请输入内容...",
689
- readOnly: t.readOnly ? t.readOnly : !1,
690
- autoFocus: t.autoFocus ? t.autoFocus : !0,
691
- maxLength: t.maxlength ? t.maxlength : null
794
+ }), T = Le(), s = {}, _ = (b) => ({
795
+ placeholder: b.placeholder ? b.placeholder : "请输入内容...",
796
+ readOnly: b.readOnly ? b.readOnly : !1,
797
+ autoFocus: b.autoFocus ? b.autoFocus : !0,
798
+ maxLength: b.maxlength ? b.maxlength : null
692
799
  });
693
- Ve(() => {
694
- const t = Z.value;
695
- t?.destroy();
800
+ Me(() => {
801
+ const b = T.value;
802
+ b?.destroy();
696
803
  });
697
- const ne = (t, s) => {
698
- v.value[s.modelKey] = atob(v.value[s.modelKey]), Z.value = t;
804
+ const F = (b, S) => {
805
+ et(), C.value[S.modelKey] = atob(C.value[S.modelKey]), T.value = b;
699
806
  };
700
- ke(v.value, (t) => {
701
- u.formConfig.forEach((s) => {
702
- "submitKey" in s && (v.value[s.submitKey] = t[s.modelKey]);
807
+ Ne(C.value, (b) => {
808
+ n.formConfig.forEach((S) => {
809
+ "submitKey" in S && (C.value[S.submitKey] = b[S.modelKey]);
703
810
  });
704
- }), u.rules && (c.value = !1, L(), Ee(() => {
705
- c.value = !0;
811
+ }), n.rules && (f.value = !1, D(), xe(() => {
812
+ f.value = !0;
706
813
  }));
707
- function X(t) {
708
- t.isPwd = !t.isPwd, t.isPwd ? t.iType = "text" : t.iType = "password";
814
+ function P(b) {
815
+ b.isPwd = !b.isPwd, b.isPwd ? b.iType = "text" : b.iType = "password";
709
816
  }
710
- function re(t) {
711
- switch (t) {
817
+ function w(b) {
818
+ switch (b) {
712
819
  case "large":
713
820
  return "36px";
714
821
  case "default":
@@ -717,331 +824,328 @@ const He = (u, i) => {
717
824
  return "28px";
718
825
  }
719
826
  }
720
- function Q(t, s) {
721
- i("switchChange", t[0], s);
827
+ function x(b, S) {
828
+ d("switchChange", b[0], S);
722
829
  }
723
- function L() {
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("-");
729
- if (Y[1]) {
730
- let T = Y[1].split(",");
731
- m[s].push(t[Y[0]](...T));
830
+ function D() {
831
+ let b = new je();
832
+ Object.keys(n.rules).forEach((S) => {
833
+ p[S] = [], n.rules[S].forEach((G) => {
834
+ if (typeof G == "string") {
835
+ let J = G.split("-");
836
+ if (J[1]) {
837
+ let le = J[1].split(",");
838
+ p[S].push(b[J[0]](...le));
732
839
  } else
733
- m[s].push(t[F]());
840
+ p[S].push(b[G]());
734
841
  }
735
842
  });
736
843
  });
737
844
  }
738
- function de(t, s) {
739
- i("focus", t, s);
845
+ function U(b, S) {
846
+ d("focus", b, S);
740
847
  }
741
- function le(t, s) {
742
- i("blur", t, s);
848
+ function W(b, S) {
849
+ d("blur", b, S);
743
850
  }
744
- function G(t) {
745
- let { path: s, childPath: F } = t, Y = t.multiple || !1, T = t.checkStrictly || !1;
851
+ function H(b) {
852
+ let { path: S, childPath: G } = b, J = b.multiple || !1, le = b.checkStrictly || !1;
746
853
  return {
747
854
  lazy: !0,
748
- multiple: Y,
749
- checkStrictly: T,
750
- async lazyLoad(S, B) {
751
- const { level: N, data: J } = S;
752
- if (N === 0) {
753
- const { data: ee } = await u.axios.post(
754
- s + F,
755
- t.params || O.value
855
+ multiple: J,
856
+ checkStrictly: le,
857
+ async lazyLoad($, X) {
858
+ const { level: se, data: ue } = $;
859
+ if (se === 0) {
860
+ const { data: ce } = await n.axios.post(
861
+ S + G,
862
+ b.params || i.value
756
863
  );
757
- B(
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
864
+ X(
865
+ ce.map((re) => ({
866
+ label: re.name,
867
+ leaf: re.path === "-" || !re.path,
868
+ path: re.path,
869
+ value: re.id,
870
+ other: re
764
871
  }))
765
872
  );
766
873
  }
767
- if (N > 0) {
768
- if (J.path === "-" || !J.path) {
769
- B();
874
+ if (se > 0) {
875
+ if (ue.path === "-" || !ue.path) {
876
+ X();
770
877
  return;
771
878
  }
772
- const { data: ee } = await u.axios.post(
773
- s + J.path,
774
- t.params || O.value
879
+ const { data: ce } = await n.axios.post(
880
+ S + ue.path,
881
+ b.params || i.value
775
882
  );
776
- B(
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
883
+ X(
884
+ ce.map((re) => ({
885
+ label: re.name,
886
+ leaf: re.path === "-" || !re.path,
887
+ path: re.path,
888
+ value: re.id,
889
+ other: re
783
890
  }))
784
891
  );
785
892
  }
786
893
  }
787
894
  };
788
895
  }
789
- function x(t, s) {
790
- const F = a.refs[t][0].getCheckedNodes();
791
- i("casChange", F, s);
896
+ function L(b, S) {
897
+ const G = l.refs[b][0].getCheckedNodes();
898
+ d("casChange", G, S);
792
899
  }
793
- function b(t, s) {
794
- i("cusBtn", t, s);
900
+ function O(b, S) {
901
+ d("cusBtn", b, S);
795
902
  }
796
- function $() {
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();
903
+ function ie() {
904
+ return n.formConfig.forEach((b) => {
905
+ b.type == "htmlarea" && (C.value[b.modelKey + "_base64"] = btoa(C.value[b.modelKey]));
906
+ }), l.refs[n.id].validate();
800
907
  }
801
- function se() {
802
- a.refs[u.id].resetFields();
908
+ function e() {
909
+ l.refs[n.id].resetFields();
803
910
  }
804
- const e = te(null), o = (t) => {
805
- const [s] = t;
806
- e.value = s;
807
- }, l = () => {
808
- e.value = null;
809
- }, d = (t, s) => {
810
- if (!e.value)
911
+ const R = ee(null), r = (b) => {
912
+ const [S] = b;
913
+ R.value = S;
914
+ }, v = () => {
915
+ R.value = null;
916
+ }, k = (b, S) => {
917
+ if (!R.value)
811
918
  return !1;
812
- if (s) {
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;
919
+ if (S) {
920
+ const G = new Date(R.value).getTime() - S * 24 * 60 * 60 * 1e3, J = new Date(R.value).getTime() + S * 24 * 60 * 60 * 1e3;
921
+ return b < G || b > J;
815
922
  } else
816
923
  return !1;
817
924
  };
818
- function n(t) {
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";
925
+ function E(b) {
926
+ return b == "datetime" || b == "datetimerange" ? "YYYY-MM-DD HH:mm" : b == "year" ? "YYYY" : b == "month" || b == "monthrange" ? "YYYY-MM" : b == "week" ? "YYYY年第ww周" : "YYYY-MM-DD";
820
927
  }
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(() => {
823
- w();
928
+ async function M() {
929
+ Array.isArray(n?.autoInputConfig?.selectData) && n.autoInputConfig.selectData.length > 0 ? t.selectid = n.autoInputConfig.selectData[0].value : delete t.selectid, n.autoInputConfig.keywords || delete t.keywords, h.PageIndex = 1, m = [], g.value = !0, xe(() => {
930
+ q();
824
931
  });
825
932
  }
826
- function y(t, s) {
827
- if (t == "cellClick") {
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]);
933
+ function B(b, S) {
934
+ if (b == "cellClick") {
935
+ const { row: G } = S;
936
+ Object.keys(G).forEach((J) => {
937
+ Object.keys(n.model).forEach((le) => {
938
+ le == J && (n.model[le] = G[J]);
832
939
  });
833
- }), R.value = !1;
940
+ }), g.value = !1;
834
941
  }
835
942
  }
836
- async function g() {
837
- A.value = !1, U.PageIndex = 1, k = [], w();
943
+ async function Y() {
944
+ o.value = !1, h.PageIndex = 1, m = [], q();
838
945
  }
839
- async function w() {
840
- if (A.value == !0)
946
+ async function q() {
947
+ if (o.value == !0)
841
948
  return;
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)
846
- ), s = t;
847
- if (s[0].Result == 0) {
848
- z.value = !1, K.value.loadData([]);
949
+ u.value = !0;
950
+ const { data: b } = await n.axios.post(
951
+ n.autoInputConfig.path + n.autoInputConfig.childPath,
952
+ Object.assign(t, n.autoInputConfig.subParams, h)
953
+ ), S = b;
954
+ if (S[0].Result == 0) {
955
+ u.value = !1, c.value.loadData([]);
849
956
  return;
850
957
  }
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++;
853
- }))) : K.value.loadData(s[0].DataArray, () => {
854
- z.value = !1, A.value = !0;
958
+ a.value[0].retjson = S[0].retjson, S[0].retjson.isPages ? (h.total = S[0].retjson.TotalCount, S[0].Result == 0 ? o.value = !0 : (m = m.concat(S[0].DataArray), c.value.loadData(m, () => {
959
+ u.value = !1, h.PageIndex++;
960
+ }))) : c.value.loadData(S[0].DataArray, () => {
961
+ u.value = !1, o.value = !0;
855
962
  });
856
963
  }
857
- async function M(t, s) {
858
- const { path: F, childPath: Y } = s;
859
- if (t) {
860
- const { data: T } = await u.axios.post(
861
- F + Y,
862
- s.params || O.value
964
+ async function Z(b, S) {
965
+ const { path: G, childPath: J } = S;
966
+ if (b) {
967
+ const { data: le } = await n.axios.post(
968
+ G + J,
969
+ S.params || i.value
863
970
  );
864
- s.options = T.map((S) => ({
865
- label: S.name,
866
- leaf: S.path === "-" || !S.path,
867
- path: S.path,
868
- value: S.id,
869
- other: S
971
+ S.options = le.map(($) => ({
972
+ label: $.name,
973
+ leaf: $.path === "-" || !$.path,
974
+ path: $.path,
975
+ value: $.id,
976
+ other: $
870
977
  }));
871
978
  }
872
979
  }
873
980
  return {
874
- casVisibleChange: M,
875
- handleChange: o,
876
- handleFocus: l,
877
- disabledDate: d,
878
- isShow: c,
879
- eyeClick: X,
880
- switchChange: Q,
881
- focus: de,
882
- resetAll: se,
883
- validateAll: $,
884
- itemClick: b,
885
- casChange: x,
886
- blur: le,
887
- loadData: G,
888
- type2size: re,
889
- rulesMap: m,
890
- shortcuts: Se,
891
- timeFormat: n,
892
- locale: Te,
893
- modelRemote: v,
894
- openAutoInput: f,
895
- isAutoInput: R,
896
- autoQuery: V,
897
- autoTableData: H,
898
- customEvents: y,
899
- search: g,
900
- loading: z,
901
- page: U,
902
- load: w,
903
- autoInputTable: K,
904
- editorRef: Z,
905
- toolbarConfig: oe,
906
- editorConfig: ue,
907
- handleCreated: ne
981
+ casVisibleChange: Z,
982
+ handleChange: r,
983
+ handleFocus: v,
984
+ disabledDate: k,
985
+ isShow: f,
986
+ eyeClick: P,
987
+ switchChange: x,
988
+ focus: U,
989
+ resetAll: e,
990
+ validateAll: ie,
991
+ itemClick: O,
992
+ casChange: L,
993
+ blur: W,
994
+ loadData: H,
995
+ type2size: w,
996
+ rulesMap: p,
997
+ shortcuts: Je,
998
+ timeFormat: E,
999
+ locale: Xe,
1000
+ modelRemote: C,
1001
+ openAutoInput: M,
1002
+ isAutoInput: g,
1003
+ autoQuery: t,
1004
+ autoTableData: a,
1005
+ customEvents: B,
1006
+ search: Y,
1007
+ loading: u,
1008
+ page: h,
1009
+ load: q,
1010
+ autoInputTable: c,
1011
+ editorRef: T,
1012
+ toolbarConfig: s,
1013
+ editorConfig: _,
1014
+ handleCreated: F
908
1015
  };
909
1016
  }
910
- }, we = () => {
911
- Me((u) => ({
912
- v7306ce68: u.labelWidth,
913
- c689ef3a: u.labelPosition
1017
+ }, Te = () => {
1018
+ Ye((n) => ({
1019
+ v39c94c33: n.labelWidth,
1020
+ v277c479c: n.labelPosition
914
1021
  }));
915
- }, De = pe.setup;
916
- pe.setup = De ? (u, i) => (we(), De(u, i)) : we;
917
- const Ie = {
1022
+ }, Pe = Se.setup;
1023
+ Se.setup = Pe ? (n, d) => (Te(), Pe(n, d)) : Te;
1024
+ const tt = {
918
1025
  key: 3,
919
1026
  class: "ht-text"
920
- }, Oe = ["onClick"], Pe = {
1027
+ }, lt = ["onClick"], rt = {
921
1028
  key: 12,
922
1029
  style: { "margin-right": "5px" }
923
- }, je = {
1030
+ }, at = {
924
1031
  key: 14,
925
1032
  style: { "margin-left": "5px" }
926
- }, ze = { class: "cell-item" }, Le = {
1033
+ }, ot = { class: "cell-item" }, nt = {
927
1034
  key: 0,
928
1035
  style: { color: "red" }
929
- }, Ne = {
1036
+ }, st = {
930
1037
  key: 3,
931
1038
  class: "ht-text"
932
- }, qe = ["onClick"], We = {
1039
+ }, it = ["onClick"], ut = {
933
1040
  key: 12,
934
1041
  style: { "margin-right": "5px" }
935
- }, Ze = {
1042
+ }, dt = {
936
1043
  key: 14,
937
1044
  style: { "margin-left": "5px" }
938
- }, Qe = { class: "filter-box" }, Je = {
939
- key: 0,
940
- class: "table-box"
941
- };
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, {
1045
+ }, ct = { class: "filter-box" };
1046
+ function ft(n, d, f, l, p, i) {
1047
+ const C = N("el-input"), g = N("el-tooltip"), c = N("el-input-number"), t = N("el-option"), a = N("el-select"), m = N("el-cascader"), u = N("el-date-picker"), o = N("el-time-picker"), h = N("el-switch"), T = N("el-checkbox"), s = N("el-checkbox-group"), _ = N("el-radio"), F = N("el-radio-group"), P = N("el-autocomplete"), w = N("el-form-item"), x = N("Toolbar"), D = N("Editor"), U = N("el-descriptions-item"), W = N("el-descriptions"), H = N("el-form"), L = N("el-button"), O = N("el-drawer"), ie = N("el-config-provider");
1048
+ return y(), V(ie, { locale: l.locale }, {
1049
+ default: I(() => [
1050
+ l.isShow ? (y(), V(H, {
947
1051
  key: 0,
948
- model: c.model,
1052
+ model: f.model,
949
1053
  "label-width": 0,
950
- "label-position": c.labelPosition,
951
- rules: a.rulesMap,
952
- ref: c.id,
953
- inline: c.inline,
1054
+ "label-position": f.labelPosition,
1055
+ rules: l.rulesMap,
1056
+ ref: f.id,
1057
+ inline: f.inline,
954
1058
  "inline-message": "",
955
1059
  "status-icon": ""
956
1060
  }, {
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, {
1061
+ default: I(() => [
1062
+ (y(!0), z(te, null, ae(f.formConfig, (e, R) => (y(), z(te, { key: R }, [
1063
+ f.inline ? (y(), V(w, {
960
1064
  key: 0,
961
1065
  label: e.label,
962
1066
  "label-align": e.align || "center",
963
1067
  prop: e.modelKey,
964
- style: C(e.width ? e.width : "100%")
1068
+ style: j(e.width ? e.width : "100%")
965
1069
  }, {
966
- default: E(() => [
967
- e.type === "empty" ? (r(), D("div", {
1070
+ default: I(() => [
1071
+ e.type === "empty" ? (y(), z("div", {
968
1072
  key: 0,
969
- style: C({
970
- height: a.type2size(c.size)
1073
+ style: j({
1074
+ height: l.type2size(f.size)
971
1075
  })
972
- }, null, 4)) : h("", !0),
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, {
1076
+ }, null, 4)) : A("", !0),
1077
+ e.type === "upload" ? pe(n.$slots, e.slotName ? e.slotName : "upload", { key: 1 }, void 0, !0) : A("", !0),
1078
+ e.type === "custom" ? (y(), V(g, {
975
1079
  key: 2,
976
1080
  "popper-class": "jt-form-popper",
977
1081
  placement: "top"
978
1082
  }, {
979
- content: E(() => [
980
- ie(u.$slots, e.slotName, {}, void 0, !0)
1083
+ content: I(() => [
1084
+ pe(n.$slots, e.slotName, {}, void 0, !0)
981
1085
  ]),
982
- default: E(() => [
983
- ae(v, {
984
- modelValue: a.modelRemote[e.modelKey],
985
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
1086
+ default: I(() => [
1087
+ ne(C, {
1088
+ modelValue: l.modelRemote[e.modelKey],
1089
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r,
986
1090
  placeholder: e.placeholder ? e.placeholder : ""
987
1091
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
988
1092
  ]),
989
1093
  _: 2
990
- }, 1024)) : h("", !0),
991
- e.type === "text" ? (r(), D("span", Ie, W(c.model[e.modelKey]), 1)) : h("", !0),
992
- e.type === "input" ? (r(), p(v, {
1094
+ }, 1024)) : A("", !0),
1095
+ e.type === "text" ? (y(), z("span", tt, Q(f.model[e.modelKey]), 1)) : A("", !0),
1096
+ e.type === "input" ? (y(), V(C, {
993
1097
  key: 4,
994
- style: C({ width: e.width ? e.width + "px" : "auto" }),
1098
+ style: j({ width: e.width ? e.width + "px" : "auto" }),
995
1099
  placeholder: e.placeholder ? e.placeholder : "",
996
1100
  type: e.iType ? e.iType : "text",
997
1101
  disabled: e.disabled ? e.disabled : !1,
998
- modelValue: a.modelRemote[e.modelKey],
999
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
1000
- onFocus: (l) => a.focus(e.modelKey, l),
1001
- onBlur: (l) => a.blur(e.modelKey, l)
1102
+ modelValue: l.modelRemote[e.modelKey],
1103
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r,
1104
+ onFocus: (r) => l.focus(e.modelKey, r),
1105
+ onBlur: (r) => l.blur(e.modelKey, r)
1002
1106
  }, {
1003
- suffix: E(() => [
1004
- "isPwd" in e ? (r(), D("i", {
1107
+ suffix: I(() => [
1108
+ "isPwd" in e ? (y(), z("i", {
1005
1109
  key: 0,
1006
- class: be(["jtIcon", e.isPwd ? "iconyincangmima" : "iconxianshimima"]),
1007
- onClick: me((l) => a.eyeClick(e), ["stop"])
1008
- }, null, 10, Oe)) : h("", !0)
1110
+ class: we(["jtIcon", e.isPwd ? "iconyincangmima" : "iconxianshimima"]),
1111
+ onClick: ke((r) => l.eyeClick(e), ["stop"])
1112
+ }, null, 10, lt)) : A("", !0)
1009
1113
  ]),
1010
1114
  _: 2
1011
- }, 1032, ["style", "placeholder", "type", "disabled", "modelValue", "onUpdate:modelValue", "onFocus", "onBlur"])) : h("", !0),
1012
- e.type === "textarea" ? (r(), p(v, {
1115
+ }, 1032, ["style", "placeholder", "type", "disabled", "modelValue", "onUpdate:modelValue", "onFocus", "onBlur"])) : A("", !0),
1116
+ e.type === "textarea" ? (y(), V(C, {
1013
1117
  key: 5,
1014
- style: C({ width: e.width ? e.width + "px" : "auto" }),
1118
+ style: j({ width: e.width ? e.width + "px" : "auto" }),
1015
1119
  placeholder: e.placeholder ? e.placeholder : "",
1016
1120
  type: "textarea",
1017
1121
  disabled: e.disabled ? e.disabled : !1,
1018
- modelValue: a.modelRemote[e.modelKey],
1019
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
1122
+ modelValue: l.modelRemote[e.modelKey],
1123
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r,
1020
1124
  maxlength: e.maxlength ? e.maxlength : -1,
1021
1125
  autosize: typeof e.autosize == "boolean" ? e.autosize : {
1022
1126
  minRows: e.minRows,
1023
1127
  maxRows: e.maxRows
1024
1128
  },
1025
1129
  "show-word-limit": e.maxlength != -1,
1026
- onFocus: (l) => a.focus(e.modelKey, l),
1027
- onBlur: (l) => a.blur(e.modelKey, l)
1028
- }, null, 8, ["style", "placeholder", "disabled", "modelValue", "onUpdate:modelValue", "maxlength", "autosize", "show-word-limit", "onFocus", "onBlur"])) : h("", !0),
1029
- e.type === "iNumber" ? (r(), p(K, {
1130
+ onFocus: (r) => l.focus(e.modelKey, r),
1131
+ onBlur: (r) => l.blur(e.modelKey, r)
1132
+ }, null, 8, ["style", "placeholder", "disabled", "modelValue", "onUpdate:modelValue", "maxlength", "autosize", "show-word-limit", "onFocus", "onBlur"])) : A("", !0),
1133
+ e.type === "iNumber" ? (y(), V(c, {
1030
1134
  key: 6,
1031
- modelValue: a.modelRemote[e.modelKey],
1032
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
1033
- style: C({ width: e.width ? e.width + "px" : "auto" }),
1135
+ modelValue: l.modelRemote[e.modelKey],
1136
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r,
1137
+ style: j({ width: e.width ? e.width + "px" : "auto" }),
1034
1138
  disabled: e.disabled ? e.disabled : !1,
1035
1139
  min: e.min != null ? e.min : -1 / 0,
1036
1140
  max: e.max != null ? e.max : 1 / 0,
1037
1141
  "controls-position": "right"
1038
- }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "disabled", "min", "max"])) : h("", !0),
1039
- e.type === "select" ? (r(), p(H, {
1142
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "disabled", "min", "max"])) : A("", !0),
1143
+ e.type === "select" ? (y(), V(a, {
1040
1144
  key: 7,
1041
1145
  "default-first-option": "",
1042
- style: C({ width: e.width ? e.width + "px" : "auto" }),
1043
- modelValue: a.modelRemote[e.modelKey],
1044
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
1146
+ style: j({ width: e.width ? e.width + "px" : "auto" }),
1147
+ modelValue: l.modelRemote[e.modelKey],
1148
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r,
1045
1149
  disabled: e.disabled ? e.disabled : !1,
1046
1150
  filterable: !!e.isCreate,
1047
1151
  "allow-create": !!e.isCreate,
@@ -1049,20 +1153,20 @@ function Xe(u, i, c, a, m, O) {
1049
1153
  "collapse-tags": e.collapse !== void 0,
1050
1154
  placeholder: e.placeholder ? e.placeholder : ""
1051
1155
  }, {
1052
- default: E(() => [
1053
- (r(!0), D(P, null, q(e.options, (l) => (r(), p(V, {
1054
- key: l.value,
1055
- label: l.label,
1056
- value: l.value
1156
+ default: I(() => [
1157
+ (y(!0), z(te, null, ae(e.options, (r) => (y(), V(t, {
1158
+ key: r.value,
1159
+ label: r.label,
1160
+ value: r.value
1057
1161
  }, null, 8, ["label", "value"]))), 128))
1058
1162
  ]),
1059
1163
  _: 2
1060
- }, 1032, ["style", "modelValue", "onUpdate:modelValue", "disabled", "filterable", "allow-create", "multiple", "collapse-tags", "placeholder"])) : h("", !0),
1061
- e.type === "select_r" ? (r(), p(H, {
1164
+ }, 1032, ["style", "modelValue", "onUpdate:modelValue", "disabled", "filterable", "allow-create", "multiple", "collapse-tags", "placeholder"])) : A("", !0),
1165
+ e.type === "select_r" ? (y(), V(a, {
1062
1166
  key: 8,
1063
- modelValue: a.modelRemote[e.modelKey],
1064
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
1065
- style: C({ width: e.width ? e.width + "px" : "auto" }),
1167
+ modelValue: l.modelRemote[e.modelKey],
1168
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r,
1169
+ style: j({ width: e.width ? e.width + "px" : "auto" }),
1066
1170
  disabled: e.disabled ? e.disabled : !1,
1067
1171
  multiple: e.multiple !== void 0,
1068
1172
  "collapse-tags": e.collapse !== void 0,
@@ -1071,233 +1175,233 @@ function Xe(u, i, c, a, m, O) {
1071
1175
  "remote-method": e.remoteMethod,
1072
1176
  placeholder: e.placeholder ? e.placeholder : ""
1073
1177
  }, {
1074
- default: E(() => [
1075
- (r(!0), D(P, null, q(e.options, (l) => (r(), p(V, {
1076
- key: l.value,
1077
- label: l.label,
1078
- value: l.value
1178
+ default: I(() => [
1179
+ (y(!0), z(te, null, ae(e.options, (r) => (y(), V(t, {
1180
+ key: r.value,
1181
+ label: r.label,
1182
+ value: r.value
1079
1183
  }, null, 8, ["label", "value"]))), 128))
1080
1184
  ]),
1081
1185
  _: 2
1082
- }, 1032, ["modelValue", "onUpdate:modelValue", "style", "disabled", "multiple", "collapse-tags", "remote-method", "placeholder"])) : h("", !0),
1083
- e.type === "cascader" ? (r(), p(k, {
1186
+ }, 1032, ["modelValue", "onUpdate:modelValue", "style", "disabled", "multiple", "collapse-tags", "remote-method", "placeholder"])) : A("", !0),
1187
+ e.type === "cascader" ? (y(), V(m, {
1084
1188
  key: 9,
1085
1189
  filterable: e.filterable !== void 0 ? e.filterable : !0,
1086
1190
  ref_for: !0,
1087
1191
  ref: e.modelKey ? e.modelKey : "elCascader",
1088
1192
  disabled: e.disabled ? e.disabled : !1,
1089
- "collapse-tags": c.collapseTags,
1193
+ "collapse-tags": f.collapseTags,
1090
1194
  "show-all-levels": e.isEnd ? e.isEnd : !0,
1091
1195
  placeholder: e.placeholder ? e.placeholder : "请选择",
1092
- style: C({ width: e.width ? e.width + "px" : "auto" }),
1196
+ style: j({ width: e.width ? e.width + "px" : "auto" }),
1093
1197
  options: e.options || [],
1094
- onVisibleChange: (l) => a.casVisibleChange(l, e),
1095
- onChange: (l) => a.casChange(
1198
+ onVisibleChange: (r) => l.casVisibleChange(r, e),
1199
+ onChange: (r) => l.casChange(
1096
1200
  e.modelKey ? e.modelKey : "elCascader",
1097
1201
  e.modelKey
1098
1202
  ),
1099
- props: a.loadData({
1203
+ props: l.loadData({
1100
1204
  path: e.path,
1101
1205
  childPath: e.childPath,
1102
1206
  params: e.params,
1103
1207
  checkStrictly: e.checkStrictly,
1104
1208
  multiple: e.multiple
1105
1209
  })
1106
- }, null, 8, ["filterable", "disabled", "collapse-tags", "show-all-levels", "placeholder", "style", "options", "onVisibleChange", "onChange", "props"])) : h("", !0),
1107
- e.type === "date" ? (r(), p(z, {
1210
+ }, null, 8, ["filterable", "disabled", "collapse-tags", "show-all-levels", "placeholder", "style", "options", "onVisibleChange", "onChange", "props"])) : A("", !0),
1211
+ e.type === "date" ? (y(), V(u, {
1108
1212
  key: 10,
1109
- modelValue: a.modelRemote[e.modelKey],
1110
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
1111
- shortcuts: a.shortcuts,
1112
- style: C({ width: e.width ? e.width + "px" : "auto" }),
1213
+ modelValue: l.modelRemote[e.modelKey],
1214
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r,
1215
+ shortcuts: l.shortcuts,
1216
+ style: j({ width: e.width ? e.width + "px" : "auto" }),
1113
1217
  disabled: e.disabled ? e.disabled : !1,
1114
1218
  type: e.dType,
1115
1219
  "value-format": e.valFormat,
1116
1220
  "unlink-panels": "",
1117
1221
  "start-placeholder": "开始日期",
1118
- format: a.timeFormat(e.dType),
1119
- "disabled-date": (l) => a.disabledDate(l, e.timeRangeNum),
1120
- onFocus: a.handleFocus,
1121
- onCalendarChange: a.handleChange,
1222
+ format: l.timeFormat(e.dType),
1223
+ "disabled-date": (r) => l.disabledDate(r, e.timeRangeNum),
1224
+ onFocus: l.handleFocus,
1225
+ onCalendarChange: l.handleChange,
1122
1226
  "end-placeholder": "结束日期",
1123
1227
  placeholder: "选择日期",
1124
1228
  "range-separator": "至"
1125
- }, null, 8, ["modelValue", "onUpdate:modelValue", "shortcuts", "style", "disabled", "type", "value-format", "format", "disabled-date", "onFocus", "onCalendarChange"])) : h("", !0),
1126
- e.type === "time" ? (r(), p(A, {
1229
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "shortcuts", "style", "disabled", "type", "value-format", "format", "disabled-date", "onFocus", "onCalendarChange"])) : A("", !0),
1230
+ e.type === "time" ? (y(), V(o, {
1127
1231
  key: 11,
1128
- modelValue: a.modelRemote[e.modelKey],
1129
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
1130
- style: C({ width: e.width ? e.width + "px" : "auto" }),
1232
+ modelValue: l.modelRemote[e.modelKey],
1233
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r,
1234
+ style: j({ width: e.width ? e.width + "px" : "auto" }),
1131
1235
  "value-format": "HH:mm:ss",
1132
1236
  disabled: e.disabled ? e.disabled : !1,
1133
1237
  placeholder: e.placeholder ? e.placeholder : "请选择时间"
1134
- }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "disabled", "placeholder"])) : h("", !0),
1135
- e.type === "switch" ? (r(), D("span", Pe, W(e.bText), 1)) : h("", !0),
1136
- e.type === "switch" ? (r(), p(U, {
1238
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "disabled", "placeholder"])) : A("", !0),
1239
+ e.type === "switch" ? (y(), z("span", rt, Q(e.bText), 1)) : A("", !0),
1240
+ e.type === "switch" ? (y(), V(h, {
1137
1241
  key: 13,
1138
- modelValue: a.modelRemote[e.modelKey],
1139
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
1242
+ modelValue: l.modelRemote[e.modelKey],
1243
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r,
1140
1244
  disabled: e.disabled ? e.disabled : !1,
1141
1245
  "active-text": e.rt ? e.rt : "",
1142
1246
  "inactive-text": e.lt ? e.lt : "",
1143
1247
  "active-color": "#13ce66",
1144
- onChange: (l) => a.switchChange(arguments, e.modelKey),
1248
+ onChange: (r) => l.switchChange(arguments, e.modelKey),
1145
1249
  "inactive-color": "#ff4949"
1146
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "active-text", "inactive-text", "onChange"])) : h("", !0),
1147
- e.type === "switch" ? (r(), D("span", je, W(e.fText), 1)) : h("", !0),
1148
- e.type === "checkbox" ? (r(), p(oe, {
1250
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "active-text", "inactive-text", "onChange"])) : A("", !0),
1251
+ e.type === "switch" ? (y(), z("span", at, Q(e.fText), 1)) : A("", !0),
1252
+ e.type === "checkbox" ? (y(), V(s, {
1149
1253
  key: 15,
1150
- modelValue: a.modelRemote[e.modelKey],
1151
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l
1254
+ modelValue: l.modelRemote[e.modelKey],
1255
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r
1152
1256
  }, {
1153
- default: E(() => [
1154
- (r(!0), D(P, null, q(e.options, (l, d) => (r(), p(Z, {
1155
- label: l.value,
1156
- key: d,
1157
- disabled: l.disabled ? l.disabled : !1
1257
+ default: I(() => [
1258
+ (y(!0), z(te, null, ae(e.options, (r, v) => (y(), V(T, {
1259
+ label: r.value,
1260
+ key: v,
1261
+ disabled: r.disabled ? r.disabled : !1
1158
1262
  }, {
1159
- default: E(() => [
1160
- ce(W(l.label), 1)
1263
+ default: I(() => [
1264
+ de(Q(r.label), 1)
1161
1265
  ]),
1162
1266
  _: 2
1163
1267
  }, 1032, ["label", "disabled"]))), 128))
1164
1268
  ]),
1165
1269
  _: 2
1166
- }, 1032, ["modelValue", "onUpdate:modelValue"])) : h("", !0),
1167
- e.type === "radio" ? (r(), p(ne, {
1270
+ }, 1032, ["modelValue", "onUpdate:modelValue"])) : A("", !0),
1271
+ e.type === "radio" ? (y(), V(F, {
1168
1272
  key: 16,
1169
- modelValue: a.modelRemote[e.modelKey],
1170
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l
1273
+ modelValue: l.modelRemote[e.modelKey],
1274
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r
1171
1275
  }, {
1172
- default: E(() => [
1173
- (r(!0), D(P, null, q(e.options, (l, d) => (r(), p(ue, {
1174
- key: d,
1175
- disabled: l.disabled ? l.disabled : !1,
1176
- label: l.value
1276
+ default: I(() => [
1277
+ (y(!0), z(te, null, ae(e.options, (r, v) => (y(), V(_, {
1278
+ key: v,
1279
+ disabled: r.disabled ? r.disabled : !1,
1280
+ label: r.value
1177
1281
  }, {
1178
- default: E(() => [
1179
- ce(W(l.label), 1)
1282
+ default: I(() => [
1283
+ de(Q(r.label), 1)
1180
1284
  ]),
1181
1285
  _: 2
1182
1286
  }, 1032, ["disabled", "label"]))), 128))
1183
1287
  ]),
1184
1288
  _: 2
1185
- }, 1032, ["modelValue", "onUpdate:modelValue"])) : h("", !0),
1186
- e.type === "autocomplete" ? (r(), p(X, {
1289
+ }, 1032, ["modelValue", "onUpdate:modelValue"])) : A("", !0),
1290
+ e.type === "autocomplete" ? (y(), V(P, {
1187
1291
  key: 17,
1188
1292
  class: "inline-input",
1189
- style: C({ width: e.width ? e.width + "px" : "auto" }),
1190
- modelValue: a.modelRemote[e.modelKey],
1191
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
1293
+ style: j({ width: e.width ? e.width + "px" : "auto" }),
1294
+ modelValue: l.modelRemote[e.modelKey],
1295
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r,
1192
1296
  "fetch-suggestions": e.querySearch,
1193
1297
  placeholder: e.placeholder ? e.placeholder : "请输入"
1194
- }, null, 8, ["style", "modelValue", "onUpdate:modelValue", "fetch-suggestions", "placeholder"])) : h("", !0)
1298
+ }, null, 8, ["style", "modelValue", "onUpdate:modelValue", "fetch-suggestions", "placeholder"])) : A("", !0)
1195
1299
  ]),
1196
1300
  _: 2
1197
- }, 1032, ["label", "label-align", "prop", "style"])) : h("", !0)
1301
+ }, 1032, ["label", "label-align", "prop", "style"])) : A("", !0)
1198
1302
  ], 64))), 128)),
1199
- c.inline ? h("", !0) : (r(), p(le, {
1303
+ f.inline ? A("", !0) : (y(), V(W, {
1200
1304
  key: 0,
1201
- column: c.col,
1202
- size: c.size,
1203
- border: c.border,
1204
- title: c.title
1305
+ column: f.col,
1306
+ size: f.size,
1307
+ border: f.border,
1308
+ title: f.title
1205
1309
  }, {
1206
- default: E(() => [
1207
- (r(!0), D(P, null, q(c.formConfig, (e, o) => (r(), p(de, {
1310
+ default: I(() => [
1311
+ (y(!0), z(te, null, ae(f.formConfig, (e, R) => (y(), V(U, {
1208
1312
  "label-align": e.align || "center",
1209
- key: o
1313
+ key: R
1210
1314
  }, {
1211
- label: E(() => [
1212
- ge("div", ze, [
1213
- e.modelKey in c.rules ? (r(), D("span", Le, "*")) : h("", !0),
1214
- ce(" " + W(e.label), 1)
1315
+ label: I(() => [
1316
+ K("div", ot, [
1317
+ e.modelKey in f.rules ? (y(), z("span", nt, "*")) : A("", !0),
1318
+ de(" " + Q(e.label), 1)
1215
1319
  ])
1216
1320
  ]),
1217
- default: E(() => [
1218
- ae(re, {
1321
+ default: I(() => [
1322
+ ne(w, {
1219
1323
  prop: e.modelKey,
1220
- style: C([{ "margin-bottom": "0", display: "inline-block" }, e.width ? e.width : "100%"])
1324
+ style: j([{ "margin-bottom": "0", display: "inline-block" }, e.width ? e.width : "100%"])
1221
1325
  }, {
1222
- default: E(() => [
1223
- e.type === "empty" ? (r(), D("div", {
1326
+ default: I(() => [
1327
+ e.type === "empty" ? (y(), z("div", {
1224
1328
  key: 0,
1225
- style: C({
1226
- height: a.type2size(c.size)
1329
+ style: j({
1330
+ height: l.type2size(f.size)
1227
1331
  })
1228
- }, null, 4)) : h("", !0),
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, {
1332
+ }, null, 4)) : A("", !0),
1333
+ e.type === "upload" ? pe(n.$slots, e.slotName ? e.slotName : "upload", { key: 1 }, void 0, !0) : A("", !0),
1334
+ e.type === "custom" ? (y(), V(g, {
1231
1335
  key: 2,
1232
1336
  "popper-class": "jt-form-popper",
1233
1337
  placement: "top"
1234
1338
  }, {
1235
- content: E(() => [
1236
- ie(u.$slots, e.slotName, {}, void 0, !0)
1339
+ content: I(() => [
1340
+ pe(n.$slots, e.slotName, {}, void 0, !0)
1237
1341
  ]),
1238
- default: E(() => [
1239
- ae(v, {
1240
- modelValue: a.modelRemote[e.modelKey],
1241
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
1342
+ default: I(() => [
1343
+ ne(C, {
1344
+ modelValue: l.modelRemote[e.modelKey],
1345
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r,
1242
1346
  placeholder: e.placeholder ? e.placeholder : ""
1243
1347
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
1244
1348
  ]),
1245
1349
  _: 2
1246
- }, 1024)) : h("", !0),
1247
- e.type === "text" ? (r(), D("span", Ne, W(c.model[e.modelKey]), 1)) : h("", !0),
1248
- e.type === "input" ? (r(), p(v, {
1350
+ }, 1024)) : A("", !0),
1351
+ e.type === "text" ? (y(), z("span", st, Q(f.model[e.modelKey]), 1)) : A("", !0),
1352
+ e.type === "input" ? (y(), V(C, {
1249
1353
  key: 4,
1250
- style: C({ width: e.width ? e.width + "px" : "auto" }),
1354
+ style: j({ width: e.width ? e.width + "px" : "auto" }),
1251
1355
  placeholder: e.placeholder ? e.placeholder : "",
1252
1356
  type: e.iType ? e.iType : "text",
1253
1357
  disabled: e.disabled ? e.disabled : !1,
1254
- modelValue: a.modelRemote[e.modelKey],
1255
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
1256
- onFocus: (l) => a.focus(e.modelKey, l),
1257
- onBlur: (l) => a.blur(e.modelKey, l)
1358
+ modelValue: l.modelRemote[e.modelKey],
1359
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r,
1360
+ onFocus: (r) => l.focus(e.modelKey, r),
1361
+ onBlur: (r) => l.blur(e.modelKey, r)
1258
1362
  }, {
1259
- suffix: E(() => [
1260
- "isPwd" in e ? (r(), D("i", {
1363
+ suffix: I(() => [
1364
+ "isPwd" in e ? (y(), z("i", {
1261
1365
  key: 0,
1262
- class: be(["jtIcon", e.isPwd ? "iconyincangmima" : "iconxianshimima"]),
1263
- onClick: me((l) => a.eyeClick(e), ["stop"])
1264
- }, null, 10, qe)) : h("", !0)
1366
+ class: we(["jtIcon", e.isPwd ? "iconyincangmima" : "iconxianshimima"]),
1367
+ onClick: ke((r) => l.eyeClick(e), ["stop"])
1368
+ }, null, 10, it)) : A("", !0)
1265
1369
  ]),
1266
1370
  _: 2
1267
- }, 1032, ["style", "placeholder", "type", "disabled", "modelValue", "onUpdate:modelValue", "onFocus", "onBlur"])) : h("", !0),
1268
- e.type === "textarea" ? (r(), p(v, {
1371
+ }, 1032, ["style", "placeholder", "type", "disabled", "modelValue", "onUpdate:modelValue", "onFocus", "onBlur"])) : A("", !0),
1372
+ e.type === "textarea" ? (y(), V(C, {
1269
1373
  key: 5,
1270
- style: C({ width: e.width ? e.width + "px" : "auto" }),
1374
+ style: j({ width: e.width ? e.width + "px" : "auto" }),
1271
1375
  placeholder: e.placeholder ? e.placeholder : "",
1272
1376
  type: "textarea",
1273
1377
  disabled: e.disabled ? e.disabled : !1,
1274
- modelValue: a.modelRemote[e.modelKey],
1275
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
1378
+ modelValue: l.modelRemote[e.modelKey],
1379
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r,
1276
1380
  maxlength: e.maxlength ? e.maxlength : -1,
1277
1381
  autosize: typeof e.autosize == "boolean" ? e.autosize : {
1278
1382
  minRows: e.minRows,
1279
1383
  maxRows: e.maxRows
1280
1384
  },
1281
1385
  "show-word-limit": e.maxlength != -1,
1282
- onFocus: (l) => a.focus(e.modelKey, l),
1283
- onBlur: (l) => a.blur(e.modelKey, l)
1284
- }, null, 8, ["style", "placeholder", "disabled", "modelValue", "onUpdate:modelValue", "maxlength", "autosize", "show-word-limit", "onFocus", "onBlur"])) : h("", !0),
1285
- e.type === "iNumber" ? (r(), p(K, {
1386
+ onFocus: (r) => l.focus(e.modelKey, r),
1387
+ onBlur: (r) => l.blur(e.modelKey, r)
1388
+ }, null, 8, ["style", "placeholder", "disabled", "modelValue", "onUpdate:modelValue", "maxlength", "autosize", "show-word-limit", "onFocus", "onBlur"])) : A("", !0),
1389
+ e.type === "iNumber" ? (y(), V(c, {
1286
1390
  key: 6,
1287
- modelValue: a.modelRemote[e.modelKey],
1288
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
1289
- style: C({ width: e.width ? e.width + "px" : "auto" }),
1391
+ modelValue: l.modelRemote[e.modelKey],
1392
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r,
1393
+ style: j({ width: e.width ? e.width + "px" : "auto" }),
1290
1394
  disabled: e.disabled ? e.disabled : !1,
1291
1395
  min: e.min != null ? e.min : -1 / 0,
1292
1396
  max: e.max != null ? e.max : 1 / 0,
1293
1397
  "controls-position": "right"
1294
- }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "disabled", "min", "max"])) : h("", !0),
1295
- e.type === "select" ? (r(), p(H, {
1398
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "disabled", "min", "max"])) : A("", !0),
1399
+ e.type === "select" ? (y(), V(a, {
1296
1400
  key: 7,
1297
1401
  "default-first-option": "",
1298
- style: C({ width: e.width ? e.width + "px" : "auto" }),
1299
- modelValue: a.modelRemote[e.modelKey],
1300
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
1402
+ style: j({ width: e.width ? e.width + "px" : "auto" }),
1403
+ modelValue: l.modelRemote[e.modelKey],
1404
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r,
1301
1405
  disabled: e.disabled ? e.disabled : !1,
1302
1406
  filterable: !!e.isCreate,
1303
1407
  "allow-create": !!e.isCreate,
@@ -1305,20 +1409,20 @@ function Xe(u, i, c, a, m, O) {
1305
1409
  "collapse-tags": e.collapse !== void 0,
1306
1410
  placeholder: e.placeholder ? e.placeholder : ""
1307
1411
  }, {
1308
- default: E(() => [
1309
- (r(!0), D(P, null, q(e.options, (l) => (r(), p(V, {
1310
- key: l.value,
1311
- label: l.label,
1312
- value: l.value
1412
+ default: I(() => [
1413
+ (y(!0), z(te, null, ae(e.options, (r) => (y(), V(t, {
1414
+ key: r.value,
1415
+ label: r.label,
1416
+ value: r.value
1313
1417
  }, null, 8, ["label", "value"]))), 128))
1314
1418
  ]),
1315
1419
  _: 2
1316
- }, 1032, ["style", "modelValue", "onUpdate:modelValue", "disabled", "filterable", "allow-create", "multiple", "collapse-tags", "placeholder"])) : h("", !0),
1317
- e.type === "select_r" ? (r(), p(H, {
1420
+ }, 1032, ["style", "modelValue", "onUpdate:modelValue", "disabled", "filterable", "allow-create", "multiple", "collapse-tags", "placeholder"])) : A("", !0),
1421
+ e.type === "select_r" ? (y(), V(a, {
1318
1422
  key: 8,
1319
- modelValue: a.modelRemote[e.modelKey],
1320
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
1321
- style: C({ width: e.width ? e.width + "px" : "auto" }),
1423
+ modelValue: l.modelRemote[e.modelKey],
1424
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r,
1425
+ style: j({ width: e.width ? e.width + "px" : "auto" }),
1322
1426
  disabled: e.disabled ? e.disabled : !1,
1323
1427
  multiple: e.multiple !== void 0,
1324
1428
  "collapse-tags": e.collapse !== void 0,
@@ -1327,147 +1431,147 @@ function Xe(u, i, c, a, m, O) {
1327
1431
  "remote-method": e.remoteMethod,
1328
1432
  placeholder: e.placeholder ? e.placeholder : ""
1329
1433
  }, {
1330
- default: E(() => [
1331
- (r(!0), D(P, null, q(e.options, (l) => (r(), p(V, {
1332
- key: l.value,
1333
- label: l.label,
1334
- value: l.value
1434
+ default: I(() => [
1435
+ (y(!0), z(te, null, ae(e.options, (r) => (y(), V(t, {
1436
+ key: r.value,
1437
+ label: r.label,
1438
+ value: r.value
1335
1439
  }, null, 8, ["label", "value"]))), 128))
1336
1440
  ]),
1337
1441
  _: 2
1338
- }, 1032, ["modelValue", "onUpdate:modelValue", "style", "disabled", "multiple", "collapse-tags", "remote-method", "placeholder"])) : h("", !0),
1339
- e.type === "cascader" ? (r(), p(k, {
1442
+ }, 1032, ["modelValue", "onUpdate:modelValue", "style", "disabled", "multiple", "collapse-tags", "remote-method", "placeholder"])) : A("", !0),
1443
+ e.type === "cascader" ? (y(), V(m, {
1340
1444
  key: 9,
1341
1445
  filterable: e.filterable !== void 0 ? e.filterable : !0,
1342
1446
  ref_for: !0,
1343
1447
  ref: e.modelKey ? e.modelKey : "elCascader",
1344
1448
  disabled: e.disabled ? e.disabled : !1,
1345
- "collapse-tags": c.collapseTags,
1449
+ "collapse-tags": f.collapseTags,
1346
1450
  "show-all-levels": e.isEnd ? e.isEnd : !0,
1347
1451
  placeholder: e.placeholder ? e.placeholder : "请选择",
1348
- style: C({ width: e.width ? e.width + "px" : "auto" }),
1452
+ style: j({ width: e.width ? e.width + "px" : "auto" }),
1349
1453
  options: e.options || [],
1350
- onVisibleChange: (l) => a.casVisibleChange(l, e),
1351
- onChange: (l) => a.casChange(
1454
+ onVisibleChange: (r) => l.casVisibleChange(r, e),
1455
+ onChange: (r) => l.casChange(
1352
1456
  e.modelKey ? e.modelKey : "elCascader",
1353
1457
  e.modelKey
1354
1458
  ),
1355
- props: a.loadData({
1459
+ props: l.loadData({
1356
1460
  path: e.path,
1357
1461
  childPath: e.childPath,
1358
1462
  params: e.params,
1359
1463
  checkStrictly: e.checkStrictly,
1360
1464
  multiple: e.multiple
1361
1465
  })
1362
- }, null, 8, ["filterable", "disabled", "collapse-tags", "show-all-levels", "placeholder", "style", "options", "onVisibleChange", "onChange", "props"])) : h("", !0),
1363
- e.type === "date" ? (r(), p(z, {
1466
+ }, null, 8, ["filterable", "disabled", "collapse-tags", "show-all-levels", "placeholder", "style", "options", "onVisibleChange", "onChange", "props"])) : A("", !0),
1467
+ e.type === "date" ? (y(), V(u, {
1364
1468
  key: 10,
1365
- shortcuts: a.shortcuts,
1366
- modelValue: a.modelRemote[e.modelKey],
1367
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
1368
- style: C({ width: e.width ? e.width + "px" : "auto" }),
1469
+ shortcuts: l.shortcuts,
1470
+ modelValue: l.modelRemote[e.modelKey],
1471
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r,
1472
+ style: j({ width: e.width ? e.width + "px" : "auto" }),
1369
1473
  disabled: e.disabled ? e.disabled : !1,
1370
1474
  type: e.dType,
1371
1475
  "value-format": e.valFormat,
1372
- "disabled-date": (l) => a.disabledDate(l, e.timeRangeNum),
1373
- onFocus: a.handleFocus,
1374
- onCalendarChange: a.handleChange,
1476
+ "disabled-date": (r) => l.disabledDate(r, e.timeRangeNum),
1477
+ onFocus: l.handleFocus,
1478
+ onCalendarChange: l.handleChange,
1375
1479
  "unlink-panels": "",
1376
- format: a.timeFormat(e.dType),
1480
+ format: l.timeFormat(e.dType),
1377
1481
  "start-placeholder": "开始日期",
1378
1482
  "end-placeholder": "结束日期",
1379
1483
  placeholder: "选择日期"
1380
- }, null, 8, ["shortcuts", "modelValue", "onUpdate:modelValue", "style", "disabled", "type", "value-format", "disabled-date", "onFocus", "onCalendarChange", "format"])) : h("", !0),
1381
- e.type === "time" ? (r(), p(A, {
1484
+ }, null, 8, ["shortcuts", "modelValue", "onUpdate:modelValue", "style", "disabled", "type", "value-format", "disabled-date", "onFocus", "onCalendarChange", "format"])) : A("", !0),
1485
+ e.type === "time" ? (y(), V(o, {
1382
1486
  key: 11,
1383
- modelValue: a.modelRemote[e.modelKey],
1384
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
1385
- style: C({ width: e.width ? e.width + "px" : "auto" }),
1487
+ modelValue: l.modelRemote[e.modelKey],
1488
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r,
1489
+ style: j({ width: e.width ? e.width + "px" : "auto" }),
1386
1490
  "value-format": "HH:mm:ss",
1387
1491
  disabled: e.disabled ? e.disabled : !1,
1388
1492
  placeholder: e.placeholder ? e.placeholder : "请选择时间"
1389
- }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "disabled", "placeholder"])) : h("", !0),
1390
- e.type === "switch" ? (r(), D("span", We, W(e.bText), 1)) : h("", !0),
1391
- e.type === "switch" ? (r(), p(U, {
1493
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "disabled", "placeholder"])) : A("", !0),
1494
+ e.type === "switch" ? (y(), z("span", ut, Q(e.bText), 1)) : A("", !0),
1495
+ e.type === "switch" ? (y(), V(h, {
1392
1496
  key: 13,
1393
- modelValue: a.modelRemote[e.modelKey],
1394
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
1497
+ modelValue: l.modelRemote[e.modelKey],
1498
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r,
1395
1499
  disabled: e.disabled ? e.disabled : !1,
1396
1500
  "active-text": e.rt ? e.rt : "",
1397
1501
  "inactive-text": e.lt ? e.lt : "",
1398
1502
  "active-value": e.rv ? e.rv : !0,
1399
1503
  "inactive-value": e.lv ? e.lv : !1,
1400
1504
  "active-color": "#13ce66",
1401
- onChange: (l) => a.switchChange(arguments, e.modelKey),
1505
+ onChange: (r) => l.switchChange(arguments, e.modelKey),
1402
1506
  "inactive-color": "#ff4949"
1403
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "active-text", "inactive-text", "active-value", "inactive-value", "onChange"])) : h("", !0),
1404
- e.type === "switch" ? (r(), D("span", Ze, W(e.fText), 1)) : h("", !0),
1405
- e.type === "checkbox" ? (r(), p(oe, {
1507
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "active-text", "inactive-text", "active-value", "inactive-value", "onChange"])) : A("", !0),
1508
+ e.type === "switch" ? (y(), z("span", dt, Q(e.fText), 1)) : A("", !0),
1509
+ e.type === "checkbox" ? (y(), V(s, {
1406
1510
  key: 15,
1407
- modelValue: a.modelRemote[e.modelKey],
1408
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l
1511
+ modelValue: l.modelRemote[e.modelKey],
1512
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r
1409
1513
  }, {
1410
- default: E(() => [
1411
- (r(!0), D(P, null, q(e.options, (l, d) => (r(), p(Z, {
1412
- label: l.value,
1413
- key: d,
1414
- disabled: l.disabled ? l.disabled : !1
1514
+ default: I(() => [
1515
+ (y(!0), z(te, null, ae(e.options, (r, v) => (y(), V(T, {
1516
+ label: r.value,
1517
+ key: v,
1518
+ disabled: r.disabled ? r.disabled : !1
1415
1519
  }, {
1416
- default: E(() => [
1417
- ce(W(l.label), 1)
1520
+ default: I(() => [
1521
+ de(Q(r.label), 1)
1418
1522
  ]),
1419
1523
  _: 2
1420
1524
  }, 1032, ["label", "disabled"]))), 128))
1421
1525
  ]),
1422
1526
  _: 2
1423
- }, 1032, ["modelValue", "onUpdate:modelValue"])) : h("", !0),
1424
- e.type === "radio" ? (r(), p(ne, {
1527
+ }, 1032, ["modelValue", "onUpdate:modelValue"])) : A("", !0),
1528
+ e.type === "radio" ? (y(), V(F, {
1425
1529
  key: 16,
1426
- modelValue: a.modelRemote[e.modelKey],
1427
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l
1530
+ modelValue: l.modelRemote[e.modelKey],
1531
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r
1428
1532
  }, {
1429
- default: E(() => [
1430
- (r(!0), D(P, null, q(e.options, (l, d) => (r(), p(ue, {
1431
- key: d,
1432
- disabled: l.disabled ? l.disabled : !1,
1433
- label: l.value
1533
+ default: I(() => [
1534
+ (y(!0), z(te, null, ae(e.options, (r, v) => (y(), V(_, {
1535
+ key: v,
1536
+ disabled: r.disabled ? r.disabled : !1,
1537
+ label: r.value
1434
1538
  }, {
1435
- default: E(() => [
1436
- ce(W(l.label), 1)
1539
+ default: I(() => [
1540
+ de(Q(r.label), 1)
1437
1541
  ]),
1438
1542
  _: 2
1439
1543
  }, 1032, ["disabled", "label"]))), 128))
1440
1544
  ]),
1441
1545
  _: 2
1442
- }, 1032, ["modelValue", "onUpdate:modelValue"])) : h("", !0),
1443
- e.type === "autocomplete" ? (r(), p(X, {
1546
+ }, 1032, ["modelValue", "onUpdate:modelValue"])) : A("", !0),
1547
+ e.type === "autocomplete" ? (y(), V(P, {
1444
1548
  key: 17,
1445
1549
  class: "inline-input",
1446
- style: C({ width: e.width ? e.width + "px" : "auto" }),
1447
- modelValue: a.modelRemote[e.modelKey],
1448
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
1550
+ style: j({ width: e.width ? e.width + "px" : "auto" }),
1551
+ modelValue: l.modelRemote[e.modelKey],
1552
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r,
1449
1553
  "fetch-suggestions": e.querySearch,
1450
1554
  placeholder: e.placeholder ? e.placeholder : "请输入"
1451
- }, null, 8, ["style", "modelValue", "onUpdate:modelValue", "fetch-suggestions", "placeholder"])) : h("", !0),
1452
- e.type === "htmlarea" ? (r(), D("div", {
1555
+ }, null, 8, ["style", "modelValue", "onUpdate:modelValue", "fetch-suggestions", "placeholder"])) : A("", !0),
1556
+ e.type === "htmlarea" ? (y(), z("div", {
1453
1557
  key: 18,
1454
- style: C({ width: e.width ? e.width + "px" : "auto" })
1558
+ style: j({ width: e.width ? e.width + "px" : "auto" })
1455
1559
  }, [
1456
- ae(Q, {
1560
+ ne(x, {
1457
1561
  style: { "border-bottom": "1px solid #ccc" },
1458
- editor: a.editorRef,
1459
- defaultConfig: a.toolbarConfig,
1562
+ editor: l.editorRef,
1563
+ defaultConfig: l.toolbarConfig,
1460
1564
  mode: "default"
1461
1565
  }, null, 8, ["editor", "defaultConfig"]),
1462
- ae(L, {
1463
- style: C({ height: e.height ? e.height + "px" : "300px", overflowY: "hidden" }),
1464
- modelValue: a.modelRemote[e.modelKey],
1465
- "onUpdate:modelValue": (l) => a.modelRemote[e.modelKey] = l,
1466
- defaultConfig: a.editorConfig(e),
1566
+ ne(D, {
1567
+ style: j({ height: e.height ? e.height + "px" : "300px", overflowY: "hidden" }),
1568
+ modelValue: l.modelRemote[e.modelKey],
1569
+ "onUpdate:modelValue": (r) => l.modelRemote[e.modelKey] = r,
1570
+ defaultConfig: l.editorConfig(e),
1467
1571
  mode: "default",
1468
- onOnCreated: (l) => a.handleCreated(l, e)
1572
+ onOnCreated: (r) => l.handleCreated(r, e)
1469
1573
  }, null, 8, ["style", "modelValue", "onUpdate:modelValue", "defaultConfig", "onOnCreated"])
1470
- ], 4)) : h("", !0)
1574
+ ], 4)) : A("", !0)
1471
1575
  ]),
1472
1576
  _: 2
1473
1577
  }, 1032, ["prop", "style"])
@@ -1479,62 +1583,51 @@ function Xe(u, i, c, a, m, O) {
1479
1583
  }, 8, ["column", "size", "border", "title"]))
1480
1584
  ]),
1481
1585
  _: 3
1482
- }, 8, ["model", "label-position", "rules", "inline"])) : h("", !0),
1483
- ae($, {
1484
- modelValue: a.isAutoInput,
1485
- "onUpdate:modelValue": i[2] || (i[2] = (e) => a.isAutoInput = e),
1586
+ }, 8, ["model", "label-position", "rules", "inline"])) : A("", !0),
1587
+ ne(O, {
1588
+ modelValue: l.isAutoInput,
1589
+ "onUpdate:modelValue": d[2] || (d[2] = (e) => l.isAutoInput = e),
1486
1590
  title: "辅助输入",
1487
1591
  size: "50%",
1488
1592
  direction: "rtl"
1489
1593
  }, {
1490
- default: E(() => [
1491
- ge("div", Qe, [
1492
- Array.isArray(c.autoInputConfig.selectData) && c.autoInputConfig.selectData.length > 0 ? (r(), p(H, {
1594
+ default: I(() => [
1595
+ K("div", ct, [
1596
+ Array.isArray(f.autoInputConfig.selectData) && f.autoInputConfig.selectData.length > 0 ? (y(), V(a, {
1493
1597
  key: 0,
1494
- modelValue: a.autoQuery.selectid,
1495
- "onUpdate:modelValue": i[0] || (i[0] = (e) => a.autoQuery.selectid = e),
1598
+ modelValue: l.autoQuery.selectid,
1599
+ "onUpdate:modelValue": d[0] || (d[0] = (e) => l.autoQuery.selectid = e),
1496
1600
  style: { "margin-right": "15px", width: "240px" },
1497
1601
  placeholder: "请选择"
1498
1602
  }, {
1499
- default: E(() => [
1500
- (r(!0), D(P, null, q(c.autoInputConfig.selectData, (e) => (r(), p(V, {
1603
+ default: I(() => [
1604
+ (y(!0), z(te, null, ae(f.autoInputConfig.selectData, (e) => (y(), V(t, {
1501
1605
  key: e.value,
1502
1606
  label: e.label,
1503
1607
  value: e.value
1504
1608
  }, null, 8, ["label", "value"]))), 128))
1505
1609
  ]),
1506
1610
  _: 1
1507
- }, 8, ["modelValue"])) : h("", !0),
1508
- c.autoInputConfig?.keywords ? (r(), p(v, {
1611
+ }, 8, ["modelValue"])) : A("", !0),
1612
+ f.autoInputConfig?.keywords ? (y(), V(C, {
1509
1613
  key: 1,
1510
1614
  style: { width: "200px" },
1511
1615
  placeholder: "请输入",
1512
- modelValue: a.autoQuery.keywords,
1513
- "onUpdate:modelValue": i[1] || (i[1] = (e) => a.autoQuery.keywords = e)
1514
- }, null, 8, ["modelValue"])) : h("", !0),
1515
- Array.isArray(c.autoInputConfig.selectData) && c.autoInputConfig.selectData.length > 0 || c.autoInputConfig?.keywords ? (r(), p(x, {
1616
+ modelValue: l.autoQuery.keywords,
1617
+ "onUpdate:modelValue": d[1] || (d[1] = (e) => l.autoQuery.keywords = e)
1618
+ }, null, 8, ["modelValue"])) : A("", !0),
1619
+ Array.isArray(f.autoInputConfig.selectData) && f.autoInputConfig.selectData.length > 0 || f.autoInputConfig?.keywords ? (y(), V(L, {
1516
1620
  key: 2,
1517
1621
  type: "primary",
1518
1622
  style: { "margin-left": "15px" },
1519
- onClick: a.search
1623
+ onClick: l.search
1520
1624
  }, {
1521
- default: E(() => [...i[3] || (i[3] = [
1522
- ce("查询", -1)
1625
+ default: I(() => [...d[3] || (d[3] = [
1626
+ de("查询", -1)
1523
1627
  ])]),
1524
1628
  _: 1
1525
- }, 8, ["onClick"])) : h("", !0)
1526
- ]),
1527
- c.autoInputConfig ? (r(), D("div", Je, [
1528
- ae(b, {
1529
- id: "autoInputTable",
1530
- ref: "autoInputTable",
1531
- data: a.autoTableData,
1532
- onCustomEvents: a.customEvents,
1533
- load: a.load,
1534
- loading: a.loading,
1535
- page: a.page
1536
- }, null, 8, ["data", "onCustomEvents", "load", "loading", "page"])
1537
- ])) : h("", !0)
1629
+ }, 8, ["onClick"])) : A("", !0)
1630
+ ])
1538
1631
  ]),
1539
1632
  _: 1
1540
1633
  }, 8, ["modelValue"])
@@ -1542,17 +1635,2339 @@ function Xe(u, i, c, a, m, O) {
1542
1635
  _: 3
1543
1636
  }, 8, ["locale"]);
1544
1637
  }
1545
- const fe = /* @__PURE__ */ He(pe, [["render", Xe], ["__scopeId", "data-v-ada8ebe2"]]);
1546
- fe.install = function(u) {
1547
- u.component(fe.name, fe);
1638
+ const ye = /* @__PURE__ */ _e(Se, [["render", ft], ["__scopeId", "data-v-b0365120"]]);
1639
+ ye.install = function(n) {
1640
+ n.component(ye.name, ye);
1548
1641
  };
1549
- const Ge = [fe], $e = (u) => {
1550
- Ge.forEach(
1551
- (i) => {
1552
- u.component(i.name || i.__name, i);
1642
+ function me(n) {
1643
+ throw new Error('Could not dynamically require "' + n + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
1644
+ }
1645
+ var Ee = { exports: {} };
1646
+ var Ae;
1647
+ function ht() {
1648
+ return Ae || (Ae = 1, (function(n, d) {
1649
+ (function(f) {
1650
+ n.exports = f();
1651
+ })(function() {
1652
+ return (function f(l, p, i) {
1653
+ function C(t, a) {
1654
+ if (!p[t]) {
1655
+ if (!l[t]) {
1656
+ var m = typeof me == "function" && me;
1657
+ if (!a && m) return m(t, !0);
1658
+ if (g) return g(t, !0);
1659
+ throw new Error("Cannot find module '" + t + "'");
1660
+ }
1661
+ var u = p[t] = {
1662
+ exports: {}
1663
+ };
1664
+ l[t][0].call(u.exports, function(o) {
1665
+ var h = l[t][1][o];
1666
+ return C(h || o);
1667
+ }, u, u.exports, f, l, p, i);
1668
+ }
1669
+ return p[t].exports;
1670
+ }
1671
+ for (var g = typeof me == "function" && me, c = 0; c < i.length; c++) C(i[c]);
1672
+ return C;
1673
+ })({
1674
+ 1: [function(f, l, p) {
1675
+ var i = f("./utils");
1676
+ function C(c, t, a) {
1677
+ i.defineNonEnumerable(this, "uploader", c), i.defineNonEnumerable(this, "file", t), i.defineNonEnumerable(this, "bytes", null), this.offset = a, this.tested = !1, this.retries = 0, this.pendingRetry = !1, this.preprocessState = 0, this.readState = 0, this.loaded = 0, this.total = 0, this.chunkSize = i.evalOpts(c.opts.chunkSize, t, this), this.startByte = this.offset * this.chunkSize, this.endByte = this.computeEndByte(), this.xhr = null;
1678
+ }
1679
+ var g = C.STATUS = {
1680
+ PENDING: "pending",
1681
+ UPLOADING: "uploading",
1682
+ READING: "reading",
1683
+ SUCCESS: "success",
1684
+ ERROR: "error",
1685
+ COMPLETE: "complete",
1686
+ PROGRESS: "progress",
1687
+ RETRY: "retry"
1688
+ };
1689
+ i.extend(C.prototype, {
1690
+ _event: function(c, t) {
1691
+ t = i.toArray(arguments), t.unshift(this), this.file._chunkEvent.apply(this.file, t);
1692
+ },
1693
+ computeEndByte: function() {
1694
+ var c = Math.min(this.file.size, (this.offset + 1) * this.chunkSize);
1695
+ return this.file.size - c < this.chunkSize && !this.uploader.opts.forceChunkSize && (c = this.file.size), c;
1696
+ },
1697
+ getParams: function() {
1698
+ return {
1699
+ chunkNumber: this.offset + 1,
1700
+ chunkSize: this.chunkSize,
1701
+ currentChunkSize: this.endByte - this.startByte,
1702
+ totalSize: this.file.size,
1703
+ identifier: this.file.uniqueIdentifier,
1704
+ filename: this.file.name,
1705
+ relativePath: this.file.relativePath,
1706
+ totalChunks: this.file.chunks.length
1707
+ };
1708
+ },
1709
+ getTarget: function(c, t) {
1710
+ return t.length ? (c.indexOf("?") < 0 ? c += "?" : c += "&", c + t.join("&")) : c;
1711
+ },
1712
+ test: function() {
1713
+ this.xhr = new XMLHttpRequest(), this.xhr.addEventListener("load", m, !1), this.xhr.addEventListener("error", m, !1);
1714
+ var c = i.evalOpts(this.uploader.opts.testMethod, this.file, this), t = this.prepareXhrRequest(c, !0);
1715
+ this.xhr.send(t);
1716
+ var a = this;
1717
+ function m(u) {
1718
+ var o = a.status(!0);
1719
+ o === g.ERROR ? (a._event(o, a.message()), a.uploader.uploadNextChunk()) : o === g.SUCCESS ? (a._event(o, a.message()), a.tested = !0) : a.file.paused || (a.tested = !0, a.send());
1720
+ }
1721
+ },
1722
+ preprocessFinished: function() {
1723
+ this.endByte = this.computeEndByte(), this.preprocessState = 2, this.send();
1724
+ },
1725
+ readFinished: function(c) {
1726
+ this.readState = 2, this.bytes = c, this.send();
1727
+ },
1728
+ send: function() {
1729
+ var c = this.uploader.opts.preprocess, t = this.uploader.opts.readFileFn;
1730
+ if (i.isFunction(c))
1731
+ switch (this.preprocessState) {
1732
+ case 0:
1733
+ this.preprocessState = 1, c(this);
1734
+ return;
1735
+ case 1:
1736
+ return;
1737
+ }
1738
+ switch (this.readState) {
1739
+ case 0:
1740
+ this.readState = 1, t(this.file, this.file.fileType, this.startByte, this.endByte, this);
1741
+ return;
1742
+ case 1:
1743
+ return;
1744
+ }
1745
+ if (this.uploader.opts.testChunks && !this.tested) {
1746
+ this.test();
1747
+ return;
1748
+ }
1749
+ this.loaded = 0, this.total = 0, this.pendingRetry = !1, this.xhr = new XMLHttpRequest(), this.xhr.upload.addEventListener("progress", o, !1), this.xhr.addEventListener("load", h, !1), this.xhr.addEventListener("error", h, !1);
1750
+ var a = i.evalOpts(this.uploader.opts.uploadMethod, this.file, this), m = this.prepareXhrRequest(a, !1, this.uploader.opts.method, this.bytes);
1751
+ this.xhr.send(m);
1752
+ var u = this;
1753
+ function o(T) {
1754
+ T.lengthComputable && (u.loaded = T.loaded, u.total = T.total), u._event(g.PROGRESS, T);
1755
+ }
1756
+ function h(T) {
1757
+ var s = u.message();
1758
+ u.processingResponse = !0, u.uploader.opts.processResponse(s, function(_, F) {
1759
+ if (u.processingResponse = !1, !!u.xhr) {
1760
+ u.processedState = {
1761
+ err: _,
1762
+ res: F
1763
+ };
1764
+ var P = u.status();
1765
+ if (P === g.SUCCESS || P === g.ERROR)
1766
+ u._event(P, F), P === g.ERROR && u.uploader.uploadNextChunk();
1767
+ else {
1768
+ u._event(g.RETRY, F), u.pendingRetry = !0, u.abort(), u.retries++;
1769
+ var w = u.uploader.opts.chunkRetryInterval;
1770
+ w !== null ? setTimeout(function() {
1771
+ u.send();
1772
+ }, w) : u.send();
1773
+ }
1774
+ }
1775
+ }, u.file, u);
1776
+ }
1777
+ },
1778
+ abort: function() {
1779
+ var c = this.xhr;
1780
+ this.xhr = null, this.processingResponse = !1, this.processedState = null, c && c.abort();
1781
+ },
1782
+ status: function(c) {
1783
+ if (this.readState === 1)
1784
+ return g.READING;
1785
+ if (this.pendingRetry || this.preprocessState === 1)
1786
+ return g.UPLOADING;
1787
+ if (this.xhr) {
1788
+ if (this.xhr.readyState < 4 || this.processingResponse)
1789
+ return g.UPLOADING;
1790
+ var t;
1791
+ this.uploader.opts.successStatuses.indexOf(this.xhr.status) > -1 ? t = g.SUCCESS : this.uploader.opts.permanentErrors.indexOf(this.xhr.status) > -1 || !c && this.retries >= this.uploader.opts.maxChunkRetries ? t = g.ERROR : (this.abort(), t = g.PENDING);
1792
+ var a = this.processedState;
1793
+ return a && a.err && (t = g.ERROR), t;
1794
+ } else return g.PENDING;
1795
+ },
1796
+ message: function() {
1797
+ return this.xhr ? this.xhr.responseText : "";
1798
+ },
1799
+ progress: function() {
1800
+ if (this.pendingRetry)
1801
+ return 0;
1802
+ var c = this.status();
1803
+ return c === g.SUCCESS || c === g.ERROR ? 1 : c === g.PENDING ? 0 : this.total > 0 ? this.loaded / this.total : 0;
1804
+ },
1805
+ sizeUploaded: function() {
1806
+ var c = this.endByte - this.startByte;
1807
+ return this.status() !== g.SUCCESS && (c = this.progress() * c), c;
1808
+ },
1809
+ prepareXhrRequest: function(c, t, a, m) {
1810
+ var u = i.evalOpts(this.uploader.opts.query, this.file, this, t);
1811
+ u = i.extend(this.getParams(), u), u = this.uploader.opts.processParams(u, this.file, this, t);
1812
+ var o = i.evalOpts(this.uploader.opts.target, this.file, this, t), h = null;
1813
+ if (c === "GET" || a === "octet") {
1814
+ var T = [];
1815
+ i.each(u, function(s, _) {
1816
+ T.push([encodeURIComponent(_), encodeURIComponent(s)].join("="));
1817
+ }), o = this.getTarget(o, T), h = m || null;
1818
+ } else
1819
+ h = new FormData(), i.each(u, function(s, _) {
1820
+ h.append(_, s);
1821
+ }), typeof m < "u" && h.append(this.uploader.opts.fileParameterName, m, this.file.name);
1822
+ return this.xhr.open(c, o, !0), this.xhr.withCredentials = this.uploader.opts.withCredentials, i.each(i.evalOpts(this.uploader.opts.headers, this.file, this, t), function(s, _) {
1823
+ this.xhr.setRequestHeader(_, s);
1824
+ }, this), h;
1825
+ }
1826
+ }), l.exports = C;
1827
+ }, {
1828
+ "./utils": 5
1829
+ }],
1830
+ 2: [function(f, l, p) {
1831
+ var i = f("./utils").each, C = {
1832
+ _eventData: null,
1833
+ on: function(g, c) {
1834
+ this._eventData || (this._eventData = {}), this._eventData[g] || (this._eventData[g] = []);
1835
+ var t = !1;
1836
+ i(this._eventData[g], function(a) {
1837
+ if (a === c)
1838
+ return t = !0, !1;
1839
+ }), t || this._eventData[g].push(c);
1840
+ },
1841
+ off: function(g, c) {
1842
+ this._eventData || (this._eventData = {}), !(!this._eventData[g] || !this._eventData[g].length) && (c ? i(this._eventData[g], function(t, a) {
1843
+ if (t === c)
1844
+ return this._eventData[g].splice(a, 1), !1;
1845
+ }, this) : this._eventData[g] = []);
1846
+ },
1847
+ trigger: function(g) {
1848
+ if (this._eventData || (this._eventData = {}), !this._eventData[g]) return !0;
1849
+ var c = this._eventData[g].slice.call(arguments, 1), t = !1;
1850
+ return i(this._eventData[g], function(a) {
1851
+ t = a.apply(this, c) === !1 || t;
1852
+ }, this), !t;
1853
+ }
1854
+ };
1855
+ l.exports = C;
1856
+ }, {
1857
+ "./utils": 5
1858
+ }],
1859
+ 3: [function(f, l, p) {
1860
+ var i = f("./utils"), C = f("./event"), g = f("./file"), c = f("./chunk"), t = "0.6.0", a = typeof window > "u", m = a ? !1 : window.navigator.msPointerEnabled, u = (function() {
1861
+ if (a)
1862
+ return !1;
1863
+ var s = "slice", _ = i.isDefined(window.File) && i.isDefined(window.Blob) && i.isDefined(window.FileList), F = null;
1864
+ return _ && (F = window.Blob.prototype, i.each(["slice", "webkitSlice", "mozSlice"], function(P) {
1865
+ if (F[P])
1866
+ return s = P, !1;
1867
+ }), _ = !!F[s]), _ && (h.sliceName = s), F = null, _;
1868
+ })(), o = (function() {
1869
+ if (a)
1870
+ return !1;
1871
+ var s = window.document.createElement("input");
1872
+ s.type = "file";
1873
+ var _ = "webkitdirectory" in s || "directory" in s;
1874
+ return s = null, _;
1875
+ })();
1876
+ function h(s) {
1877
+ this.support = u, this.support && (this.supportDirectory = o, i.defineNonEnumerable(this, "filePaths", {}), this.opts = i.extend({}, h.defaults, s || {}), this.preventEvent = i.bind(this._preventEvent, this), g.call(this, this));
1878
+ }
1879
+ var T = function(s, _, F, P, w) {
1880
+ w.readFinished(s.file[h.sliceName](F, P, _));
1881
+ };
1882
+ h.version = t, h.defaults = {
1883
+ chunkSize: 1024 * 1024,
1884
+ forceChunkSize: !1,
1885
+ simultaneousUploads: 3,
1886
+ singleFile: !1,
1887
+ fileParameterName: "file",
1888
+ progressCallbacksInterval: 500,
1889
+ speedSmoothingFactor: 0.1,
1890
+ query: {},
1891
+ headers: {},
1892
+ withCredentials: !1,
1893
+ preprocess: null,
1894
+ method: "multipart",
1895
+ testMethod: "GET",
1896
+ uploadMethod: "POST",
1897
+ prioritizeFirstAndLastChunk: !1,
1898
+ allowDuplicateUploads: !1,
1899
+ target: "/",
1900
+ testChunks: !0,
1901
+ generateUniqueIdentifier: null,
1902
+ maxChunkRetries: 0,
1903
+ chunkRetryInterval: null,
1904
+ permanentErrors: [404, 415, 500, 501],
1905
+ successStatuses: [200, 201, 202],
1906
+ onDropStopPropagation: !1,
1907
+ initFileFn: null,
1908
+ readFileFn: T,
1909
+ checkChunkUploadedByResponse: null,
1910
+ initialPaused: !1,
1911
+ processResponse: function(s, _) {
1912
+ _(null, s);
1913
+ },
1914
+ processParams: function(s) {
1915
+ return s;
1916
+ }
1917
+ }, h.utils = i, h.event = C, h.File = g, h.Chunk = c, h.prototype = i.extend({}, g.prototype), i.extend(h.prototype, C), i.extend(h.prototype, {
1918
+ constructor: h,
1919
+ _trigger: function(s) {
1920
+ var _ = i.toArray(arguments), F = !this.trigger.apply(this, arguments);
1921
+ return s !== "catchAll" && (_.unshift("catchAll"), F = !this.trigger.apply(this, _) || F), !F;
1922
+ },
1923
+ _triggerAsync: function() {
1924
+ var s = arguments;
1925
+ i.nextTick(function() {
1926
+ this._trigger.apply(this, s);
1927
+ }, this);
1928
+ },
1929
+ addFiles: function(s, _) {
1930
+ var F = [], P = this.fileList.length;
1931
+ i.each(s, function(x) {
1932
+ if ((!m || m && x.size > 0) && !(x.size % 4096 === 0 && (x.name === "." || x.fileName === "."))) {
1933
+ var D = this.generateUniqueIdentifier(x);
1934
+ if (this.opts.allowDuplicateUploads || !this.getFromUniqueIdentifier(D)) {
1935
+ var U = new g(this, x, this);
1936
+ U.uniqueIdentifier = D, this._trigger("fileAdded", U, _) ? F.push(U) : g.prototype.removeFile.call(this, U);
1937
+ }
1938
+ }
1939
+ }, this);
1940
+ var w = this.fileList.slice(P);
1941
+ this._trigger("filesAdded", F, w, _) ? (i.each(F, function(x) {
1942
+ this.opts.singleFile && this.files.length > 0 && this.removeFile(this.files[0]), this.files.push(x);
1943
+ }, this), this._trigger("filesSubmitted", F, w, _)) : i.each(w, function(x) {
1944
+ g.prototype.removeFile.call(this, x);
1945
+ }, this);
1946
+ },
1947
+ addFile: function(s, _) {
1948
+ this.addFiles([s], _);
1949
+ },
1950
+ cancel: function() {
1951
+ for (var s = this.fileList.length - 1; s >= 0; s--)
1952
+ this.fileList[s].cancel();
1953
+ },
1954
+ removeFile: function(s) {
1955
+ g.prototype.removeFile.call(this, s), this._trigger("fileRemoved", s);
1956
+ },
1957
+ generateUniqueIdentifier: function(s) {
1958
+ var _ = this.opts.generateUniqueIdentifier;
1959
+ if (i.isFunction(_))
1960
+ return _(s);
1961
+ var F = s.relativePath || s.webkitRelativePath || s.fileName || s.name;
1962
+ return s.size + "-" + F.replace(/[^0-9a-zA-Z_-]/img, "");
1963
+ },
1964
+ getFromUniqueIdentifier: function(s) {
1965
+ var _ = !1;
1966
+ return i.each(this.files, function(F) {
1967
+ if (F.uniqueIdentifier === s)
1968
+ return _ = F, !1;
1969
+ }), _;
1970
+ },
1971
+ uploadNextChunk: function(s) {
1972
+ var _ = !1, F = c.STATUS.PENDING, P = this.uploader.opts.checkChunkUploadedByResponse;
1973
+ if (this.opts.prioritizeFirstAndLastChunk && (i.each(this.files, function(x) {
1974
+ if (!x.paused && !(P && !x._firstResponse && x.isUploading())) {
1975
+ if (x.chunks.length && x.chunks[0].status() === F)
1976
+ return x.chunks[0].send(), _ = !0, !1;
1977
+ if (x.chunks.length > 1 && x.chunks[x.chunks.length - 1].status() === F)
1978
+ return x.chunks[x.chunks.length - 1].send(), _ = !0, !1;
1979
+ }
1980
+ }), _))
1981
+ return _;
1982
+ if (i.each(this.files, function(x) {
1983
+ if (!x.paused) {
1984
+ if (P && !x._firstResponse && x.isUploading())
1985
+ return;
1986
+ i.each(x.chunks, function(D) {
1987
+ if (D.status() === F)
1988
+ return D.send(), _ = !0, !1;
1989
+ });
1990
+ }
1991
+ if (_)
1992
+ return !1;
1993
+ }), _)
1994
+ return !0;
1995
+ var w = !1;
1996
+ return i.each(this.files, function(x) {
1997
+ if (!x.isComplete())
1998
+ return w = !0, !1;
1999
+ }), !w && !s && this.files.length && this._triggerAsync("complete"), w;
2000
+ },
2001
+ upload: function(s) {
2002
+ var _ = this._shouldUploadNext();
2003
+ if (_ !== !1) {
2004
+ !s && this._trigger("uploadStart");
2005
+ for (var F = !1, P = 1; P <= this.opts.simultaneousUploads - _ && (F = this.uploadNextChunk(!s) || F, !(!F && s)); P++)
2006
+ ;
2007
+ !F && !s && this._triggerAsync("complete");
2008
+ }
2009
+ },
2010
+ /**
2011
+ * should upload next chunk
2012
+ * @function
2013
+ * @returns {Boolean|Number}
2014
+ */
2015
+ _shouldUploadNext: function() {
2016
+ var s = 0, _ = !0, F = this.opts.simultaneousUploads, P = c.STATUS.UPLOADING;
2017
+ return i.each(this.files, function(w) {
2018
+ return i.each(w.chunks, function(x) {
2019
+ if (x.status() === P && (s++, s >= F))
2020
+ return _ = !1, !1;
2021
+ }), _;
2022
+ }), _ && s;
2023
+ },
2024
+ /**
2025
+ * Assign a browse action to one or more DOM nodes.
2026
+ * @function
2027
+ * @param {Element|Array.<Element>} domNodes
2028
+ * @param {boolean} isDirectory Pass in true to allow directories to
2029
+ * @param {boolean} singleFile prevent multi file upload
2030
+ * @param {Object} attributes set custom attributes:
2031
+ * http://www.w3.org/TR/html-markup/input.file.html#input.file-attributes
2032
+ * eg: accept: 'image/*'
2033
+ * be selected (Chrome only).
2034
+ */
2035
+ assignBrowse: function(s, _, F, P) {
2036
+ typeof s.length > "u" && (s = [s]), i.each(s, function(w) {
2037
+ var x;
2038
+ w.tagName === "INPUT" && w.type === "file" ? x = w : (x = document.createElement("input"), x.setAttribute("type", "file"), i.extend(x.style, {
2039
+ visibility: "hidden",
2040
+ position: "absolute",
2041
+ width: "1px",
2042
+ height: "1px"
2043
+ }), w.appendChild(x), w.addEventListener("click", function(U) {
2044
+ w.tagName.toLowerCase() !== "label" && x.click();
2045
+ }, !1)), !this.opts.singleFile && !F && x.setAttribute("multiple", "multiple"), _ && x.setAttribute("webkitdirectory", "webkitdirectory"), P && i.each(P, function(U, W) {
2046
+ x.setAttribute(W, U);
2047
+ });
2048
+ var D = this;
2049
+ x.addEventListener("change", function(U) {
2050
+ D._trigger(U.type, U), U.target.value && (D.addFiles(U.target.files, U), U.target.value = "");
2051
+ }, !1);
2052
+ }, this);
2053
+ },
2054
+ onDrop: function(s) {
2055
+ this._trigger(s.type, s), this.opts.onDropStopPropagation && s.stopPropagation(), s.preventDefault(), this._parseDataTransfer(s.dataTransfer, s);
2056
+ },
2057
+ _parseDataTransfer: function(s, _) {
2058
+ s.items && s.items[0] && s.items[0].webkitGetAsEntry ? this.webkitReadDataTransfer(s, _) : this.addFiles(s.files, _);
2059
+ },
2060
+ webkitReadDataTransfer: function(s, _) {
2061
+ var F = this, P = s.items.length, w = [];
2062
+ i.each(s.items, function(H) {
2063
+ var L = H.webkitGetAsEntry();
2064
+ if (!L) {
2065
+ W();
2066
+ return;
2067
+ }
2068
+ L.isFile ? D(H.getAsFile(), L.fullPath) : x(L.createReader());
2069
+ });
2070
+ function x(H) {
2071
+ H.readEntries(function(L) {
2072
+ L.length ? (P += L.length, i.each(L, function(O) {
2073
+ if (O.isFile) {
2074
+ var ie = O.fullPath;
2075
+ O.file(function(e) {
2076
+ D(e, ie);
2077
+ }, U);
2078
+ } else O.isDirectory && x(O.createReader());
2079
+ }), x(H)) : W();
2080
+ }, U);
2081
+ }
2082
+ function D(H, L) {
2083
+ H.relativePath = L.substring(1), w.push(H), W();
2084
+ }
2085
+ function U(H) {
2086
+ throw H;
2087
+ }
2088
+ function W() {
2089
+ --P === 0 && F.addFiles(w, _);
2090
+ }
2091
+ },
2092
+ _assignHelper: function(s, _, F) {
2093
+ typeof s.length > "u" && (s = [s]);
2094
+ var P = F ? "removeEventListener" : "addEventListener";
2095
+ i.each(s, function(w) {
2096
+ i.each(_, function(x, D) {
2097
+ w[P](D, x, !1);
2098
+ }, this);
2099
+ }, this);
2100
+ },
2101
+ _preventEvent: function(s) {
2102
+ i.preventEvent(s), this._trigger(s.type, s);
2103
+ },
2104
+ /**
2105
+ * Assign one or more DOM nodes as a drop target.
2106
+ * @function
2107
+ * @param {Element|Array.<Element>} domNodes
2108
+ */
2109
+ assignDrop: function(s) {
2110
+ this._onDrop = i.bind(this.onDrop, this), this._assignHelper(s, {
2111
+ dragover: this.preventEvent,
2112
+ dragenter: this.preventEvent,
2113
+ dragleave: this.preventEvent,
2114
+ drop: this._onDrop
2115
+ });
2116
+ },
2117
+ /**
2118
+ * Un-assign drop event from DOM nodes
2119
+ * @function
2120
+ * @param domNodes
2121
+ */
2122
+ unAssignDrop: function(s) {
2123
+ this._assignHelper(s, {
2124
+ dragover: this.preventEvent,
2125
+ dragenter: this.preventEvent,
2126
+ dragleave: this.preventEvent,
2127
+ drop: this._onDrop
2128
+ }, !0), this._onDrop = null;
2129
+ }
2130
+ }), l.exports = h;
2131
+ }, {
2132
+ "./chunk": 1,
2133
+ "./event": 2,
2134
+ "./file": 4,
2135
+ "./utils": 5
2136
+ }],
2137
+ 4: [function(f, l, p) {
2138
+ var i = f("./utils"), C = f("./chunk");
2139
+ function g(t, a, m) {
2140
+ i.defineNonEnumerable(this, "uploader", t), this.isRoot = this.isFolder = t === this, i.defineNonEnumerable(this, "parent", m || null), i.defineNonEnumerable(this, "files", []), i.defineNonEnumerable(this, "fileList", []), i.defineNonEnumerable(this, "chunks", []), i.defineNonEnumerable(this, "_errorFiles", []), i.defineNonEnumerable(this, "file", null), this.id = i.uid(), this.isRoot || !a ? this.file = null : i.isString(a) ? (this.isFolder = !0, this.file = null, this.path = a, this.parent.path && (a = a.substr(this.parent.path.length)), this.name = a.charAt(a.length - 1) === "/" ? a.substr(0, a.length - 1) : a) : (this.file = a, this.fileType = this.file.type, this.name = a.fileName || a.name, this.size = a.size, this.relativePath = a.relativePath || a.webkitRelativePath || this.name, this._parseFile()), this.paused = t.opts.initialPaused, this.error = !1, this.allError = !1, this.aborted = !1, this.completed = !1, this.averageSpeed = 0, this.currentSpeed = 0, this._lastProgressCallback = Date.now(), this._prevUploadedSize = 0, this._prevProgress = 0, this.bootstrap();
2141
+ }
2142
+ i.extend(g.prototype, {
2143
+ _parseFile: function() {
2144
+ var t = c(this.relativePath);
2145
+ if (t.length) {
2146
+ var a = this.uploader.filePaths;
2147
+ i.each(t, function(m, u) {
2148
+ var o = a[m];
2149
+ o || (o = new g(this.uploader, m, this.parent), a[m] = o, this._updateParentFileList(o)), this.parent = o, o.files.push(this), t[u + 1] || o.fileList.push(this);
2150
+ }, this);
2151
+ } else
2152
+ this._updateParentFileList();
2153
+ },
2154
+ _updateParentFileList: function(t) {
2155
+ t || (t = this);
2156
+ var a = this.parent;
2157
+ a && a.fileList.push(t);
2158
+ },
2159
+ _eachAccess: function(t, a) {
2160
+ if (this.isFolder) {
2161
+ i.each(this.files, function(m, u) {
2162
+ return t.call(this, m, u);
2163
+ }, this);
2164
+ return;
2165
+ }
2166
+ a.call(this, this);
2167
+ },
2168
+ bootstrap: function() {
2169
+ if (!this.isFolder) {
2170
+ var t = this.uploader.opts;
2171
+ i.isFunction(t.initFileFn) && t.initFileFn.call(this, this), this.abort(!0), this._resetError(), this._prevProgress = 0;
2172
+ for (var a = t.forceChunkSize ? Math.ceil : Math.floor, m = Math.max(a(this.size / t.chunkSize), 1), u = 0; u < m; u++)
2173
+ this.chunks.push(new C(this.uploader, this, u));
2174
+ }
2175
+ },
2176
+ _measureSpeed: function() {
2177
+ var t = this.uploader.opts.speedSmoothingFactor, a = Date.now() - this._lastProgressCallback;
2178
+ if (a) {
2179
+ var m = this.sizeUploaded();
2180
+ this.currentSpeed = Math.max((m - this._prevUploadedSize) / a * 1e3, 0), this.averageSpeed = t * this.currentSpeed + (1 - t) * this.averageSpeed, this._prevUploadedSize = m, this.parent && this.parent._checkProgress() && this.parent._measureSpeed();
2181
+ }
2182
+ },
2183
+ _checkProgress: function(t) {
2184
+ return Date.now() - this._lastProgressCallback >= this.uploader.opts.progressCallbacksInterval;
2185
+ },
2186
+ _chunkEvent: function(t, a, m) {
2187
+ var u = this.uploader, o = C.STATUS, h = this, T = this.getRoot(), s = function() {
2188
+ h._measureSpeed(), u._trigger("fileProgress", T, h, t), h._lastProgressCallback = Date.now();
2189
+ };
2190
+ switch (a) {
2191
+ case o.PROGRESS:
2192
+ this._checkProgress() && s();
2193
+ break;
2194
+ case o.ERROR:
2195
+ this._error(), this.abort(!0), u._trigger("fileError", T, this, m, t);
2196
+ break;
2197
+ case o.SUCCESS:
2198
+ if (this._updateUploadedChunks(m, t), this.error)
2199
+ return;
2200
+ clearTimeout(this._progeressId), this._progeressId = 0;
2201
+ var _ = Date.now() - this._lastProgressCallback;
2202
+ _ < u.opts.progressCallbacksInterval && (this._progeressId = setTimeout(s, u.opts.progressCallbacksInterval - _)), this.isComplete() ? (clearTimeout(this._progeressId), s(), this.currentSpeed = 0, this.averageSpeed = 0, u._trigger("fileSuccess", T, this, m, t), T.isComplete() && u._trigger("fileComplete", T, this)) : this._progeressId || s();
2203
+ break;
2204
+ case o.RETRY:
2205
+ u._trigger("fileRetry", T, this, t);
2206
+ break;
2207
+ }
2208
+ },
2209
+ _updateUploadedChunks: function(t, a) {
2210
+ var m = this.uploader.opts.checkChunkUploadedByResponse;
2211
+ if (m) {
2212
+ var u = a.xhr;
2213
+ i.each(this.chunks, function(o) {
2214
+ if (!o.tested) {
2215
+ var h = m.call(this, o, t);
2216
+ o === a && !h && (o.xhr = null), h && (o.xhr = u), o.tested = !0;
2217
+ }
2218
+ }, this), this._firstResponse ? this.uploader.uploadNextChunk() : (this._firstResponse = !0, this.uploader.upload(!0));
2219
+ } else
2220
+ this.uploader.uploadNextChunk();
2221
+ },
2222
+ _error: function() {
2223
+ this.error = this.allError = !0;
2224
+ for (var t = this.parent; t && t !== this.uploader; )
2225
+ t._errorFiles.push(this), t.error = !0, t._errorFiles.length === t.files.length && (t.allError = !0), t = t.parent;
2226
+ },
2227
+ _resetError: function() {
2228
+ this.error = this.allError = !1;
2229
+ for (var t = this.parent, a = -1; t && t !== this.uploader; )
2230
+ a = t._errorFiles.indexOf(this), t._errorFiles.splice(a, 1), t.allError = !1, t._errorFiles.length || (t.error = !1), t = t.parent;
2231
+ },
2232
+ isComplete: function() {
2233
+ if (!this.completed) {
2234
+ var t = !1;
2235
+ this._eachAccess(function(a) {
2236
+ if (!a.isComplete())
2237
+ return t = !0, !1;
2238
+ }, function() {
2239
+ if (this.error)
2240
+ t = !0;
2241
+ else {
2242
+ var a = C.STATUS;
2243
+ i.each(this.chunks, function(m) {
2244
+ var u = m.status();
2245
+ if (u === a.ERROR || u === a.PENDING || u === a.UPLOADING || u === a.READING || m.preprocessState === 1 || m.readState === 1)
2246
+ return t = !0, !1;
2247
+ });
2248
+ }
2249
+ }), this.completed = !t;
2250
+ }
2251
+ return this.completed;
2252
+ },
2253
+ isUploading: function() {
2254
+ var t = !1;
2255
+ return this._eachAccess(function(a) {
2256
+ if (a.isUploading())
2257
+ return t = !0, !1;
2258
+ }, function() {
2259
+ var a = C.STATUS.UPLOADING;
2260
+ i.each(this.chunks, function(m) {
2261
+ if (m.status() === a)
2262
+ return t = !0, !1;
2263
+ });
2264
+ }), t;
2265
+ },
2266
+ resume: function() {
2267
+ this._eachAccess(function(t) {
2268
+ t.resume();
2269
+ }, function() {
2270
+ this.paused = !1, this.aborted = !1, this.uploader.upload();
2271
+ }), this.paused = !1, this.aborted = !1;
2272
+ },
2273
+ pause: function() {
2274
+ this._eachAccess(function(t) {
2275
+ t.pause();
2276
+ }, function() {
2277
+ this.paused = !0, this.abort();
2278
+ }), this.paused = !0;
2279
+ },
2280
+ cancel: function() {
2281
+ this.uploader.removeFile(this);
2282
+ },
2283
+ retry: function(t) {
2284
+ var a = function(m) {
2285
+ m.error && m.bootstrap();
2286
+ };
2287
+ t ? t.bootstrap() : this._eachAccess(a, function() {
2288
+ this.bootstrap();
2289
+ }), this.uploader.upload();
2290
+ },
2291
+ abort: function(t) {
2292
+ if (!this.aborted) {
2293
+ this.currentSpeed = 0, this.averageSpeed = 0, this.aborted = !t;
2294
+ var a = this.chunks;
2295
+ t && (this.chunks = []);
2296
+ var m = C.STATUS.UPLOADING;
2297
+ i.each(a, function(u) {
2298
+ u.status() === m && (u.abort(), this.uploader.uploadNextChunk());
2299
+ }, this);
2300
+ }
2301
+ },
2302
+ progress: function() {
2303
+ var t = 0, a = 0, m = 0;
2304
+ return this._eachAccess(function(u, o) {
2305
+ t += u.progress() * u.size, a += u.size, o === this.files.length - 1 && (m = a > 0 ? t / a : this.isComplete() ? 1 : 0);
2306
+ }, function() {
2307
+ if (this.error) {
2308
+ m = 1;
2309
+ return;
2310
+ }
2311
+ if (this.chunks.length === 1) {
2312
+ this._prevProgress = Math.max(this._prevProgress, this.chunks[0].progress()), m = this._prevProgress;
2313
+ return;
2314
+ }
2315
+ var u = 0;
2316
+ i.each(this.chunks, function(h) {
2317
+ u += h.progress() * (h.endByte - h.startByte);
2318
+ });
2319
+ var o = u / this.size;
2320
+ this._prevProgress = Math.max(this._prevProgress, o > 0.9999 ? 1 : o), m = this._prevProgress;
2321
+ }), m;
2322
+ },
2323
+ getSize: function() {
2324
+ var t = 0;
2325
+ return this._eachAccess(function(a) {
2326
+ t += a.size;
2327
+ }, function() {
2328
+ t += this.size;
2329
+ }), t;
2330
+ },
2331
+ getFormatSize: function() {
2332
+ var t = this.getSize();
2333
+ return i.formatSize(t);
2334
+ },
2335
+ getRoot: function() {
2336
+ if (this.isRoot)
2337
+ return this;
2338
+ for (var t = this.parent; t; ) {
2339
+ if (t.parent === this.uploader)
2340
+ return t;
2341
+ t = t.parent;
2342
+ }
2343
+ return this;
2344
+ },
2345
+ sizeUploaded: function() {
2346
+ var t = 0;
2347
+ return this._eachAccess(function(a) {
2348
+ t += a.sizeUploaded();
2349
+ }, function() {
2350
+ i.each(this.chunks, function(a) {
2351
+ t += a.sizeUploaded();
2352
+ });
2353
+ }), t;
2354
+ },
2355
+ timeRemaining: function() {
2356
+ var t = 0, a = 0, m = 0;
2357
+ return this._eachAccess(function(o, h) {
2358
+ !o.paused && !o.error && (a += o.size - o.sizeUploaded(), m += o.averageSpeed), h === this.files.length - 1 && (t = u(a, m));
2359
+ }, function() {
2360
+ if (this.paused || this.error) {
2361
+ t = 0;
2362
+ return;
2363
+ }
2364
+ var o = this.size - this.sizeUploaded();
2365
+ t = u(o, this.averageSpeed);
2366
+ }), t;
2367
+ function u(o, h) {
2368
+ return o && !h ? Number.POSITIVE_INFINITY : !o && !h ? 0 : Math.floor(o / h);
2369
+ }
2370
+ },
2371
+ removeFile: function(t) {
2372
+ if (t.isFolder)
2373
+ for (; t.files.length; ) {
2374
+ var a = t.files[t.files.length - 1];
2375
+ this._removeFile(a);
2376
+ }
2377
+ this._removeFile(t);
2378
+ },
2379
+ _delFilePath: function(t) {
2380
+ t.path && this.filePaths && delete this.filePaths[t.path], i.each(t.fileList, function(a) {
2381
+ this._delFilePath(a);
2382
+ }, this);
2383
+ },
2384
+ _removeFile: function(t) {
2385
+ if (!t.isFolder) {
2386
+ i.each(this.files, function(u, o) {
2387
+ if (u === t)
2388
+ return this.files.splice(o, 1), !1;
2389
+ }, this), t.abort();
2390
+ for (var a = t.parent, m; a && a !== this; )
2391
+ m = a.parent, a._removeFile(t), a = m;
2392
+ }
2393
+ t.parent === this && i.each(this.fileList, function(u, o) {
2394
+ if (u === t)
2395
+ return this.fileList.splice(o, 1), !1;
2396
+ }, this), !this.isRoot && this.isFolder && !this.files.length && (this.parent._removeFile(this), this.uploader._delFilePath(this)), t.parent = null;
2397
+ },
2398
+ getType: function() {
2399
+ return this.isFolder ? "folder" : this.file.type && this.file.type.split("/")[1];
2400
+ },
2401
+ getExtension: function() {
2402
+ return this.isFolder ? "" : this.name.substr((~-this.name.lastIndexOf(".") >>> 0) + 2).toLowerCase();
2403
+ }
2404
+ }), l.exports = g;
2405
+ function c(t) {
2406
+ var a = [], m = t.split("/"), u = m.length, o = 1;
2407
+ if (m.splice(u - 1, 1), u--, m.length)
2408
+ for (; o <= u; )
2409
+ a.push(m.slice(0, o++).join("/") + "/");
2410
+ return a;
2411
+ }
2412
+ }, {
2413
+ "./chunk": 1,
2414
+ "./utils": 5
2415
+ }],
2416
+ 5: [function(f, l, p) {
2417
+ var i = Object.prototype, C = Array.prototype, g = i.toString, c = function(o) {
2418
+ return g.call(o) === "[object Function]";
2419
+ }, t = Array.isArray || /* istanbul ignore next */
2420
+ function(o) {
2421
+ return g.call(o) === "[object Array]";
2422
+ }, a = function(o) {
2423
+ return g.call(o) === "[object Object]" && Object.getPrototypeOf(o) === i;
2424
+ }, m = 0, u = {
2425
+ uid: function() {
2426
+ return ++m;
2427
+ },
2428
+ noop: function() {
2429
+ },
2430
+ bind: function(o, h) {
2431
+ return function() {
2432
+ return o.apply(h, arguments);
2433
+ };
2434
+ },
2435
+ preventEvent: function(o) {
2436
+ o.preventDefault();
2437
+ },
2438
+ stop: function(o) {
2439
+ o.preventDefault(), o.stopPropagation();
2440
+ },
2441
+ nextTick: function(o, h) {
2442
+ setTimeout(u.bind(o, h), 0);
2443
+ },
2444
+ toArray: function(o, h, T) {
2445
+ return h === void 0 && (h = 0), T === void 0 && (T = o.length), C.slice.call(o, h, T);
2446
+ },
2447
+ isPlainObject: a,
2448
+ isFunction: c,
2449
+ isArray: t,
2450
+ isObject: function(o) {
2451
+ return Object(o) === o;
2452
+ },
2453
+ isString: function(o) {
2454
+ return typeof o == "string";
2455
+ },
2456
+ isUndefined: function(o) {
2457
+ return typeof o > "u";
2458
+ },
2459
+ isDefined: function(o) {
2460
+ return typeof o < "u";
2461
+ },
2462
+ each: function(o, h, T) {
2463
+ if (u.isDefined(o.length))
2464
+ for (var s = 0, _ = o.length; s < _ && h.call(T, o[s], s, o) !== !1; s++)
2465
+ ;
2466
+ else
2467
+ for (var F in o)
2468
+ if (h.call(T, o[F], F, o) === !1)
2469
+ break;
2470
+ },
2471
+ /**
2472
+ * If option is a function, evaluate it with given params
2473
+ * @param {*} data
2474
+ * @param {...} args arguments of a callback
2475
+ * @returns {*}
2476
+ */
2477
+ evalOpts: function(o, h) {
2478
+ return u.isFunction(o) && (h = u.toArray(arguments), o = o.apply(null, h.slice(1))), o;
2479
+ },
2480
+ extend: function() {
2481
+ var o, h, T, s, _, F, P = arguments[0] || {}, w = 1, x = arguments.length, D = !1;
2482
+ for (typeof P == "boolean" && (D = P, P = arguments[1] || {}, w++), typeof P != "object" && !c(P) && (P = {}), w === x && (P = this, w--); w < x; w++)
2483
+ if ((o = arguments[w]) != null)
2484
+ for (h in o)
2485
+ T = P[h], s = o[h], P !== s && (D && s && (a(s) || (_ = t(s))) ? (_ ? (_ = !1, F = T && t(T) ? T : []) : F = T && a(T) ? T : {}, P[h] = u.extend(D, F, s)) : s !== void 0 && (P[h] = s));
2486
+ return P;
2487
+ },
2488
+ formatSize: function(o) {
2489
+ return o < 1024 ? o.toFixed(0) + " bytes" : o < 1024 * 1024 ? (o / 1024).toFixed(0) + " KB" : o < 1024 * 1024 * 1024 ? (o / 1024 / 1024).toFixed(1) + " MB" : (o / 1024 / 1024 / 1024).toFixed(1) + " GB";
2490
+ },
2491
+ defineNonEnumerable: function(o, h, T) {
2492
+ Object.defineProperty(o, h, {
2493
+ enumerable: !1,
2494
+ configurable: !0,
2495
+ writable: !0,
2496
+ value: T
2497
+ });
2498
+ }
2499
+ };
2500
+ l.exports = u;
2501
+ }, {}]
2502
+ }, {}, [3])(3);
2503
+ });
2504
+ })(Ee)), Ee.exports;
2505
+ }
2506
+ var pt = ht();
2507
+ const Oe = /* @__PURE__ */ Be(pt);
2508
+ function mt(n) {
2509
+ const d = Math.floor(n / 31536e3);
2510
+ if (d)
2511
+ return d + " 年";
2512
+ const f = Math.floor((n %= 31536e3) / 86400);
2513
+ if (f)
2514
+ return f + " 天";
2515
+ const l = Math.floor((n %= 86400) / 3600);
2516
+ if (l)
2517
+ return l + " 小时";
2518
+ const p = Math.floor((n %= 3600) / 60);
2519
+ return p ? p + " 分钟" : n % 60 + " 秒";
2520
+ }
2521
+ const gt = {
2522
+ props: {
2523
+ file: {
2524
+ type: Object,
2525
+ default() {
2526
+ return {};
2527
+ }
2528
+ },
2529
+ list: {
2530
+ type: Boolean,
2531
+ default: !1
1553
2532
  }
1554
- );
1555
- }, ll = { install: $e };
2533
+ },
2534
+ setup(n) {
2535
+ const d = ref(!1), f = ref(""), l = ref(!1);
2536
+ n.file.fileType.indexOf("image") != -1 && (l.value = !0);
2537
+ const p = fe({
2538
+ response: null,
2539
+ paused: n.file.paused,
2540
+ //是否暂停状态
2541
+ error: n.file.error,
2542
+ //是否上传错误
2543
+ averageSpeed: n.file.averageSpeed,
2544
+ //平均速度byte/s
2545
+ currentSpeed: n.file.currentSpeed,
2546
+ //当前速度byte/s
2547
+ isComplete: n.file.isComplete(),
2548
+ //文件是否已经上传完成
2549
+ isUploading: n.file.isUploading(),
2550
+ //文件是否扔在上传中
2551
+ size: n.file.getSize(),
2552
+ //上传文件的总大小
2553
+ formatedSize: n.file.getFormatSize(),
2554
+ //得到文件大小单位为KB
2555
+ uploadedSize: n.file.sizeUploaded(),
2556
+ //所有已经成功上传文件大小
2557
+ progress: n.file.progress(),
2558
+ //当前上传进度
2559
+ timeRemaining: n.file.timeRemaining(),
2560
+ //剩余时间,单位秒
2561
+ type: n.file.getType(),
2562
+ //得到文件类型
2563
+ extension: n.file.getExtension(),
2564
+ //得到小写的后缀
2565
+ _handlers: {}
2566
+ }), i = {
2567
+ _fileProgress: () => {
2568
+ p.progress = Math.floor(n.file.progress() * 100), p.averageSpeed = n.file.averageSpeed, p.currentSpeed = n.file.currentSpeed, p.timeRemaining = n.file.timeRemaining(), u();
2569
+ },
2570
+ _fileSuccess: (w, x, D) => {
2571
+ w && t(D), i._fileProgress(), p.error = !1, p.isComplete = !0, p.isUploading = !1;
2572
+ },
2573
+ _fileComplete: () => {
2574
+ i._fileSuccess();
2575
+ },
2576
+ _fileError(w, x, D) {
2577
+ i._fileProgress(), t(D), p.error = !0, p.isComplete = !1, p.isUploading = !1;
2578
+ }
2579
+ }, C = ["fileProgress", "fileSuccess", "fileComplete", "fileError"], g = p._handlers = {}, c = (w) => (g[w] = (...x) => {
2580
+ a(w, x);
2581
+ }, g[w]);
2582
+ C.forEach((w) => {
2583
+ n.file.uploader.on(w, c(w));
2584
+ });
2585
+ function t(w) {
2586
+ let x = w;
2587
+ try {
2588
+ x = JSON.parse(w);
2589
+ } catch {
2590
+ return;
2591
+ }
2592
+ p.response = x;
2593
+ }
2594
+ function a(w, x) {
2595
+ const D = x[0], U = x[1], W = n.list ? D : U;
2596
+ if (n.file === W) {
2597
+ if (n.list && w === "fileSuccess") {
2598
+ t(x[2]);
2599
+ return;
2600
+ }
2601
+ i[`_${w}`](...x);
2602
+ }
2603
+ }
2604
+ function m() {
2605
+ return `${Oe.utils.formatSize(p.averageSpeed)} / s`;
2606
+ }
2607
+ function u() {
2608
+ p.paused = n.file.paused, p.error = n.file.error, p.isUploading = n.file.isUploading();
2609
+ }
2610
+ function o() {
2611
+ n.file.pause(), u(), i._fileProgress();
2612
+ }
2613
+ function h() {
2614
+ n.file.resume(), u();
2615
+ }
2616
+ function T() {
2617
+ n.file.cancel();
2618
+ }
2619
+ function s() {
2620
+ p.isComplete = !1, n.file.retry(), u();
2621
+ }
2622
+ const _ = be(
2623
+ () => {
2624
+ const w = p.timeRemaining, x = n.file;
2625
+ if (w === Number.POSITIVE_INFINITY || w === 0)
2626
+ return "";
2627
+ let D = mt(w);
2628
+ const U = x.uploader.opts.parseTimeRemaining;
2629
+ return U && (D = U(w, D)), D;
2630
+ }
2631
+ ), F = be(() => p.error ? "上传失败" : p.isComplete ? "上传成功" : p.progress + "%");
2632
+ function P() {
2633
+ const w = new FileReader();
2634
+ w.onload = (x) => {
2635
+ f.value = x.target.result, d.value = !0;
2636
+ }, w.readAsDataURL(n.file.file);
2637
+ }
2638
+ return {
2639
+ fileObj: p,
2640
+ formatedAverageSpeed: m,
2641
+ pause: o,
2642
+ resume: h,
2643
+ remove: T,
2644
+ retry: s,
2645
+ formatedTimeRemaining: _,
2646
+ formatStatus: F,
2647
+ isImage: l,
2648
+ dialogVisible: d,
2649
+ rviewClick: P,
2650
+ imgBase64: f
2651
+ };
2652
+ }
2653
+ }, yt = { class: "file-list-box" }, vt = { class: "file-name-box" }, bt = { class: "file-name" }, xt = { class: "progress-btns" }, _t = { class: "progress-box" }, Et = { class: "btns-box" }, wt = {
2654
+ key: 0,
2655
+ class: "upload-info"
2656
+ }, Ct = ["src"];
2657
+ function Ft(n, d, f, l, p, i) {
2658
+ const C = N("el-button"), g = N("el-progress"), c = N("el-dialog");
2659
+ return y(), z(te, null, [
2660
+ K("div", yt, [
2661
+ K("div", vt, [
2662
+ K("span", bt, Q(f.file.name), 1),
2663
+ l.isImage ? (y(), V(C, {
2664
+ key: 0,
2665
+ style: { "margin-left": "10px" },
2666
+ size: "small",
2667
+ onClick: l.rviewClick
2668
+ }, {
2669
+ default: I(() => [...d[5] || (d[5] = [
2670
+ de("预览", -1)
2671
+ ])]),
2672
+ _: 1
2673
+ }, 8, ["onClick"])) : A("", !0)
2674
+ ]),
2675
+ K("div", xt, [
2676
+ K("div", _t, [
2677
+ ne(g, {
2678
+ "text-inside": !0,
2679
+ "stroke-width": 26,
2680
+ status: l.fileObj.error ? "exception" : "success",
2681
+ percentage: l.fileObj.progress
2682
+ }, {
2683
+ default: I(() => [
2684
+ K("span", null, Q(l.formatStatus), 1)
2685
+ ]),
2686
+ _: 1
2687
+ }, 8, ["status", "percentage"])
2688
+ ]),
2689
+ K("div", Et, [
2690
+ Ce(K("span", {
2691
+ class: "jtIcon iconzanting1",
2692
+ onClick: d[0] || (d[0] = (...t) => l.resume && l.resume(...t))
2693
+ }, null, 512), [
2694
+ [Fe, l.fileObj.paused]
2695
+ ]),
2696
+ Ce(K("span", {
2697
+ class: "jtIcon icontingzhi",
2698
+ onClick: d[1] || (d[1] = (...t) => l.pause && l.pause(...t))
2699
+ }, null, 512), [
2700
+ [Fe, !l.fileObj.paused]
2701
+ ]),
2702
+ K("span", {
2703
+ class: "jtIcon iconzhongqi",
2704
+ onClick: d[2] || (d[2] = (...t) => l.retry && l.retry(...t))
2705
+ }),
2706
+ K("span", {
2707
+ class: "jtIcon iconguanbi1",
2708
+ onClick: d[3] || (d[3] = (...t) => l.remove && l.remove(...t))
2709
+ })
2710
+ ])
2711
+ ]),
2712
+ l.fileObj.isUploading ? (y(), z("div", wt, [
2713
+ K("span", null, Q(l.fileObj.formatedSize), 1),
2714
+ K("span", null, Q(l.formatedAverageSpeed()), 1),
2715
+ K("span", null, "预计还剩 " + Q(l.formatedTimeRemaining), 1)
2716
+ ])) : A("", !0)
2717
+ ]),
2718
+ ne(c, {
2719
+ modelValue: l.dialogVisible,
2720
+ "onUpdate:modelValue": d[4] || (d[4] = (t) => l.dialogVisible = t),
2721
+ title: "图片预览",
2722
+ width: "70%"
2723
+ }, {
2724
+ default: I(() => [
2725
+ K("img", {
2726
+ style: { width: "100%" },
2727
+ src: l.imgBase64,
2728
+ alt: ""
2729
+ }, null, 8, Ct)
2730
+ ]),
2731
+ _: 1
2732
+ }, 8, ["modelValue"])
2733
+ ], 64);
2734
+ }
2735
+ const Dt = /* @__PURE__ */ _e(gt, [["render", Ft], ["__scopeId", "data-v-7f0fb5f8"]]), St = {
2736
+ name: "uploader-drop"
2737
+ }, kt = /* @__PURE__ */ Object.assign(St, {
2738
+ props: {
2739
+ uploader: Object
2740
+ },
2741
+ setup(n) {
2742
+ const d = ee(""), f = ee(), l = ee(!0), p = n;
2743
+ function i(c) {
2744
+ c.preventDefault(), d.value = "uploader-dragover";
2745
+ }
2746
+ function C(c) {
2747
+ c.preventDefault(), d.value = "";
2748
+ }
2749
+ function g(c) {
2750
+ c.preventDefault(), d.value = "uploader-droped";
2751
+ }
2752
+ return Ke(() => {
2753
+ l.value = p.uploader.support;
2754
+ const c = f.value;
2755
+ xe(() => {
2756
+ p.uploader.assignDrop(c), p.uploader.on("dragover", i), p.uploader.on("dragleave", C), p.uploader.on("drop", g);
2757
+ });
2758
+ }), Me(() => {
2759
+ const c = f.value;
2760
+ p.uploader.off("dragover", i), p.uploader.off("dragleave", C), p.uploader.off("drop", g), xe(() => {
2761
+ p.uploader.unAssignDrop(c);
2762
+ });
2763
+ }), (c, t) => Ce((y(), z("div", {
2764
+ class: we(["uploader-drop", d.value]),
2765
+ ref_key: "drop",
2766
+ ref: f
2767
+ }, [
2768
+ pe(c.$slots, "default")
2769
+ ], 2)), [
2770
+ [Fe, l.value]
2771
+ ]);
2772
+ }
2773
+ }), Rt = {
2774
+ components: {
2775
+ UploaderFile: Dt,
2776
+ UploaderDrap: kt
2777
+ },
2778
+ props: {
2779
+ //上传文件配置
2780
+ mode: {
2781
+ type: String,
2782
+ default: "2"
2783
+ },
2784
+ options: {
2785
+ type: Object,
2786
+ default() {
2787
+ return {};
2788
+ }
2789
+ },
2790
+ //是否自动上传
2791
+ autostart: {
2792
+ type: Boolean,
2793
+ default: !0
2794
+ },
2795
+ //按钮文本
2796
+ text: String,
2797
+ //input accept属性
2798
+ accept: {
2799
+ type: String,
2800
+ default: "*/*"
2801
+ },
2802
+ //是否限制为上传文件夹
2803
+ isDirectory: {
2804
+ type: Boolean,
2805
+ default: !1
2806
+ },
2807
+ //是否是单文件上传模式
2808
+ singleFile: {
2809
+ type: Boolean,
2810
+ default: !1
2811
+ }
2812
+ },
2813
+ setup(n, { emit: d }) {
2814
+ const f = "fileAdded", l = "filesAdded", p = "uploadStart", i = "fileRemoved";
2815
+ let C = ee(!1), g = ee([]), c = ee([]);
2816
+ const t = ee("");
2817
+ let a = fe(
2818
+ new Oe({
2819
+ initialPaused: !n.autostart,
2820
+ ...n.options
2821
+ })
2822
+ ), m = ee();
2823
+ const u = {
2824
+ uploadStart: () => {
2825
+ C.value = !0;
2826
+ }
2827
+ };
2828
+ function o(D) {
2829
+ return D.replace(/[A-Z]/g, (U) => `-${U.toLowerCase()}`);
2830
+ }
2831
+ a.on("catchAll", h);
2832
+ function h(...D) {
2833
+ const U = D[0], H = {
2834
+ [f]: !0,
2835
+ [l]: !0,
2836
+ [p]: "uploadStart",
2837
+ [i]: !0
2838
+ }[U];
2839
+ if (H) {
2840
+ if (H === !0)
2841
+ return;
2842
+ u[H](D.slice(1));
2843
+ }
2844
+ D[0] = o(U), d(...D);
2845
+ }
2846
+ a.on(f, T);
2847
+ function T(D) {
2848
+ if (d(o(f), D), D.ignored)
2849
+ return !1;
2850
+ }
2851
+ a.on(l, s);
2852
+ function s(D, U) {
2853
+ if (d(o(l), D, U), D.ignored || U.ignored)
2854
+ return !1;
2855
+ }
2856
+ a.on("fileRemoved", _);
2857
+ function _(D) {
2858
+ g.value = a.files, c.value = a.fileList, d(o(i), D);
2859
+ }
2860
+ a.on("filesSubmitted", F);
2861
+ function F(D, U) {
2862
+ D.value = a.files, U.value = a.fileList, n.autostart && a.upload();
2863
+ }
2864
+ function P() {
2865
+ a.assignBrowse(
2866
+ m.value,
2867
+ n.isDirectory,
2868
+ n.singleFile,
2869
+ {
2870
+ accept: n.accept
2871
+ }
2872
+ );
2873
+ }
2874
+ He(() => {
2875
+ a.off("catchAll", h), a.off(f, T), a.off(l, s), a.off("fileRemoved", _), a.off("filesSubmitted", F), a = null;
2876
+ });
2877
+ function w(D) {
2878
+ }
2879
+ function x(D) {
2880
+ const U = (D.clipboardData || window.clipboardData).items;
2881
+ if (!U || U.length === 0) {
2882
+ De.error("当前浏览器不支持本地");
2883
+ return;
2884
+ }
2885
+ for (let W = 0; W < U.length; W++) {
2886
+ let H = U[W].getAsFile();
2887
+ if (H == null) {
2888
+ t.value = "", De.error("上传失败,粘贴的内容不是文件 ");
2889
+ return;
2890
+ }
2891
+ a.addFile(H), a.pause();
2892
+ }
2893
+ }
2894
+ return {
2895
+ chooseFile: P,
2896
+ fileBtnRef: m,
2897
+ fileList: be(() => a.fileList),
2898
+ uploader: a,
2899
+ onDropComplet: w,
2900
+ files: g,
2901
+ handlePaste: x,
2902
+ cvVal: t
2903
+ };
2904
+ }
2905
+ }, Tt = { style: { height: "100%" } }, Pt = { key: 0 }, At = {
2906
+ key: 1,
2907
+ style: { display: "flex", "justify-content": "center" }
2908
+ }, Vt = { style: { "text-align": "center" } }, Ut = { class: "el-upload__text" }, Mt = { style: { "margin-bottom": "10px" } }, Bt = { class: "drag-file-list" }, Ot = { key: 0 };
2909
+ function zt(n, d, f, l, p, i) {
2910
+ const C = N("uploader-file"), g = N("el-popover"), c = N("el-input"), t = N("uploader-drap");
2911
+ return y(), z("div", Tt, [
2912
+ f.mode == "1" ? (y(), V(g, {
2913
+ key: 0,
2914
+ title: "上传列表",
2915
+ placement: "bottom-start",
2916
+ width: 350,
2917
+ trigger: "hover"
2918
+ }, {
2919
+ reference: I(() => [
2920
+ K("label", {
2921
+ class: "uploader-btn",
2922
+ ref: "fileBtnRef",
2923
+ onClick: d[0] || (d[0] = (...a) => l.chooseFile && l.chooseFile(...a))
2924
+ }, Q(f.text), 513)
2925
+ ]),
2926
+ default: I(() => [
2927
+ l.fileList.length ? (y(), z("div", Pt, [
2928
+ K("ul", null, [
2929
+ (y(!0), z(te, null, ae(l.fileList, (a) => (y(), z("li", {
2930
+ key: a.id
2931
+ }, [
2932
+ ne(C, {
2933
+ file: a,
2934
+ list: !0
2935
+ }, null, 8, ["file"])
2936
+ ]))), 128))
2937
+ ])
2938
+ ])) : (y(), z("div", At, [...d[4] || (d[4] = [
2939
+ K("span", null, "暂无上传的文件", -1)
2940
+ ])]))
2941
+ ]),
2942
+ _: 1
2943
+ })) : A("", !0),
2944
+ f.mode == "2" ? (y(), z("div", {
2945
+ key: 1,
2946
+ class: "drag-upload-box",
2947
+ onPaste: d[3] || (d[3] = (...a) => l.handlePaste && l.handlePaste(...a))
2948
+ }, [
2949
+ ne(t, {
2950
+ class: "jt-upload-drop",
2951
+ uploader: l.uploader,
2952
+ onDropComplete: l.onDropComplet
2953
+ }, {
2954
+ default: I(() => [
2955
+ K("div", Vt, [
2956
+ d[7] || (d[7] = K("i", { class: "jtIcon iconshangchuan jt-upload-icon" }, null, -1)),
2957
+ K("div", Ut, [
2958
+ K("p", Mt, [
2959
+ d[5] || (d[5] = de("点击输入框,请按ctrl+v粘贴文件 ", -1)),
2960
+ ne(c, {
2961
+ modelValue: l.cvVal,
2962
+ "onUpdate:modelValue": d[1] || (d[1] = (a) => l.cvVal = a),
2963
+ type: "text",
2964
+ style: { width: "80%" }
2965
+ }, null, 8, ["modelValue"])
2966
+ ]),
2967
+ d[6] || (d[6] = de(" 将文件拖到此处,或 ", -1)),
2968
+ K("label", {
2969
+ class: "uploader-btn",
2970
+ ref: "fileBtnRef",
2971
+ onClick: d[2] || (d[2] = (...a) => l.chooseFile && l.chooseFile(...a))
2972
+ }, Q(f.text), 513)
2973
+ ])
2974
+ ])
2975
+ ]),
2976
+ _: 1
2977
+ }, 8, ["uploader", "onDropComplete"]),
2978
+ K("div", Bt, [
2979
+ l.fileList.length ? (y(), z("div", Ot, [
2980
+ K("ul", null, [
2981
+ (y(!0), z(te, null, ae(l.fileList, (a) => (y(), z("li", {
2982
+ key: a.id
2983
+ }, [
2984
+ ne(C, {
2985
+ file: a,
2986
+ list: !0
2987
+ }, null, 8, ["file"])
2988
+ ]))), 128))
2989
+ ])
2990
+ ])) : A("", !0)
2991
+ ])
2992
+ ], 32)) : A("", !0)
2993
+ ]);
2994
+ }
2995
+ const It = /* @__PURE__ */ _e(Rt, [["render", zt], ["__scopeId", "data-v-f6c71077"]]), Lt = {
2996
+ name: "jt-upload",
2997
+ components: {
2998
+ UploadFile: It
2999
+ },
3000
+ setup(n, { emit: d }) {
3001
+ const f = fe({
3002
+ target: n.target,
3003
+ //上传、检查chunk的地址
3004
+ testChunks: !0,
3005
+ //是否开启检测chunk
3006
+ chunkSize: 1048576,
3007
+ //分块大小
3008
+ simultaneousUploads: n.simultaneousUploads,
3009
+ //并发上传数,默认3
3010
+ singleFile: n.singleFile,
3011
+ //是否是单文件上传模式
3012
+ allowDuplicateUploads: n.allowDuplicateUploads
3013
+ //是否允许重复上传同一个文件
3014
+ }), l = fe({
3015
+ accept: n.accept
3016
+ //上传类型限制
3017
+ });
3018
+ let p = ee();
3019
+ function i() {
3020
+ return p.value.fileList;
3021
+ }
3022
+ function C() {
3023
+ p.value.uploader.resume();
3024
+ }
3025
+ function g() {
3026
+ const o = arguments[0].file;
3027
+ n.axios.post(n.mergePath, {
3028
+ filename: o.name,
3029
+ identifier: arguments[0].uniqueIdentifier,
3030
+ totalSize: o.size,
3031
+ type: o.type
3032
+ }).then((h) => {
3033
+ if ("Result" in h.data && h.data.Result == 500) {
3034
+ const T = p.value.fileList.findIndex((s) => s.name == o.name && s.size == o.size);
3035
+ p.value.fileList.splice(T, 1), De.warning(o.name + h.data.Msg + ",请重新上传");
3036
+ } else
3037
+ d("success", h);
3038
+ }).catch(function(h) {
3039
+ console.log(h);
3040
+ });
3041
+ }
3042
+ function c(o, h, T, s) {
3043
+ d("error", o, h, T, s);
3044
+ }
3045
+ function t(o) {
3046
+ d("added", o);
3047
+ }
3048
+ function a(o, h) {
3049
+ d("addeds", o, h);
3050
+ }
3051
+ function m() {
3052
+ for (; p.value.fileList.length != 0; )
3053
+ p.value.fileList.pop();
3054
+ }
3055
+ function u(o) {
3056
+ d("removed", o);
3057
+ }
3058
+ return {
3059
+ options: f,
3060
+ attrs: l,
3061
+ getFiles: i,
3062
+ goOnUpload: C,
3063
+ onFileSuccess: g,
3064
+ onFileError: c,
3065
+ fileAdded: t,
3066
+ filesAdded: a,
3067
+ clearList: m,
3068
+ listRef: p,
3069
+ onFileRemoved: u
3070
+ };
3071
+ },
3072
+ props: {
3073
+ //上传、检查chunk的地址
3074
+ target: {
3075
+ type: String,
3076
+ required: !0
3077
+ },
3078
+ //合并文件路径
3079
+ mergePath: {
3080
+ type: String,
3081
+ required: !0
3082
+ },
3083
+ //并发上传数,默认3
3084
+ simultaneousUploads: {
3085
+ type: Number,
3086
+ default: 3
3087
+ },
3088
+ //按钮文字
3089
+ text: {
3090
+ type: String,
3091
+ default: "点击上传"
3092
+ },
3093
+ //input accept属性
3094
+ accept: {
3095
+ type: String,
3096
+ default: "*/*"
3097
+ },
3098
+ singleFile: {
3099
+ type: Boolean,
3100
+ default: !1
3101
+ },
3102
+ allowDuplicateUploads: {
3103
+ type: Boolean,
3104
+ default: !0
3105
+ },
3106
+ autoStart: {
3107
+ type: Boolean,
3108
+ default: !0
3109
+ },
3110
+ singleMode: {
3111
+ type: Boolean,
3112
+ default: !1
3113
+ },
3114
+ axios: {
3115
+ type: Function
3116
+ }
3117
+ }
3118
+ };
3119
+ function Nt(n, d, f, l, p, i) {
3120
+ const C = N("UploadFile");
3121
+ return y(), V(C, {
3122
+ options: l.options,
3123
+ onFileAdded: l.fileAdded,
3124
+ onFilesAdded: l.filesAdded,
3125
+ onFileSuccess: l.onFileSuccess,
3126
+ onFileError: l.onFileError,
3127
+ onFileRemoved: l.onFileRemoved,
3128
+ text: f.text,
3129
+ accept: f.accept,
3130
+ singleFile: f.singleFile,
3131
+ autoStart: f.autoStart,
3132
+ ref: "listRef"
3133
+ }, null, 8, ["options", "onFileAdded", "onFilesAdded", "onFileSuccess", "onFileError", "onFileRemoved", "text", "accept", "singleFile", "autoStart"]);
3134
+ }
3135
+ const ve = /* @__PURE__ */ _e(Lt, [["render", Nt], ["__scopeId", "data-v-4c88dd30"]]);
3136
+ ve.install = function(n) {
3137
+ n.component(ve.name, ve);
3138
+ };
3139
+ var he = {}, Ve;
3140
+ function Yt() {
3141
+ return Ve || (Ve = 1, Object.defineProperty(he, "__esModule", {
3142
+ value: !0
3143
+ }), he.default = void 0, he.default = {
3144
+ vxe: {
3145
+ base: {
3146
+ pleaseInput: "请输入",
3147
+ pleaseSelect: "请选择",
3148
+ comma: ",",
3149
+ fullStop: "。"
3150
+ },
3151
+ loading: {
3152
+ text: "加载中..."
3153
+ },
3154
+ error: {
3155
+ downErr: "下载失败",
3156
+ errLargeData: "当绑定的数据量过大时,应该请使用 {0},否则可能会出现卡顿",
3157
+ groupFixed: "如果使用分组表头,冻结列必须按组设置",
3158
+ groupMouseRange: '分组表头与 "{0}" 不能同时使用,这可能会出现错误',
3159
+ groupTag: '分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',
3160
+ scrollErrProp: '启用虚拟滚动后不支持该参数 "{0}"',
3161
+ errConflicts: '参数 "{0}" 与 "{1}" 有冲突',
3162
+ modelConflicts: '绑定的字段值 "{0}" 与 "{1}" 存在冲突,将会出现错误',
3163
+ notSupportProp: '当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',
3164
+ reqSupportProp: '当使用 "{0}" 时,应该设置 "{1}",否则可能会出现错误',
3165
+ notConflictProp: '当使用 "{0}" 时,应该设置 "{1}",否则可能会存在功能冲突',
3166
+ unableInsert: "无法插入到指定位置,请检查参数是否正确",
3167
+ useErr: '安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',
3168
+ barUnableLink: "工具栏无法关联表格",
3169
+ expandContent: '展开行的插槽应该是 "content",请检查是否正确',
3170
+ reqComp: '缺少 "{0}" 组件,请检查是否正确安装。 https://vxeui.com/#/start/useGlobal',
3171
+ reqModule: '缺少 "{0}" 模块',
3172
+ reqProp: '缺少必要的 "{0}" 参数,这可能会导致出现错误',
3173
+ emptyProp: '参数 "{0}" 不允许为空',
3174
+ errProp: '不支持的参数 "{0}",可能为 "{1}"',
3175
+ colRepet: 'column.{0}="{1}" 重复了,这可能会导致某些功能无法使用',
3176
+ notFunc: '方法 "{0}" 不存在',
3177
+ errFunc: '参数 "{0}" 不是一个方法',
3178
+ notValidators: '全局校验 "{0}" 不存在',
3179
+ notFormats: '全局格式化 "{0}" 不存在',
3180
+ notCommands: '全局指令 "{0}" 不存在',
3181
+ notSlot: '插槽 "{0}" 不存在',
3182
+ noTree: '树结构不支持 "{0}"',
3183
+ noGroup: '数据分组后不支持 "{0}"',
3184
+ notProp: '不支持的参数 "{0}"',
3185
+ checkProp: '当数据量过大时可能会导致复选框卡顿,建议设置参数 "{0}" 提升渲染速度',
3186
+ coverProp: '"{0}" 的参数 "{1}" 重复定义,这可能会出现错误',
3187
+ uniField: '字段名 "{0}" 重复定义,这可能会出现错误',
3188
+ repeatKey: '主键重复 {0}="{1}",这可能会出现错误',
3189
+ repeatProp: '参数重复 {0}="{1}",这可能会出现错误',
3190
+ delFunc: '方法 "{0}" 已废弃,请使用 "{1}"',
3191
+ delProp: '参数 "{0}" 已废弃,请使用 "{1}"',
3192
+ delEvent: '事件 "{0}" 已废弃,请使用 "{1}"',
3193
+ removeProp: '参数 "{0}" 已废弃,不建议使用,这可能会导致出现错误',
3194
+ errFormat: '全局的格式化内容应该使用 "VXETable.formats" 定义,挂载 "formatter={0}" 的方式已不建议使用',
3195
+ notType: '不支持的文件类型 "{0}"',
3196
+ notExp: "该浏览器不支持导入/导出功能",
3197
+ impFields: "导入失败,请检查字段名和数据格式是否正确",
3198
+ treeNotImp: "树表格不支持导入",
3199
+ treeCrossDrag: "只能拖拽第一层级",
3200
+ treeDragChild: "父级不能拖拽到自己的子级中",
3201
+ reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install',
3202
+ errMaxRow: "超过支持的最大数据量 {0} 行,这可能会导致出现错误",
3203
+ useNew: "不建议使用 {0},请使用 {1}",
3204
+ errorVersion: "版本不匹配,当前版本 {0},最低支持版本为 {1}"
3205
+ },
3206
+ table: {
3207
+ emptyText: "暂无数据",
3208
+ allTitle: "全选/取消",
3209
+ seqTitle: "序号",
3210
+ actionTitle: "操作",
3211
+ confirmFilter: "筛选",
3212
+ resetFilter: "重置",
3213
+ allFilter: "全部",
3214
+ sortAsc: "升序:最低到最高",
3215
+ sortDesc: "降序:最高到最低",
3216
+ filter: "对所选的列启用筛选",
3217
+ impSuccess: "成功导入 {0} 条记录",
3218
+ expLoading: "正在导出中",
3219
+ expSuccess: "导出成功",
3220
+ expError: "导出失败",
3221
+ expFilename: "导出_{0}",
3222
+ expOriginFilename: "导出_源_{0}",
3223
+ customTitle: "列设置",
3224
+ customAll: "全部",
3225
+ customConfirm: "确认",
3226
+ customClose: "关闭",
3227
+ customCancel: "取消",
3228
+ customRestore: "恢复默认",
3229
+ maxFixedCol: "最大冻结列的数量不能超过 {0} 个",
3230
+ maxGroupCol: "最大分组字段的数量不能超过 {0} 个",
3231
+ dragTip: "移动:{0}",
3232
+ resizeColTip: "宽:{0} 像素",
3233
+ resizeRowTip: "高:{0} 像素",
3234
+ rowGroupContentTotal: "{0}({1})",
3235
+ menuLoading: "加载中..."
3236
+ },
3237
+ grid: {
3238
+ selectOneRecord: "请至少选择一条记录!",
3239
+ deleteSelectRecord: "您确定要删除所选记录吗?",
3240
+ removeSelectRecord: "您确定要移除所选记录吗?",
3241
+ dataUnchanged: "数据未改动!",
3242
+ delSuccess: "成功删除所选记录!",
3243
+ saveSuccess: "保存成功!",
3244
+ operError: "发生错误,操作失败!"
3245
+ },
3246
+ select: {
3247
+ clear: "清除",
3248
+ allChecked: "全选",
3249
+ total: "{0} / {1}",
3250
+ search: "搜索",
3251
+ loadingText: "加载中",
3252
+ emptyText: "暂无数据",
3253
+ maxSize: "最大可选择的数量不能超过 {0} 个",
3254
+ overSizeErr: "已超出最大可选数量 {0} 个,超出部分将被忽略!",
3255
+ searchEmpty: "未匹配到数据!"
3256
+ },
3257
+ tree: {
3258
+ searchEmpty: "未匹配到数据!",
3259
+ dragTip: "移动:{0}"
3260
+ },
3261
+ treeSelect: {
3262
+ clearChecked: "清除",
3263
+ allChecked: "全选",
3264
+ allExpand: "全部展开",
3265
+ clearExpand: "全部收起",
3266
+ total: "已选 {0}",
3267
+ search: "搜索",
3268
+ emptyText: "暂无数据"
3269
+ },
3270
+ pager: {
3271
+ goto: "前往",
3272
+ gotoTitle: "页数",
3273
+ pagesize: "{0}条/页",
3274
+ total: "共 {0} 条记录",
3275
+ pageClassifier: "页",
3276
+ homePage: "首页",
3277
+ homePageTitle: "首页",
3278
+ prevPage: "上一页",
3279
+ prevPageTitle: "上一页",
3280
+ nextPage: "下一页",
3281
+ nextPageTitle: "下一页",
3282
+ prevJump: "向上跳页",
3283
+ prevJumpTitle: "向上跳页",
3284
+ nextJump: "向下跳页",
3285
+ nextJumpTitle: "向下跳页",
3286
+ endPage: "末页",
3287
+ endPageTitle: "末页"
3288
+ },
3289
+ alert: {
3290
+ title: "系统提示"
3291
+ },
3292
+ button: {
3293
+ confirm: "确认",
3294
+ cancel: "取消",
3295
+ clear: "清除"
3296
+ },
3297
+ filter: {
3298
+ search: "搜索"
3299
+ },
3300
+ custom: {
3301
+ cstmTitle: "列设置",
3302
+ cstmRestore: "恢复默认",
3303
+ cstmCancel: "取消",
3304
+ cstmConfirm: "确定",
3305
+ cstmConfirmRestore: "请确认是否恢复成默认列配置?",
3306
+ cstmDragTarget: "移动:{0}",
3307
+ setting: {
3308
+ colSort: "排序",
3309
+ sortHelpTip: "点击并拖动图标可以调整顺序",
3310
+ colTitle: "列标题",
3311
+ colResizable: "列宽(像素)",
3312
+ colVisible: "是否显示",
3313
+ colFixed: "冻结列",
3314
+ colFixedMax: "冻结列(最多 {0} 列)",
3315
+ fixedLeft: "左侧",
3316
+ fixedUnset: "不设置",
3317
+ fixedRight: "右侧"
3318
+ }
3319
+ },
3320
+ import: {
3321
+ modes: {
3322
+ covering: "覆盖方式(直接覆盖表格数据)",
3323
+ insert: "底部追加(在表格的底部追加新数据)",
3324
+ insertTop: "顶部追加(在表格的顶部追加新数据)",
3325
+ insertBottom: "底部追加(在表格的底部追加新数据)"
3326
+ },
3327
+ impTitle: "导入数据",
3328
+ impFile: "文件名",
3329
+ impSelect: "选择文件",
3330
+ impType: "文件类型",
3331
+ impOpts: "参数设置",
3332
+ impMode: "导入模式",
3333
+ impConfirm: "导入",
3334
+ impCancel: "取消"
3335
+ },
3336
+ export: {
3337
+ types: {
3338
+ csv: "CSV (逗号分隔)(*.csv)",
3339
+ html: "网页(*.html)",
3340
+ xml: "XML 数据(*.xml)",
3341
+ txt: "文本文件(制表符分隔)(*.txt)",
3342
+ xls: "Excel 97-2003 工作簿(*.xls)",
3343
+ xlsx: "Excel 工作簿(*.xlsx)",
3344
+ pdf: "PDF (*.pdf)"
3345
+ },
3346
+ modes: {
3347
+ empty: "空数据",
3348
+ current: "当前数据(当前页的数据)",
3349
+ selected: "选中数据(当前页选中的数据)",
3350
+ all: "全量数据(包括所有分页的数据)"
3351
+ },
3352
+ printTitle: "打印数据",
3353
+ expTitle: "导出数据",
3354
+ expName: "文件名",
3355
+ expNamePlaceholder: "请输入文件名",
3356
+ expSheetName: "标题",
3357
+ expSheetNamePlaceholder: "请输入标题",
3358
+ expType: "保存类型",
3359
+ expMode: "选择数据",
3360
+ expCurrentColumn: "全部字段",
3361
+ expColumn: "选择字段",
3362
+ expOpts: "参数设置",
3363
+ expOptHeader: "表头",
3364
+ expHeaderTitle: "是否需要表头",
3365
+ expOptFooter: "表尾",
3366
+ expFooterTitle: "是否需要表尾",
3367
+ expOptColgroup: "分组表头",
3368
+ expOptTitle: "列标题",
3369
+ expTitleTitle: "是否为列标题,否则显示为列的字段名",
3370
+ expColgroupTitle: "如果存在,则支持带有分组结构的表头",
3371
+ expOptMerge: "合并",
3372
+ expMergeTitle: "如果存在,则支持带有合并结构的单元格",
3373
+ expOptAllExpand: "展开树",
3374
+ expAllExpandTitle: "如果存在,则支持将带有层级结构的数据全部展开",
3375
+ expOptUseStyle: "样式",
3376
+ expUseStyleTitle: "如果存在,则支持带样式的单元格",
3377
+ expOptOriginal: "源数据",
3378
+ expOriginalTitle: "如果为源数据,则支持导入到表格中",
3379
+ expPrint: "打印",
3380
+ expConfirm: "导出",
3381
+ expCancel: "取消"
3382
+ },
3383
+ modal: {
3384
+ errTitle: "错误提示",
3385
+ zoomMin: "最小化",
3386
+ zoomIn: "最大化",
3387
+ zoomOut: "还原",
3388
+ close: "关闭",
3389
+ miniMaxSize: "最小化窗口的数量不能超过 {0} 个",
3390
+ footPropErr: "show-footer 仅用于启用表尾,需配合 show-confirm-button | show-cancel-button | 插槽使用"
3391
+ },
3392
+ drawer: {
3393
+ close: "关闭"
3394
+ },
3395
+ form: {
3396
+ folding: "收起",
3397
+ unfolding: "展开"
3398
+ },
3399
+ toolbar: {
3400
+ import: "导入",
3401
+ export: "导出",
3402
+ print: "打印",
3403
+ refresh: "刷新",
3404
+ zoomIn: "全屏",
3405
+ zoomOut: "还原",
3406
+ custom: "列设置",
3407
+ customAll: "全部",
3408
+ customConfirm: "确认",
3409
+ customRestore: "重置",
3410
+ fixedLeft: "冻结在左侧",
3411
+ fixedRight: "冻结在右侧",
3412
+ cancelFixed: "取消冻结列"
3413
+ },
3414
+ datePicker: {
3415
+ yearTitle: "{0} 年"
3416
+ },
3417
+ dateRangePicker: {
3418
+ pleaseRange: "请选择开始日期与结束日期"
3419
+ },
3420
+ input: {
3421
+ date: {
3422
+ m1: "01 月",
3423
+ m2: "02 月",
3424
+ m3: "03 月",
3425
+ m4: "04 月",
3426
+ m5: "05 月",
3427
+ m6: "06 月",
3428
+ m7: "07 月",
3429
+ m8: "08 月",
3430
+ m9: "09 月",
3431
+ m10: "10 月",
3432
+ m11: "11 月",
3433
+ m12: "12 月",
3434
+ quarterLabel: "{0} 年",
3435
+ monthLabel: "{0} 年",
3436
+ dayLabel: "{0} 年 {1}",
3437
+ labelFormat: {
3438
+ date: "yyyy-MM-dd",
3439
+ time: "HH:mm:ss",
3440
+ datetime: "yyyy-MM-dd HH:mm:ss",
3441
+ week: "yyyy 年第 WW 周",
3442
+ month: "yyyy-MM",
3443
+ quarter: "yyyy 年第 q 季度",
3444
+ year: "yyyy"
3445
+ },
3446
+ weeks: {
3447
+ w: "",
3448
+ w0: "周日",
3449
+ w1: "周一",
3450
+ w2: "周二",
3451
+ w3: "周三",
3452
+ w4: "周四",
3453
+ w5: "周五",
3454
+ w6: "周六"
3455
+ },
3456
+ months: {
3457
+ m0: "一月",
3458
+ m1: "二月",
3459
+ m2: "三月",
3460
+ m3: "四月",
3461
+ m4: "五月",
3462
+ m5: "六月",
3463
+ m6: "七月",
3464
+ m7: "八月",
3465
+ m8: "九月",
3466
+ m9: "十月",
3467
+ m10: "十一月",
3468
+ m11: "十二月"
3469
+ },
3470
+ quarters: {
3471
+ q1: "第一季度",
3472
+ q2: "第二季度",
3473
+ q3: "第三季度",
3474
+ q4: "第四季度"
3475
+ }
3476
+ }
3477
+ },
3478
+ numberInput: {
3479
+ currencySymbol: "¥"
3480
+ },
3481
+ imagePreview: {
3482
+ popupTitle: "预览",
3483
+ operBtn: {
3484
+ zoomOut: "缩小",
3485
+ zoomIn: "放大",
3486
+ pctFull: "等比例缩放",
3487
+ pct11: "显示原始尺寸",
3488
+ rotateLeft: "向左旋转",
3489
+ rotateRight: "向右旋转",
3490
+ print: "点击打印图片",
3491
+ download: "点击下载图片"
3492
+ }
3493
+ },
3494
+ upload: {
3495
+ fileBtnText: "点击或拖拽上传",
3496
+ imgBtnText: "点击或拖拽上传",
3497
+ dragPlaceholder: "请把文件拖放到这个区域即可上传",
3498
+ imgSizeHint: "单张{0}",
3499
+ imgCountHint: "最多{0}张",
3500
+ fileTypeHint: "支持 {0} 文件类型",
3501
+ fileSizeHint: "单个文件大小不超过{0}",
3502
+ fileCountHint: "最多可上传{0}个文件",
3503
+ uploadTypeErr: "文件类型不匹配!",
3504
+ overCountErr: "最多只能选择{0}个文件!",
3505
+ overCountExtraErr: "已超出最大数量{0}个,超出的{1}个文件将被忽略!",
3506
+ overSizeErr: "文件大小最大不能超过{0}!",
3507
+ manualUpload: "点击上传",
3508
+ reUpload: "重新上传",
3509
+ uploadProgress: "上传中 {0}%",
3510
+ uploadErr: "上传失败",
3511
+ uploadSuccess: "上传成功",
3512
+ moreBtnText: "更多({0})",
3513
+ viewItemTitle: "点击查看",
3514
+ morePopup: {
3515
+ readTitle: "查看列表",
3516
+ imageTitle: "上传图片",
3517
+ fileTitle: "上传文件"
3518
+ }
3519
+ },
3520
+ empty: {
3521
+ defText: "暂无数据"
3522
+ },
3523
+ colorPicker: {
3524
+ clear: "清除",
3525
+ confirm: "确认",
3526
+ copySuccess: "已复制到剪贴板:{0}",
3527
+ hex: "十六进制"
3528
+ },
3529
+ formDesign: {
3530
+ formName: "表单名称",
3531
+ defFormTitle: "未命名的表单",
3532
+ widgetPropTab: "控件属性",
3533
+ widgetFormTab: "表单属性",
3534
+ error: {
3535
+ wdFormUni: "该类型的控件在表单中只允许添加一个",
3536
+ wdSubUni: "该类型的控件在子表中只允许添加一个"
3537
+ },
3538
+ styleSetting: {
3539
+ btn: "样式设置",
3540
+ title: "表单的样式设置",
3541
+ layoutTitle: "控件布局",
3542
+ verticalLayout: "上下布局",
3543
+ horizontalLayout: "横向布局",
3544
+ styleTitle: "标题样式",
3545
+ boldTitle: "标题加粗",
3546
+ fontBold: "加粗",
3547
+ fontNormal: "常规",
3548
+ colonTitle: "显示冒号",
3549
+ colonVisible: "显示",
3550
+ colonHidden: "隐藏",
3551
+ alignTitle: "对齐方式",
3552
+ widthTitle: "标题宽度",
3553
+ alignLeft: "居左",
3554
+ alignRight: "居右",
3555
+ unitPx: "像素",
3556
+ unitPct: "百分比"
3557
+ },
3558
+ widget: {
3559
+ group: {
3560
+ base: "基础控件",
3561
+ layout: "布局控件",
3562
+ system: "系统控件",
3563
+ module: "模块控件",
3564
+ chart: "图表控件",
3565
+ advanced: "高级控件"
3566
+ },
3567
+ copyTitle: "副本_{0}",
3568
+ component: {
3569
+ input: "输入框",
3570
+ textarea: "文本域",
3571
+ select: "下拉选择",
3572
+ row: "一行多列",
3573
+ title: "标题",
3574
+ text: "文本",
3575
+ subtable: "子表",
3576
+ VxeSwitch: "是/否",
3577
+ VxeInput: "输入框",
3578
+ VxeNumberInput: "数字",
3579
+ VxeDatePicker: "日期",
3580
+ VxeTextarea: "文本域",
3581
+ VxeSelect: "下拉选择",
3582
+ VxeTreeSelect: "树形选择",
3583
+ VxeRadioGroup: "单选框",
3584
+ VxeCheckboxGroup: "复选框",
3585
+ VxeUploadFile: "文件",
3586
+ VxeUploadImage: "图片",
3587
+ VxeRate: "评分",
3588
+ VxeSlider: "滑块"
3589
+ }
3590
+ },
3591
+ widgetProp: {
3592
+ name: "控件名称",
3593
+ placeholder: "提示语",
3594
+ required: "必填校验",
3595
+ multiple: "允许多选",
3596
+ displaySetting: {
3597
+ name: "显示设置",
3598
+ pc: "电脑端",
3599
+ mobile: "手机端",
3600
+ visible: "显示",
3601
+ hidden: "隐藏"
3602
+ },
3603
+ dataSource: {
3604
+ name: "数据源",
3605
+ defValue: "选项{0}",
3606
+ addOption: "添加选项",
3607
+ batchEditOption: "批量编辑",
3608
+ batchEditTip: "每行对应一个选项,支持从表格、Excel、WPS 中直接复制粘贴。",
3609
+ batchEditSubTip: "每行对应一个选项,如果是分组,子项可以是空格或制表键开头,支持从表格、Excel、WPS 中直接复制粘贴。",
3610
+ buildOption: "生成选项"
3611
+ },
3612
+ rowProp: {
3613
+ colSize: "列数",
3614
+ col2: "两列",
3615
+ col3: "三列",
3616
+ col4: "四列",
3617
+ col6: "六列",
3618
+ layout: "布局"
3619
+ },
3620
+ textProp: {
3621
+ name: "内容",
3622
+ alignTitle: "对齐方式",
3623
+ alignLeft: "居左",
3624
+ alignCenter: "居中",
3625
+ alignRight: "居右",
3626
+ colorTitle: "字体颜色",
3627
+ sizeTitle: "字体大小",
3628
+ boldTitle: "字体加粗",
3629
+ fontNormal: "常规",
3630
+ fontBold: "加粗"
3631
+ },
3632
+ subtableProp: {
3633
+ seqTitle: "序号",
3634
+ showSeq: "显示序号",
3635
+ showCheckbox: "允许多选",
3636
+ errSubDrag: "子表不支持该控件,请使用其他控件",
3637
+ colPlace: "将控件拖拽进来"
3638
+ },
3639
+ uploadProp: {
3640
+ limitFileCount: "文件数量限制",
3641
+ limitFileSize: "文件大小限制",
3642
+ multiFile: "允许上传多个文件",
3643
+ limitImgCount: "图片数量限制",
3644
+ limitImgSize: "图片大小限制",
3645
+ multiImg: "允许上传多张图片"
3646
+ }
3647
+ }
3648
+ },
3649
+ listDesign: {
3650
+ fieldSettingTab: "字段设置",
3651
+ listSettingTab: "参数设置",
3652
+ searchTitle: "查询条件",
3653
+ listTitle: "列表字段",
3654
+ searchField: "查询字段",
3655
+ listField: "列表字段",
3656
+ activeBtn: {
3657
+ ActionButtonUpdate: "编辑",
3658
+ ActionButtonDelete: "删除"
3659
+ },
3660
+ search: {
3661
+ addBtn: "编辑",
3662
+ emptyText: "未配置查询条件",
3663
+ editPopupTitle: "编辑查询字段"
3664
+ },
3665
+ searchPopup: {
3666
+ colTitle: "标题",
3667
+ saveBtn: "保存"
3668
+ }
3669
+ },
3670
+ text: {
3671
+ copySuccess: "已复制到剪贴板",
3672
+ copyError: "当前环境不支持该操作"
3673
+ },
3674
+ countdown: {
3675
+ formats: {
3676
+ yyyy: "年",
3677
+ MM: "月",
3678
+ dd: "天",
3679
+ HH: "时",
3680
+ mm: "分",
3681
+ ss: "秒"
3682
+ }
3683
+ },
3684
+ gantt: {
3685
+ tFullFormat: {
3686
+ year: "{yyyy}年",
3687
+ quarter: "{yyyy}年第{q}季度",
3688
+ month: "{yyyy}年{MM}月",
3689
+ week: "{yyyy}年第{W}周",
3690
+ day: "{yyyy}年{MM}月 {E}",
3691
+ date: "{yyyy}年{MM}月{dd}日",
3692
+ hour: "{yyyy}年{MM}月{dd}日{HH}时",
3693
+ minute: "{yyyy}年{MM}月{dd}日{HH}时{mm}分",
3694
+ second: "{yyyy}年{MM}月{dd}日{HH}时{mm}分{ss}秒"
3695
+ },
3696
+ tSimpleFormat: {
3697
+ year: "{yyyy}年",
3698
+ quarter: "{q}季度",
3699
+ month: "{M}月",
3700
+ week: "{W}周",
3701
+ day: "{d}",
3702
+ date: "{d}",
3703
+ hour: "{HH}",
3704
+ minute: "{mm}",
3705
+ second: "{ss}"
3706
+ },
3707
+ dayss: {
3708
+ w0: "日",
3709
+ w1: "一",
3710
+ w2: "二",
3711
+ w3: "三",
3712
+ w4: "四",
3713
+ w5: "五",
3714
+ w6: "六"
3715
+ }
3716
+ },
3717
+ plugins: {
3718
+ extendCellArea: {
3719
+ area: {
3720
+ mergeErr: "无法对合并单元格进行该操作",
3721
+ multiErr: "无法对多重选择区域进行该操作",
3722
+ selectErr: "无法操作指定区域的单元格",
3723
+ extendErr: "如果延伸的区域包含被合并的单元格,所有合并的单元格需大小相同",
3724
+ pasteMultiErr: "无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作",
3725
+ cpInvalidErr: "该操作无法进行,您选择的区域中存在被禁止的列({0})"
3726
+ },
3727
+ fnr: {
3728
+ title: "查找和替换",
3729
+ findLabel: "查找",
3730
+ replaceLabel: "替换",
3731
+ findTitle: "查找内容:",
3732
+ replaceTitle: "替换为:",
3733
+ tabs: {
3734
+ find: "查找",
3735
+ replace: "替换"
3736
+ },
3737
+ filter: {
3738
+ re: "正则表达式",
3739
+ whole: "全词匹配",
3740
+ sensitive: "区分大小写"
3741
+ },
3742
+ btns: {
3743
+ findNext: "查找下一个",
3744
+ findAll: "查找全部",
3745
+ replace: "替换",
3746
+ replaceAll: "替换全部",
3747
+ cancel: "取消"
3748
+ },
3749
+ header: {
3750
+ seq: "#",
3751
+ cell: "单元格",
3752
+ value: "值"
3753
+ },
3754
+ body: {
3755
+ row: "行:{0}",
3756
+ col: "列:{0}"
3757
+ },
3758
+ empty: "(空值)",
3759
+ reError: "无效的正则表达式",
3760
+ recordCount: "已找到 {0} 个单元格",
3761
+ notCell: "找不到匹配的单元格",
3762
+ replaceSuccess: "成功替换 {0} 个单元格"
3763
+ }
3764
+ },
3765
+ extendPivotTable: {
3766
+ aggregation: {
3767
+ grouping: "分组",
3768
+ values: "值",
3769
+ groupPlaceholder: "拖至此处进行分组",
3770
+ valuesPlaceholder: "拖至此处进行聚合",
3771
+ dragExistCol: "该列已存在",
3772
+ sortHelpTip: "点击并拖动图标可以调整顺序"
3773
+ },
3774
+ aggFuncs: {
3775
+ sum: "求和",
3776
+ count: "计数",
3777
+ avg: "平均值",
3778
+ min: "最小值",
3779
+ max: "最大值",
3780
+ first: "首个值",
3781
+ last: "末尾值"
3782
+ }
3783
+ },
3784
+ filterComplexInput: {
3785
+ menus: {
3786
+ fixedColumn: "冻结列",
3787
+ fixedGroup: "冻结分组",
3788
+ cancelFixed: "取消冻结",
3789
+ fixedLeft: "冻结左侧",
3790
+ fixedRight: "冻结右侧"
3791
+ },
3792
+ cases: {
3793
+ equal: "等于",
3794
+ gt: "大于",
3795
+ lt: "小于",
3796
+ begin: "开头是",
3797
+ endin: "结尾是",
3798
+ include: "包含",
3799
+ isSensitive: "区分大小写"
3800
+ }
3801
+ },
3802
+ filterCombination: {
3803
+ menus: {
3804
+ sort: "排序",
3805
+ clearSort: "清除排序",
3806
+ sortAsc: "升序",
3807
+ sortDesc: "降序",
3808
+ fixedColumn: "冻结列",
3809
+ fixedGroup: "冻结分组",
3810
+ cancelFixed: "取消冻结",
3811
+ fixedLeft: "冻结左侧",
3812
+ fixedRight: "冻结右侧",
3813
+ clearFilter: "清除筛选",
3814
+ textOption: "文本筛选",
3815
+ numberOption: "数值筛选",
3816
+ dateOption: "日期筛选"
3817
+ },
3818
+ popup: {
3819
+ title: "自定义筛选的方式",
3820
+ currColumnTitle: "显示行:",
3821
+ and: "与",
3822
+ or: "或",
3823
+ describeHtml: "可用 ? 代表单个字符<br/>用 * 代表任意多个字符"
3824
+ },
3825
+ cases: {
3826
+ equal: "等于",
3827
+ unequal: "不等于",
3828
+ gt: "大于",
3829
+ ge: "大于或等于",
3830
+ lt: "小于",
3831
+ le: "小于或等于",
3832
+ begin: "开头是",
3833
+ notbegin: "开头不是",
3834
+ endin: "结尾是",
3835
+ notendin: "结尾不是",
3836
+ include: "包含",
3837
+ exclude: "不包含",
3838
+ between: "介于",
3839
+ isAfter: "在以下日期之后",
3840
+ eqAfter: "在以下日期之后或与之相同",
3841
+ isBefore: "在以下日期之前",
3842
+ eqBefore: "在以下日期之前或与之相同",
3843
+ top10: "前10项",
3844
+ aboveAverage: "高于平均值",
3845
+ belowAverage: "低于平均值",
3846
+ before: "之前",
3847
+ after: "之后",
3848
+ tomorrow: "明天",
3849
+ today: "今天",
3850
+ yesterday: "昨天",
3851
+ nextWeek: "下周",
3852
+ thisWeek: "本周",
3853
+ lastWeek: "上周",
3854
+ nextMonth: "下月",
3855
+ thisMonth: "本月",
3856
+ lastMonth: "上月",
3857
+ nextYear: "明年",
3858
+ thisYear: "今年",
3859
+ lastYear: "去年",
3860
+ yearToDate: "本年度截止到现在",
3861
+ custom: "自定义筛选",
3862
+ insensitive: "不区分大小写",
3863
+ isSensitive: "区分大小写"
3864
+ },
3865
+ empty: "(空白)",
3866
+ notData: "无匹配项"
3867
+ }
3868
+ },
3869
+ pro: {
3870
+ area: {
3871
+ mergeErr: "无法对合并单元格进行该操作",
3872
+ multiErr: "无法对多重选择区域进行该操作",
3873
+ extendErr: "如果延伸的区域包含被合并的单元格,所有合并的单元格需大小相同",
3874
+ pasteMultiErr: "无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"
3875
+ },
3876
+ fnr: {
3877
+ title: "查找和替换",
3878
+ findLabel: "查找",
3879
+ replaceLabel: "替换",
3880
+ findTitle: "查找内容:",
3881
+ replaceTitle: "替换为:",
3882
+ tabs: {
3883
+ find: "查找",
3884
+ replace: "替换"
3885
+ },
3886
+ filter: {
3887
+ re: "正则表达式",
3888
+ whole: "全词匹配",
3889
+ sensitive: "区分大小写"
3890
+ },
3891
+ btns: {
3892
+ findNext: "查找下一个",
3893
+ findAll: "查找全部",
3894
+ replace: "替换",
3895
+ replaceAll: "替换全部",
3896
+ cancel: "取消"
3897
+ },
3898
+ header: {
3899
+ seq: "#",
3900
+ cell: "单元格",
3901
+ value: "值"
3902
+ },
3903
+ empty: "(空值)",
3904
+ reError: "无效的正则表达式",
3905
+ recordCount: "已找到 {0} 个单元格",
3906
+ notCell: "找不到匹配的单元格",
3907
+ replaceSuccess: "成功替换 {0} 个单元格"
3908
+ }
3909
+ },
3910
+ renderer: {
3911
+ search: "搜索",
3912
+ cases: {
3913
+ equal: "等于",
3914
+ unequal: "不等于",
3915
+ gt: "大于",
3916
+ ge: "大于或等于",
3917
+ lt: "小于",
3918
+ le: "小于或等于",
3919
+ begin: "开头是",
3920
+ notbegin: "开头不是",
3921
+ endin: "结尾是",
3922
+ notendin: "结尾不是",
3923
+ include: "包含",
3924
+ exclude: "不包含",
3925
+ between: "介于",
3926
+ top10: "前10项",
3927
+ aboveAverage: "高于平均值",
3928
+ belowAverage: "低于平均值",
3929
+ custom: "自定义筛选",
3930
+ insensitive: "不区分大小写",
3931
+ isSensitive: "区分大小写"
3932
+ },
3933
+ combination: {
3934
+ menus: {
3935
+ sort: "排序",
3936
+ clearSort: "清除排序",
3937
+ sortAsc: "升序",
3938
+ sortDesc: "降序",
3939
+ fixedColumn: "冻结列",
3940
+ fixedGroup: "冻结分组",
3941
+ cancelFixed: "取消冻结",
3942
+ fixedLeft: "冻结到左侧",
3943
+ fixedRight: "冻结到右侧",
3944
+ clearFilter: "清除筛选",
3945
+ textOption: "文本筛选",
3946
+ numberOption: "数值筛选",
3947
+ dateOption: "日期筛选"
3948
+ },
3949
+ popup: {
3950
+ title: "自定义筛选的方式",
3951
+ currColumnTitle: "显示行:",
3952
+ and: "与",
3953
+ or: "或",
3954
+ describeHtml: "可用 ? 代表单个字符<br/>用 * 代表任意多个字符"
3955
+ },
3956
+ empty: "(空白)",
3957
+ notData: "无匹配项"
3958
+ }
3959
+ }
3960
+ }
3961
+ }), he;
3962
+ }
3963
+ Yt();
3964
+ const Kt = [ye, ve], Ht = (n) => {
3965
+ Kt.forEach((d) => {
3966
+ n.component(d.name || d.__name, d);
3967
+ });
3968
+ }, Gt = {
3969
+ install: Ht
3970
+ };
1556
3971
  export {
1557
- ll as default
3972
+ Gt as default
1558
3973
  };