@es-plus/vue2 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -3
- package/dist/es-plus-vue2.js +2704 -1284
- package/dist/es-plus-vue2.js.map +1 -1
- package/dist/es-plus-vue2.umd.cjs +3 -1
- package/dist/es-plus-vue2.umd.cjs.map +1 -1
- package/package.json +6 -1
package/dist/es-plus-vue2.js
CHANGED
|
@@ -1,45 +1,1465 @@
|
|
|
1
|
-
import { getNestedValue as
|
|
2
|
-
import { configureEsPlus as
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { getNestedValue as te, setNestedValue as Y, resolveFormLayProps as ut, getRowColsAlgorithm as ro, configFormField as io, formatConfigOut as ao, getEveryFormQueryField as so, queryTableListMethod as lo, getGlobalConfig as Pe, getButtonPosition as en, createSelectionState as co, restoreSelectionForPage as uo, clearAllSelection as fo, applySelectionChange as po, isObject as ke, findValueByKey as vo, configureEsPlus as go } from "@es-plus/core";
|
|
2
|
+
import { configureEsPlus as Ui } from "@es-plus/core";
|
|
3
|
+
import * as mo from "vue";
|
|
4
|
+
import mn from "vue";
|
|
5
|
+
import { MessageBox as tn } from "element-ui";
|
|
6
|
+
var Nt = function(t, e) {
|
|
7
|
+
return Nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(o, n) {
|
|
8
|
+
o.__proto__ = n;
|
|
9
|
+
} || function(o, n) {
|
|
10
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (o[r] = n[r]);
|
|
11
|
+
}, Nt(t, e);
|
|
12
|
+
};
|
|
13
|
+
function yo(t, e) {
|
|
14
|
+
if (typeof e != "function" && e !== null)
|
|
15
|
+
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
16
|
+
Nt(t, e);
|
|
17
|
+
function o() {
|
|
18
|
+
this.constructor = t;
|
|
19
|
+
}
|
|
20
|
+
t.prototype = e === null ? Object.create(e) : (o.prototype = e.prototype, new o());
|
|
21
|
+
}
|
|
22
|
+
var Fe = function() {
|
|
23
|
+
return Fe = Object.assign || function(e) {
|
|
24
|
+
for (var o, n = 1, r = arguments.length; n < r; n++) {
|
|
25
|
+
o = arguments[n];
|
|
26
|
+
for (var a in o) Object.prototype.hasOwnProperty.call(o, a) && (e[a] = o[a]);
|
|
27
|
+
}
|
|
28
|
+
return e;
|
|
29
|
+
}, Fe.apply(this, arguments);
|
|
30
|
+
};
|
|
31
|
+
function et(t) {
|
|
32
|
+
var e = typeof Symbol == "function" && Symbol.iterator, o = e && t[e], n = 0;
|
|
33
|
+
if (o) return o.call(t);
|
|
34
|
+
if (t && typeof t.length == "number") return {
|
|
35
|
+
next: function() {
|
|
36
|
+
return t && n >= t.length && (t = void 0), { value: t && t[n++], done: !t };
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
40
|
+
}
|
|
41
|
+
function yn(t, e) {
|
|
42
|
+
var o = typeof Symbol == "function" && t[Symbol.iterator];
|
|
43
|
+
if (!o) return t;
|
|
44
|
+
var n = o.call(t), r, a = [], i;
|
|
45
|
+
try {
|
|
46
|
+
for (; (e === void 0 || e-- > 0) && !(r = n.next()).done; ) a.push(r.value);
|
|
47
|
+
} catch (l) {
|
|
48
|
+
i = { error: l };
|
|
49
|
+
} finally {
|
|
50
|
+
try {
|
|
51
|
+
r && !r.done && (o = n.return) && o.call(n);
|
|
52
|
+
} finally {
|
|
53
|
+
if (i) throw i.error;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return a;
|
|
57
|
+
}
|
|
58
|
+
function hn(t, e, o) {
|
|
59
|
+
if (arguments.length === 2) for (var n = 0, r = e.length, a; n < r; n++)
|
|
60
|
+
(a || !(n in e)) && (a || (a = Array.prototype.slice.call(e, 0, n)), a[n] = e[n]);
|
|
61
|
+
return t.concat(a || Array.prototype.slice.call(e));
|
|
62
|
+
}
|
|
63
|
+
function Ht(t) {
|
|
64
|
+
var e;
|
|
65
|
+
D(t, (e = he()) === null || e === void 0 ? void 0 : e.proxy);
|
|
66
|
+
}
|
|
67
|
+
var je, ft = [], bn = (
|
|
68
|
+
/** @class */
|
|
69
|
+
function() {
|
|
70
|
+
function t(e) {
|
|
71
|
+
this.active = !0, this.effects = [], this.cleanups = [], this.vm = e;
|
|
72
|
+
}
|
|
73
|
+
return t.prototype.run = function(e) {
|
|
74
|
+
if (this.active)
|
|
75
|
+
try {
|
|
76
|
+
return this.on(), e();
|
|
77
|
+
} finally {
|
|
78
|
+
this.off();
|
|
79
|
+
}
|
|
80
|
+
else process.env.NODE_ENV !== "production" && Ht("cannot run an inactive effect scope.");
|
|
81
|
+
}, t.prototype.on = function() {
|
|
82
|
+
this.active && (ft.push(this), je = this);
|
|
83
|
+
}, t.prototype.off = function() {
|
|
84
|
+
this.active && (ft.pop(), je = ft[ft.length - 1]);
|
|
85
|
+
}, t.prototype.stop = function() {
|
|
86
|
+
this.active && (this.vm.$destroy(), this.effects.forEach(function(e) {
|
|
87
|
+
return e.stop();
|
|
88
|
+
}), this.cleanups.forEach(function(e) {
|
|
89
|
+
return e();
|
|
90
|
+
}), this.active = !1);
|
|
91
|
+
}, t;
|
|
92
|
+
}()
|
|
93
|
+
), _n = (
|
|
94
|
+
/** @class */
|
|
95
|
+
function(t) {
|
|
96
|
+
yo(e, t);
|
|
97
|
+
function e(o) {
|
|
98
|
+
o === void 0 && (o = !1);
|
|
99
|
+
var n = this, r = void 0;
|
|
100
|
+
return wo(function() {
|
|
101
|
+
r = Me(pe());
|
|
102
|
+
}), n = t.call(this, r) || this, o || ho(n), n;
|
|
103
|
+
}
|
|
104
|
+
return e;
|
|
105
|
+
}(bn)
|
|
106
|
+
);
|
|
107
|
+
function ho(t, e) {
|
|
108
|
+
var o;
|
|
109
|
+
if (e = e || je, e && e.active) {
|
|
110
|
+
e.effects.push(t);
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
var n = (o = he()) === null || o === void 0 ? void 0 : o.proxy;
|
|
114
|
+
n && n.$on("hook:destroyed", function() {
|
|
115
|
+
return t.stop();
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
function bo(t) {
|
|
119
|
+
return new _n(t);
|
|
120
|
+
}
|
|
121
|
+
function Sn() {
|
|
122
|
+
return je;
|
|
123
|
+
}
|
|
124
|
+
function _o(t) {
|
|
125
|
+
je ? je.cleanups.push(t) : process.env.NODE_ENV !== "production" && Ht("onScopeDispose() is called when there is no active effect scope to be associated with.");
|
|
126
|
+
}
|
|
127
|
+
function Cn() {
|
|
128
|
+
var t, e;
|
|
129
|
+
return ((t = Sn()) === null || t === void 0 ? void 0 : t.vm) || ((e = he()) === null || e === void 0 ? void 0 : e.proxy);
|
|
130
|
+
}
|
|
131
|
+
function So(t) {
|
|
132
|
+
if (!t.scope) {
|
|
133
|
+
var e = new bn(t.proxy);
|
|
134
|
+
t.scope = e, t.proxy.$on("hook:destroyed", function() {
|
|
135
|
+
return e.stop();
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
return t.scope;
|
|
139
|
+
}
|
|
140
|
+
var Dt = void 0;
|
|
141
|
+
try {
|
|
142
|
+
var Be = require("vue");
|
|
143
|
+
Be && nn(Be) ? Dt = Be : Be && "default" in Be && nn(Be.default) && (Dt = Be.default);
|
|
144
|
+
} catch (t) {
|
|
145
|
+
}
|
|
146
|
+
var $e = null, He = null, pt = !0, On = "__composition_api_installed__";
|
|
147
|
+
function nn(t) {
|
|
148
|
+
return t && oe(t) && t.name === "Vue";
|
|
149
|
+
}
|
|
150
|
+
function Co(t) {
|
|
151
|
+
return $e && fe(t, On);
|
|
152
|
+
}
|
|
153
|
+
function pe() {
|
|
154
|
+
return process.env.NODE_ENV !== "production" && wt($e, "must call Vue.use(VueCompositionAPI) before using any function."), $e;
|
|
155
|
+
}
|
|
156
|
+
function wn() {
|
|
157
|
+
var t = $e || Dt;
|
|
158
|
+
return process.env.NODE_ENV !== "production" && wt(t, "No vue dependency found."), t;
|
|
159
|
+
}
|
|
160
|
+
function Oo(t) {
|
|
161
|
+
process.env.NODE_ENV !== "production" && $e && t.__proto__ !== $e.__proto__ && D("[vue-composition-api] another instance of Vue installed"), $e = t, Object.defineProperty(t, On, {
|
|
162
|
+
configurable: !0,
|
|
163
|
+
writable: !0,
|
|
164
|
+
value: !0
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
function wo(t) {
|
|
168
|
+
var e = pt;
|
|
169
|
+
pt = !1;
|
|
170
|
+
try {
|
|
171
|
+
t();
|
|
172
|
+
} finally {
|
|
173
|
+
pt = e;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
function mt(t) {
|
|
177
|
+
if (pt) {
|
|
178
|
+
var e = He;
|
|
179
|
+
e == null || e.scope.off(), He = t, He == null || He.scope.on();
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
function he() {
|
|
183
|
+
return He;
|
|
184
|
+
}
|
|
185
|
+
var kt = /* @__PURE__ */ new WeakMap();
|
|
186
|
+
function yt(t) {
|
|
187
|
+
if (kt.has(t))
|
|
188
|
+
return kt.get(t);
|
|
189
|
+
var e = {
|
|
190
|
+
proxy: t,
|
|
191
|
+
update: t.$forceUpdate,
|
|
192
|
+
type: t.$options,
|
|
193
|
+
uid: t._uid,
|
|
194
|
+
// $emit is defined on prototype and it expected to be bound
|
|
195
|
+
emit: t.$emit.bind(t),
|
|
196
|
+
parent: null,
|
|
197
|
+
root: null
|
|
198
|
+
// to be immediately set
|
|
199
|
+
};
|
|
200
|
+
So(e);
|
|
201
|
+
var o = [
|
|
202
|
+
"data",
|
|
203
|
+
"props",
|
|
204
|
+
"attrs",
|
|
205
|
+
"refs",
|
|
206
|
+
"vnode",
|
|
207
|
+
"slots"
|
|
208
|
+
];
|
|
209
|
+
return o.forEach(function(n) {
|
|
210
|
+
G(e, n, {
|
|
211
|
+
get: function() {
|
|
212
|
+
return t["$".concat(n)];
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
}), G(e, "isMounted", {
|
|
216
|
+
get: function() {
|
|
217
|
+
return t._isMounted;
|
|
218
|
+
}
|
|
219
|
+
}), G(e, "isUnmounted", {
|
|
220
|
+
get: function() {
|
|
221
|
+
return t._isDestroyed;
|
|
222
|
+
}
|
|
223
|
+
}), G(e, "isDeactivated", {
|
|
224
|
+
get: function() {
|
|
225
|
+
return t._inactive;
|
|
226
|
+
}
|
|
227
|
+
}), G(e, "emitted", {
|
|
228
|
+
get: function() {
|
|
229
|
+
return t._events;
|
|
230
|
+
}
|
|
231
|
+
}), kt.set(t, e), t.$parent && (e.parent = yt(t.$parent)), t.$root && (e.root = yt(t.$root)), e;
|
|
232
|
+
}
|
|
233
|
+
var Eo = function(t) {
|
|
234
|
+
return Object.prototype.toString.call(t);
|
|
235
|
+
};
|
|
236
|
+
function on(t) {
|
|
237
|
+
return typeof t == "function" && /native code/.test(t.toString());
|
|
238
|
+
}
|
|
239
|
+
var En = typeof Symbol != "undefined" && on(Symbol) && typeof Reflect != "undefined" && on(Reflect.ownKeys), _e = function(t) {
|
|
240
|
+
return t;
|
|
241
|
+
};
|
|
242
|
+
function G(t, e, o) {
|
|
243
|
+
var n = o.get, r = o.set;
|
|
244
|
+
Object.defineProperty(t, e, {
|
|
245
|
+
enumerable: !0,
|
|
246
|
+
configurable: !0,
|
|
247
|
+
get: n || _e,
|
|
248
|
+
set: r || _e
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
function Ot(t, e, o, n) {
|
|
252
|
+
Object.defineProperty(t, e, {
|
|
253
|
+
value: o,
|
|
254
|
+
enumerable: !!n,
|
|
255
|
+
writable: !0,
|
|
256
|
+
configurable: !0
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
function fe(t, e) {
|
|
260
|
+
return Object.hasOwnProperty.call(t, e);
|
|
261
|
+
}
|
|
262
|
+
function wt(t, e) {
|
|
263
|
+
if (!t)
|
|
264
|
+
throw new Error("[vue-composition-api] ".concat(e));
|
|
265
|
+
}
|
|
266
|
+
function xn(t) {
|
|
267
|
+
return typeof t == "string" || typeof t == "number" || // $flow-disable-line
|
|
268
|
+
typeof t == "symbol" || typeof t == "boolean";
|
|
269
|
+
}
|
|
270
|
+
function re(t) {
|
|
271
|
+
return Array.isArray(t);
|
|
272
|
+
}
|
|
273
|
+
var xo = Object.prototype.toString, In = function(t) {
|
|
274
|
+
return xo.call(t);
|
|
275
|
+
}, Io = function(t) {
|
|
276
|
+
return In(t) === "[object Map]";
|
|
277
|
+
}, Fo = function(t) {
|
|
278
|
+
return In(t) === "[object Set]";
|
|
279
|
+
}, Ro = 4294967295;
|
|
280
|
+
function Fn(t) {
|
|
281
|
+
var e = parseFloat(String(t));
|
|
282
|
+
return e >= 0 && Math.floor(e) === e && isFinite(t) && e <= Ro;
|
|
283
|
+
}
|
|
284
|
+
function Ee(t) {
|
|
285
|
+
return t !== null && typeof t == "object";
|
|
286
|
+
}
|
|
287
|
+
function de(t) {
|
|
288
|
+
return Eo(t) === "[object Object]";
|
|
289
|
+
}
|
|
290
|
+
function oe(t) {
|
|
291
|
+
return typeof t == "function";
|
|
292
|
+
}
|
|
293
|
+
function Rn(t) {
|
|
294
|
+
return t == null;
|
|
295
|
+
}
|
|
296
|
+
function D(t, e) {
|
|
297
|
+
var o = wn();
|
|
298
|
+
!o || !o.util ? console.warn("[vue-composition-api] ".concat(t)) : o.util.warn(t, e);
|
|
299
|
+
}
|
|
300
|
+
function Bo(t, e, o) {
|
|
301
|
+
if (process.env.NODE_ENV !== "production" && D("Error in ".concat(o, ': "').concat(t.toString(), '"'), e), typeof window != "undefined" && typeof console != "undefined")
|
|
302
|
+
console.error(t);
|
|
303
|
+
else
|
|
304
|
+
throw t;
|
|
305
|
+
}
|
|
306
|
+
function ko(t, e) {
|
|
307
|
+
return t === e ? t !== 0 || 1 / t === 1 / e : t !== t && e !== e;
|
|
308
|
+
}
|
|
309
|
+
function Bn(t, e) {
|
|
310
|
+
return e = e || he(), process.env.NODE_ENV !== "production" && !e && D("".concat(t, " is called when there is no active component instance to be ") + "associated with. Lifecycle injection APIs can only be used during execution of setup()."), e;
|
|
311
|
+
}
|
|
312
|
+
function Me(t, e) {
|
|
313
|
+
e === void 0 && (e = {});
|
|
314
|
+
var o = t.config.silent;
|
|
315
|
+
t.config.silent = !0;
|
|
316
|
+
var n = new t(e);
|
|
317
|
+
return t.config.silent = o, n;
|
|
318
|
+
}
|
|
319
|
+
function $o(t) {
|
|
320
|
+
var e = pe();
|
|
321
|
+
return e && t instanceof e;
|
|
322
|
+
}
|
|
323
|
+
function Po(t, e) {
|
|
324
|
+
return function() {
|
|
325
|
+
for (var o = [], n = 0; n < arguments.length; n++)
|
|
326
|
+
o[n] = arguments[n];
|
|
327
|
+
return t.$scopedSlots[e] ? t.$scopedSlots[e].apply(t, o) : process.env.NODE_ENV !== "production" ? D("slots.".concat(e, '() got called outside of the "render()" scope'), t) : void 0;
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
function No(t, e) {
|
|
331
|
+
var o;
|
|
332
|
+
if (!t)
|
|
333
|
+
o = {};
|
|
334
|
+
else {
|
|
335
|
+
if (t._normalized)
|
|
336
|
+
return t._normalized;
|
|
337
|
+
o = {};
|
|
338
|
+
for (var n in t)
|
|
339
|
+
t[n] && n[0] !== "$" && (o[n] = !0);
|
|
340
|
+
}
|
|
341
|
+
for (var n in e)
|
|
342
|
+
n in o || (o[n] = !0);
|
|
343
|
+
return o;
|
|
344
|
+
}
|
|
345
|
+
var $t, Do = function() {
|
|
346
|
+
if (!$t) {
|
|
347
|
+
var t = Me(pe(), {
|
|
348
|
+
computed: {
|
|
349
|
+
value: function() {
|
|
350
|
+
return 0;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}), e = t._computedWatchers.value.constructor, o = t._data.__ob__.dep.constructor;
|
|
354
|
+
$t = {
|
|
355
|
+
Watcher: e,
|
|
356
|
+
Dep: o
|
|
357
|
+
}, t.$destroy();
|
|
358
|
+
}
|
|
359
|
+
return $t;
|
|
360
|
+
};
|
|
361
|
+
function kn(t) {
|
|
362
|
+
return En ? Symbol.for(t) : t;
|
|
363
|
+
}
|
|
364
|
+
var Ve = kn("composition-api.preFlushQueue"), Je = kn("composition-api.postFlushQueue"), Z = "composition-api.refKey", rn = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap();
|
|
365
|
+
function Pn(t, e, o) {
|
|
366
|
+
var n = pe(), r = n.util, a = r.warn, i = r.defineReactive;
|
|
367
|
+
process.env.NODE_ENV !== "production" && (Rn(t) || xn(t)) && a("Cannot set reactive property on undefined, null, or primitive value: ".concat(t));
|
|
368
|
+
var l = t.__ob__;
|
|
369
|
+
function y() {
|
|
370
|
+
l && Ee(o) && !fe(o, "__ob__") && zt(o);
|
|
371
|
+
}
|
|
372
|
+
if (re(t)) {
|
|
373
|
+
if (Fn(e))
|
|
374
|
+
return t.length = Math.max(t.length, e), t.splice(e, 1, o), y(), o;
|
|
375
|
+
if (e === "length" && o !== t.length)
|
|
376
|
+
return t.length = o, l == null || l.dep.notify(), o;
|
|
377
|
+
}
|
|
378
|
+
return e in t && !(e in Object.prototype) ? (t[e] = o, y(), o) : t._isVue || l && l.vmCount ? (process.env.NODE_ENV !== "production" && a("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."), o) : l ? (i(l.value, e, o), Tn(t, e, o), y(), l.dep.notify(), o) : (t[e] = o, o);
|
|
379
|
+
}
|
|
380
|
+
var Nn = !1;
|
|
381
|
+
function Ao() {
|
|
382
|
+
return Nn;
|
|
383
|
+
}
|
|
384
|
+
function an(t) {
|
|
385
|
+
Nn = t;
|
|
386
|
+
}
|
|
387
|
+
var Lt = (
|
|
388
|
+
/** @class */
|
|
389
|
+
/* @__PURE__ */ function() {
|
|
390
|
+
function t(e) {
|
|
391
|
+
var o = e.get, n = e.set;
|
|
392
|
+
G(this, "value", {
|
|
393
|
+
get: o,
|
|
394
|
+
set: n
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
return t;
|
|
398
|
+
}()
|
|
399
|
+
);
|
|
400
|
+
function qe(t, e, o) {
|
|
401
|
+
e === void 0 && (e = !1), o === void 0 && (o = !1);
|
|
402
|
+
var n = new Lt(t);
|
|
403
|
+
o && (n.effect = !0);
|
|
404
|
+
var r = Object.seal(n);
|
|
405
|
+
return e && Et.set(r, !0), r;
|
|
406
|
+
}
|
|
407
|
+
function ht(t) {
|
|
408
|
+
var e;
|
|
409
|
+
if (V(t))
|
|
410
|
+
return t;
|
|
411
|
+
var o = tt((e = {}, e[Z] = t, e));
|
|
412
|
+
return qe({
|
|
413
|
+
get: function() {
|
|
414
|
+
return o[Z];
|
|
415
|
+
},
|
|
416
|
+
set: function(n) {
|
|
417
|
+
return o[Z] = n;
|
|
418
|
+
}
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
function V(t) {
|
|
422
|
+
return t instanceof Lt;
|
|
423
|
+
}
|
|
424
|
+
function At(t) {
|
|
425
|
+
return V(t) ? t.value : t;
|
|
426
|
+
}
|
|
427
|
+
function Dn(t) {
|
|
428
|
+
if (process.env.NODE_ENV !== "production" && !ue(t) && D("toRefs() expects a reactive object but received a plain one."), !de(t))
|
|
429
|
+
return t;
|
|
430
|
+
var e = {};
|
|
431
|
+
for (var o in t)
|
|
432
|
+
e[o] = An(t, o);
|
|
433
|
+
return e;
|
|
434
|
+
}
|
|
435
|
+
function To(t) {
|
|
436
|
+
var e = ht(0);
|
|
437
|
+
return qe(t(function() {
|
|
438
|
+
return void e.value;
|
|
439
|
+
}, function() {
|
|
440
|
+
++e.value;
|
|
441
|
+
}));
|
|
442
|
+
}
|
|
443
|
+
function An(t, e) {
|
|
444
|
+
e in t || Pn(t, e, void 0);
|
|
445
|
+
var o = t[e];
|
|
446
|
+
return V(o) ? o : qe({
|
|
447
|
+
get: function() {
|
|
448
|
+
return t[e];
|
|
449
|
+
},
|
|
450
|
+
set: function(n) {
|
|
451
|
+
return t[e] = n;
|
|
452
|
+
}
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
function Ho(t) {
|
|
456
|
+
var e;
|
|
457
|
+
if (V(t))
|
|
458
|
+
return t;
|
|
459
|
+
var o = Ln((e = {}, e[Z] = t, e));
|
|
460
|
+
return qe({
|
|
461
|
+
get: function() {
|
|
462
|
+
return o[Z];
|
|
463
|
+
},
|
|
464
|
+
set: function(n) {
|
|
465
|
+
return o[Z] = n;
|
|
466
|
+
}
|
|
467
|
+
});
|
|
468
|
+
}
|
|
469
|
+
function Lo(t) {
|
|
470
|
+
V(t) && (an(!0), t.value = t.value, an(!1));
|
|
471
|
+
}
|
|
472
|
+
function Vo(t) {
|
|
473
|
+
var e, o, n;
|
|
474
|
+
if (ue(t))
|
|
475
|
+
return t;
|
|
476
|
+
var r = tt((e = {}, e[Z] = t, e));
|
|
477
|
+
Ot(r, Z, r[Z], !1);
|
|
478
|
+
var a = function(c) {
|
|
479
|
+
G(r, c, {
|
|
480
|
+
get: function() {
|
|
481
|
+
return V(r[Z][c]) ? r[Z][c].value : r[Z][c];
|
|
482
|
+
},
|
|
483
|
+
set: function(p) {
|
|
484
|
+
if (V(r[Z][c]))
|
|
485
|
+
return r[Z][c].value = At(p);
|
|
486
|
+
r[Z][c] = At(p);
|
|
487
|
+
}
|
|
488
|
+
});
|
|
489
|
+
};
|
|
490
|
+
try {
|
|
491
|
+
for (var i = et(Object.keys(t)), l = i.next(); !l.done; l = i.next()) {
|
|
492
|
+
var y = l.value;
|
|
493
|
+
a(y);
|
|
494
|
+
}
|
|
495
|
+
} catch (c) {
|
|
496
|
+
o = { error: c };
|
|
497
|
+
} finally {
|
|
498
|
+
try {
|
|
499
|
+
l && !l.done && (n = i.return) && n.call(i);
|
|
500
|
+
} finally {
|
|
501
|
+
if (o) throw o.error;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
return r;
|
|
505
|
+
}
|
|
506
|
+
var Vt = "__v_skip";
|
|
507
|
+
function xe(t) {
|
|
508
|
+
var e;
|
|
509
|
+
return !!(t && fe(t, "__ob__") && typeof t.__ob__ == "object" && (!((e = t.__ob__) === null || e === void 0) && e[Vt]));
|
|
510
|
+
}
|
|
511
|
+
function ue(t) {
|
|
512
|
+
var e;
|
|
513
|
+
return !!(t && fe(t, "__ob__") && typeof t.__ob__ == "object" && !(!((e = t.__ob__) === null || e === void 0) && e[Vt]));
|
|
514
|
+
}
|
|
515
|
+
function Tt(t) {
|
|
516
|
+
if (!(!de(t) || xe(t) || re(t) || V(t) || $o(t) || rn.has(t))) {
|
|
517
|
+
rn.set(t, !0);
|
|
518
|
+
for (var e = Object.keys(t), o = 0; o < e.length; o++)
|
|
519
|
+
Tn(t, e[o]);
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
function Tn(t, e, o) {
|
|
523
|
+
if (e !== "__ob__" && !xe(t[e])) {
|
|
524
|
+
var n, r, a = Object.getOwnPropertyDescriptor(t, e);
|
|
525
|
+
if (a) {
|
|
526
|
+
if (a.configurable === !1)
|
|
527
|
+
return;
|
|
528
|
+
n = a.get, r = a.set, (!n || r) && arguments.length === 2 && (o = t[e]);
|
|
529
|
+
}
|
|
530
|
+
Tt(o), G(t, e, {
|
|
531
|
+
get: function() {
|
|
532
|
+
var l = n ? n.call(t) : o;
|
|
533
|
+
return e !== Z && V(l) ? l.value : l;
|
|
534
|
+
},
|
|
535
|
+
set: function(l) {
|
|
536
|
+
n && !r || (e !== Z && V(o) && !V(l) ? o.value = l : (r && r.call(t, l), o = l), Tt(l));
|
|
537
|
+
}
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
function xt(t) {
|
|
542
|
+
var e = wn(), o;
|
|
543
|
+
if (e.observable)
|
|
544
|
+
o = e.observable(t);
|
|
545
|
+
else {
|
|
546
|
+
var n = Me(e, {
|
|
547
|
+
data: {
|
|
548
|
+
$$state: t
|
|
549
|
+
}
|
|
550
|
+
});
|
|
551
|
+
o = n._data.$$state;
|
|
552
|
+
}
|
|
553
|
+
return fe(o, "__ob__") || zt(o), o;
|
|
554
|
+
}
|
|
555
|
+
function zt(t, e) {
|
|
556
|
+
var o, n;
|
|
557
|
+
if (e === void 0 && (e = /* @__PURE__ */ new Set()), !(e.has(t) || fe(t, "__ob__") || !Object.isExtensible(t))) {
|
|
558
|
+
Ot(t, "__ob__", zo(t)), e.add(t);
|
|
559
|
+
try {
|
|
560
|
+
for (var r = et(Object.keys(t)), a = r.next(); !a.done; a = r.next()) {
|
|
561
|
+
var i = a.value, l = t[i];
|
|
562
|
+
!(de(l) || re(l)) || xe(l) || !Object.isExtensible(l) || zt(l, e);
|
|
563
|
+
}
|
|
564
|
+
} catch (y) {
|
|
565
|
+
o = { error: y };
|
|
566
|
+
} finally {
|
|
567
|
+
try {
|
|
568
|
+
a && !a.done && (n = r.return) && n.call(r);
|
|
569
|
+
} finally {
|
|
570
|
+
if (o) throw o.error;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
function zo(t) {
|
|
576
|
+
return t === void 0 && (t = {}), {
|
|
577
|
+
value: t,
|
|
578
|
+
dep: {
|
|
579
|
+
notify: _e,
|
|
580
|
+
depend: _e,
|
|
581
|
+
addSub: _e,
|
|
582
|
+
removeSub: _e
|
|
583
|
+
}
|
|
584
|
+
};
|
|
585
|
+
}
|
|
586
|
+
function Hn() {
|
|
587
|
+
return xt({}).__ob__;
|
|
588
|
+
}
|
|
589
|
+
function Ln(t) {
|
|
590
|
+
var e, o;
|
|
591
|
+
if (!Ee(t))
|
|
592
|
+
return process.env.NODE_ENV !== "production" && D('"shallowReactive()" must be called on an object.'), t;
|
|
593
|
+
if (!(de(t) || re(t)) || xe(t) || !Object.isExtensible(t))
|
|
594
|
+
return t;
|
|
595
|
+
var n = xt(re(t) ? [] : {}), r = n.__ob__, a = function(c) {
|
|
596
|
+
var p = t[c], s, m, v = Object.getOwnPropertyDescriptor(t, c);
|
|
597
|
+
if (v) {
|
|
598
|
+
if (v.configurable === !1)
|
|
599
|
+
return "continue";
|
|
600
|
+
s = v.get, m = v.set;
|
|
601
|
+
}
|
|
602
|
+
G(n, c, {
|
|
603
|
+
get: function() {
|
|
604
|
+
var f;
|
|
605
|
+
return (f = r.dep) === null || f === void 0 || f.depend(), p;
|
|
606
|
+
},
|
|
607
|
+
set: function(f) {
|
|
608
|
+
var S;
|
|
609
|
+
s && !m || !Ao() && p === f || (m ? m.call(t, f) : p = f, (S = r.dep) === null || S === void 0 || S.notify());
|
|
610
|
+
}
|
|
611
|
+
});
|
|
612
|
+
};
|
|
613
|
+
try {
|
|
614
|
+
for (var i = et(Object.keys(t)), l = i.next(); !l.done; l = i.next()) {
|
|
615
|
+
var y = l.value;
|
|
616
|
+
a(y);
|
|
617
|
+
}
|
|
618
|
+
} catch (c) {
|
|
619
|
+
e = { error: c };
|
|
620
|
+
} finally {
|
|
621
|
+
try {
|
|
622
|
+
l && !l.done && (o = i.return) && o.call(i);
|
|
623
|
+
} finally {
|
|
624
|
+
if (e) throw e.error;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
return n;
|
|
628
|
+
}
|
|
629
|
+
function tt(t) {
|
|
630
|
+
if (!Ee(t))
|
|
631
|
+
return process.env.NODE_ENV !== "production" && D('"reactive()" must be called on an object.'), t;
|
|
632
|
+
if (!(de(t) || re(t)) || xe(t) || !Object.isExtensible(t))
|
|
633
|
+
return t;
|
|
634
|
+
var e = xt(t);
|
|
635
|
+
return Tt(e), e;
|
|
636
|
+
}
|
|
637
|
+
function jo(t) {
|
|
638
|
+
if (!(de(t) || re(t)) || !Object.isExtensible(t))
|
|
639
|
+
return t;
|
|
640
|
+
var e = Hn();
|
|
641
|
+
return e[Vt] = !0, Ot(t, "__ob__", e), $n.set(t, !0), t;
|
|
642
|
+
}
|
|
643
|
+
function Mo(t) {
|
|
644
|
+
var e;
|
|
645
|
+
return xe(t) || !Object.isExtensible(t) ? t : ((e = t == null ? void 0 : t.__ob__) === null || e === void 0 ? void 0 : e.value) || t;
|
|
646
|
+
}
|
|
647
|
+
function qo(t) {
|
|
648
|
+
return Et.has(t);
|
|
649
|
+
}
|
|
650
|
+
function Wo(t) {
|
|
651
|
+
return process.env.NODE_ENV !== "production" && !Ee(t) ? D("value cannot be made reactive: ".concat(String(t))) : Et.set(t, !0), t;
|
|
652
|
+
}
|
|
653
|
+
function Uo(t) {
|
|
654
|
+
var e, o;
|
|
655
|
+
if (!Ee(t))
|
|
656
|
+
return process.env.NODE_ENV !== "production" && D("value cannot be made reactive: ".concat(String(t))), t;
|
|
657
|
+
if (!(de(t) || re(t)) || !Object.isExtensible(t) && !V(t))
|
|
658
|
+
return t;
|
|
659
|
+
var n = V(t) ? new Lt({}) : ue(t) ? xt({}) : {}, r = tt({}), a = r.__ob__, i = function(p) {
|
|
660
|
+
var s = t[p], m, v = Object.getOwnPropertyDescriptor(t, p);
|
|
661
|
+
if (v) {
|
|
662
|
+
if (v.configurable === !1 && !V(t))
|
|
663
|
+
return "continue";
|
|
664
|
+
m = v.get;
|
|
665
|
+
}
|
|
666
|
+
G(n, p, {
|
|
667
|
+
get: function() {
|
|
668
|
+
var f = m ? m.call(t) : s;
|
|
669
|
+
return a.dep.depend(), f;
|
|
670
|
+
},
|
|
671
|
+
set: function(h) {
|
|
672
|
+
process.env.NODE_ENV !== "production" && D('Set operation on key "'.concat(p, '" failed: target is readonly.'));
|
|
673
|
+
}
|
|
674
|
+
});
|
|
675
|
+
};
|
|
676
|
+
try {
|
|
677
|
+
for (var l = et(Object.keys(t)), y = l.next(); !y.done; y = l.next()) {
|
|
678
|
+
var c = y.value;
|
|
679
|
+
i(c);
|
|
680
|
+
}
|
|
681
|
+
} catch (p) {
|
|
682
|
+
e = { error: p };
|
|
683
|
+
} finally {
|
|
684
|
+
try {
|
|
685
|
+
y && !y.done && (o = l.return) && o.call(l);
|
|
686
|
+
} finally {
|
|
687
|
+
if (e) throw e.error;
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
return Et.set(n, !0), n;
|
|
691
|
+
}
|
|
692
|
+
function Ko(t, e) {
|
|
693
|
+
var o = pe(), n = o.util.warn;
|
|
694
|
+
if (process.env.NODE_ENV !== "production" && (Rn(t) || xn(t)) && n("Cannot delete reactive property on undefined, null, or primitive value: ".concat(t)), re(t) && Fn(e)) {
|
|
695
|
+
t.splice(e, 1);
|
|
696
|
+
return;
|
|
697
|
+
}
|
|
698
|
+
var r = t.__ob__;
|
|
699
|
+
if (t._isVue || r && r.vmCount) {
|
|
700
|
+
process.env.NODE_ENV !== "production" && n("Avoid deleting properties on a Vue instance or its root $data - just set it to null.");
|
|
701
|
+
return;
|
|
702
|
+
}
|
|
703
|
+
fe(t, e) && (delete t[e], r && r.dep.notify());
|
|
704
|
+
}
|
|
705
|
+
var Qo = function(t) {
|
|
706
|
+
return "on".concat(t[0].toUpperCase() + t.slice(1));
|
|
707
|
+
};
|
|
708
|
+
function Oe(t) {
|
|
709
|
+
return function(e, o) {
|
|
710
|
+
var n = Bn(Qo(t), o);
|
|
711
|
+
return n && Jo(pe(), n, t, e);
|
|
712
|
+
};
|
|
713
|
+
}
|
|
714
|
+
function Jo(t, e, o, n) {
|
|
715
|
+
var r = e.proxy.$options, a = t.config.optionMergeStrategies[o], i = Go(e, n);
|
|
716
|
+
return r[o] = a(r[o], i), i;
|
|
717
|
+
}
|
|
718
|
+
function Go(t, e) {
|
|
719
|
+
return function() {
|
|
720
|
+
for (var o = [], n = 0; n < arguments.length; n++)
|
|
721
|
+
o[n] = arguments[n];
|
|
722
|
+
var r = he();
|
|
723
|
+
mt(t);
|
|
724
|
+
try {
|
|
725
|
+
return e.apply(void 0, hn([], yn(o), !1));
|
|
726
|
+
} finally {
|
|
727
|
+
mt(r);
|
|
728
|
+
}
|
|
729
|
+
};
|
|
730
|
+
}
|
|
731
|
+
var Yo = Oe("beforeMount"), Zo = Oe("mounted"), Xo = Oe("beforeUpdate"), er = Oe("updated"), tr = Oe("beforeDestroy"), nr = Oe("destroyed"), or = Oe("errorCaptured"), rr = Oe("activated"), ir = Oe("deactivated"), ar = Oe("serverPrefetch"), vt;
|
|
732
|
+
function sr() {
|
|
733
|
+
bt(this, Ve);
|
|
734
|
+
}
|
|
735
|
+
function lr() {
|
|
736
|
+
bt(this, Je);
|
|
737
|
+
}
|
|
738
|
+
function cr(t) {
|
|
739
|
+
return t[Ve] !== void 0;
|
|
740
|
+
}
|
|
741
|
+
function ur(t) {
|
|
742
|
+
t[Ve] = [], t[Je] = [], t.$on("hook:beforeUpdate", sr), t.$on("hook:updated", lr);
|
|
743
|
+
}
|
|
744
|
+
function fr(t) {
|
|
745
|
+
return Fe({
|
|
746
|
+
immediate: !1,
|
|
747
|
+
deep: !1,
|
|
748
|
+
flush: "pre"
|
|
749
|
+
}, t);
|
|
750
|
+
}
|
|
751
|
+
function dr(t) {
|
|
752
|
+
return Fe({
|
|
753
|
+
flush: "pre"
|
|
754
|
+
}, t);
|
|
755
|
+
}
|
|
756
|
+
function Vn() {
|
|
757
|
+
var t = Cn();
|
|
758
|
+
return t ? cr(t) || ur(t) : (vt || (vt = Me(pe())), t = vt), t;
|
|
759
|
+
}
|
|
760
|
+
function bt(t, e) {
|
|
761
|
+
for (var o = t[e], n = 0; n < o.length; n++)
|
|
762
|
+
o[n]();
|
|
763
|
+
o.length = 0;
|
|
764
|
+
}
|
|
765
|
+
function pr(t, e, o) {
|
|
766
|
+
var n = function() {
|
|
767
|
+
t.$nextTick(function() {
|
|
768
|
+
t[Ve].length && bt(t, Ve), t[Je].length && bt(t, Je);
|
|
769
|
+
});
|
|
770
|
+
};
|
|
771
|
+
switch (o) {
|
|
772
|
+
case "pre":
|
|
773
|
+
n(), t[Ve].push(e);
|
|
774
|
+
break;
|
|
775
|
+
case "post":
|
|
776
|
+
n(), t[Je].push(e);
|
|
777
|
+
break;
|
|
778
|
+
default:
|
|
779
|
+
wt(!1, 'flush must be one of ["post", "pre", "sync"], but got '.concat(o));
|
|
780
|
+
break;
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
function vr(t, e, o, n) {
|
|
784
|
+
var r = t._watchers.length;
|
|
785
|
+
return t.$watch(e, o, {
|
|
786
|
+
immediate: n.immediateInvokeCallback,
|
|
787
|
+
deep: n.deep,
|
|
788
|
+
lazy: n.noRun,
|
|
789
|
+
sync: n.sync,
|
|
790
|
+
before: n.before
|
|
791
|
+
}), t._watchers[r];
|
|
792
|
+
}
|
|
793
|
+
function sn(t, e) {
|
|
794
|
+
var o = t.teardown;
|
|
795
|
+
t.teardown = function() {
|
|
796
|
+
for (var n = [], r = 0; r < arguments.length; r++)
|
|
797
|
+
n[r] = arguments[r];
|
|
798
|
+
o.apply(t, n), e();
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
function zn(t, e, o, n) {
|
|
802
|
+
var r;
|
|
803
|
+
process.env.NODE_ENV !== "production" && !o && (n.immediate !== void 0 && D('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'), n.deep !== void 0 && D('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));
|
|
804
|
+
var a = n.flush, i = a === "sync", l, y = function(O) {
|
|
805
|
+
l = function() {
|
|
806
|
+
try {
|
|
807
|
+
O();
|
|
808
|
+
} catch (u) {
|
|
809
|
+
Bo(u, t, "onCleanup()");
|
|
810
|
+
}
|
|
811
|
+
};
|
|
812
|
+
}, c = function() {
|
|
813
|
+
l && (l(), l = null);
|
|
814
|
+
}, p = function(O) {
|
|
815
|
+
return i || /* without a current active instance, ignore pre|post mode */
|
|
816
|
+
t === vt ? O : function() {
|
|
817
|
+
for (var u = [], g = 0; g < arguments.length; g++)
|
|
818
|
+
u[g] = arguments[g];
|
|
819
|
+
return pr(t, function() {
|
|
820
|
+
O.apply(void 0, hn([], yn(u), !1));
|
|
821
|
+
}, a);
|
|
822
|
+
};
|
|
823
|
+
};
|
|
824
|
+
if (o === null) {
|
|
825
|
+
var s = !1, m = function() {
|
|
826
|
+
if (!s)
|
|
827
|
+
try {
|
|
828
|
+
s = !0, e(y);
|
|
829
|
+
} finally {
|
|
830
|
+
s = !1;
|
|
831
|
+
}
|
|
832
|
+
}, v = vr(t, m, _e, {
|
|
833
|
+
deep: n.deep || !1,
|
|
834
|
+
sync: i,
|
|
835
|
+
before: c
|
|
836
|
+
});
|
|
837
|
+
sn(v, c), v.lazy = !1;
|
|
838
|
+
var h = v.get.bind(v);
|
|
839
|
+
return v.get = p(h), function() {
|
|
840
|
+
v.teardown();
|
|
841
|
+
};
|
|
842
|
+
}
|
|
843
|
+
var f = n.deep, S = !1, F;
|
|
844
|
+
if (V(e) ? F = function() {
|
|
845
|
+
return e.value;
|
|
846
|
+
} : ue(e) ? (F = function() {
|
|
847
|
+
return e;
|
|
848
|
+
}, f = !0) : re(e) ? (S = !0, F = function() {
|
|
849
|
+
return e.map(function(O) {
|
|
850
|
+
return V(O) ? O.value : ue(O) ? Le(O) : oe(O) ? O() : (process.env.NODE_ENV !== "production" && D("Invalid watch source: ".concat(JSON.stringify(O), `.
|
|
851
|
+
A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`), t), _e);
|
|
852
|
+
});
|
|
853
|
+
}) : oe(e) ? F = e : (F = _e, process.env.NODE_ENV !== "production" && D("Invalid watch source: ".concat(JSON.stringify(e), `.
|
|
854
|
+
A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`), t)), f) {
|
|
855
|
+
var H = F;
|
|
856
|
+
F = function() {
|
|
857
|
+
return Le(H());
|
|
858
|
+
};
|
|
859
|
+
}
|
|
860
|
+
var M = function(O, u) {
|
|
861
|
+
if (!(!f && S && O.every(function(g, _) {
|
|
862
|
+
return ko(g, u[_]);
|
|
863
|
+
})))
|
|
864
|
+
return c(), o(O, u, y);
|
|
865
|
+
}, W = p(M);
|
|
866
|
+
if (n.immediate) {
|
|
867
|
+
var U = W, J = function(O, u) {
|
|
868
|
+
return J = U, M(O, re(O) ? [] : u);
|
|
869
|
+
};
|
|
870
|
+
W = function(O, u) {
|
|
871
|
+
return J(O, u);
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
var K = t.$watch(F, W, {
|
|
875
|
+
immediate: n.immediate,
|
|
876
|
+
deep: f,
|
|
877
|
+
sync: i
|
|
878
|
+
}), Q = t._watchers[t._watchers.length - 1];
|
|
879
|
+
return ue(Q.value) && (!((r = Q.value.__ob__) === null || r === void 0) && r.dep) && f && Q.value.__ob__.dep.addSub({
|
|
880
|
+
update: function() {
|
|
881
|
+
Q.run();
|
|
882
|
+
}
|
|
883
|
+
}), sn(Q, c), function() {
|
|
884
|
+
K();
|
|
885
|
+
};
|
|
886
|
+
}
|
|
887
|
+
function jt(t, e) {
|
|
888
|
+
var o = dr(e), n = Vn();
|
|
889
|
+
return zn(n, t, null, o);
|
|
890
|
+
}
|
|
891
|
+
function gr(t) {
|
|
892
|
+
return jt(t, { flush: "post" });
|
|
893
|
+
}
|
|
894
|
+
function mr(t) {
|
|
895
|
+
return jt(t, { flush: "sync" });
|
|
896
|
+
}
|
|
897
|
+
function yr(t, e, o) {
|
|
898
|
+
var n = null;
|
|
899
|
+
oe(e) ? n = e : (process.env.NODE_ENV !== "production" && D("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."), o = e, n = null);
|
|
900
|
+
var r = fr(o), a = Vn();
|
|
901
|
+
return zn(a, t, n, r);
|
|
902
|
+
}
|
|
903
|
+
function Le(t, e) {
|
|
904
|
+
if (e === void 0 && (e = /* @__PURE__ */ new Set()), !Ee(t) || e.has(t) || $n.has(t))
|
|
905
|
+
return t;
|
|
906
|
+
if (e.add(t), V(t))
|
|
907
|
+
Le(t.value, e);
|
|
908
|
+
else if (re(t))
|
|
909
|
+
for (var o = 0; o < t.length; o++)
|
|
910
|
+
Le(t[o], e);
|
|
911
|
+
else if (Fo(t) || Io(t))
|
|
912
|
+
t.forEach(function(r) {
|
|
913
|
+
Le(r, e);
|
|
914
|
+
});
|
|
915
|
+
else if (de(t))
|
|
916
|
+
for (var n in t)
|
|
917
|
+
Le(t[n], e);
|
|
918
|
+
return t;
|
|
919
|
+
}
|
|
920
|
+
function hr(t) {
|
|
921
|
+
var e = Cn(), o, n;
|
|
922
|
+
oe(t) ? o = t : (o = t.get, n = t.set);
|
|
923
|
+
var r, a;
|
|
924
|
+
if (e && !e.$isServer) {
|
|
925
|
+
var i = Do(), l = i.Watcher, y = i.Dep, c;
|
|
926
|
+
a = function() {
|
|
927
|
+
return c || (c = new l(e, o, _e, { lazy: !0 })), c.dirty && c.evaluate(), y.target && c.depend(), c.value;
|
|
928
|
+
}, r = function(s) {
|
|
929
|
+
if (process.env.NODE_ENV !== "production" && !n) {
|
|
930
|
+
D("Write operation failed: computed value is readonly.", e);
|
|
931
|
+
return;
|
|
932
|
+
}
|
|
933
|
+
n && n(s);
|
|
934
|
+
};
|
|
935
|
+
} else {
|
|
936
|
+
var p = Me(pe(), {
|
|
937
|
+
computed: {
|
|
938
|
+
$$state: {
|
|
939
|
+
get: o,
|
|
940
|
+
set: n
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
});
|
|
944
|
+
e && e.$on("hook:destroyed", function() {
|
|
945
|
+
return p.$destroy();
|
|
946
|
+
}), a = function() {
|
|
947
|
+
return p.$$state;
|
|
948
|
+
}, r = function(s) {
|
|
949
|
+
if (process.env.NODE_ENV !== "production" && !n) {
|
|
950
|
+
D("Write operation failed: computed value is readonly.", e);
|
|
951
|
+
return;
|
|
952
|
+
}
|
|
953
|
+
p.$$state = s;
|
|
954
|
+
};
|
|
955
|
+
}
|
|
956
|
+
return qe({
|
|
957
|
+
get: a,
|
|
958
|
+
set: r
|
|
959
|
+
}, !n, !0);
|
|
960
|
+
}
|
|
961
|
+
var jn = {};
|
|
962
|
+
function br(t, e) {
|
|
963
|
+
for (var o = e; o; ) {
|
|
964
|
+
if (o._provided && fe(o._provided, t))
|
|
965
|
+
return o._provided[t];
|
|
966
|
+
o = o.$parent;
|
|
967
|
+
}
|
|
968
|
+
return jn;
|
|
969
|
+
}
|
|
970
|
+
function _r(t, e) {
|
|
971
|
+
var o, n = (o = Bn("provide")) === null || o === void 0 ? void 0 : o.proxy;
|
|
972
|
+
if (n) {
|
|
973
|
+
if (!n._provided) {
|
|
974
|
+
var r = {};
|
|
975
|
+
G(n, "_provided", {
|
|
976
|
+
get: function() {
|
|
977
|
+
return r;
|
|
978
|
+
},
|
|
979
|
+
set: function(a) {
|
|
980
|
+
return Object.assign(r, a);
|
|
981
|
+
}
|
|
982
|
+
});
|
|
983
|
+
}
|
|
984
|
+
n._provided[t] = e;
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
function Sr(t, e, o) {
|
|
988
|
+
var n;
|
|
989
|
+
o === void 0 && (o = !1);
|
|
990
|
+
var r = (n = he()) === null || n === void 0 ? void 0 : n.proxy;
|
|
991
|
+
if (!r) {
|
|
992
|
+
process.env.NODE_ENV !== "production" && D("inject() can only be used inside setup() or functional components.");
|
|
993
|
+
return;
|
|
994
|
+
}
|
|
995
|
+
if (!t)
|
|
996
|
+
return process.env.NODE_ENV !== "production" && D('injection "'.concat(String(t), '" not found.'), r), e;
|
|
997
|
+
var a = br(t, r);
|
|
998
|
+
if (a !== jn)
|
|
999
|
+
return a;
|
|
1000
|
+
if (arguments.length > 1)
|
|
1001
|
+
return o && oe(e) ? e() : e;
|
|
1002
|
+
process.env.NODE_ENV !== "production" && D('Injection "'.concat(String(t), '" not found.'), r);
|
|
1003
|
+
}
|
|
1004
|
+
var ln = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, Mn = function(t) {
|
|
1005
|
+
var e;
|
|
1006
|
+
t === void 0 && (t = "$style");
|
|
1007
|
+
var o = he();
|
|
1008
|
+
if (!o)
|
|
1009
|
+
return process.env.NODE_ENV !== "production" && D("useCssModule must be called inside setup()"), ln;
|
|
1010
|
+
var n = (e = o.proxy) === null || e === void 0 ? void 0 : e[t];
|
|
1011
|
+
return n || (process.env.NODE_ENV !== "production" && D('Current instance does not have CSS module named "'.concat(t, '".')), ln);
|
|
1012
|
+
}, Cr = Mn;
|
|
1013
|
+
function Or(t, e) {
|
|
1014
|
+
e === void 0 && (e = void 0);
|
|
1015
|
+
var o = pe(), n = void 0, r = {}, a = {
|
|
1016
|
+
config: o.config,
|
|
1017
|
+
use: o.use.bind(o),
|
|
1018
|
+
mixin: o.mixin.bind(o),
|
|
1019
|
+
component: o.component.bind(o),
|
|
1020
|
+
provide: function(i, l) {
|
|
1021
|
+
return r[i] = l, this;
|
|
1022
|
+
},
|
|
1023
|
+
directive: function(i, l) {
|
|
1024
|
+
return l ? (o.directive(i, l), a) : o.directive(i);
|
|
1025
|
+
},
|
|
1026
|
+
mount: function(i, l) {
|
|
1027
|
+
return n ? (process.env.NODE_ENV !== "production" && D("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`"), n) : (n = new o(Fe(Fe({ propsData: e }, t), { provide: Fe(Fe({}, r), t.provide) })), n.$mount(i, l), n);
|
|
1028
|
+
},
|
|
1029
|
+
unmount: function() {
|
|
1030
|
+
n ? (n.$destroy(), n = void 0) : process.env.NODE_ENV !== "production" && D("Cannot unmount an app that is not mounted.");
|
|
1031
|
+
}
|
|
1032
|
+
};
|
|
1033
|
+
return a;
|
|
1034
|
+
}
|
|
1035
|
+
var wr = function() {
|
|
1036
|
+
for (var e, o = [], n = 0; n < arguments.length; n++)
|
|
1037
|
+
o[n] = arguments[n];
|
|
1038
|
+
return (e = pe()) === null || e === void 0 ? void 0 : e.nextTick.apply(this, o);
|
|
1039
|
+
}, dt, Er = function() {
|
|
1040
|
+
for (var e, o = [], n = 0; n < arguments.length; n++)
|
|
1041
|
+
o[n] = arguments[n];
|
|
1042
|
+
var r = (this === null || this === void 0 ? void 0 : this.proxy) || ((e = he()) === null || e === void 0 ? void 0 : e.proxy);
|
|
1043
|
+
return r ? r.$createElement.apply(r, o) : (process.env.NODE_ENV !== "production" && D("`createElement()` has been called outside of render function."), dt || (dt = Me(pe()).$createElement), dt.apply(dt, o));
|
|
1044
|
+
};
|
|
1045
|
+
function xr() {
|
|
1046
|
+
return qn().slots;
|
|
1047
|
+
}
|
|
1048
|
+
function Ir() {
|
|
1049
|
+
return qn().attrs;
|
|
1050
|
+
}
|
|
1051
|
+
function qn() {
|
|
1052
|
+
var t = he();
|
|
1053
|
+
return process.env.NODE_ENV !== "production" && !t && D("useContext() called without active instance."), t.setupContext;
|
|
1054
|
+
}
|
|
1055
|
+
function Fr(t, e, o) {
|
|
1056
|
+
var n = t.__composition_api_state__ = t.__composition_api_state__ || {};
|
|
1057
|
+
n[e] = o;
|
|
1058
|
+
}
|
|
1059
|
+
function Rr(t, e) {
|
|
1060
|
+
return (t.__composition_api_state__ || {})[e];
|
|
1061
|
+
}
|
|
1062
|
+
var Re = {
|
|
1063
|
+
set: Fr,
|
|
1064
|
+
get: Rr
|
|
1065
|
+
};
|
|
1066
|
+
function Br(t, e, o) {
|
|
1067
|
+
var n = t.$options.props;
|
|
1068
|
+
!(e in t) && !(n && fe(n, e)) ? (V(o) ? G(t, e, {
|
|
1069
|
+
get: function() {
|
|
1070
|
+
return o.value;
|
|
1071
|
+
},
|
|
1072
|
+
set: function(r) {
|
|
1073
|
+
o.value = r;
|
|
1074
|
+
}
|
|
1075
|
+
}) : G(t, e, {
|
|
1076
|
+
get: function() {
|
|
1077
|
+
return ue(o) && o.__ob__.dep.depend(), o;
|
|
1078
|
+
},
|
|
1079
|
+
set: function(r) {
|
|
1080
|
+
o = r;
|
|
1081
|
+
}
|
|
1082
|
+
}), process.env.NODE_ENV !== "production" && t.$nextTick(function() {
|
|
1083
|
+
Object.keys(t._data).indexOf(e) === -1 && (V(o) ? G(t._data, e, {
|
|
1084
|
+
get: function() {
|
|
1085
|
+
return o.value;
|
|
1086
|
+
},
|
|
1087
|
+
set: function(r) {
|
|
1088
|
+
o.value = r;
|
|
1089
|
+
}
|
|
1090
|
+
}) : G(t._data, e, {
|
|
1091
|
+
get: function() {
|
|
1092
|
+
return o;
|
|
1093
|
+
},
|
|
1094
|
+
set: function(r) {
|
|
1095
|
+
o = r;
|
|
1096
|
+
}
|
|
1097
|
+
}));
|
|
1098
|
+
})) : process.env.NODE_ENV !== "production" && (n && fe(n, e) ? D('The setup binding property "'.concat(e, '" is already declared as a prop.'), t) : D('The setup binding property "'.concat(e, '" is already declared.'), t));
|
|
1099
|
+
}
|
|
1100
|
+
function kr(t) {
|
|
1101
|
+
var e = Re.get(t, "rawBindings") || {};
|
|
1102
|
+
if (!(!e || !Object.keys(e).length)) {
|
|
1103
|
+
for (var o = t.$refs, n = Re.get(t, "refs") || [], r = 0; r < n.length; r++) {
|
|
1104
|
+
var a = n[r], i = e[a];
|
|
1105
|
+
!o[a] && i && V(i) && (i.value = null);
|
|
1106
|
+
}
|
|
1107
|
+
for (var l = Object.keys(o), y = [], r = 0; r < l.length; r++) {
|
|
1108
|
+
var a = l[r], i = e[a];
|
|
1109
|
+
o[a] && i && V(i) && (i.value = o[a], y.push(a));
|
|
1110
|
+
}
|
|
1111
|
+
Re.set(t, "refs", y);
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
function cn(t) {
|
|
1115
|
+
for (var e = [t._vnode]; e.length; ) {
|
|
1116
|
+
var o = e.pop();
|
|
1117
|
+
if (o && (o.context && kr(o.context), o.children))
|
|
1118
|
+
for (var n = 0; n < o.children.length; ++n)
|
|
1119
|
+
e.push(o.children[n]);
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
function un(t, e) {
|
|
1123
|
+
var o, n;
|
|
1124
|
+
if (t) {
|
|
1125
|
+
var r = Re.get(t, "attrBindings");
|
|
1126
|
+
if (!(!r && !e)) {
|
|
1127
|
+
if (!r) {
|
|
1128
|
+
var a = tt({});
|
|
1129
|
+
r = { ctx: e, data: a }, Re.set(t, "attrBindings", r), G(e, "attrs", {
|
|
1130
|
+
get: function() {
|
|
1131
|
+
return r == null ? void 0 : r.data;
|
|
1132
|
+
},
|
|
1133
|
+
set: function() {
|
|
1134
|
+
process.env.NODE_ENV !== "production" && D("Cannot assign to '$attrs' because it is a read-only property", t);
|
|
1135
|
+
}
|
|
1136
|
+
});
|
|
1137
|
+
}
|
|
1138
|
+
var i = t.$attrs, l = function(s) {
|
|
1139
|
+
fe(r.data, s) || G(r.data, s, {
|
|
1140
|
+
get: function() {
|
|
1141
|
+
return t.$attrs[s];
|
|
1142
|
+
}
|
|
1143
|
+
});
|
|
1144
|
+
};
|
|
1145
|
+
try {
|
|
1146
|
+
for (var y = et(Object.keys(i)), c = y.next(); !c.done; c = y.next()) {
|
|
1147
|
+
var p = c.value;
|
|
1148
|
+
l(p);
|
|
1149
|
+
}
|
|
1150
|
+
} catch (s) {
|
|
1151
|
+
o = { error: s };
|
|
1152
|
+
} finally {
|
|
1153
|
+
try {
|
|
1154
|
+
c && !c.done && (n = y.return) && n.call(y);
|
|
1155
|
+
} finally {
|
|
1156
|
+
if (o) throw o.error;
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
function fn(t, e) {
|
|
1163
|
+
var o = t.$options._parentVnode;
|
|
1164
|
+
if (o) {
|
|
1165
|
+
for (var n = Re.get(t, "slots") || [], r = No(o.data.scopedSlots, t.$slots), a = 0; a < n.length; a++) {
|
|
1166
|
+
var i = n[a];
|
|
1167
|
+
r[i] || delete e[i];
|
|
1168
|
+
}
|
|
1169
|
+
for (var l = Object.keys(r), a = 0; a < l.length; a++) {
|
|
1170
|
+
var i = l[a];
|
|
1171
|
+
e[i] || (e[i] = Po(t, i));
|
|
1172
|
+
}
|
|
1173
|
+
Re.set(t, "slots", l);
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
function Pt(t, e, o) {
|
|
1177
|
+
var n = he();
|
|
1178
|
+
mt(t);
|
|
1179
|
+
try {
|
|
1180
|
+
return e(t);
|
|
1181
|
+
} catch (r) {
|
|
1182
|
+
throw r;
|
|
1183
|
+
} finally {
|
|
1184
|
+
mt(n);
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
function $r(t) {
|
|
1188
|
+
t.mixin({
|
|
1189
|
+
beforeCreate: e,
|
|
1190
|
+
mounted: function() {
|
|
1191
|
+
cn(this);
|
|
1192
|
+
},
|
|
1193
|
+
beforeUpdate: function() {
|
|
1194
|
+
un(this);
|
|
1195
|
+
},
|
|
1196
|
+
updated: function() {
|
|
1197
|
+
cn(this);
|
|
1198
|
+
}
|
|
1199
|
+
});
|
|
1200
|
+
function e() {
|
|
1201
|
+
var i = this, l = i.$options, y = l.setup, c = l.render;
|
|
1202
|
+
if (c && (l.render = function() {
|
|
1203
|
+
for (var s = this, m = [], v = 0; v < arguments.length; v++)
|
|
1204
|
+
m[v] = arguments[v];
|
|
1205
|
+
return Pt(yt(i), function() {
|
|
1206
|
+
return c.apply(s, m);
|
|
1207
|
+
});
|
|
1208
|
+
}), !!y) {
|
|
1209
|
+
if (!oe(y)) {
|
|
1210
|
+
process.env.NODE_ENV !== "production" && D('The "setup" option should be a function that returns a object in component definitions.', i);
|
|
1211
|
+
return;
|
|
1212
|
+
}
|
|
1213
|
+
var p = l.data;
|
|
1214
|
+
l.data = function() {
|
|
1215
|
+
return o(i, i.$props), oe(p) ? p.call(i, i) : p || {};
|
|
1216
|
+
};
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
function o(i, l) {
|
|
1220
|
+
l === void 0 && (l = {});
|
|
1221
|
+
var y = i.$options.setup, c = a(i), p = yt(i);
|
|
1222
|
+
p.setupContext = c, Ot(l, "__ob__", Hn()), fn(i, c.slots);
|
|
1223
|
+
var s;
|
|
1224
|
+
if (Pt(p, function() {
|
|
1225
|
+
s = y(l, c);
|
|
1226
|
+
}), !!s) {
|
|
1227
|
+
if (oe(s)) {
|
|
1228
|
+
var m = s;
|
|
1229
|
+
i.$options.render = function() {
|
|
1230
|
+
return fn(i, c.slots), Pt(p, function() {
|
|
1231
|
+
return m();
|
|
1232
|
+
});
|
|
1233
|
+
};
|
|
1234
|
+
return;
|
|
1235
|
+
} else if (Ee(s)) {
|
|
1236
|
+
ue(s) && (s = Dn(s)), Re.set(i, "rawBindings", s);
|
|
1237
|
+
var v = s;
|
|
1238
|
+
Object.keys(v).forEach(function(h) {
|
|
1239
|
+
var f = v[h];
|
|
1240
|
+
if (!V(f))
|
|
1241
|
+
if (ue(f))
|
|
1242
|
+
re(f) && (f = ht(f));
|
|
1243
|
+
else if (oe(f)) {
|
|
1244
|
+
var S = f;
|
|
1245
|
+
f = f.bind(i), Object.keys(S).forEach(function(F) {
|
|
1246
|
+
f[F] = S[F];
|
|
1247
|
+
});
|
|
1248
|
+
} else Ee(f) ? r(f) && n(f) : f = ht(f);
|
|
1249
|
+
Br(i, h, f);
|
|
1250
|
+
});
|
|
1251
|
+
return;
|
|
1252
|
+
}
|
|
1253
|
+
process.env.NODE_ENV !== "production" && wt(!1, '"setup" must return a "Object" or a "Function", got "'.concat(Object.prototype.toString.call(s).slice(8, -1), '"'));
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
function n(i, l) {
|
|
1257
|
+
if (l === void 0 && (l = /* @__PURE__ */ new Set()), !l.has(i) && !(!de(i) || V(i) || ue(i) || xe(i))) {
|
|
1258
|
+
var y = pe(), c = y.util.defineReactive;
|
|
1259
|
+
Object.keys(i).forEach(function(p) {
|
|
1260
|
+
var s = i[p];
|
|
1261
|
+
c(i, p, s), s && (l.add(s), n(s, l));
|
|
1262
|
+
});
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
function r(i, l) {
|
|
1266
|
+
return l === void 0 && (l = /* @__PURE__ */ new Map()), l.has(i) ? l.get(i) : (l.set(i, !1), re(i) && ue(i) ? (l.set(i, !0), !0) : !de(i) || xe(i) || V(i) ? !1 : Object.keys(i).some(function(y) {
|
|
1267
|
+
return r(i[y], l);
|
|
1268
|
+
}));
|
|
1269
|
+
}
|
|
1270
|
+
function a(i) {
|
|
1271
|
+
var l = { slots: {} }, y = [
|
|
1272
|
+
"root",
|
|
1273
|
+
"parent",
|
|
1274
|
+
"refs",
|
|
1275
|
+
"listeners",
|
|
1276
|
+
"isServer",
|
|
1277
|
+
"ssrContext"
|
|
1278
|
+
], c = ["emit"];
|
|
1279
|
+
return y.forEach(function(p) {
|
|
1280
|
+
var s = "$".concat(p);
|
|
1281
|
+
G(l, p, {
|
|
1282
|
+
get: function() {
|
|
1283
|
+
return i[s];
|
|
1284
|
+
},
|
|
1285
|
+
set: function() {
|
|
1286
|
+
process.env.NODE_ENV !== "production" && D("Cannot assign to '".concat(p, "' because it is a read-only property"), i);
|
|
1287
|
+
}
|
|
1288
|
+
});
|
|
1289
|
+
}), un(i, l), c.forEach(function(p) {
|
|
1290
|
+
var s = "$".concat(p);
|
|
1291
|
+
G(l, p, {
|
|
1292
|
+
get: function() {
|
|
1293
|
+
return function() {
|
|
1294
|
+
for (var m = [], v = 0; v < arguments.length; v++)
|
|
1295
|
+
m[v] = arguments[v];
|
|
1296
|
+
var h = i[s];
|
|
1297
|
+
h.apply(i, m);
|
|
1298
|
+
};
|
|
1299
|
+
}
|
|
1300
|
+
});
|
|
1301
|
+
}), process.env.NODE_ENV === "test" && (l._vm = i), l;
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
function Wn(t, e) {
|
|
1305
|
+
if (!t)
|
|
1306
|
+
return e;
|
|
1307
|
+
if (!e)
|
|
1308
|
+
return t;
|
|
1309
|
+
for (var o, n, r, a = En ? Reflect.ownKeys(t) : Object.keys(t), i = 0; i < a.length; i++)
|
|
1310
|
+
o = a[i], o !== "__ob__" && (n = e[o], r = t[o], fe(e, o) ? n !== r && de(n) && !V(n) && de(r) && !V(r) && Wn(r, n) : e[o] = r);
|
|
1311
|
+
return e;
|
|
1312
|
+
}
|
|
1313
|
+
function Pr(t) {
|
|
1314
|
+
if (Co(t)) {
|
|
1315
|
+
process.env.NODE_ENV !== "production" && D("[vue-composition-api] already installed. Vue.use(VueCompositionAPI) should be called only once.");
|
|
1316
|
+
return;
|
|
1317
|
+
}
|
|
1318
|
+
process.env.NODE_ENV !== "production" && (t.version ? (t.version[0] !== "2" || t.version[1] !== ".") && D("[vue-composition-api] only works with Vue 2, v".concat(t.version, " found.")) : D("[vue-composition-api] no Vue version found")), t.config.optionMergeStrategies.setup = function(e, o) {
|
|
1319
|
+
return function(r, a) {
|
|
1320
|
+
return Wn(oe(e) ? e(r, a) || {} : void 0, oe(o) ? o(r, a) || {} : void 0);
|
|
1321
|
+
};
|
|
1322
|
+
}, Oo(t), $r(t);
|
|
1323
|
+
}
|
|
1324
|
+
var Ge = {
|
|
1325
|
+
install: function(t) {
|
|
1326
|
+
return Pr(t);
|
|
1327
|
+
}
|
|
1328
|
+
};
|
|
1329
|
+
function Nr(t) {
|
|
1330
|
+
return t;
|
|
1331
|
+
}
|
|
1332
|
+
function Dr(t) {
|
|
1333
|
+
oe(t) && (t = { loader: t });
|
|
1334
|
+
var e = t.loader, o = t.loadingComponent, n = t.errorComponent, r = t.delay, a = r === void 0 ? 200 : r, i = t.timeout, l = t.suspensible, y = l === void 0 ? !1 : l, c = t.onError;
|
|
1335
|
+
process.env.NODE_ENV !== "production" && y && D("The suspensiblbe option for async components is not supported in Vue2. It is ignored.");
|
|
1336
|
+
var p = null, s = 0, m = function() {
|
|
1337
|
+
return s++, p = null, v();
|
|
1338
|
+
}, v = function() {
|
|
1339
|
+
var h;
|
|
1340
|
+
return p || (h = p = e().catch(function(f) {
|
|
1341
|
+
if (f = f instanceof Error ? f : new Error(String(f)), c)
|
|
1342
|
+
return new Promise(function(S, F) {
|
|
1343
|
+
var H = function() {
|
|
1344
|
+
return S(m());
|
|
1345
|
+
}, M = function() {
|
|
1346
|
+
return F(f);
|
|
1347
|
+
};
|
|
1348
|
+
c(f, H, M, s + 1);
|
|
1349
|
+
});
|
|
1350
|
+
throw f;
|
|
1351
|
+
}).then(function(f) {
|
|
1352
|
+
if (h !== p && p)
|
|
1353
|
+
return p;
|
|
1354
|
+
if (process.env.NODE_ENV !== "production" && !f && D("Async component loader resolved to undefined. If you are using retry(), make sure to return its return value."), f && (f.__esModule || f[Symbol.toStringTag] === "Module") && (f = f.default), process.env.NODE_ENV !== "production" && f && !Ee(f) && !oe(f))
|
|
1355
|
+
throw new Error("Invalid async component load result: ".concat(f));
|
|
1356
|
+
return f;
|
|
1357
|
+
}));
|
|
1358
|
+
};
|
|
1359
|
+
return function() {
|
|
1360
|
+
var h = v();
|
|
1361
|
+
return {
|
|
1362
|
+
component: h,
|
|
1363
|
+
delay: a,
|
|
1364
|
+
timeout: i,
|
|
1365
|
+
error: n,
|
|
1366
|
+
loading: o
|
|
1367
|
+
};
|
|
1368
|
+
};
|
|
1369
|
+
}
|
|
1370
|
+
var Ar = "1.7.2";
|
|
1371
|
+
typeof window != "undefined" && window.Vue && window.Vue.use(Ge);
|
|
1372
|
+
const Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1373
|
+
__proto__: null,
|
|
1374
|
+
EffectScope: _n,
|
|
1375
|
+
computed: hr,
|
|
1376
|
+
createApp: Or,
|
|
1377
|
+
createRef: qe,
|
|
1378
|
+
customRef: To,
|
|
1379
|
+
default: Ge,
|
|
1380
|
+
defineAsyncComponent: Dr,
|
|
1381
|
+
defineComponent: Nr,
|
|
1382
|
+
del: Ko,
|
|
1383
|
+
effectScope: bo,
|
|
1384
|
+
getCurrentInstance: he,
|
|
1385
|
+
getCurrentScope: Sn,
|
|
1386
|
+
h: Er,
|
|
1387
|
+
inject: Sr,
|
|
1388
|
+
isRaw: xe,
|
|
1389
|
+
isReactive: ue,
|
|
1390
|
+
isReadonly: qo,
|
|
1391
|
+
isRef: V,
|
|
1392
|
+
markRaw: jo,
|
|
1393
|
+
nextTick: wr,
|
|
1394
|
+
onActivated: rr,
|
|
1395
|
+
onBeforeMount: Yo,
|
|
1396
|
+
onBeforeUnmount: tr,
|
|
1397
|
+
onBeforeUpdate: Xo,
|
|
1398
|
+
onDeactivated: ir,
|
|
1399
|
+
onErrorCaptured: or,
|
|
1400
|
+
onMounted: Zo,
|
|
1401
|
+
onScopeDispose: _o,
|
|
1402
|
+
onServerPrefetch: ar,
|
|
1403
|
+
onUnmounted: nr,
|
|
1404
|
+
onUpdated: er,
|
|
1405
|
+
provide: _r,
|
|
1406
|
+
proxyRefs: Vo,
|
|
1407
|
+
reactive: tt,
|
|
1408
|
+
readonly: Wo,
|
|
1409
|
+
ref: ht,
|
|
1410
|
+
set: Pn,
|
|
1411
|
+
shallowReactive: Ln,
|
|
1412
|
+
shallowReadonly: Uo,
|
|
1413
|
+
shallowRef: Ho,
|
|
1414
|
+
toRaw: Mo,
|
|
1415
|
+
toRef: An,
|
|
1416
|
+
toRefs: Dn,
|
|
1417
|
+
triggerRef: Lo,
|
|
1418
|
+
unref: At,
|
|
1419
|
+
useAttrs: Ir,
|
|
1420
|
+
useCSSModule: Cr,
|
|
1421
|
+
useCssModule: Mn,
|
|
1422
|
+
useSlots: xr,
|
|
1423
|
+
version: Ar,
|
|
1424
|
+
warn: Ht,
|
|
1425
|
+
watch: yr,
|
|
1426
|
+
watchEffect: jt,
|
|
1427
|
+
watchPostEffect: gr,
|
|
1428
|
+
watchSyncEffect: mr
|
|
1429
|
+
}, Symbol.toStringTag, { value: "Module" })), Tr = mn.version || "", [Hr = "0", Lr = "0"] = Tr.split("."), Vr = Number(Hr), zr = Number(Lr), Kn = Vr === 2 && zr >= 7, se = Kn ? mo : Un, L = se.ref, _t = se.reactive, E = se.computed, we = se.watch, Mt = se.onMounted, jr = se.onBeforeUnmount, Mr = se.onUpdated, be = se.defineComponent, Se = se.inject, Qn = se.provide, Xe = se.nextTick, qt = se.getCurrentInstance, Ce = se.h, dn = Ge != null ? Ge : Un;
|
|
1430
|
+
function Qe(t) {
|
|
1431
|
+
if (Array.isArray(t)) return t;
|
|
1432
|
+
if (typeof t == "function") {
|
|
1433
|
+
const e = t();
|
|
14
1434
|
return Array.isArray(e) ? e : [];
|
|
15
1435
|
}
|
|
16
1436
|
return [];
|
|
17
1437
|
}
|
|
18
|
-
function
|
|
19
|
-
const e = { ...
|
|
1438
|
+
function ne(t) {
|
|
1439
|
+
const e = { ...t.attrs || {} };
|
|
20
1440
|
return typeof e.disabled == "function" && (e.disabled = e.disabled()), e;
|
|
21
1441
|
}
|
|
22
|
-
function
|
|
23
|
-
const o =
|
|
24
|
-
for (const [
|
|
25
|
-
typeof
|
|
26
|
-
return typeof
|
|
1442
|
+
function ce(t, e) {
|
|
1443
|
+
const o = t.on || {}, n = {};
|
|
1444
|
+
for (const [r, a] of Object.entries(o))
|
|
1445
|
+
typeof a == "function" && (n[r] = a);
|
|
1446
|
+
return typeof n.input != "function" && (n.input = e), n;
|
|
27
1447
|
}
|
|
28
|
-
function
|
|
1448
|
+
function qr() {
|
|
29
1449
|
return { formInputComponents: (e) => {
|
|
30
|
-
var
|
|
1450
|
+
var y;
|
|
31
1451
|
const o = /* @__PURE__ */ new Map([
|
|
32
1452
|
// ─────────────────────────────────────────────────────────────────
|
|
33
1453
|
// Input - 文本输入
|
|
34
1454
|
// ─────────────────────────────────────────────────────────────────
|
|
35
1455
|
[
|
|
36
1456
|
"Input",
|
|
37
|
-
(
|
|
38
|
-
const
|
|
39
|
-
return
|
|
40
|
-
attrs:
|
|
41
|
-
props: { value:
|
|
42
|
-
on:
|
|
1457
|
+
(c, p, { row: s }) => {
|
|
1458
|
+
const m = ne(s), v = te(p, s.prop), h = ce(s, (f) => Y(p, s.prop, f));
|
|
1459
|
+
return c("el-input", {
|
|
1460
|
+
attrs: m,
|
|
1461
|
+
props: { value: v, ...s.props },
|
|
1462
|
+
on: h
|
|
43
1463
|
});
|
|
44
1464
|
}
|
|
45
1465
|
],
|
|
@@ -48,12 +1468,12 @@ function Dt() {
|
|
|
48
1468
|
// ─────────────────────────────────────────────────────────────────
|
|
49
1469
|
[
|
|
50
1470
|
"InputNumber",
|
|
51
|
-
(
|
|
52
|
-
const
|
|
53
|
-
return
|
|
54
|
-
attrs:
|
|
55
|
-
props: { value:
|
|
56
|
-
on:
|
|
1471
|
+
(c, p, { row: s }) => {
|
|
1472
|
+
const m = ne(s), v = te(p, s.prop), h = ce(s, (f) => Y(p, s.prop, f));
|
|
1473
|
+
return c("el-input-number", {
|
|
1474
|
+
attrs: m,
|
|
1475
|
+
props: { value: v, ...s.props },
|
|
1476
|
+
on: h
|
|
57
1477
|
});
|
|
58
1478
|
}
|
|
59
1479
|
],
|
|
@@ -62,19 +1482,19 @@ function Dt() {
|
|
|
62
1482
|
// ─────────────────────────────────────────────────────────────────
|
|
63
1483
|
[
|
|
64
1484
|
"Select",
|
|
65
|
-
(
|
|
66
|
-
const
|
|
67
|
-
return
|
|
1485
|
+
(c, p, { row: s }) => {
|
|
1486
|
+
const m = ne(s), v = te(p, s.prop), h = Qe(s.dataOptions), f = ce(s, (S) => Y(p, s.prop, S));
|
|
1487
|
+
return c(
|
|
68
1488
|
"el-select",
|
|
69
1489
|
{
|
|
70
|
-
attrs:
|
|
71
|
-
props: { value:
|
|
72
|
-
on:
|
|
1490
|
+
attrs: m,
|
|
1491
|
+
props: { value: v, ...s.props },
|
|
1492
|
+
on: f
|
|
73
1493
|
},
|
|
74
|
-
|
|
75
|
-
(
|
|
76
|
-
key:
|
|
77
|
-
props: { value:
|
|
1494
|
+
h.map(
|
|
1495
|
+
(S, F) => c("el-option", {
|
|
1496
|
+
key: F,
|
|
1497
|
+
props: { value: S.value, label: S.label, disabled: S.disabled }
|
|
78
1498
|
})
|
|
79
1499
|
)
|
|
80
1500
|
);
|
|
@@ -86,12 +1506,12 @@ function Dt() {
|
|
|
86
1506
|
// ─────────────────────────────────────────────────────────────────
|
|
87
1507
|
[
|
|
88
1508
|
"datePicker",
|
|
89
|
-
(
|
|
90
|
-
const
|
|
91
|
-
return
|
|
92
|
-
attrs:
|
|
93
|
-
props: { value:
|
|
94
|
-
on:
|
|
1509
|
+
(c, p, { row: s }) => {
|
|
1510
|
+
const m = ne(s), v = te(p, s.prop), h = ce(s, (f) => Y(p, s.prop, f));
|
|
1511
|
+
return c("el-date-picker", {
|
|
1512
|
+
attrs: m,
|
|
1513
|
+
props: { value: v, ...s.props },
|
|
1514
|
+
on: h
|
|
95
1515
|
});
|
|
96
1516
|
}
|
|
97
1517
|
],
|
|
@@ -100,12 +1520,12 @@ function Dt() {
|
|
|
100
1520
|
// ─────────────────────────────────────────────────────────────────
|
|
101
1521
|
[
|
|
102
1522
|
"timePicker",
|
|
103
|
-
(
|
|
104
|
-
const
|
|
105
|
-
return
|
|
106
|
-
attrs:
|
|
107
|
-
props: { value:
|
|
108
|
-
on:
|
|
1523
|
+
(c, p, { row: s }) => {
|
|
1524
|
+
const m = ne(s), v = te(p, s.prop), h = ce(s, (f) => Y(p, s.prop, f));
|
|
1525
|
+
return c("el-time-picker", {
|
|
1526
|
+
attrs: m,
|
|
1527
|
+
props: { value: v, ...s.props },
|
|
1528
|
+
on: h
|
|
109
1529
|
});
|
|
110
1530
|
}
|
|
111
1531
|
],
|
|
@@ -114,12 +1534,12 @@ function Dt() {
|
|
|
114
1534
|
// ─────────────────────────────────────────────────────────────────
|
|
115
1535
|
[
|
|
116
1536
|
"Slider",
|
|
117
|
-
(
|
|
118
|
-
const
|
|
119
|
-
return
|
|
120
|
-
attrs:
|
|
121
|
-
props: { value:
|
|
122
|
-
on:
|
|
1537
|
+
(c, p, { row: s }) => {
|
|
1538
|
+
const m = ne(s), v = te(p, s.prop), h = ce(s, (f) => Y(p, s.prop, f));
|
|
1539
|
+
return c("el-slider", {
|
|
1540
|
+
attrs: m,
|
|
1541
|
+
props: { value: v, ...s.props },
|
|
1542
|
+
on: h
|
|
123
1543
|
});
|
|
124
1544
|
}
|
|
125
1545
|
],
|
|
@@ -130,14 +1550,14 @@ function Dt() {
|
|
|
130
1550
|
// ─────────────────────────────────────────────────────────────────
|
|
131
1551
|
[
|
|
132
1552
|
"ColorPicker",
|
|
133
|
-
(
|
|
134
|
-
const
|
|
135
|
-
for (const [
|
|
136
|
-
typeof
|
|
137
|
-
return typeof
|
|
138
|
-
attrs:
|
|
139
|
-
props: { value:
|
|
140
|
-
on:
|
|
1553
|
+
(c, p, { row: s }) => {
|
|
1554
|
+
const m = ne(s), v = te(p, s.prop), h = s.on || {}, f = {};
|
|
1555
|
+
for (const [S, F] of Object.entries(h))
|
|
1556
|
+
typeof F == "function" && (f[S] = F);
|
|
1557
|
+
return typeof f.change != "function" && (f.change = (S) => Y(p, s.prop, S)), c("el-color-picker", {
|
|
1558
|
+
attrs: m,
|
|
1559
|
+
props: { value: v, ...s.props },
|
|
1560
|
+
on: f
|
|
141
1561
|
});
|
|
142
1562
|
}
|
|
143
1563
|
],
|
|
@@ -147,16 +1567,16 @@ function Dt() {
|
|
|
147
1567
|
// ─────────────────────────────────────────────────────────────────
|
|
148
1568
|
[
|
|
149
1569
|
"Transfer",
|
|
150
|
-
(
|
|
151
|
-
const
|
|
152
|
-
return
|
|
153
|
-
attrs:
|
|
1570
|
+
(c, p, { row: s }) => {
|
|
1571
|
+
const m = ne(s), v = te(p, s.prop), h = Qe(s.dataOptions), f = ce(s, (S) => Y(p, s.prop, S));
|
|
1572
|
+
return c("el-transfer", {
|
|
1573
|
+
attrs: m,
|
|
154
1574
|
props: {
|
|
155
|
-
value:
|
|
156
|
-
data:
|
|
157
|
-
...
|
|
1575
|
+
value: v,
|
|
1576
|
+
data: h.map((S) => ({ key: S.value, label: S.label, disabled: S.disabled })),
|
|
1577
|
+
...s.props
|
|
158
1578
|
},
|
|
159
|
-
on:
|
|
1579
|
+
on: f
|
|
160
1580
|
});
|
|
161
1581
|
}
|
|
162
1582
|
],
|
|
@@ -165,18 +1585,18 @@ function Dt() {
|
|
|
165
1585
|
// ─────────────────────────────────────────────────────────────────
|
|
166
1586
|
[
|
|
167
1587
|
"Cascader",
|
|
168
|
-
(
|
|
169
|
-
const
|
|
170
|
-
return
|
|
1588
|
+
(c, p, { row: s }) => {
|
|
1589
|
+
const m = ne(s), v = te(p, s.prop), h = Qe(s.dataOptions), f = ce(s, (S) => Y(p, s.prop, S));
|
|
1590
|
+
return c("el-cascader", {
|
|
171
1591
|
// key 强制 dataOptions 变化时重渲染,Element UI 内部 cache 否则不刷新
|
|
172
|
-
key: JSON.stringify(
|
|
173
|
-
attrs:
|
|
1592
|
+
key: JSON.stringify(h),
|
|
1593
|
+
attrs: m,
|
|
174
1594
|
props: {
|
|
175
|
-
value:
|
|
176
|
-
options:
|
|
177
|
-
...
|
|
1595
|
+
value: v,
|
|
1596
|
+
options: h,
|
|
1597
|
+
...s.props
|
|
178
1598
|
},
|
|
179
|
-
on:
|
|
1599
|
+
on: f
|
|
180
1600
|
});
|
|
181
1601
|
}
|
|
182
1602
|
],
|
|
@@ -185,24 +1605,24 @@ function Dt() {
|
|
|
185
1605
|
// ─────────────────────────────────────────────────────────────────
|
|
186
1606
|
[
|
|
187
1607
|
"Radio",
|
|
188
|
-
(
|
|
189
|
-
const
|
|
190
|
-
return
|
|
1608
|
+
(c, p, { row: s }) => {
|
|
1609
|
+
const m = ne(s), v = te(p, s.prop), h = Qe(s.dataOptions), f = ce(s, (S) => Y(p, s.prop, S));
|
|
1610
|
+
return c(
|
|
191
1611
|
"el-radio-group",
|
|
192
1612
|
{
|
|
193
|
-
attrs:
|
|
194
|
-
props: { value:
|
|
195
|
-
on:
|
|
1613
|
+
attrs: m,
|
|
1614
|
+
props: { value: v, ...s.props },
|
|
1615
|
+
on: f
|
|
196
1616
|
},
|
|
197
|
-
|
|
198
|
-
(
|
|
1617
|
+
h.map(
|
|
1618
|
+
(S, F) => c(
|
|
199
1619
|
"el-radio",
|
|
200
1620
|
{
|
|
201
|
-
key:
|
|
1621
|
+
key: F,
|
|
202
1622
|
// Element UI 中 el-radio 使用 :label 作为值
|
|
203
|
-
props: { label:
|
|
1623
|
+
props: { label: S.value, disabled: S.disabled || m.disabled }
|
|
204
1624
|
},
|
|
205
|
-
[
|
|
1625
|
+
[S.label]
|
|
206
1626
|
)
|
|
207
1627
|
)
|
|
208
1628
|
);
|
|
@@ -213,23 +1633,23 @@ function Dt() {
|
|
|
213
1633
|
// ─────────────────────────────────────────────────────────────────
|
|
214
1634
|
[
|
|
215
1635
|
"Checkbox",
|
|
216
|
-
(
|
|
217
|
-
const
|
|
218
|
-
return
|
|
1636
|
+
(c, p, { row: s }) => {
|
|
1637
|
+
const m = ne(s), v = te(p, s.prop), h = Qe(s.dataOptions), f = ce(s, (S) => Y(p, s.prop, S));
|
|
1638
|
+
return c(
|
|
219
1639
|
"el-checkbox-group",
|
|
220
1640
|
{
|
|
221
|
-
attrs:
|
|
222
|
-
props: { value:
|
|
223
|
-
on:
|
|
1641
|
+
attrs: m,
|
|
1642
|
+
props: { value: v, ...s.props },
|
|
1643
|
+
on: f
|
|
224
1644
|
},
|
|
225
|
-
|
|
226
|
-
(
|
|
1645
|
+
h.map(
|
|
1646
|
+
(S, F) => c(
|
|
227
1647
|
"el-checkbox",
|
|
228
1648
|
{
|
|
229
|
-
key:
|
|
230
|
-
props: { label:
|
|
1649
|
+
key: F,
|
|
1650
|
+
props: { label: S.value, disabled: S.disabled || m.disabled }
|
|
231
1651
|
},
|
|
232
|
-
[
|
|
1652
|
+
[S.label]
|
|
233
1653
|
)
|
|
234
1654
|
)
|
|
235
1655
|
);
|
|
@@ -240,12 +1660,12 @@ function Dt() {
|
|
|
240
1660
|
// ─────────────────────────────────────────────────────────────────
|
|
241
1661
|
[
|
|
242
1662
|
"Switch",
|
|
243
|
-
(
|
|
244
|
-
const
|
|
245
|
-
return
|
|
246
|
-
attrs:
|
|
247
|
-
props: { value:
|
|
248
|
-
on:
|
|
1663
|
+
(c, p, { row: s }) => {
|
|
1664
|
+
const m = ne(s), v = te(p, s.prop), h = ce(s, (f) => Y(p, s.prop, f));
|
|
1665
|
+
return c("el-switch", {
|
|
1666
|
+
attrs: m,
|
|
1667
|
+
props: { value: v, ...s.props },
|
|
1668
|
+
on: h
|
|
249
1669
|
});
|
|
250
1670
|
}
|
|
251
1671
|
],
|
|
@@ -254,12 +1674,12 @@ function Dt() {
|
|
|
254
1674
|
// ─────────────────────────────────────────────────────────────────
|
|
255
1675
|
[
|
|
256
1676
|
"Rate",
|
|
257
|
-
(
|
|
258
|
-
const
|
|
259
|
-
return
|
|
260
|
-
attrs:
|
|
261
|
-
props: { value:
|
|
262
|
-
on:
|
|
1677
|
+
(c, p, { row: s }) => {
|
|
1678
|
+
const m = ne(s), v = te(p, s.prop), h = ce(s, (f) => Y(p, s.prop, f));
|
|
1679
|
+
return c("el-rate", {
|
|
1680
|
+
attrs: m,
|
|
1681
|
+
props: { value: v, ...s.props },
|
|
1682
|
+
on: h
|
|
263
1683
|
});
|
|
264
1684
|
}
|
|
265
1685
|
],
|
|
@@ -268,24 +1688,24 @@ function Dt() {
|
|
|
268
1688
|
// ─────────────────────────────────────────────────────────────────
|
|
269
1689
|
[
|
|
270
1690
|
"Upload",
|
|
271
|
-
(
|
|
272
|
-
const
|
|
273
|
-
var
|
|
274
|
-
const
|
|
275
|
-
|
|
276
|
-
},
|
|
277
|
-
|
|
278
|
-
},
|
|
279
|
-
const
|
|
280
|
-
|
|
281
|
-
file:
|
|
282
|
-
filename:
|
|
283
|
-
onProgress:
|
|
284
|
-
}).then((
|
|
285
|
-
const
|
|
286
|
-
|
|
287
|
-
}).catch((
|
|
288
|
-
} : void 0,
|
|
1691
|
+
(c, p, { row: s }) => {
|
|
1692
|
+
const m = s.prop, v = ne(s), h = s.props || {}, f = s.on || {}, S = te(p, m) || [], F = typeof s.httpRequest == "function", H = s.triggerRender, M = s.fileRender, W = H ? H(c) : c("el-button", { props: { size: "mini", type: "primary" } }, ["选择文件"]), U = (u, g, _) => {
|
|
1693
|
+
var T, x;
|
|
1694
|
+
const k = (u == null ? void 0 : u.link) || (u == null ? void 0 : u.url) || ((T = u == null ? void 0 : u.data) == null ? void 0 : T.link) || ((x = u == null ? void 0 : u.data) == null ? void 0 : x.url);
|
|
1695
|
+
k && (g.url = k), g.status = "success", g.response = u, typeof f.success == "function" && f.success(u, g, _), Y(p, m, [..._]);
|
|
1696
|
+
}, J = (u, g, _) => {
|
|
1697
|
+
g.status = "fail", g.error = u, typeof f.error == "function" && f.error(u, g, _), Y(p, m, [..._]);
|
|
1698
|
+
}, K = F ? (u) => {
|
|
1699
|
+
const g = s.httpRequest;
|
|
1700
|
+
g({
|
|
1701
|
+
file: u.file,
|
|
1702
|
+
filename: u.file.name,
|
|
1703
|
+
onProgress: u.onProgress
|
|
1704
|
+
}).then((_) => {
|
|
1705
|
+
const k = (_ == null ? void 0 : _.data) || _;
|
|
1706
|
+
u.onSuccess(k);
|
|
1707
|
+
}).catch((_) => u.onError(_));
|
|
1708
|
+
} : void 0, Q = {
|
|
289
1709
|
preview: "onPreview",
|
|
290
1710
|
change: "onChange",
|
|
291
1711
|
success: "onSuccess",
|
|
@@ -293,136 +1713,136 @@ function Dt() {
|
|
|
293
1713
|
progress: "onProgress",
|
|
294
1714
|
remove: "onRemove",
|
|
295
1715
|
exceed: "onExceed"
|
|
296
|
-
},
|
|
297
|
-
for (const [
|
|
298
|
-
if (typeof
|
|
299
|
-
const
|
|
300
|
-
|
|
1716
|
+
}, O = {};
|
|
1717
|
+
for (const [u, g] of Object.entries(f)) {
|
|
1718
|
+
if (typeof g != "function" || u === "success" || u === "error" || u === "remove") continue;
|
|
1719
|
+
const _ = Q[u];
|
|
1720
|
+
_ && (O[_] = g);
|
|
301
1721
|
}
|
|
302
|
-
return
|
|
303
|
-
typeof
|
|
304
|
-
},
|
|
1722
|
+
return O.onSuccess = U, O.onError = J, O.onRemove = (u, g) => {
|
|
1723
|
+
typeof f.remove == "function" && f.remove(u, g), Y(p, m, [...g]);
|
|
1724
|
+
}, c(
|
|
305
1725
|
"el-upload",
|
|
306
1726
|
{
|
|
307
1727
|
attrs: {
|
|
308
|
-
...
|
|
309
|
-
action:
|
|
310
|
-
"file-list":
|
|
1728
|
+
...v,
|
|
1729
|
+
action: h.action || v.action || "#",
|
|
1730
|
+
"file-list": S
|
|
311
1731
|
},
|
|
312
1732
|
props: {
|
|
313
|
-
...
|
|
314
|
-
fileList:
|
|
1733
|
+
...h,
|
|
1734
|
+
fileList: S,
|
|
315
1735
|
// 自定义上传时禁用 auto-upload,由 httpRequest 接管
|
|
316
|
-
autoUpload:
|
|
317
|
-
httpRequest:
|
|
1736
|
+
autoUpload: F ? !1 : h.autoUpload !== !1,
|
|
1737
|
+
httpRequest: K,
|
|
318
1738
|
// 把 row.on.* 转换为 onXxx prop(覆盖在 userProps 之上:
|
|
319
1739
|
// 若用户已直接在 props 里给了 onPreview,这里仍以 row.on 为优先权来源)
|
|
320
|
-
...
|
|
1740
|
+
...O
|
|
321
1741
|
},
|
|
322
1742
|
// Vue 2 的 scopedSlots 用于自定义文件项渲染
|
|
323
|
-
scopedSlots:
|
|
324
|
-
file: ({ file:
|
|
325
|
-
const
|
|
326
|
-
|
|
1743
|
+
scopedSlots: M ? {
|
|
1744
|
+
file: ({ file: u }) => M(c, u, () => {
|
|
1745
|
+
const g = S.filter((_) => _ !== u);
|
|
1746
|
+
Y(p, m, g);
|
|
327
1747
|
})
|
|
328
1748
|
} : void 0
|
|
329
1749
|
},
|
|
330
|
-
[
|
|
1750
|
+
[W]
|
|
331
1751
|
);
|
|
332
1752
|
}
|
|
333
1753
|
]
|
|
334
|
-
]),
|
|
335
|
-
if (!
|
|
336
|
-
const
|
|
1754
|
+
]), n = (y = e.formtype) != null ? y : "";
|
|
1755
|
+
if (!n) return () => null;
|
|
1756
|
+
const r = o.get(n);
|
|
1757
|
+
if (r) return r;
|
|
1758
|
+
const a = n[0] ? n[0] === n[0].toLowerCase() ? n[0].toUpperCase() + n.slice(1) : n[0].toLowerCase() + n.slice(1) : n, i = o.get(a);
|
|
337
1759
|
if (i) return i;
|
|
338
|
-
const l =
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
for (const [d, g] of o)
|
|
342
|
-
if (d.toLowerCase() === B) return g;
|
|
1760
|
+
const l = n.toLowerCase();
|
|
1761
|
+
for (const [c, p] of o)
|
|
1762
|
+
if (c.toLowerCase() === l) return p;
|
|
343
1763
|
return () => null;
|
|
344
1764
|
} };
|
|
345
1765
|
}
|
|
346
|
-
function
|
|
347
|
-
const e =
|
|
348
|
-
var
|
|
349
|
-
const
|
|
350
|
-
if (!
|
|
351
|
-
const
|
|
352
|
-
return !!((
|
|
353
|
-
}),
|
|
354
|
-
var
|
|
1766
|
+
function Wr(t) {
|
|
1767
|
+
const e = L(!1), o = E(() => {
|
|
1768
|
+
var f;
|
|
1769
|
+
const m = ut(t.layoutFormProps);
|
|
1770
|
+
if (!m || !Object.keys(m).length) return !1;
|
|
1771
|
+
const v = m.isBtnHiden, h = m.isBtnHidden;
|
|
1772
|
+
return !!((f = v != null ? v : h) != null && f);
|
|
1773
|
+
}), n = E(() => {
|
|
1774
|
+
var v;
|
|
355
1775
|
return {
|
|
356
1776
|
type: "flex",
|
|
357
1777
|
gutter: 20,
|
|
358
|
-
...((
|
|
1778
|
+
...((v = t.layoutFormProps) == null ? void 0 : v.rowLayProps) || {}
|
|
359
1779
|
};
|
|
360
|
-
}),
|
|
1780
|
+
}), r = E(() => ut(t.layoutFormProps)), a = E(() => {
|
|
1781
|
+
var m;
|
|
1782
|
+
return (m = t.layoutFormProps) == null ? void 0 : m.setOptions;
|
|
1783
|
+
}), i = E(
|
|
1784
|
+
() => ro(t.formItemList || [])
|
|
1785
|
+
), l = () => {
|
|
361
1786
|
var f;
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
const
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
var j;
|
|
376
|
-
const { rowNum: f, columnRow: p } = c.value, b = p[f - 1] || [], y = Number((j = Ae(n.layoutFormProps)) == null ? void 0 : j.btnColSpan) || 0, L = 24 - b.reduce(
|
|
377
|
-
(N, M) => {
|
|
378
|
-
var V;
|
|
379
|
-
return N + (((V = n.formItemList[M]) == null ? void 0 : V.span) || 24);
|
|
1787
|
+
const m = ut(t.layoutFormProps);
|
|
1788
|
+
if (!m || !Object.keys(m).length) return 0;
|
|
1789
|
+
const v = m.minfoldRows, h = m.minFoldRows;
|
|
1790
|
+
return Number((f = v != null ? v : h) != null ? f : 0) || 0;
|
|
1791
|
+
}, y = E(() => {
|
|
1792
|
+
const m = l();
|
|
1793
|
+
return m > 0 && m < i.value.rowNum;
|
|
1794
|
+
}), c = E(() => {
|
|
1795
|
+
var H;
|
|
1796
|
+
const { rowNum: m, columnRow: v } = i.value, h = v[m - 1] || [], f = Number((H = ut(t.layoutFormProps)) == null ? void 0 : H.btnColSpan) || 0, F = 24 - h.reduce(
|
|
1797
|
+
(M, W) => {
|
|
1798
|
+
var U;
|
|
1799
|
+
return M + (((U = t.formItemList[W]) == null ? void 0 : U.span) || 24);
|
|
380
1800
|
},
|
|
381
1801
|
0
|
|
382
1802
|
);
|
|
383
|
-
return !e.value &&
|
|
384
|
-
}),
|
|
385
|
-
var
|
|
386
|
-
const
|
|
1803
|
+
return !e.value && f <= F ? F : 24;
|
|
1804
|
+
}), p = E(() => {
|
|
1805
|
+
var h, f;
|
|
1806
|
+
const m = l(), { columnNodeIndex: v } = i.value;
|
|
387
1807
|
if (e.value) {
|
|
388
|
-
const
|
|
389
|
-
return (
|
|
390
|
-
...
|
|
391
|
-
isFold:
|
|
1808
|
+
const S = (f = (h = v[m - 1]) != null ? h : v[v.length - 1]) != null ? f : 9999;
|
|
1809
|
+
return (t.formItemList || []).map((F, H) => ({
|
|
1810
|
+
...F,
|
|
1811
|
+
isFold: H > S
|
|
392
1812
|
}));
|
|
393
1813
|
}
|
|
394
|
-
return (
|
|
1814
|
+
return (t.formItemList || []).map((S) => ({ ...S, isFold: !1 }));
|
|
395
1815
|
});
|
|
396
|
-
return
|
|
397
|
-
|
|
398
|
-
(
|
|
399
|
-
e.value =
|
|
1816
|
+
return we(
|
|
1817
|
+
y,
|
|
1818
|
+
(m) => {
|
|
1819
|
+
e.value = m;
|
|
400
1820
|
},
|
|
401
1821
|
{ immediate: !0 }
|
|
402
1822
|
), {
|
|
403
1823
|
folded: e,
|
|
404
1824
|
isBtnHidden: o,
|
|
405
|
-
rowLayout:
|
|
406
|
-
formLayout:
|
|
407
|
-
getSetOptionsStatus:
|
|
408
|
-
getRowColsAlgorithm:
|
|
409
|
-
isFold:
|
|
410
|
-
getBtnColSpan:
|
|
411
|
-
formItem:
|
|
1825
|
+
rowLayout: n,
|
|
1826
|
+
formLayout: r,
|
|
1827
|
+
getSetOptionsStatus: a,
|
|
1828
|
+
getRowColsAlgorithm: i,
|
|
1829
|
+
isFold: y,
|
|
1830
|
+
getBtnColSpan: c,
|
|
1831
|
+
formItem: p,
|
|
412
1832
|
changeFolded: () => {
|
|
413
1833
|
e.value = !e.value;
|
|
414
1834
|
}
|
|
415
1835
|
};
|
|
416
1836
|
}
|
|
417
|
-
function
|
|
1837
|
+
function Ur(t) {
|
|
418
1838
|
return {
|
|
419
|
-
queryTableListMethod: (
|
|
420
|
-
getEveryFormQueryField: (
|
|
421
|
-
formatConfigOut: (
|
|
422
|
-
configFormField: (
|
|
1839
|
+
queryTableListMethod: (a, i = {}) => lo(a, i, t),
|
|
1840
|
+
getEveryFormQueryField: (a, i) => so(a, t, i),
|
|
1841
|
+
formatConfigOut: (a, i, l = {}, y) => ao(a, i, l, y),
|
|
1842
|
+
configFormField: (a = {}, i) => io(a, i)
|
|
423
1843
|
};
|
|
424
1844
|
}
|
|
425
|
-
const
|
|
1845
|
+
const Kr = {
|
|
426
1846
|
large: "medium",
|
|
427
1847
|
default: "small",
|
|
428
1848
|
small: "mini",
|
|
@@ -430,13 +1850,13 @@ const Mt = {
|
|
|
430
1850
|
medium: "medium",
|
|
431
1851
|
mini: "mini"
|
|
432
1852
|
};
|
|
433
|
-
function
|
|
434
|
-
if (
|
|
435
|
-
const e = String(
|
|
1853
|
+
function St(t) {
|
|
1854
|
+
if (t == null || t === "") return;
|
|
1855
|
+
const e = String(t).trim();
|
|
436
1856
|
if (e)
|
|
437
|
-
return
|
|
1857
|
+
return Kr[e];
|
|
438
1858
|
}
|
|
439
|
-
const
|
|
1859
|
+
const Qr = be({
|
|
440
1860
|
name: "RenderDomForm",
|
|
441
1861
|
functional: !0,
|
|
442
1862
|
props: {
|
|
@@ -445,13 +1865,13 @@ const Vt = ie({
|
|
|
445
1865
|
render: { type: Function, default: void 0 },
|
|
446
1866
|
model: { type: Object, default: () => ({}) }
|
|
447
1867
|
},
|
|
448
|
-
render(
|
|
449
|
-
const { row: o, index:
|
|
450
|
-
if (typeof
|
|
451
|
-
const
|
|
452
|
-
return typeof
|
|
1868
|
+
render(t, e) {
|
|
1869
|
+
const { row: o, index: n, model: r, render: a } = e.props;
|
|
1870
|
+
if (typeof a != "function") return null;
|
|
1871
|
+
const l = a(t, r || {}, { row: o || {}, index: n });
|
|
1872
|
+
return typeof l == "string" ? t("span", l) : l;
|
|
453
1873
|
}
|
|
454
|
-
}),
|
|
1874
|
+
}), Jr = be({
|
|
455
1875
|
name: "RenderBtn",
|
|
456
1876
|
functional: !0,
|
|
457
1877
|
props: {
|
|
@@ -460,15 +1880,15 @@ const Vt = ie({
|
|
|
460
1880
|
formModel: { type: Object, default: () => ({}) },
|
|
461
1881
|
render: { type: Function, default: void 0 }
|
|
462
1882
|
},
|
|
463
|
-
render(
|
|
464
|
-
const { formItemList: o, formModel:
|
|
465
|
-
if (typeof
|
|
466
|
-
const
|
|
467
|
-
return typeof
|
|
1883
|
+
render(t, e) {
|
|
1884
|
+
const { formItemList: o, formModel: n, row: r, render: a } = e.props;
|
|
1885
|
+
if (typeof a != "function") return null;
|
|
1886
|
+
const i = a(r, n, o, t) || "";
|
|
1887
|
+
return typeof i == "string" ? t("span", i) : i;
|
|
468
1888
|
}
|
|
469
|
-
}),
|
|
1889
|
+
}), Gr = be({
|
|
470
1890
|
name: "EsForm",
|
|
471
|
-
components: { RenderDomForm:
|
|
1891
|
+
components: { RenderDomForm: Qr, RenderBtn: Jr },
|
|
472
1892
|
props: {
|
|
473
1893
|
/** 表单 model 数据 */
|
|
474
1894
|
model: { type: Object, default: () => ({}) },
|
|
@@ -487,264 +1907,264 @@ const Vt = ie({
|
|
|
487
1907
|
/** 字段映射注入函数 */
|
|
488
1908
|
fieldFieldOutput: { type: Function, default: void 0 }
|
|
489
1909
|
},
|
|
490
|
-
setup(
|
|
491
|
-
var
|
|
492
|
-
const o =
|
|
493
|
-
const
|
|
494
|
-
return (
|
|
495
|
-
},
|
|
496
|
-
var
|
|
497
|
-
const
|
|
498
|
-
return
|
|
499
|
-
}),
|
|
500
|
-
if (!
|
|
501
|
-
const
|
|
502
|
-
return typeof
|
|
503
|
-
},
|
|
504
|
-
if (
|
|
505
|
-
return typeof
|
|
506
|
-
const
|
|
507
|
-
return typeof
|
|
508
|
-
}),
|
|
509
|
-
const
|
|
510
|
-
return !!(
|
|
511
|
-
}),
|
|
512
|
-
const { icon:
|
|
513
|
-
if (
|
|
514
|
-
const
|
|
515
|
-
|
|
1910
|
+
setup(t, e) {
|
|
1911
|
+
var at, st, Ue, Ae, lt;
|
|
1912
|
+
const o = qt(), n = () => {
|
|
1913
|
+
const b = o == null ? void 0 : o.proxy;
|
|
1914
|
+
return (b == null ? void 0 : b.$refs) || {};
|
|
1915
|
+
}, r = E(() => {
|
|
1916
|
+
var A, N;
|
|
1917
|
+
const b = o == null ? void 0 : o.proxy, C = (N = (A = b == null ? void 0 : b.$vnode) == null ? void 0 : A.data) == null ? void 0 : N.model;
|
|
1918
|
+
return C && typeof C == "object" && typeof C.callback != "function" ? C : t.model;
|
|
1919
|
+
}), a = (st = (at = Se("$esPlusForm", null)) != null ? at : Pe().EsForm) != null ? st : {}, i = (Ae = (Ue = Se("$EsPlus", null)) != null ? Ue : Pe()) != null ? Ae : {}, l = (b) => {
|
|
1920
|
+
if (!b) return !0;
|
|
1921
|
+
const C = i.permission;
|
|
1922
|
+
return typeof C == "function" ? C(b) : !0;
|
|
1923
|
+
}, y = (b) => b.labelKey && typeof i.t == "function" ? i.t(b.labelKey) : b.label, c = Se("getTableInstantce", null), p = E(() => {
|
|
1924
|
+
if (c)
|
|
1925
|
+
return typeof c == "function" ? c() : c;
|
|
1926
|
+
const b = o == null ? void 0 : o.proxy, C = b == null ? void 0 : b.getTableInstantce;
|
|
1927
|
+
return typeof C == "function" ? C() : C;
|
|
1928
|
+
}), s = E(() => {
|
|
1929
|
+
const b = p.value;
|
|
1930
|
+
return !!(b && Object.keys(b).length);
|
|
1931
|
+
}), m = (b) => b ? b.startsWith("el-icon-") ? b : `el-icon-${b.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase()}` : void 0, v = (b) => {
|
|
1932
|
+
const { icon: C, ...A } = b;
|
|
1933
|
+
if (A.size !== void 0) {
|
|
1934
|
+
const N = St(A.size);
|
|
1935
|
+
N !== void 0 && (A.size = N);
|
|
516
1936
|
} else
|
|
517
|
-
|
|
518
|
-
return
|
|
519
|
-
},
|
|
520
|
-
const
|
|
521
|
-
return typeof
|
|
522
|
-
},
|
|
523
|
-
((
|
|
524
|
-
),
|
|
525
|
-
const
|
|
1937
|
+
A.size = "mini";
|
|
1938
|
+
return A;
|
|
1939
|
+
}, h = (b) => {
|
|
1940
|
+
const C = b.disabled;
|
|
1941
|
+
return typeof C == "function" ? !!C() : !!C;
|
|
1942
|
+
}, f = L({}), S = L(t.formItemList || []), { formInputComponents: F } = qr(), H = (a == null ? void 0 : a.$httpRequest) || void 0, M = t.fieldFieldOutput || (a == null ? void 0 : a.fieldFieldOutput), { getEveryFormQueryField: W } = Ur(H), U = L(
|
|
1943
|
+
((lt = t.layoutFormProps) == null ? void 0 : lt.fromLayProps) || {}
|
|
1944
|
+
), J = E(() => {
|
|
1945
|
+
const C = {
|
|
526
1946
|
size: "mini",
|
|
527
|
-
...
|
|
528
|
-
model:
|
|
529
|
-
rules:
|
|
1947
|
+
...U.value || {},
|
|
1948
|
+
model: r.value,
|
|
1949
|
+
rules: t.rules,
|
|
530
1950
|
validateOnRuleChange: !1
|
|
531
|
-
},
|
|
532
|
-
return
|
|
533
|
-
}),
|
|
534
|
-
|
|
535
|
-
() =>
|
|
536
|
-
async (
|
|
537
|
-
const
|
|
538
|
-
(
|
|
1951
|
+
}, A = St(C.size);
|
|
1952
|
+
return A !== void 0 && (C.size = A), (C.labelWidth === void 0 || C.labelWidth === "" || C.labelWidth === null) && (C.labelWidth = "auto"), C;
|
|
1953
|
+
}), K = L(/* @__PURE__ */ new Set());
|
|
1954
|
+
we(
|
|
1955
|
+
() => t.formItemList,
|
|
1956
|
+
async (b) => {
|
|
1957
|
+
const C = Array.isArray(b) ? b : [], A = C.filter(
|
|
1958
|
+
(I) => I && I.isInitRun !== !1 && !K.value.has(I.prop)
|
|
539
1959
|
);
|
|
540
|
-
if (!
|
|
541
|
-
|
|
542
|
-
var
|
|
543
|
-
if (!
|
|
544
|
-
const
|
|
545
|
-
return (
|
|
546
|
-
}).filter((
|
|
1960
|
+
if (!A.length) {
|
|
1961
|
+
S.value = C.map((I) => {
|
|
1962
|
+
var j;
|
|
1963
|
+
if (!I) return null;
|
|
1964
|
+
const P = S.value.find((ie) => ie && ie.prop === I.prop);
|
|
1965
|
+
return (j = P == null ? void 0 : P.dataOptions) != null && j.length ? { ...I, dataOptions: P.dataOptions } : I;
|
|
1966
|
+
}).filter((I) => !!I);
|
|
547
1967
|
return;
|
|
548
1968
|
}
|
|
549
|
-
const
|
|
550
|
-
|
|
551
|
-
var
|
|
552
|
-
if (!
|
|
553
|
-
const
|
|
554
|
-
return
|
|
555
|
-
...
|
|
556
|
-
dataOptions:
|
|
557
|
-
} : (
|
|
558
|
-
}).filter((
|
|
1969
|
+
const N = await W(A, M);
|
|
1970
|
+
A.forEach((I) => K.value.add(I.prop)), S.value = C.map((I) => {
|
|
1971
|
+
var ie;
|
|
1972
|
+
if (!I) return null;
|
|
1973
|
+
const P = N.find((ae) => ae && ae.prop === I.prop), j = S.value.find((ae) => ae && ae.prop === I.prop);
|
|
1974
|
+
return P ? {
|
|
1975
|
+
...I,
|
|
1976
|
+
dataOptions: P.listData
|
|
1977
|
+
} : (ie = j == null ? void 0 : j.dataOptions) != null && ie.length ? { ...I, dataOptions: j.dataOptions } : I;
|
|
1978
|
+
}).filter((I) => !!I);
|
|
559
1979
|
},
|
|
560
1980
|
{ immediate: !0, deep: !0 }
|
|
561
1981
|
);
|
|
562
|
-
const
|
|
563
|
-
const
|
|
564
|
-
if (
|
|
565
|
-
const
|
|
566
|
-
return
|
|
567
|
-
}),
|
|
568
|
-
let
|
|
569
|
-
if (
|
|
570
|
-
const
|
|
571
|
-
|
|
1982
|
+
const Q = E(() => {
|
|
1983
|
+
const C = (S.value || []).map((P) => P ? { ...P, dataOptions: P.dataOptions || [] } : null).filter((P) => {
|
|
1984
|
+
if (!P) return !1;
|
|
1985
|
+
const j = P.isHiden, ie = P.isHidden, ae = typeof j == "function" ? j : typeof ie == "function" ? ie : null;
|
|
1986
|
+
return ae ? !ae(r.value, P, J.value) : !0;
|
|
1987
|
+
}), N = C.filter((P) => !P.span).length;
|
|
1988
|
+
let I = 6;
|
|
1989
|
+
if (N > 0) {
|
|
1990
|
+
const P = C.reduce((ie, ae) => ie + (ae.span || 0), 0), j = 24 - (P % 24 || (P ? 24 : 0));
|
|
1991
|
+
P === 0 ? N === 1 ? I = 24 : N === 2 ? I = 12 : N === 3 ? I = 8 : I = 6 : (I = j >= N ? Math.floor(j / N) : 6, I > 12 && (I = 12), I < 4 && (I = 6));
|
|
572
1992
|
}
|
|
573
|
-
return
|
|
574
|
-
}),
|
|
575
|
-
layoutFormProps:
|
|
1993
|
+
return C.map((P) => ({ ...P, span: P.span || I }));
|
|
1994
|
+
}), O = Wr({
|
|
1995
|
+
layoutFormProps: t.layoutFormProps,
|
|
576
1996
|
get formItemList() {
|
|
577
|
-
return
|
|
1997
|
+
return Q.value;
|
|
578
1998
|
}
|
|
579
1999
|
}), {
|
|
580
|
-
folded:
|
|
581
|
-
isBtnHidden:
|
|
582
|
-
rowLayout:
|
|
583
|
-
formLayout:
|
|
584
|
-
getRowColsAlgorithm:
|
|
2000
|
+
folded: u,
|
|
2001
|
+
isBtnHidden: g,
|
|
2002
|
+
rowLayout: _,
|
|
2003
|
+
formLayout: k,
|
|
2004
|
+
getRowColsAlgorithm: T,
|
|
585
2005
|
isFold: x,
|
|
586
|
-
getBtnColSpan:
|
|
587
|
-
formItem:
|
|
2006
|
+
getBtnColSpan: z,
|
|
2007
|
+
formItem: X,
|
|
588
2008
|
changeFolded: q
|
|
589
|
-
} =
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
(
|
|
593
|
-
|
|
2009
|
+
} = O;
|
|
2010
|
+
we(
|
|
2011
|
+
k,
|
|
2012
|
+
(b) => {
|
|
2013
|
+
U.value = b;
|
|
594
2014
|
},
|
|
595
2015
|
{ immediate: !0 }
|
|
596
2016
|
);
|
|
597
|
-
const
|
|
598
|
-
colRightBtn:
|
|
599
|
-
colLeftBtn:
|
|
600
|
-
})),
|
|
601
|
-
var
|
|
602
|
-
const
|
|
603
|
-
(
|
|
604
|
-
},
|
|
605
|
-
var
|
|
606
|
-
const
|
|
607
|
-
|
|
608
|
-
},
|
|
609
|
-
var
|
|
610
|
-
const
|
|
611
|
-
if (
|
|
612
|
-
|
|
2017
|
+
const ve = E(() => ({
|
|
2018
|
+
colRightBtn: t.configBtn.filter((b) => b.direction === "right" || !b.direction),
|
|
2019
|
+
colLeftBtn: t.configBtn.filter((b) => b.direction === "left")
|
|
2020
|
+
})), ge = E(() => typeof t.renderBtn == "function"), le = (b) => {
|
|
2021
|
+
var N, I;
|
|
2022
|
+
const C = n().formRef, A = (N = p.value) == null ? void 0 : N.httpRequestInstance;
|
|
2023
|
+
(I = b.click) == null || I.call(b, r.value, C, A);
|
|
2024
|
+
}, We = (b, C, A) => {
|
|
2025
|
+
var I, P, j;
|
|
2026
|
+
const N = p.value;
|
|
2027
|
+
A === "query" ? s.value && ((I = N == null ? void 0 : N.httpRequestInstance) == null || I.call(N, b)) : A === "rest" && C && (s.value && ((P = N == null ? void 0 : N.httpRequestInstance) == null || P.call(N, b)), (j = C.resetFields) == null || j.call(C));
|
|
2028
|
+
}, It = (b) => {
|
|
2029
|
+
var A, N, I;
|
|
2030
|
+
const C = n().formRef;
|
|
2031
|
+
if (b.triggerEvent && ["query", "rest"].includes(b.key || ""))
|
|
2032
|
+
We(r.value, C, b.key);
|
|
613
2033
|
else {
|
|
614
|
-
|
|
615
|
-
const
|
|
616
|
-
(
|
|
2034
|
+
b.key === "rest" && C && ((A = C.resetFields) == null || A.call(C));
|
|
2035
|
+
const P = (N = p.value) == null ? void 0 : N.httpRequestInstance;
|
|
2036
|
+
(I = b.click) == null || I.call(b, r.value, C, P);
|
|
617
2037
|
}
|
|
618
|
-
},
|
|
619
|
-
if (
|
|
620
|
-
const { style:
|
|
621
|
-
return { style: { marginBottom: "10px", ...
|
|
2038
|
+
}, Ft = (b) => {
|
|
2039
|
+
if (s.value) {
|
|
2040
|
+
const { style: C, ...A } = b;
|
|
2041
|
+
return { style: { marginBottom: "10px", ...C || {} }, ...A };
|
|
622
2042
|
}
|
|
623
|
-
return
|
|
624
|
-
},
|
|
625
|
-
const
|
|
626
|
-
return
|
|
2043
|
+
return b;
|
|
2044
|
+
}, Ie = () => n().formRef, nt = () => {
|
|
2045
|
+
const b = Ie();
|
|
2046
|
+
return b ? new Promise((C) => {
|
|
627
2047
|
try {
|
|
628
|
-
const
|
|
629
|
-
|
|
2048
|
+
const A = b.validate((N) => {
|
|
2049
|
+
C(!!N);
|
|
630
2050
|
});
|
|
631
|
-
|
|
632
|
-
} catch (
|
|
633
|
-
|
|
2051
|
+
A && typeof A.then == "function" && A.then(C).catch(() => C(!1));
|
|
2052
|
+
} catch (A) {
|
|
2053
|
+
C(!1);
|
|
634
2054
|
}
|
|
635
2055
|
}) : Promise.resolve(!1);
|
|
636
|
-
},
|
|
637
|
-
var
|
|
638
|
-
return (
|
|
639
|
-
},
|
|
640
|
-
var
|
|
641
|
-
return (
|
|
642
|
-
},
|
|
643
|
-
var
|
|
644
|
-
return (
|
|
645
|
-
},
|
|
646
|
-
const
|
|
647
|
-
if (!
|
|
648
|
-
(await
|
|
649
|
-
if (!
|
|
650
|
-
const
|
|
651
|
-
|
|
652
|
-
...
|
|
653
|
-
dataOptions:
|
|
2056
|
+
}, ot = () => {
|
|
2057
|
+
var b;
|
|
2058
|
+
return (b = Ie()) == null ? void 0 : b.resetFields();
|
|
2059
|
+
}, rt = (b) => {
|
|
2060
|
+
var C;
|
|
2061
|
+
return (C = Ie()) == null ? void 0 : C.clearValidate(b);
|
|
2062
|
+
}, it = (b) => {
|
|
2063
|
+
var C;
|
|
2064
|
+
return (C = Ie()) == null ? void 0 : C.validateField(b);
|
|
2065
|
+
}, De = async (b) => {
|
|
2066
|
+
const A = Q.value.filter((I) => I && b.includes(I.prop));
|
|
2067
|
+
if (!A.length) return;
|
|
2068
|
+
(await W(A, M)).forEach((I) => {
|
|
2069
|
+
if (!I) return;
|
|
2070
|
+
const P = S.value.findIndex((j) => j && j.prop === I.prop);
|
|
2071
|
+
P !== -1 && (S.value[P] = {
|
|
2072
|
+
...S.value[P],
|
|
2073
|
+
dataOptions: I.listData
|
|
654
2074
|
});
|
|
655
2075
|
});
|
|
656
2076
|
};
|
|
657
|
-
return
|
|
658
|
-
|
|
659
|
-
const
|
|
660
|
-
|
|
2077
|
+
return Xe(() => {
|
|
2078
|
+
f.value = n().formRef;
|
|
2079
|
+
const b = o == null ? void 0 : o.proxy, C = b == null ? void 0 : b.bodyFormInstance;
|
|
2080
|
+
C == null || C(f.value);
|
|
661
2081
|
}), typeof e.expose == "function" && e.expose({
|
|
662
|
-
formItmeRequestInstance:
|
|
663
|
-
getFormRef:
|
|
664
|
-
validate:
|
|
665
|
-
resetFields:
|
|
666
|
-
clearValidate:
|
|
667
|
-
validateField:
|
|
2082
|
+
formItmeRequestInstance: De,
|
|
2083
|
+
getFormRef: Ie,
|
|
2084
|
+
validate: nt,
|
|
2085
|
+
resetFields: ot,
|
|
2086
|
+
clearValidate: rt,
|
|
2087
|
+
validateField: it
|
|
668
2088
|
}), {
|
|
669
2089
|
// 模板使用
|
|
670
|
-
formProps:
|
|
671
|
-
rowLayout:
|
|
672
|
-
formItem:
|
|
673
|
-
isBtnHidden:
|
|
2090
|
+
formProps: J,
|
|
2091
|
+
rowLayout: _,
|
|
2092
|
+
formItem: X,
|
|
2093
|
+
isBtnHidden: g,
|
|
674
2094
|
isFold: x,
|
|
675
|
-
folded:
|
|
676
|
-
getBtnColSpan:
|
|
677
|
-
isRenderBtn:
|
|
678
|
-
colRightLeftList:
|
|
679
|
-
formInputComponents:
|
|
680
|
-
formInstance:
|
|
2095
|
+
folded: u,
|
|
2096
|
+
getBtnColSpan: z,
|
|
2097
|
+
isRenderBtn: ge,
|
|
2098
|
+
colRightLeftList: ve,
|
|
2099
|
+
formInputComponents: F,
|
|
2100
|
+
formInstance: f,
|
|
681
2101
|
// 注意:不要在 setup return 中暴露与 props 同名的 key(configBtn / model /
|
|
682
2102
|
// btnColSpanRow / renderBtn)——Vue 2 已自动把 props 挂到 vm 实例,
|
|
683
2103
|
// 重复暴露会在 @vue/composition-api 下触发 "already declared as a prop" 警告。
|
|
684
2104
|
// 模板中的 :model 引用 resolvedModel(用于解析 v-model 兼容),其它 props 直接使用名称。
|
|
685
|
-
resolvedModel:
|
|
686
|
-
getRowColsAlgorithm:
|
|
2105
|
+
resolvedModel: r,
|
|
2106
|
+
getRowColsAlgorithm: T,
|
|
687
2107
|
changeFolded: q,
|
|
688
2108
|
// 方法
|
|
689
|
-
checkPermission:
|
|
690
|
-
translateLabel:
|
|
691
|
-
getCompIcon:
|
|
692
|
-
filterOptions:
|
|
693
|
-
resolveDisabled:
|
|
694
|
-
handleBtnClick:
|
|
695
|
-
clickBtn:
|
|
696
|
-
initFormItemOptions:
|
|
2109
|
+
checkPermission: l,
|
|
2110
|
+
translateLabel: y,
|
|
2111
|
+
getCompIcon: m,
|
|
2112
|
+
filterOptions: v,
|
|
2113
|
+
resolveDisabled: h,
|
|
2114
|
+
handleBtnClick: le,
|
|
2115
|
+
clickBtn: It,
|
|
2116
|
+
initFormItemOptions: Ft,
|
|
697
2117
|
noop: () => {
|
|
698
2118
|
},
|
|
699
2119
|
// expose 公开方法(供 $refs.<esForm>.validate() 直接调用,不经过 ctx.expose)
|
|
700
|
-
formItmeRequestInstance:
|
|
701
|
-
getFormRef:
|
|
702
|
-
validate:
|
|
703
|
-
resetFields:
|
|
704
|
-
clearValidate:
|
|
705
|
-
validateField:
|
|
2120
|
+
formItmeRequestInstance: De,
|
|
2121
|
+
getFormRef: Ie,
|
|
2122
|
+
validate: nt,
|
|
2123
|
+
resetFields: ot,
|
|
2124
|
+
clearValidate: rt,
|
|
2125
|
+
validateField: it
|
|
706
2126
|
};
|
|
707
2127
|
}
|
|
708
2128
|
});
|
|
709
|
-
function
|
|
710
|
-
var
|
|
711
|
-
return e && (
|
|
712
|
-
exports:
|
|
713
|
-
options:
|
|
2129
|
+
function Ne(t, e, o, n, r, a, i, l) {
|
|
2130
|
+
var y = typeof t == "function" ? t.options : t;
|
|
2131
|
+
return e && (y.render = e, y.staticRenderFns = o, y._compiled = !0), a && (y._scopeId = "data-v-" + a), {
|
|
2132
|
+
exports: t,
|
|
2133
|
+
options: y
|
|
714
2134
|
};
|
|
715
2135
|
}
|
|
716
|
-
var
|
|
2136
|
+
var Yr = function() {
|
|
717
2137
|
var e = this, o = e._self._c;
|
|
718
|
-
return e._self._setupProxy, o("el-form", e._b({ ref: "formRef", staticClass: "es-form" }, "el-form", e.formProps, !1), [o("div", { staticClass: "flex-center" }, [o("el-row", e._b({}, "el-row", e.rowLayout, !1), [e._l(e.formItem, function(
|
|
719
|
-
return [o("el-col", { directives: [{ name: "show", rawName: "v-show", value: !
|
|
720
|
-
return
|
|
721
|
-
} } }, "el-form-item", e.initFormItemOptions(
|
|
722
|
-
}), e.isBtnHidden ? e._e() : [e.isRenderBtn ? o("render-btn", { attrs: { row: { isFold: e.isFold, folded: e.folded, getBtnColSpan: e.getBtnColSpan, getRowColsAlgorithm: e.getRowColsAlgorithm, changeFolded: e.changeFolded, refsForm: e.formInstance }, "form-model": e.resolvedModel, "form-item-list": e.formItem, render: e.renderBtn } }) : o("el-col", { attrs: { span: e.btnColSpanRow ? 24 : e.getBtnColSpan } }, [e.btnColSpanRow && e.configBtn.length ? o("div", { staticClass: "buttonOperate leftRightBtn" }, [o("div", { staticClass: "btn-left" }, [o("el-form-item", { staticClass: "btn-formItem", attrs: { "label-width": "0px" } }, [e._l(e.colRightLeftList.colLeftBtn, function(
|
|
723
|
-
return [e.checkPermission(
|
|
724
|
-
return e.handleBtnClick(
|
|
725
|
-
} } }, "el-button", e.filterOptions(
|
|
726
|
-
})], 2)], 1), o("div", { staticClass: "btn-right" }, [o("el-form-item", { staticClass: "btn-formItem", attrs: { "label-width": "0px" } }, [e._l(e.colRightLeftList.colRightBtn, function(
|
|
727
|
-
return [e.checkPermission(
|
|
728
|
-
return e.clickBtn(
|
|
729
|
-
} } }, "el-button", e.filterOptions(
|
|
730
|
-
}), e.isFold ? o("el-button", { staticStyle: { "padding-left": "0", border: "none" }, attrs: { type: "text", icon: e.folded ? "el-icon-arrow-down" : "el-icon-arrow-up" }, on: { click: e.changeFolded } }, [e._v(" " + e._s(e.folded ? "展开" : "收起") + " ")]) : e._e()], 2)], 1)]) : e._e(), !e.btnColSpanRow && e.configBtn.length ? o("el-form-item", { staticClass: "btn-formItem", class: { formItemCols: e.btnColSpanRow ? !0 : e.getBtnColSpan === 24 }, attrs: { label: " ", "label-width": e.formProps.labelBtnWidth ? e.formProps.labelBtnWidth : e.formProps.labelWidth } }, [o("div", { staticClass: "buttonOperate", style: { "text-align": e.getBtnColSpan === 24 ? "right" : "left" } }, [e._l(e.configBtn, function(
|
|
731
|
-
return [e.checkPermission(
|
|
732
|
-
return e.handleBtnClick(
|
|
733
|
-
} } }, "el-button", e.filterOptions(
|
|
2138
|
+
return e._self._setupProxy, o("el-form", e._b({ ref: "formRef", staticClass: "es-form" }, "el-form", e.formProps, !1), [o("div", { staticClass: "flex-center" }, [o("el-row", e._b({}, "el-row", e.rowLayout, !1), [e._l(e.formItem, function(n, r) {
|
|
2139
|
+
return [o("el-col", { directives: [{ name: "show", rawName: "v-show", value: !n.isFold, expression: "!item.isFold" }], key: n.prop || r, attrs: { span: n.span } }, [o("el-form-item", e._b({ attrs: { label: e.translateLabel(n), prop: n.prop }, nativeOn: { click: function(a) {
|
|
2140
|
+
return a.stopPropagation(), e.noop.apply(null, arguments);
|
|
2141
|
+
} } }, "el-form-item", e.initFormItemOptions(n.formItemOptions || {}), !1), [n.formtype ? [o("render-dom-form", { attrs: { row: n, render: e.formInputComponents(n), index: r, model: e.resolvedModel } })] : n.render ? [o("render-dom-form", { attrs: { row: n, render: n.render, index: r, model: e.resolvedModel } })] : e._e()], 2)], 1)];
|
|
2142
|
+
}), e.isBtnHidden ? e._e() : [e.isRenderBtn ? o("render-btn", { attrs: { row: { isFold: e.isFold, folded: e.folded, getBtnColSpan: e.getBtnColSpan, getRowColsAlgorithm: e.getRowColsAlgorithm, changeFolded: e.changeFolded, refsForm: e.formInstance }, "form-model": e.resolvedModel, "form-item-list": e.formItem, render: e.renderBtn } }) : o("el-col", { attrs: { span: e.btnColSpanRow ? 24 : e.getBtnColSpan } }, [e.btnColSpanRow && e.configBtn.length ? o("div", { staticClass: "buttonOperate leftRightBtn" }, [o("div", { staticClass: "btn-left" }, [o("el-form-item", { staticClass: "btn-formItem", attrs: { "label-width": "0px" } }, [e._l(e.colRightLeftList.colLeftBtn, function(n, r) {
|
|
2143
|
+
return [e.checkPermission(n.permissionValue) ? o("el-button", e._b({ key: n.key || r, attrs: { icon: e.getCompIcon(n.icon), disabled: e.resolveDisabled(n) }, on: { click: function(a) {
|
|
2144
|
+
return e.handleBtnClick(n);
|
|
2145
|
+
} } }, "el-button", e.filterOptions(n), !1), [e._v(" " + e._s(n.name) + " ")]) : e._e()];
|
|
2146
|
+
})], 2)], 1), o("div", { staticClass: "btn-right" }, [o("el-form-item", { staticClass: "btn-formItem", attrs: { "label-width": "0px" } }, [e._l(e.colRightLeftList.colRightBtn, function(n, r) {
|
|
2147
|
+
return [e.checkPermission(n.permissionValue) ? o("el-button", e._b({ key: n.key || r, attrs: { icon: e.getCompIcon(n.icon), disabled: e.resolveDisabled(n) }, on: { click: function(a) {
|
|
2148
|
+
return e.clickBtn(n);
|
|
2149
|
+
} } }, "el-button", e.filterOptions(n), !1), [e._v(" " + e._s(n.name) + " ")]) : e._e()];
|
|
2150
|
+
}), e.isFold ? o("el-button", { staticStyle: { "padding-left": "0", border: "none" }, attrs: { type: "text", icon: e.folded ? "el-icon-arrow-down" : "el-icon-arrow-up" }, on: { click: e.changeFolded } }, [e._v(" " + e._s(e.folded ? "展开" : "收起") + " ")]) : e._e()], 2)], 1)]) : e._e(), !e.btnColSpanRow && e.configBtn.length ? o("el-form-item", { staticClass: "btn-formItem", class: { formItemCols: e.btnColSpanRow ? !0 : e.getBtnColSpan === 24 }, attrs: { label: " ", "label-width": e.formProps.labelBtnWidth ? e.formProps.labelBtnWidth : e.formProps.labelWidth } }, [o("div", { staticClass: "buttonOperate", style: { "text-align": e.getBtnColSpan === 24 ? "right" : "left" } }, [e._l(e.configBtn, function(n, r) {
|
|
2151
|
+
return [e.checkPermission(n.permissionValue) ? o("el-button", e._b({ key: n.key || r, attrs: { icon: e.getCompIcon(n.icon), disabled: e.resolveDisabled(n) }, on: { click: function(a) {
|
|
2152
|
+
return e.handleBtnClick(n);
|
|
2153
|
+
} } }, "el-button", e.filterOptions(n), !1), [e._v(" " + e._s(n.name) + " ")]) : e._e()];
|
|
734
2154
|
}), e.isFold ? o("el-button", { staticStyle: { "padding-left": "0", border: "none" }, attrs: { type: "text", icon: e.folded ? "el-icon-arrow-down" : "el-icon-arrow-up" }, on: { click: e.changeFolded } }, [e._v(" " + e._s(e.folded ? "展开" : "收起") + " ")]) : e._e()], 2)]) : e._e()], 1)]], 2)], 1)]);
|
|
735
|
-
},
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
2155
|
+
}, Zr = [], Xr = /* @__PURE__ */ Ne(
|
|
2156
|
+
Gr,
|
|
2157
|
+
Yr,
|
|
2158
|
+
Zr,
|
|
739
2159
|
!1,
|
|
740
2160
|
null,
|
|
741
2161
|
"4a462026"
|
|
742
2162
|
);
|
|
743
|
-
const
|
|
744
|
-
|
|
745
|
-
|
|
2163
|
+
const ze = Xr.exports;
|
|
2164
|
+
ze.install = function(t) {
|
|
2165
|
+
t.component(ze.name || "EsForm", ze);
|
|
746
2166
|
};
|
|
747
|
-
const
|
|
2167
|
+
const ei = be({
|
|
748
2168
|
name: "RenderDomTb",
|
|
749
2169
|
props: {
|
|
750
2170
|
row: { type: Object, default: () => ({}) },
|
|
@@ -752,22 +2172,22 @@ const Zt = ie({
|
|
|
752
2172
|
dataKey: String,
|
|
753
2173
|
render: { type: Function, required: !0 }
|
|
754
2174
|
},
|
|
755
|
-
setup(
|
|
2175
|
+
setup(t) {
|
|
756
2176
|
return () => {
|
|
757
|
-
const { row: e, index: o, dataKey:
|
|
758
|
-
if (!e) return
|
|
759
|
-
const
|
|
2177
|
+
const { row: e, index: o, dataKey: n, render: r } = t;
|
|
2178
|
+
if (!e) return Ce("span", "-");
|
|
2179
|
+
const a = n ? e[n] : null;
|
|
760
2180
|
try {
|
|
761
|
-
const
|
|
762
|
-
return typeof
|
|
763
|
-
} catch (
|
|
764
|
-
return
|
|
2181
|
+
const i = r(Ce, { value: a, row: e, index: o });
|
|
2182
|
+
return typeof i == "string" ? Ce("span", i) : i;
|
|
2183
|
+
} catch (i) {
|
|
2184
|
+
return Ce("span", "-");
|
|
765
2185
|
}
|
|
766
2186
|
};
|
|
767
2187
|
}
|
|
768
|
-
}),
|
|
2188
|
+
}), ti = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), ni = be({
|
|
769
2189
|
name: "EsTableColumnItem",
|
|
770
|
-
components: { RenderDomTb:
|
|
2190
|
+
components: { RenderDomTb: ei },
|
|
771
2191
|
props: {
|
|
772
2192
|
cols: {
|
|
773
2193
|
type: Object,
|
|
@@ -775,64 +2195,64 @@ const Zt = ie({
|
|
|
775
2195
|
}
|
|
776
2196
|
},
|
|
777
2197
|
setup() {
|
|
778
|
-
var o,
|
|
779
|
-
const
|
|
2198
|
+
var o, n;
|
|
2199
|
+
const t = (n = (o = Se("$EsPlus", null)) != null ? o : Pe()) != null ? n : {};
|
|
780
2200
|
return {
|
|
781
|
-
columnBindAttr: (
|
|
782
|
-
const
|
|
783
|
-
for (const
|
|
784
|
-
if (!(
|
|
785
|
-
if (
|
|
786
|
-
const
|
|
787
|
-
let
|
|
788
|
-
for (let
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
} else
|
|
792
|
-
return
|
|
2201
|
+
columnBindAttr: (r) => {
|
|
2202
|
+
const a = {};
|
|
2203
|
+
for (const i in r)
|
|
2204
|
+
if (!(i === "groups" || i === "scopedSlots" || i === "render"))
|
|
2205
|
+
if (i.includes("-")) {
|
|
2206
|
+
const l = i.split("-");
|
|
2207
|
+
let y = l[0];
|
|
2208
|
+
for (let c = 1; c < l.length; c++)
|
|
2209
|
+
y += ti(l[c]);
|
|
2210
|
+
a[y] = r[i];
|
|
2211
|
+
} else i === "key" ? (a.prop = r[i], a[i] = r[i]) : i === "label" && r.labelKey && typeof t.t == "function" ? a.label = t.t(r.labelKey) : a[i] = r[i];
|
|
2212
|
+
return a.align || (a.align = "center"), a;
|
|
793
2213
|
}
|
|
794
2214
|
};
|
|
795
2215
|
}
|
|
796
2216
|
});
|
|
797
|
-
var
|
|
2217
|
+
var oi = function() {
|
|
798
2218
|
var e = this, o = e._self._c;
|
|
799
|
-
return e._self._setupProxy, e.cols.groups && Array.isArray(e.cols.groups) ? o("el-table-column", e._b({}, "el-table-column", e.columnBindAttr(e.cols), !1), e._l(e.cols.groups, function(
|
|
800
|
-
return o("el-table-column", e._b({ key:
|
|
801
|
-
return [
|
|
802
|
-
} } :
|
|
803
|
-
return [
|
|
804
|
-
} } : null], null, !0) }, "el-table-column", e.columnBindAttr(Object.assign({},
|
|
805
|
-
}), 1) : e.cols.render && typeof e.cols.render == "function" ? o("el-table-column", e._b({ scopedSlots: e._u([{ key: "default", fn: function(
|
|
806
|
-
return [
|
|
807
|
-
} }]) }, "el-table-column", e.columnBindAttr(e.cols), !1)) : e.cols.scopedSlots && e.cols.scopedSlots.customRender ? o("el-table-column", e._b({ scopedSlots: e._u([{ key: "default", fn: function(
|
|
808
|
-
return [
|
|
2219
|
+
return e._self._setupProxy, e.cols.groups && Array.isArray(e.cols.groups) ? o("el-table-column", e._b({}, "el-table-column", e.columnBindAttr(e.cols), !1), e._l(e.cols.groups, function(n, r) {
|
|
2220
|
+
return o("el-table-column", e._b({ key: n.prop || n.key || r, scopedSlots: e._u([n.render && typeof n.render == "function" ? { key: "default", fn: function(a) {
|
|
2221
|
+
return [a && a.row ? o("render-dom-tb", { attrs: { row: a.row, index: a.$index, "data-key": n.key, render: n.render } }) : o("span", [e._v("-")])];
|
|
2222
|
+
} } : n.scopedSlots && n.scopedSlots.customRender ? { key: "default", fn: function(a) {
|
|
2223
|
+
return [a && a.row ? e._t(n.scopedSlots.customRender, null, null, Object.assign({}, n, { row: a.row, column: a.column, scope: a })) : o("span", [e._v("-")])];
|
|
2224
|
+
} } : null], null, !0) }, "el-table-column", e.columnBindAttr(Object.assign({}, n, { columnIndex: r })), !1));
|
|
2225
|
+
}), 1) : e.cols.render && typeof e.cols.render == "function" ? o("el-table-column", e._b({ scopedSlots: e._u([{ key: "default", fn: function(n) {
|
|
2226
|
+
return [n && n.row ? o("render-dom-tb", { attrs: { row: n.row, index: n.$index, "data-key": e.cols.key, render: e.cols.render } }) : o("span", [e._v("-")])];
|
|
2227
|
+
} }]) }, "el-table-column", e.columnBindAttr(e.cols), !1)) : e.cols.scopedSlots && e.cols.scopedSlots.customRender ? o("el-table-column", e._b({ scopedSlots: e._u([{ key: "default", fn: function(n) {
|
|
2228
|
+
return [n && n.row ? e._t(e.cols.scopedSlots.customRender, null, null, Object.assign({}, e.cols, { row: n.row, column: n.column, scope: n })) : o("span", [e._v("-")])];
|
|
809
2229
|
} }], null, !0) }, "el-table-column", e.columnBindAttr(e.cols), !1)) : e.cols.ellipsis && typeof e.cols.ellipsis == "boolean" ? o("el-table-column", e._b({ attrs: { "show-overflow-tooltip": "" } }, "el-table-column", e.columnBindAttr(e.cols), !1)) : o("el-table-column", e._b({}, "el-table-column", e.columnBindAttr(e.cols), !1));
|
|
810
|
-
},
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
2230
|
+
}, ri = [], ii = /* @__PURE__ */ Ne(
|
|
2231
|
+
ni,
|
|
2232
|
+
oi,
|
|
2233
|
+
ri,
|
|
814
2234
|
!1,
|
|
815
2235
|
null,
|
|
816
2236
|
null
|
|
817
2237
|
);
|
|
818
|
-
const
|
|
2238
|
+
const ai = ii.exports, Jn = (t) => t ? t.startsWith("el-icon-") ? t : `el-icon-${t.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase()}` : void 0, si = be({
|
|
819
2239
|
name: "RenderDomTbBtn",
|
|
820
2240
|
props: {
|
|
821
2241
|
render: { type: Function, required: !0 }
|
|
822
2242
|
},
|
|
823
|
-
setup(
|
|
2243
|
+
setup(t) {
|
|
824
2244
|
return () => {
|
|
825
|
-
if (!
|
|
2245
|
+
if (!t.render || typeof t.render != "function") return null;
|
|
826
2246
|
try {
|
|
827
|
-
return
|
|
2247
|
+
return t.render();
|
|
828
2248
|
} catch (e) {
|
|
829
2249
|
return null;
|
|
830
2250
|
}
|
|
831
2251
|
};
|
|
832
2252
|
}
|
|
833
|
-
}),
|
|
2253
|
+
}), li = be({
|
|
834
2254
|
name: "EsTableBtns",
|
|
835
|
-
components: { RenderDom:
|
|
2255
|
+
components: { RenderDom: si },
|
|
836
2256
|
props: {
|
|
837
2257
|
leftText: { type: String, default: "" },
|
|
838
2258
|
btnConfig: {
|
|
@@ -844,120 +2264,120 @@ const nn = tn.exports, ft = (n) => n ? n.startsWith("el-icon-") ? n : `el-icon-$
|
|
|
844
2264
|
default: () => ({})
|
|
845
2265
|
}
|
|
846
2266
|
},
|
|
847
|
-
setup(
|
|
848
|
-
var
|
|
849
|
-
const e = (
|
|
850
|
-
if (!
|
|
851
|
-
const
|
|
852
|
-
return typeof
|
|
853
|
-
},
|
|
854
|
-
const
|
|
855
|
-
return o([],
|
|
856
|
-
}),
|
|
857
|
-
(
|
|
858
|
-
).filter((
|
|
859
|
-
(
|
|
860
|
-
).filter((
|
|
2267
|
+
setup(t) {
|
|
2268
|
+
var s, m;
|
|
2269
|
+
const e = (m = (s = Se("$EsPlus", null)) != null ? s : Pe()) != null ? m : {}, o = (v, h) => {
|
|
2270
|
+
if (!h) return !0;
|
|
2271
|
+
const f = e.permission;
|
|
2272
|
+
return typeof f == "function" ? f(h) : !0;
|
|
2273
|
+
}, n = (v) => v.map((h) => {
|
|
2274
|
+
const f = { ...h };
|
|
2275
|
+
return o([], h.permissionValue) ? typeof h.isHide == "function" ? f.isHide = h.isHide() : f.isHide = h.isHide || !1 : f.isHide = !0, f;
|
|
2276
|
+
}), r = E(() => n(
|
|
2277
|
+
(t.btnConfig || []).filter((v) => en(v) === "left")
|
|
2278
|
+
).filter((v) => !v.isHide)), a = E(() => n(
|
|
2279
|
+
(t.btnConfig || []).filter((v) => en(v) === "right")
|
|
2280
|
+
).filter((v) => !v.isHide)), i = E(() => !!t.leftText || r.value.length > 0 || a.value.length > 0);
|
|
861
2281
|
return {
|
|
862
|
-
processedBtnLeft:
|
|
863
|
-
processedBtnRight:
|
|
864
|
-
showContainer:
|
|
865
|
-
getDisabledState: (
|
|
866
|
-
buttonContainerStyle: (
|
|
2282
|
+
processedBtnLeft: r,
|
|
2283
|
+
processedBtnRight: a,
|
|
2284
|
+
showContainer: i,
|
|
2285
|
+
getDisabledState: (v) => typeof v.disabled == "function" ? v.disabled() : v.disabled || !1,
|
|
2286
|
+
buttonContainerStyle: (v) => ({
|
|
867
2287
|
display: "inline-block",
|
|
868
|
-
marginLeft:
|
|
2288
|
+
marginLeft: v !== 0 ? "8px" : "0px"
|
|
869
2289
|
}),
|
|
870
|
-
getCompIcon:
|
|
871
|
-
filterOptions: (
|
|
2290
|
+
getCompIcon: Jn,
|
|
2291
|
+
filterOptions: (v) => {
|
|
872
2292
|
const {
|
|
873
|
-
render:
|
|
874
|
-
click:
|
|
875
|
-
icon:
|
|
876
|
-
permissionValue:
|
|
877
|
-
code:
|
|
878
|
-
isHide:
|
|
879
|
-
name:
|
|
880
|
-
size:
|
|
881
|
-
...
|
|
882
|
-
} =
|
|
883
|
-
return
|
|
2293
|
+
render: h,
|
|
2294
|
+
click: f,
|
|
2295
|
+
icon: S,
|
|
2296
|
+
permissionValue: F,
|
|
2297
|
+
code: H,
|
|
2298
|
+
isHide: M,
|
|
2299
|
+
name: W,
|
|
2300
|
+
size: U,
|
|
2301
|
+
...J
|
|
2302
|
+
} = v;
|
|
2303
|
+
return J;
|
|
884
2304
|
},
|
|
885
|
-
resolveBtnSize: (
|
|
2305
|
+
resolveBtnSize: (v) => St(v.size) || "mini"
|
|
886
2306
|
};
|
|
887
2307
|
}
|
|
888
2308
|
});
|
|
889
|
-
var
|
|
2309
|
+
var ci = function() {
|
|
890
2310
|
var e = this, o = e._self._c;
|
|
891
|
-
return e._self._setupProxy, e.showContainer ? o("div", { staticClass: "flex-float btns" }, [o("div", { staticClass: "left-text" }, [e._v(" " + e._s(e.leftText) + " ")]), o("div", { staticClass: "btn-container_block" }, [o("div", { staticClass: "btn-left" }, [e._l(e.processedBtnLeft, function(
|
|
892
|
-
return [
|
|
893
|
-
})], 2), o("div", { staticClass: "btn-right" }, [e._l(e.processedBtnRight, function(
|
|
894
|
-
return [
|
|
2311
|
+
return e._self._setupProxy, e.showContainer ? o("div", { staticClass: "flex-float btns" }, [o("div", { staticClass: "left-text" }, [e._v(" " + e._s(e.leftText) + " ")]), o("div", { staticClass: "btn-container_block" }, [o("div", { staticClass: "btn-left" }, [e._l(e.processedBtnLeft, function(n, r) {
|
|
2312
|
+
return [n.isHide ? e._e() : o("div", { key: n.name || r, style: e.buttonContainerStyle(r) }, [n.render && typeof n.render == "function" ? o("render-dom", { attrs: { render: n.render } }) : o("el-button", e._b({ attrs: { type: n.type || "", size: e.resolveBtnSize(n), icon: e.getCompIcon(n.icon), loading: n.loading || !1, disabled: e.getDisabledState(n) }, on: { click: () => n.click && n.click(e.instance) } }, "el-button", e.filterOptions(n), !1), [e._v(" " + e._s(n.name) + " ")])], 1)];
|
|
2313
|
+
})], 2), o("div", { staticClass: "btn-right" }, [e._l(e.processedBtnRight, function(n, r) {
|
|
2314
|
+
return [n.isHide ? e._e() : o("div", { key: n.name || r, style: e.buttonContainerStyle(r) }, [n.render && typeof n.render == "function" ? o("render-dom", { attrs: { render: n.render } }) : o("el-button", e._b({ attrs: { type: n.type || "", size: e.resolveBtnSize(n), icon: e.getCompIcon(n.icon), loading: n.loading || !1, disabled: e.getDisabledState(n) }, on: { click: () => n.click && n.click(e.instance) } }, "el-button", e.filterOptions(n), !1), [e._v(" " + e._s(n.name) + " ")])], 1)];
|
|
895
2315
|
})], 2)])]) : e._e();
|
|
896
|
-
},
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
2316
|
+
}, ui = [], fi = /* @__PURE__ */ Ne(
|
|
2317
|
+
li,
|
|
2318
|
+
ci,
|
|
2319
|
+
ui,
|
|
900
2320
|
!1,
|
|
901
2321
|
null,
|
|
902
2322
|
"2b641efd"
|
|
903
2323
|
);
|
|
904
|
-
const
|
|
905
|
-
function
|
|
906
|
-
const
|
|
907
|
-
var
|
|
908
|
-
const
|
|
909
|
-
return Math.round(
|
|
910
|
-
},
|
|
911
|
-
var
|
|
912
|
-
const
|
|
913
|
-
if (!
|
|
914
|
-
const
|
|
915
|
-
|
|
916
|
-
},
|
|
917
|
-
|
|
918
|
-
if (!
|
|
919
|
-
|
|
2324
|
+
const di = fi.exports;
|
|
2325
|
+
function pi(t, e, o, n, r) {
|
|
2326
|
+
const a = L(400), i = L(null), l = (m) => Math.sign(m) === -1, y = () => {
|
|
2327
|
+
var f, S, F, H;
|
|
2328
|
+
const m = ((f = e.value) == null ? void 0 : f.offsetHeight) || 0, v = ((F = (S = o.value) == null ? void 0 : S.$el) == null ? void 0 : F.offsetHeight) || 0, h = ((H = n.value) == null ? void 0 : H.offsetHeight) || 0;
|
|
2329
|
+
return Math.round(h + m + v);
|
|
2330
|
+
}, c = () => {
|
|
2331
|
+
var U, J, K, Q, O;
|
|
2332
|
+
const m = t.value;
|
|
2333
|
+
if (!m) return;
|
|
2334
|
+
const v = typeof r.tabHeight == "number" ? r.tabHeight : r.heightType === "height" ? ((U = m.parentElement) == null ? void 0 : U.offsetHeight) || m.offsetHeight : parseInt(r.tabHeight, 10) || 450, h = isNaN(v) ? 450 : v, f = h - y(), S = l(f) ? y() + 300 : h, F = ((J = n.value) == null ? void 0 : J.offsetHeight) || 0, H = ((K = e.value) == null ? void 0 : K.offsetHeight) || 0, M = ((O = (Q = o.value) == null ? void 0 : Q.$el) == null ? void 0 : O.offsetHeight) || 0, W = Math.floor(S) - Math.round(F + H + M);
|
|
2335
|
+
a.value !== W && (a.value = W);
|
|
2336
|
+
}, p = () => {
|
|
2337
|
+
Xe(() => {
|
|
2338
|
+
if (!t.value || typeof ResizeObserver == "undefined") return;
|
|
2339
|
+
i.value = new ResizeObserver(() => {
|
|
920
2340
|
requestAnimationFrame(() => {
|
|
921
|
-
|
|
2341
|
+
t.value && c();
|
|
922
2342
|
});
|
|
923
2343
|
});
|
|
924
|
-
const
|
|
925
|
-
|
|
2344
|
+
const m = r.heightType === "height" && t.value.parentElement || t.value;
|
|
2345
|
+
i.value.observe(m), c(), e.value && i.value.observe(e.value), n.value && i.value.observe(n.value);
|
|
926
2346
|
});
|
|
927
|
-
},
|
|
928
|
-
|
|
2347
|
+
}, s = () => {
|
|
2348
|
+
i.value && (i.value.disconnect(), i.value = null);
|
|
929
2349
|
};
|
|
930
|
-
return
|
|
2350
|
+
return Mt(() => p()), jr(() => s()), { tableHeight: a, resizeObservers: c, startObserver: p, stopObserver: s };
|
|
931
2351
|
}
|
|
932
|
-
function
|
|
933
|
-
const e =
|
|
934
|
-
o.value = [...e.multipleSelection],
|
|
2352
|
+
function vi(t) {
|
|
2353
|
+
const e = co(), o = L([]), n = L({}), r = L(!1), a = () => {
|
|
2354
|
+
o.value = [...e.multipleSelection], n.value = { ...e.selectionsByPage }, r.value = e.isInitChange;
|
|
935
2355
|
};
|
|
936
2356
|
return {
|
|
937
2357
|
multipleSelection: o,
|
|
938
|
-
selectionsByPage:
|
|
939
|
-
isInitChange:
|
|
940
|
-
handleSelectionChange: (
|
|
941
|
-
e.isInitChange &&
|
|
2358
|
+
selectionsByPage: n,
|
|
2359
|
+
isInitChange: r,
|
|
2360
|
+
handleSelectionChange: (c, p) => {
|
|
2361
|
+
e.isInitChange && t || (po(e, c, p, t), a());
|
|
942
2362
|
},
|
|
943
|
-
clearAllSelection: (
|
|
944
|
-
|
|
2363
|
+
clearAllSelection: (c) => {
|
|
2364
|
+
c ? fo(e, c) : (e.multipleSelection = [], e.selectionsByPage = {}), a();
|
|
945
2365
|
},
|
|
946
|
-
initSelection: (
|
|
947
|
-
if (e.isInitChange = !0,
|
|
948
|
-
e.isInitChange = !1,
|
|
2366
|
+
initSelection: (c, p) => {
|
|
2367
|
+
if (e.isInitChange = !0, a(), !p) {
|
|
2368
|
+
e.isInitChange = !1, a();
|
|
949
2369
|
return;
|
|
950
2370
|
}
|
|
951
|
-
|
|
952
|
-
|
|
2371
|
+
Xe(t ? () => {
|
|
2372
|
+
uo(e, c, p, t), e.isInitChange = !1, a();
|
|
953
2373
|
} : () => {
|
|
954
|
-
var
|
|
955
|
-
(
|
|
2374
|
+
var s;
|
|
2375
|
+
(s = p.clearSelection) == null || s.call(p), e.isInitChange = !1, a();
|
|
956
2376
|
});
|
|
957
2377
|
}
|
|
958
2378
|
};
|
|
959
2379
|
}
|
|
960
|
-
const
|
|
2380
|
+
const pn = {
|
|
961
2381
|
multiSelect: !1,
|
|
962
2382
|
expand: !1,
|
|
963
2383
|
snIndex: !1,
|
|
@@ -967,7 +2387,7 @@ const rt = {
|
|
|
967
2387
|
headerCellStyle: { background: "#f5f7fa" },
|
|
968
2388
|
highlightCurrentRow: !0,
|
|
969
2389
|
cachePageSelection: !0
|
|
970
|
-
},
|
|
2390
|
+
}, gi = /* @__PURE__ */ new Set([
|
|
971
2391
|
"multiSelect",
|
|
972
2392
|
"expand",
|
|
973
2393
|
"snIndex",
|
|
@@ -991,24 +2411,24 @@ const rt = {
|
|
|
991
2411
|
"estimatedRowHeight",
|
|
992
2412
|
"overscanCount",
|
|
993
2413
|
"rowClassName"
|
|
994
|
-
]),
|
|
2414
|
+
]), mi = (t) => t.toLowerCase().replace(/(\s|^)[a-z]/g, (e) => e.toUpperCase()), yi = (t) => {
|
|
995
2415
|
const e = {};
|
|
996
|
-
for (const o in
|
|
2416
|
+
for (const o in t)
|
|
997
2417
|
if (!(o === "groups" || o === "scopedSlots" || o === "render"))
|
|
998
2418
|
if (o.includes("-")) {
|
|
999
|
-
const
|
|
1000
|
-
let
|
|
1001
|
-
for (let
|
|
1002
|
-
|
|
1003
|
-
e[
|
|
1004
|
-
} else o === "key" && (e.prop =
|
|
2419
|
+
const n = o.split("-");
|
|
2420
|
+
let r = n[0];
|
|
2421
|
+
for (let a = 1; a < n.length; a++)
|
|
2422
|
+
r += mi(n[a]);
|
|
2423
|
+
e[r] = t[o];
|
|
2424
|
+
} else o === "key" && (e.prop = t[o]), e[o] = t[o];
|
|
1005
2425
|
return e.align || (e.align = "center"), e;
|
|
1006
|
-
},
|
|
2426
|
+
}, vn = (t) => {
|
|
1007
2427
|
const e = ["total", "pageSize", "current", "tableData"];
|
|
1008
|
-
return
|
|
1009
|
-
},
|
|
2428
|
+
return ke(t) ? Object.keys(t).every((o) => e.find((n) => n === o) && t[o] && typeof t[o] == "string") : !1;
|
|
2429
|
+
}, hi = be({
|
|
1010
2430
|
name: "EsTable",
|
|
1011
|
-
components: { ColumnItem:
|
|
2431
|
+
components: { ColumnItem: ai, TableBtns: di },
|
|
1012
2432
|
// 关闭自动 attrs 继承,避免 fallthrough 重复绑定
|
|
1013
2433
|
inheritAttrs: !1,
|
|
1014
2434
|
props: {
|
|
@@ -1028,7 +2448,7 @@ const rt = {
|
|
|
1028
2448
|
},
|
|
1029
2449
|
options: {
|
|
1030
2450
|
type: Object,
|
|
1031
|
-
default: () => ({ ...
|
|
2451
|
+
default: () => ({ ...pn })
|
|
1032
2452
|
},
|
|
1033
2453
|
pagination: {
|
|
1034
2454
|
type: Object,
|
|
@@ -1042,55 +2462,55 @@ const rt = {
|
|
|
1042
2462
|
"size-change",
|
|
1043
2463
|
"change-table-sort"
|
|
1044
2464
|
],
|
|
1045
|
-
setup(
|
|
1046
|
-
var
|
|
1047
|
-
const
|
|
2465
|
+
setup(t, { emit: e, slots: o, attrs: n, expose: r }) {
|
|
2466
|
+
var Ut, Kt, Qt, Jt;
|
|
2467
|
+
const a = qt(), i = (Kt = (Ut = Se(
|
|
1048
2468
|
"$esPlusTable",
|
|
1049
2469
|
null
|
|
1050
|
-
)) != null ?
|
|
1051
|
-
if (!
|
|
1052
|
-
const
|
|
1053
|
-
return typeof
|
|
2470
|
+
)) != null ? Ut : Pe().EsTable) != null ? Kt : {}, l = (Jt = (Qt = Se("$EsPlus", null)) != null ? Qt : Pe()) != null ? Jt : {}, y = (d) => {
|
|
2471
|
+
if (!d) return !0;
|
|
2472
|
+
const B = l.permission;
|
|
2473
|
+
return typeof B == "function" ? B(d) : !0;
|
|
1054
2474
|
};
|
|
1055
|
-
(
|
|
2475
|
+
(t.options.virtual === !0 || t.options.engine === "virtual") && console.warn(
|
|
1056
2476
|
"[@es-plus/vue2] 虚拟滚动 (virtual: true) 在 Vue 2 + Element UI 下不可用,已降级为普通 el-table 渲染。如需虚拟滚动请使用 Vue 3 + Element Plus 版本(@es-plus/vue3)。"
|
|
1057
2477
|
);
|
|
1058
|
-
const
|
|
1059
|
-
|
|
1060
|
-
() =>
|
|
1061
|
-
(
|
|
1062
|
-
|
|
2478
|
+
const c = L(null), p = L(null), s = L(null), m = L(null), v = L(null), h = L(`table_${Math.random().toString(36).substring(2, 12)}`), f = L([]), S = E(() => f.value && f.value.length ? f.value : t.dataSource), F = L([...t.columns]);
|
|
2479
|
+
we(
|
|
2480
|
+
() => t.columns,
|
|
2481
|
+
(d) => {
|
|
2482
|
+
F.value = [...d];
|
|
1063
2483
|
},
|
|
1064
2484
|
{ deep: !0 }
|
|
1065
2485
|
);
|
|
1066
|
-
const
|
|
1067
|
-
const
|
|
1068
|
-
!
|
|
1069
|
-
},
|
|
1070
|
-
}),
|
|
1071
|
-
() => typeof
|
|
1072
|
-
),
|
|
2486
|
+
const H = L(!1), M = L(!1), W = L(!1), U = () => {
|
|
2487
|
+
const d = a == null ? void 0 : a.proxy;
|
|
2488
|
+
!d || !d.$refs || (v.value = d.$refs.tableContainerEl || null, s.value = d.$refs.headBarRef || null, m.value = d.$refs.paginationRef || null);
|
|
2489
|
+
}, J = Se("bodyFormInstance", () => {
|
|
2490
|
+
}), K = Se("getVisibleShow", !1), Q = E(
|
|
2491
|
+
() => typeof K == "function" ? K() : K
|
|
2492
|
+
), O = L({
|
|
1073
2493
|
pageSize: 10,
|
|
1074
2494
|
current: 1,
|
|
1075
2495
|
total: 0,
|
|
1076
2496
|
pageSizes: [],
|
|
1077
2497
|
size: "small",
|
|
1078
2498
|
isSmall: !0,
|
|
1079
|
-
...
|
|
1080
|
-
}),
|
|
1081
|
-
const
|
|
1082
|
-
return
|
|
1083
|
-
}),
|
|
1084
|
-
if (
|
|
1085
|
-
return
|
|
1086
|
-
if (
|
|
1087
|
-
const
|
|
2499
|
+
...t.pagination
|
|
2500
|
+
}), u = L(null), g = E(() => {
|
|
2501
|
+
const d = t.options.entryQuery;
|
|
2502
|
+
return d && ke(d) && Object.keys(d).length ? d : {};
|
|
2503
|
+
}), _ = E(() => {
|
|
2504
|
+
if (t.options.configTableOut && ke(t.options.configTableOut) && Object.keys(t.options.configTableOut).length && vn(t.options.configTableOut))
|
|
2505
|
+
return t.options.configTableOut;
|
|
2506
|
+
if (i != null && i.configQueryFieldOutput && typeof i.configQueryFieldOutput == "function") {
|
|
2507
|
+
const d = i.configQueryFieldOutput({
|
|
1088
2508
|
total: "records",
|
|
1089
2509
|
pageSize: "pageSize",
|
|
1090
2510
|
current: "pageNo",
|
|
1091
2511
|
tableData: "rows"
|
|
1092
2512
|
});
|
|
1093
|
-
if (
|
|
2513
|
+
if (vn(d)) return d;
|
|
1094
2514
|
}
|
|
1095
2515
|
return {
|
|
1096
2516
|
total: "records",
|
|
@@ -1098,394 +2518,394 @@ const rt = {
|
|
|
1098
2518
|
current: "pageNo",
|
|
1099
2519
|
tableData: "rows"
|
|
1100
2520
|
};
|
|
1101
|
-
}),
|
|
1102
|
-
const
|
|
1103
|
-
if (!
|
|
1104
|
-
const
|
|
1105
|
-
var
|
|
1106
|
-
return ((
|
|
2521
|
+
}), k = E(() => {
|
|
2522
|
+
const d = a == null ? void 0 : a.proxy;
|
|
2523
|
+
if (!d || !d.$children) return {};
|
|
2524
|
+
const B = d.$children.find((w) => {
|
|
2525
|
+
var R;
|
|
2526
|
+
return ((R = w == null ? void 0 : w.$options) == null ? void 0 : R.name) === "EsForm";
|
|
1107
2527
|
});
|
|
1108
|
-
return
|
|
1109
|
-
}),
|
|
1110
|
-
const
|
|
1111
|
-
if (typeof
|
|
1112
|
-
const
|
|
1113
|
-
return Array.isArray(
|
|
2528
|
+
return B ? (u.value = B, J(B), B) : {};
|
|
2529
|
+
}), T = E(() => {
|
|
2530
|
+
const d = o.default;
|
|
2531
|
+
if (typeof d == "function") {
|
|
2532
|
+
const w = d();
|
|
2533
|
+
return Array.isArray(w) ? w.length > 0 : !!w;
|
|
1114
2534
|
}
|
|
1115
|
-
const
|
|
1116
|
-
return Array.isArray(
|
|
1117
|
-
}), x =
|
|
1118
|
-
() =>
|
|
1119
|
-
),
|
|
1120
|
-
[x.value]:
|
|
1121
|
-
})), q =
|
|
1122
|
-
type: typeof
|
|
1123
|
-
value:
|
|
1124
|
-
} : { type: "string", value: "" }),
|
|
1125
|
-
const
|
|
1126
|
-
return
|
|
1127
|
-
}),
|
|
1128
|
-
const
|
|
1129
|
-
return
|
|
1130
|
-
}),
|
|
1131
|
-
const
|
|
1132
|
-
return
|
|
1133
|
-
}),
|
|
2535
|
+
const B = o.default;
|
|
2536
|
+
return Array.isArray(B) && B.length > 0;
|
|
2537
|
+
}), x = E(
|
|
2538
|
+
() => t.options.heightType || "auto"
|
|
2539
|
+
), z = E(() => typeof t.options.tabHeight == "number" ? `${t.options.tabHeight}px` : x.value === "height" && typeof t.options.height == "number" ? `${t.options.height}px` : "100%"), X = E(() => ({
|
|
2540
|
+
[x.value]: z.value
|
|
2541
|
+
})), q = E(() => t.headBarClass ? {
|
|
2542
|
+
type: typeof t.headBarClass == "string" ? "string" : "object",
|
|
2543
|
+
value: t.headBarClass
|
|
2544
|
+
} : { type: "string", value: "" }), ve = E(() => {
|
|
2545
|
+
const d = q.value;
|
|
2546
|
+
return d.type === "object" && d.value && typeof d.value == "object" ? d.value : {};
|
|
2547
|
+
}), ge = E(() => {
|
|
2548
|
+
const d = q.value;
|
|
2549
|
+
return d.type === "string" ? d.value : "";
|
|
2550
|
+
}), le = E(() => {
|
|
2551
|
+
const d = i == null ? void 0 : i.paginationLayout;
|
|
2552
|
+
return d ? typeof d == "function" ? d() : d : null;
|
|
2553
|
+
}), We = E(
|
|
1134
2554
|
() => {
|
|
1135
|
-
var
|
|
1136
|
-
return ((
|
|
2555
|
+
var d;
|
|
2556
|
+
return ((d = le.value) == null ? void 0 : d.layout) || "prev, pager, next, jumper, sizes, ->, total";
|
|
1137
2557
|
}
|
|
1138
|
-
),
|
|
2558
|
+
), It = E(
|
|
1139
2559
|
() => {
|
|
1140
|
-
var
|
|
1141
|
-
return ((
|
|
2560
|
+
var d;
|
|
2561
|
+
return ((d = le.value) == null ? void 0 : d.pageSizes) || O.value.pageSizes;
|
|
1142
2562
|
}
|
|
1143
|
-
),
|
|
2563
|
+
), Ft = E(
|
|
1144
2564
|
() => {
|
|
1145
|
-
var
|
|
1146
|
-
return (
|
|
2565
|
+
var d, B;
|
|
2566
|
+
return (B = (d = le.value) == null ? void 0 : d.isSmall) != null ? B : O.value.isSmall;
|
|
1147
2567
|
}
|
|
1148
|
-
),
|
|
2568
|
+
), Ie = E(
|
|
1149
2569
|
() => {
|
|
1150
|
-
var
|
|
1151
|
-
return (
|
|
2570
|
+
var d, B;
|
|
2571
|
+
return (B = (d = le.value) == null ? void 0 : d.background) != null ? B : !0;
|
|
1152
2572
|
}
|
|
1153
|
-
),
|
|
2573
|
+
), nt = E(
|
|
1154
2574
|
() => {
|
|
1155
|
-
var
|
|
1156
|
-
return ((
|
|
2575
|
+
var d;
|
|
2576
|
+
return ((d = le.value) == null ? void 0 : d.prevText) || "";
|
|
1157
2577
|
}
|
|
1158
|
-
),
|
|
2578
|
+
), ot = E(
|
|
1159
2579
|
() => {
|
|
1160
|
-
var
|
|
1161
|
-
return ((
|
|
2580
|
+
var d;
|
|
2581
|
+
return ((d = le.value) == null ? void 0 : d.nextText) || "";
|
|
1162
2582
|
}
|
|
1163
|
-
),
|
|
2583
|
+
), rt = E(() => ({
|
|
1164
2584
|
position: x.value === "height" ? "absolute" : "static",
|
|
1165
2585
|
bottom: "0px",
|
|
1166
2586
|
left: "0px",
|
|
1167
2587
|
// z-index 必须高于 element-loading 蒙层(默认 2000),否则请求加载过程中分页会被蒙层遮挡。
|
|
1168
2588
|
zIndex: 2001,
|
|
1169
2589
|
background: "#fff"
|
|
1170
|
-
})),
|
|
1171
|
-
() => !!
|
|
1172
|
-
),
|
|
1173
|
-
const
|
|
1174
|
-
if (
|
|
1175
|
-
|
|
1176
|
-
const
|
|
1177
|
-
return
|
|
1178
|
-
}), (
|
|
1179
|
-
var
|
|
1180
|
-
return
|
|
1181
|
-
(
|
|
1182
|
-
(
|
|
2590
|
+
})), it = E(() => t.options.loading || H.value), De = E(
|
|
2591
|
+
() => !!t.options.actionUrl || t.options.apiParams && ke(t.options.apiParams) && Object.keys(t.options.apiParams).length > 0
|
|
2592
|
+
), at = E(() => {
|
|
2593
|
+
const d = F.value.filter((w) => !w.hidCol);
|
|
2594
|
+
if (d.forEach((w) => {
|
|
2595
|
+
w.prop !== "operate" && w.key !== "operate" && (w.prop || w.key) && !w.formatter && (w.formatter = ($) => {
|
|
2596
|
+
const R = $[w.prop] || $[w.key];
|
|
2597
|
+
return R == null || R === "" ? w.emptyPlaceholder || "-" : R;
|
|
2598
|
+
}), (w.prop === "operate" || w.key === "operate") && w.btns && !w.render && (w.render = ($, { row: R }) => {
|
|
2599
|
+
var me;
|
|
2600
|
+
return Ce("div", [
|
|
2601
|
+
(me = w.btns) == null ? void 0 : me.filter((ee) => y(ee.permissionValue)).map(
|
|
2602
|
+
(ee) => (
|
|
1183
2603
|
// Element UI text 按钮:type="text" 而非 text 属性
|
|
1184
|
-
|
|
2604
|
+
Ce(
|
|
1185
2605
|
"el-button",
|
|
1186
2606
|
{
|
|
1187
2607
|
props: {
|
|
1188
2608
|
type: "text"
|
|
1189
2609
|
},
|
|
1190
2610
|
attrs: {
|
|
1191
|
-
...
|
|
2611
|
+
...ee.type ? { "data-btn-type": ee.type } : {}
|
|
1192
2612
|
},
|
|
1193
2613
|
on: {
|
|
1194
2614
|
click: () => {
|
|
1195
|
-
var
|
|
1196
|
-
return (
|
|
2615
|
+
var ye;
|
|
2616
|
+
return (ye = ee.clickEvent) == null ? void 0 : ye.call(ee, R);
|
|
1197
2617
|
}
|
|
1198
2618
|
}
|
|
1199
2619
|
},
|
|
1200
|
-
|
|
2620
|
+
ee.name
|
|
1201
2621
|
)
|
|
1202
2622
|
)
|
|
1203
2623
|
)
|
|
1204
2624
|
]);
|
|
1205
2625
|
});
|
|
1206
|
-
}),
|
|
1207
|
-
let
|
|
1208
|
-
for (let
|
|
1209
|
-
const
|
|
1210
|
-
if (!
|
|
1211
|
-
|
|
2626
|
+
}), d.length > 0 && d.every((w) => w.width && !w.minWidth)) {
|
|
2627
|
+
let w = -1;
|
|
2628
|
+
for (let $ = d.length - 1; $ >= 0; $--) {
|
|
2629
|
+
const R = d[$];
|
|
2630
|
+
if (!R.fixed && R.prop !== "operate" && R.key !== "operate") {
|
|
2631
|
+
w = $;
|
|
1212
2632
|
break;
|
|
1213
2633
|
}
|
|
1214
2634
|
}
|
|
1215
|
-
if (
|
|
1216
|
-
const
|
|
1217
|
-
|
|
2635
|
+
if (w === -1 && (w = d.length - 1), w >= 0) {
|
|
2636
|
+
const $ = d[w];
|
|
2637
|
+
$.minWidth = $.width, delete $.width;
|
|
1218
2638
|
}
|
|
1219
2639
|
}
|
|
1220
|
-
return
|
|
1221
|
-
}),
|
|
1222
|
-
const
|
|
1223
|
-
for (const
|
|
1224
|
-
|
|
1225
|
-
if (
|
|
1226
|
-
const
|
|
1227
|
-
|
|
2640
|
+
return d;
|
|
2641
|
+
}), st = E(() => {
|
|
2642
|
+
const d = yi({ ...pn, ...t.options }), { align: B, ...w } = d, $ = {};
|
|
2643
|
+
for (const R in w)
|
|
2644
|
+
gi.has(R) || ($[R] = w[R]);
|
|
2645
|
+
if ($.size !== void 0) {
|
|
2646
|
+
const R = St($.size);
|
|
2647
|
+
R !== void 0 && ($.size = R);
|
|
1228
2648
|
}
|
|
1229
|
-
return
|
|
1230
|
-
}), { tableHeight:
|
|
2649
|
+
return $;
|
|
2650
|
+
}), { tableHeight: Ue, resizeObservers: Ae } = pi(
|
|
2651
|
+
v,
|
|
2652
|
+
s,
|
|
1231
2653
|
p,
|
|
1232
|
-
|
|
1233
|
-
g,
|
|
1234
|
-
f,
|
|
2654
|
+
m,
|
|
1235
2655
|
{
|
|
1236
2656
|
heightType: x.value,
|
|
1237
|
-
tabHeight:
|
|
2657
|
+
tabHeight: t.options.tabHeight
|
|
1238
2658
|
}
|
|
1239
|
-
),
|
|
1240
|
-
const
|
|
1241
|
-
return
|
|
2659
|
+
), lt = E(() => {
|
|
2660
|
+
const d = { ...st.value, ...n };
|
|
2661
|
+
return t.options.rowkey && (d.rowKey = t.options.rowkey), x.value === "height" ? d.height = Ue.value : x.value === "maxHeight" && (d.maxHeight = Ue.value), d;
|
|
1242
2662
|
}), {
|
|
1243
|
-
multipleSelection:
|
|
1244
|
-
handleSelectionChange:
|
|
1245
|
-
initSelection:
|
|
1246
|
-
clearAllSelection:
|
|
1247
|
-
} =
|
|
1248
|
-
|
|
2663
|
+
multipleSelection: b,
|
|
2664
|
+
handleSelectionChange: C,
|
|
2665
|
+
initSelection: A,
|
|
2666
|
+
clearAllSelection: N
|
|
2667
|
+
} = vi(t.options.rowkey), I = (d) => {
|
|
2668
|
+
C(d, O.value.current || 1);
|
|
1249
2669
|
};
|
|
1250
|
-
|
|
1251
|
-
var
|
|
1252
|
-
|
|
2670
|
+
we(Q, async (d, B) => {
|
|
2671
|
+
var w, $;
|
|
2672
|
+
d && d !== B && (t.options.actionUrl && await ct(), ($ = (w = c.value) == null ? void 0 : w.doLayout) == null || $.call(w));
|
|
1253
2673
|
});
|
|
1254
|
-
let
|
|
1255
|
-
|
|
1256
|
-
const
|
|
1257
|
-
const
|
|
1258
|
-
|
|
2674
|
+
let P = JSON.stringify(t.pagination || {});
|
|
2675
|
+
t.pagination && Object.keys(t.pagination).length && (O.value = { ...O.value, ...t.pagination }, W.value = t.pagination.total !== void 0);
|
|
2676
|
+
const j = () => {
|
|
2677
|
+
const d = { ...O.value };
|
|
2678
|
+
P = JSON.stringify(d), e("update:pagination", d);
|
|
1259
2679
|
};
|
|
1260
|
-
|
|
1261
|
-
() =>
|
|
1262
|
-
(
|
|
1263
|
-
const
|
|
1264
|
-
|
|
2680
|
+
we(
|
|
2681
|
+
() => t.pagination,
|
|
2682
|
+
(d) => {
|
|
2683
|
+
const B = JSON.stringify(d || {});
|
|
2684
|
+
B !== P && (P = B, O.value = { ...O.value, ...d }, W.value = d.total !== void 0);
|
|
1265
2685
|
}
|
|
1266
|
-
),
|
|
1267
|
-
() =>
|
|
1268
|
-
(
|
|
1269
|
-
|
|
2686
|
+
), we(
|
|
2687
|
+
() => t.dataSource,
|
|
2688
|
+
(d) => {
|
|
2689
|
+
A(d, c.value);
|
|
1270
2690
|
}
|
|
1271
2691
|
);
|
|
1272
|
-
let
|
|
1273
|
-
|
|
1274
|
-
Array.isArray(
|
|
1275
|
-
}),
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
}) :
|
|
2692
|
+
let ie = null;
|
|
2693
|
+
we(f, (d) => {
|
|
2694
|
+
Array.isArray(d) && d !== ie && (ie = d, e("update:dataSource", d));
|
|
2695
|
+
}), Mt(() => {
|
|
2696
|
+
U(), De.value && t.options.isInitRun !== !1 && ct(), Xe(() => {
|
|
2697
|
+
U(), k.value, typeof requestAnimationFrame != "undefined" ? requestAnimationFrame(() => {
|
|
2698
|
+
U(), Ae();
|
|
2699
|
+
}) : Ae();
|
|
1280
2700
|
});
|
|
1281
2701
|
});
|
|
1282
|
-
const
|
|
1283
|
-
const
|
|
2702
|
+
const ae = (d, B) => {
|
|
2703
|
+
const w = [
|
|
1284
2704
|
{ eventName: "brcb", isReturn: !0 },
|
|
1285
2705
|
{ eventName: "qrcb", isReturn: !0 }
|
|
1286
|
-
],
|
|
1287
|
-
if (
|
|
1288
|
-
return
|
|
1289
|
-
},
|
|
1290
|
-
const
|
|
1291
|
-
if (
|
|
1292
|
-
const
|
|
1293
|
-
Object.entries(
|
|
1294
|
-
var
|
|
1295
|
-
if (!
|
|
1296
|
-
const
|
|
1297
|
-
|
|
1298
|
-
}), Object.keys(
|
|
2706
|
+
], $ = w.findIndex((R) => R.eventName === d);
|
|
2707
|
+
if (t.options.listenToCallBack && t.options.listenToCallBack[d] && $ !== -1 && w[$].isReturn)
|
|
2708
|
+
return t.options.listenToCallBack[d](B);
|
|
2709
|
+
}, Rt = (d, B) => {
|
|
2710
|
+
const w = _.value;
|
|
2711
|
+
if (ke(w) && Object.keys(w).length) {
|
|
2712
|
+
const $ = {};
|
|
2713
|
+
Object.entries(w).forEach(([R, me]) => {
|
|
2714
|
+
var Ke;
|
|
2715
|
+
if (!B.includes(R)) return;
|
|
2716
|
+
const ye = (Ke = d[me]) != null ? Ke : vo(d, me);
|
|
2717
|
+
R === "tableData" ? f.value = Array.isArray(ye) ? ye : [] : $[R] = typeof ye == "number" ? ye : parseInt(ye, 10) || 0;
|
|
2718
|
+
}), Object.keys($).length && (O.value = { ...O.value, ...$ });
|
|
1299
2719
|
}
|
|
1300
|
-
},
|
|
1301
|
-
var
|
|
1302
|
-
const { success:
|
|
1303
|
-
if (!
|
|
1304
|
-
const
|
|
1305
|
-
...
|
|
1306
|
-
...
|
|
1307
|
-
...
|
|
1308
|
-
}),
|
|
1309
|
-
|
|
1310
|
-
const
|
|
1311
|
-
if (!
|
|
1312
|
-
|
|
2720
|
+
}, Bt = (d, B = {}) => {
|
|
2721
|
+
var Zt, Xt;
|
|
2722
|
+
const { success: w, fail: $ } = B, R = ((Zt = t.options) == null ? void 0 : Zt.apiParams) || {}, me = ((Xt = t.options) == null ? void 0 : Xt.actionUrl) || R.url || "";
|
|
2723
|
+
if (!me || !Object.keys(R).length) return;
|
|
2724
|
+
const ee = k.value, ye = ee && ee.props && ee.props.model ? { ...ee.props.model } : g.value || {}, Ke = ae("brcb", {
|
|
2725
|
+
...ye,
|
|
2726
|
+
...d,
|
|
2727
|
+
...R.model || {}
|
|
2728
|
+
}), to = ke(Ke) ? Ke : { ...ye, ...R.model || {}, ...d }, Gt = { ...R.options || {} };
|
|
2729
|
+
R != null && R.method && (Gt.method = R == null ? void 0 : R.method);
|
|
2730
|
+
const Yt = async (no) => {
|
|
2731
|
+
if (!H.value) {
|
|
2732
|
+
H.value = !0;
|
|
1313
2733
|
try {
|
|
1314
|
-
const
|
|
1315
|
-
url:
|
|
1316
|
-
formParams:
|
|
1317
|
-
headers:
|
|
1318
|
-
...
|
|
1319
|
-
...
|
|
1320
|
-
}),
|
|
1321
|
-
|
|
1322
|
-
} catch (
|
|
1323
|
-
typeof
|
|
2734
|
+
const Te = await no({
|
|
2735
|
+
url: me,
|
|
2736
|
+
formParams: to,
|
|
2737
|
+
headers: R.headers || {},
|
|
2738
|
+
...Gt,
|
|
2739
|
+
...d
|
|
2740
|
+
}), oo = ae("qrcb", Te) || Te;
|
|
2741
|
+
ke(Te) && Object.keys(Te).length && typeof w == "function" && w(oo);
|
|
2742
|
+
} catch (Te) {
|
|
2743
|
+
typeof $ == "function" && $(Te);
|
|
1324
2744
|
} finally {
|
|
1325
|
-
|
|
2745
|
+
H.value = !1;
|
|
1326
2746
|
}
|
|
1327
2747
|
}
|
|
1328
2748
|
};
|
|
1329
|
-
|
|
1330
|
-
},
|
|
1331
|
-
|
|
2749
|
+
t.options.httpRequest ? Yt(t.options.httpRequest) : i.$httpRequest && Yt(i.$httpRequest);
|
|
2750
|
+
}, ct = (d) => new Promise((B, w) => {
|
|
2751
|
+
O.value = { ...O.value, current: 1 }, Bt(
|
|
1332
2752
|
{
|
|
1333
|
-
...
|
|
1334
|
-
pageIndex:
|
|
1335
|
-
pageSize:
|
|
2753
|
+
...d || {},
|
|
2754
|
+
pageIndex: O.value.current,
|
|
2755
|
+
pageSize: O.value.pageSize
|
|
1336
2756
|
},
|
|
1337
2757
|
{
|
|
1338
|
-
success: (
|
|
1339
|
-
|
|
2758
|
+
success: ($) => {
|
|
2759
|
+
Rt($, ["total", "tableData"]), Object.keys(t.pagination).length && j(), B($);
|
|
1340
2760
|
},
|
|
1341
|
-
fail: (
|
|
1342
|
-
|
|
2761
|
+
fail: ($) => {
|
|
2762
|
+
w($);
|
|
1343
2763
|
}
|
|
1344
2764
|
}
|
|
1345
2765
|
);
|
|
1346
|
-
}),
|
|
1347
|
-
|
|
2766
|
+
}), Gn = () => {
|
|
2767
|
+
Bt(
|
|
1348
2768
|
{
|
|
1349
|
-
pageIndex:
|
|
1350
|
-
pageSize:
|
|
2769
|
+
pageIndex: O.value.current,
|
|
2770
|
+
pageSize: O.value.pageSize
|
|
1351
2771
|
},
|
|
1352
2772
|
{
|
|
1353
|
-
success: (
|
|
1354
|
-
|
|
2773
|
+
success: (d) => {
|
|
2774
|
+
Rt(d, ["total", "tableData"]), j(), e("pagination-current-change", O.value);
|
|
1355
2775
|
}
|
|
1356
2776
|
}
|
|
1357
2777
|
);
|
|
1358
|
-
},
|
|
1359
|
-
|
|
2778
|
+
}, Yn = () => {
|
|
2779
|
+
Bt(
|
|
1360
2780
|
{
|
|
1361
|
-
pageIndex:
|
|
1362
|
-
pageSize:
|
|
2781
|
+
pageIndex: O.value.current,
|
|
2782
|
+
pageSize: O.value.pageSize
|
|
1363
2783
|
},
|
|
1364
2784
|
{
|
|
1365
|
-
success: (
|
|
1366
|
-
|
|
2785
|
+
success: (d) => {
|
|
2786
|
+
Rt(d, ["total", "tableData"]), j();
|
|
1367
2787
|
}
|
|
1368
2788
|
}
|
|
1369
2789
|
);
|
|
1370
|
-
},
|
|
1371
|
-
|
|
1372
|
-
},
|
|
1373
|
-
|
|
1374
|
-
},
|
|
1375
|
-
e("change-table-sort",
|
|
2790
|
+
}, Zn = (d) => {
|
|
2791
|
+
O.value = { ...O.value, pageSize: d, current: 1 }, De.value ? Yn() : (j(), e("size-change", O.value, d));
|
|
2792
|
+
}, Xn = (d) => {
|
|
2793
|
+
O.value = { ...O.value, current: d }, De.value ? Gn() : (j(), e("pagination-current-change", O.value));
|
|
2794
|
+
}, eo = (d) => {
|
|
2795
|
+
e("change-table-sort", d);
|
|
1376
2796
|
};
|
|
1377
|
-
|
|
1378
|
-
tableRef:
|
|
1379
|
-
toggleSelection: (
|
|
1380
|
-
var
|
|
1381
|
-
|
|
1382
|
-
var
|
|
1383
|
-
(
|
|
1384
|
-
}) : (
|
|
2797
|
+
Qn("getTableInstantce", () => ({
|
|
2798
|
+
tableRef: c,
|
|
2799
|
+
toggleSelection: (d) => {
|
|
2800
|
+
var B, w;
|
|
2801
|
+
d ? d.forEach(($) => {
|
|
2802
|
+
var R, me;
|
|
2803
|
+
(me = (R = c.value) == null ? void 0 : R.toggleRowSelection) == null || me.call(R, $);
|
|
2804
|
+
}) : (w = (B = c.value) == null ? void 0 : B.clearSelection) == null || w.call(B);
|
|
1385
2805
|
},
|
|
1386
|
-
clearAllSelection: () =>
|
|
1387
|
-
refsInstance: () =>
|
|
1388
|
-
httpRequestInstance:
|
|
2806
|
+
clearAllSelection: () => N(c.value),
|
|
2807
|
+
refsInstance: () => c.value,
|
|
2808
|
+
httpRequestInstance: ct
|
|
1389
2809
|
}));
|
|
1390
|
-
const
|
|
1391
|
-
httpRequestInstance:
|
|
1392
|
-
getSelectionRows: () =>
|
|
2810
|
+
const Wt = {
|
|
2811
|
+
httpRequestInstance: ct,
|
|
2812
|
+
getSelectionRows: () => b.value,
|
|
1393
2813
|
clearSelection: () => {
|
|
1394
|
-
var
|
|
1395
|
-
return (
|
|
2814
|
+
var d, B;
|
|
2815
|
+
return (B = (d = c.value) == null ? void 0 : d.clearSelection) == null ? void 0 : B.call(d);
|
|
1396
2816
|
},
|
|
1397
|
-
clearAllSelection: () =>
|
|
2817
|
+
clearAllSelection: () => N(c.value),
|
|
1398
2818
|
refresh: () => {
|
|
1399
|
-
var
|
|
1400
|
-
return (
|
|
2819
|
+
var d, B;
|
|
2820
|
+
return (B = (d = c.value) == null ? void 0 : d.doLayout) == null ? void 0 : B.call(d);
|
|
1401
2821
|
},
|
|
1402
2822
|
// virtual 滚动占位(保持 API 一致,Vue 2 版本无效)
|
|
1403
|
-
scrollToRow: (
|
|
2823
|
+
scrollToRow: (d) => {
|
|
1404
2824
|
}
|
|
1405
2825
|
};
|
|
1406
|
-
return typeof
|
|
2826
|
+
return typeof r == "function" && r(Wt), {
|
|
1407
2827
|
// refs
|
|
1408
|
-
tableRef:
|
|
1409
|
-
tbBtnRef:
|
|
1410
|
-
headBarRef:
|
|
1411
|
-
paginationRef:
|
|
1412
|
-
tableId:
|
|
1413
|
-
tableData:
|
|
1414
|
-
effectiveDataSource:
|
|
2828
|
+
tableRef: c,
|
|
2829
|
+
tbBtnRef: p,
|
|
2830
|
+
headBarRef: s,
|
|
2831
|
+
paginationRef: m,
|
|
2832
|
+
tableId: h,
|
|
2833
|
+
tableData: f,
|
|
2834
|
+
effectiveDataSource: S,
|
|
1415
2835
|
// state
|
|
1416
|
-
loadStatus:
|
|
1417
|
-
paginationConfig:
|
|
1418
|
-
formInstance:
|
|
2836
|
+
loadStatus: it,
|
|
2837
|
+
paginationConfig: O,
|
|
2838
|
+
formInstance: u,
|
|
1419
2839
|
// computeds
|
|
1420
|
-
filteredColumns:
|
|
1421
|
-
tableBindAttrs:
|
|
1422
|
-
hasDefaultSlot:
|
|
2840
|
+
filteredColumns: at,
|
|
2841
|
+
tableBindAttrs: lt,
|
|
2842
|
+
hasDefaultSlot: T,
|
|
1423
2843
|
heightType: x,
|
|
1424
|
-
tabHeight:
|
|
2844
|
+
tabHeight: z,
|
|
1425
2845
|
slotStyles: q,
|
|
1426
|
-
slotStyleValue:
|
|
1427
|
-
slotClassValue:
|
|
1428
|
-
slotState:
|
|
1429
|
-
showPagination:
|
|
1430
|
-
containerStyle:
|
|
1431
|
-
paginationStyle:
|
|
1432
|
-
layout:
|
|
1433
|
-
paginationPageSizes:
|
|
1434
|
-
paginationIsSmall:
|
|
1435
|
-
paginationBackground:
|
|
1436
|
-
paginationPrevText:
|
|
1437
|
-
paginationNextText:
|
|
2846
|
+
slotStyleValue: ve,
|
|
2847
|
+
slotClassValue: ge,
|
|
2848
|
+
slotState: M,
|
|
2849
|
+
showPagination: W,
|
|
2850
|
+
containerStyle: X,
|
|
2851
|
+
paginationStyle: rt,
|
|
2852
|
+
layout: We,
|
|
2853
|
+
paginationPageSizes: It,
|
|
2854
|
+
paginationIsSmall: Ft,
|
|
2855
|
+
paginationBackground: Ie,
|
|
2856
|
+
paginationPrevText: nt,
|
|
2857
|
+
paginationNextText: ot,
|
|
1438
2858
|
// handlers
|
|
1439
|
-
handleTableSelectionChange:
|
|
1440
|
-
changeTableSort:
|
|
1441
|
-
handleSizeChange:
|
|
1442
|
-
handleIndexChange:
|
|
2859
|
+
handleTableSelectionChange: I,
|
|
2860
|
+
changeTableSort: eo,
|
|
2861
|
+
handleSizeChange: Zn,
|
|
2862
|
+
handleIndexChange: Xn,
|
|
1443
2863
|
// exposed methods (also accessible via $refs.tableRef.xxx in Vue 2)
|
|
1444
|
-
...
|
|
1445
|
-
instance:
|
|
1446
|
-
resizeObservers:
|
|
2864
|
+
...Wt,
|
|
2865
|
+
instance: a,
|
|
2866
|
+
resizeObservers: Ae
|
|
1447
2867
|
};
|
|
1448
2868
|
}
|
|
1449
2869
|
});
|
|
1450
|
-
var
|
|
2870
|
+
var bi = function() {
|
|
1451
2871
|
var e = this, o = e._self._c;
|
|
1452
2872
|
return e._self._setupProxy, o("div", { ref: "tableContainerEl", staticClass: "table_component", style: e.containerStyle }, [o("div", { staticClass: "table_containers" }, [e.showHeaderBar ? o("div", { ref: "headBarRef", staticClass: "btn-slot", class: e.slotClassValue, style: e.slotStyleValue }, [e.hasDefaultSlot ? o("div", { staticClass: "headerBar", style: { paddingBottom: e.hasDefaultSlot ? "10px" : "0px" } }, [e._t("default")], 2) : e._e()]) : e._e(), o("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.loadStatus, expression: "loadStatus" }], staticClass: "page-loading-con tableContainer", attrs: { "element-loading-background": "rgba(0, 0, 0, 0.03)", "element-loading-text": "努力加载中..." } }, [o("div", { staticClass: "table_inner_containers" }, [e.options.configBtn && e.options.configBtn.length || e.options.leftText ? o("table-btns", { ref: "tbBtnRef", attrs: { instance: { tableRef: e.instance, formInstance: e.formInstance }, "btn-config": e.options.configBtn, "left-text": e.options.leftText } }) : e._e(), o("el-table", e._b({ key: e.tableId, ref: "tableRef", staticClass: "el-dp_tables", staticStyle: { width: "100%" }, attrs: { id: e.tableId, data: e.effectiveDataSource }, on: { "sort-change": e.changeTableSort, "selection-change": e.handleTableSelectionChange }, scopedSlots: e._u([{ key: "empty", fn: function() {
|
|
1453
2873
|
return [o("div", { staticClass: "ant-empty ant-empty-normal" }, [o("div", { staticClass: "ant-empty-image" }, [o("svg", { staticClass: "ant-empty-img-simple", attrs: { width: "64", height: "41", viewBox: "0 0 64 41", xmlns: "http://www.w3.org/2000/svg" } }, [o("g", { attrs: { transform: "translate(0 1)", fill: "none", "fill-rule": "evenodd" } }, [o("ellipse", { staticClass: "ant-empty-img-simple-ellipse", attrs: { cx: "32", cy: "33", rx: "32", ry: "7" } }), o("g", { staticClass: "ant-empty-img-simple-g", attrs: { "fill-rule": "nonzero" } }, [o("path", { attrs: { d: "M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z" } }), o("path", { staticClass: "ant-empty-img-simple-path", attrs: { d: "M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z" } })])])])]), o("div", { staticClass: "ant-empty-description" }, [e._v("暂无数据")])])];
|
|
1454
|
-
}, proxy: !0 }]) }, "el-table", e.tableBindAttrs, !1), e._l(e.filteredColumns, function(
|
|
1455
|
-
return o("column-item", { key:
|
|
2874
|
+
}, proxy: !0 }]) }, "el-table", e.tableBindAttrs, !1), e._l(e.filteredColumns, function(n, r) {
|
|
2875
|
+
return o("column-item", { key: n.prop || n.key || r, attrs: { cols: Object.assign({}, n, { columnIndex: r }) }, scopedSlots: e._u([n.scopedSlots && n.scopedSlots.customRender ? { key: n.scopedSlots.customRender, fn: function({ scope: a }) {
|
|
1456
2876
|
return [e._t(
|
|
1457
|
-
|
|
2877
|
+
n.scopedSlots.customRender,
|
|
1458
2878
|
null,
|
|
1459
|
-
{ scope:
|
|
1460
|
-
Object.assign({},
|
|
1461
|
-
columnIndex:
|
|
1462
|
-
row:
|
|
1463
|
-
column:
|
|
2879
|
+
{ scope: a },
|
|
2880
|
+
Object.assign({}, n, {
|
|
2881
|
+
columnIndex: r,
|
|
2882
|
+
row: a.row,
|
|
2883
|
+
column: a.column
|
|
1464
2884
|
})
|
|
1465
2885
|
)];
|
|
1466
2886
|
} } : null], null, !0) });
|
|
1467
|
-
}), 1)], 1)]), e.showPagination ? o("div", { ref: "paginationRef", staticClass: "pagination_page" }, [o("el-pagination", { staticStyle: { padding: "0", margin: "10px 0", "text-align": "center" }, attrs: { background: e.paginationBackground, size: e.paginationIsSmall ? "small" : e.paginationConfig.size, total: e.paginationConfig.total, "page-size": e.paginationConfig.pageSize, "page-sizes": e.paginationPageSizes, "current-page": e.paginationConfig.current, layout: e.layout, "prev-text": e.paginationPrevText, "next-text": e.paginationNextText }, on: { "update:pageSize": function(
|
|
1468
|
-
return e.$set(e.paginationConfig, "pageSize",
|
|
1469
|
-
}, "update:page-size": function(
|
|
1470
|
-
return e.$set(e.paginationConfig, "pageSize",
|
|
1471
|
-
}, "update:currentPage": function(
|
|
1472
|
-
return e.$set(e.paginationConfig, "current",
|
|
1473
|
-
}, "update:current-page": function(
|
|
1474
|
-
return e.$set(e.paginationConfig, "current",
|
|
2887
|
+
}), 1)], 1)]), e.showPagination ? o("div", { ref: "paginationRef", staticClass: "pagination_page" }, [o("el-pagination", { staticStyle: { padding: "0", margin: "10px 0", "text-align": "center" }, attrs: { background: e.paginationBackground, size: e.paginationIsSmall ? "small" : e.paginationConfig.size, total: e.paginationConfig.total, "page-size": e.paginationConfig.pageSize, "page-sizes": e.paginationPageSizes, "current-page": e.paginationConfig.current, layout: e.layout, "prev-text": e.paginationPrevText, "next-text": e.paginationNextText }, on: { "update:pageSize": function(n) {
|
|
2888
|
+
return e.$set(e.paginationConfig, "pageSize", n);
|
|
2889
|
+
}, "update:page-size": function(n) {
|
|
2890
|
+
return e.$set(e.paginationConfig, "pageSize", n);
|
|
2891
|
+
}, "update:currentPage": function(n) {
|
|
2892
|
+
return e.$set(e.paginationConfig, "current", n);
|
|
2893
|
+
}, "update:current-page": function(n) {
|
|
2894
|
+
return e.$set(e.paginationConfig, "current", n);
|
|
1475
2895
|
}, "size-change": e.handleSizeChange, "current-change": e.handleIndexChange } })], 1) : e._e()])]);
|
|
1476
|
-
},
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
2896
|
+
}, _i = [], Si = /* @__PURE__ */ Ne(
|
|
2897
|
+
hi,
|
|
2898
|
+
bi,
|
|
2899
|
+
_i,
|
|
1480
2900
|
!1,
|
|
1481
2901
|
null,
|
|
1482
2902
|
"8e292dd6"
|
|
1483
2903
|
);
|
|
1484
|
-
const
|
|
1485
|
-
|
|
1486
|
-
|
|
2904
|
+
const Ye = Si.exports;
|
|
2905
|
+
Ye.install = function(t) {
|
|
2906
|
+
t.component(Ye.name || "EsTable", Ye);
|
|
1487
2907
|
};
|
|
1488
|
-
const
|
|
2908
|
+
const Ci = be({
|
|
1489
2909
|
name: "RenderJsx",
|
|
1490
2910
|
props: {
|
|
1491
2911
|
refs: { type: [Function, Object], default: null },
|
|
@@ -1496,44 +2916,44 @@ const bn = ie({
|
|
|
1496
2916
|
instance: { type: Object, default: () => ({}) },
|
|
1497
2917
|
components: { type: Object, default: () => ({}) }
|
|
1498
2918
|
},
|
|
1499
|
-
setup(
|
|
1500
|
-
const e =
|
|
2919
|
+
setup(t) {
|
|
2920
|
+
const e = t.refs && typeof t.refs == "object" ? t.refs : _t({});
|
|
1501
2921
|
let o = null;
|
|
1502
|
-
function
|
|
2922
|
+
function n() {
|
|
1503
2923
|
if (!o) return;
|
|
1504
|
-
const
|
|
1505
|
-
|
|
2924
|
+
const r = o.componentInstance;
|
|
2925
|
+
r && (e.currentRef = r);
|
|
1506
2926
|
}
|
|
1507
|
-
return
|
|
1508
|
-
const { instance:
|
|
1509
|
-
...
|
|
1510
|
-
registerRef: (
|
|
1511
|
-
|
|
2927
|
+
return Mt(() => n()), Mr(() => n()), () => {
|
|
2928
|
+
const { instance: r } = t, a = {
|
|
2929
|
+
...r,
|
|
2930
|
+
registerRef: (y, c) => {
|
|
2931
|
+
c != null && (e[y] = c);
|
|
1512
2932
|
},
|
|
1513
2933
|
getRefs: () => e
|
|
1514
|
-
},
|
|
1515
|
-
return typeof
|
|
2934
|
+
}, i = t.render, l = i && typeof i == "function" ? i(Ce, a, t.components || {}) : "";
|
|
2935
|
+
return typeof l == "string" || typeof l == "number" ? (o = null, Ce(
|
|
1516
2936
|
"span",
|
|
1517
2937
|
{
|
|
1518
2938
|
ref: "currentRef"
|
|
1519
2939
|
// Vue 2 的函数式 ref 通过 v-bind 不可直接传,用以下方式赋值
|
|
1520
2940
|
},
|
|
1521
|
-
[String(
|
|
1522
|
-
)) :
|
|
2941
|
+
[String(l)]
|
|
2942
|
+
)) : l && typeof l == "object" && "tag" in l ? l.componentOptions ? (o = l, l) : (o = null, Ce("div", [l])) : (o = null, Ce("div", [String(l || "")]));
|
|
1523
2943
|
};
|
|
1524
2944
|
}
|
|
1525
|
-
}),
|
|
1526
|
-
var
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
2945
|
+
}), Oi = null, wi = null;
|
|
2946
|
+
var Ei = /* @__PURE__ */ Ne(
|
|
2947
|
+
Ci,
|
|
2948
|
+
Oi,
|
|
2949
|
+
wi,
|
|
1530
2950
|
!1,
|
|
1531
2951
|
null,
|
|
1532
2952
|
null
|
|
1533
2953
|
);
|
|
1534
|
-
const
|
|
2954
|
+
const xi = Ei.exports, Ii = be({
|
|
1535
2955
|
name: "EsDialog",
|
|
1536
|
-
components: { RenderJsx:
|
|
2956
|
+
components: { RenderJsx: xi },
|
|
1537
2957
|
inheritAttrs: !1,
|
|
1538
2958
|
props: {
|
|
1539
2959
|
title: { type: String, default: "" },
|
|
@@ -1561,185 +2981,185 @@ const Bn = Sn.exports, kn = ie({
|
|
|
1561
2981
|
components: { type: Object, default: () => ({}) }
|
|
1562
2982
|
},
|
|
1563
2983
|
emits: ["update:visible", "closed", "submit"],
|
|
1564
|
-
setup(
|
|
1565
|
-
var
|
|
1566
|
-
const
|
|
2984
|
+
setup(t, { emit: e, attrs: o, slots: n, expose: r }) {
|
|
2985
|
+
var k, T;
|
|
2986
|
+
const a = qt(), i = L(null), l = _t({}), y = L(!1), c = a, p = (T = (k = Se("$EsPlus", null)) != null ? k : Pe()) != null ? T : {}, s = (x) => {
|
|
1567
2987
|
if (!x) return !0;
|
|
1568
|
-
const
|
|
1569
|
-
return typeof
|
|
1570
|
-
},
|
|
2988
|
+
const z = p.permission;
|
|
2989
|
+
return typeof z == "function" ? z(x) : !0;
|
|
2990
|
+
}, m = (x) => {
|
|
1571
2991
|
const {
|
|
1572
|
-
icon:
|
|
1573
|
-
click:
|
|
2992
|
+
icon: z,
|
|
2993
|
+
click: X,
|
|
1574
2994
|
permissionValue: q,
|
|
1575
|
-
name:
|
|
1576
|
-
disabled:
|
|
1577
|
-
key:
|
|
1578
|
-
...
|
|
2995
|
+
name: ve,
|
|
2996
|
+
disabled: ge,
|
|
2997
|
+
key: le,
|
|
2998
|
+
...We
|
|
1579
2999
|
} = x;
|
|
1580
|
-
return
|
|
1581
|
-
},
|
|
1582
|
-
const
|
|
1583
|
-
return typeof
|
|
1584
|
-
},
|
|
3000
|
+
return We;
|
|
3001
|
+
}, v = (x) => {
|
|
3002
|
+
const z = x.disabled;
|
|
3003
|
+
return typeof z == "function" ? z() : !!z;
|
|
3004
|
+
}, h = () => {
|
|
1585
3005
|
setTimeout(() => {
|
|
1586
|
-
|
|
3006
|
+
y.value && (y.value = !1);
|
|
1587
3007
|
}, 500);
|
|
1588
|
-
},
|
|
1589
|
-
o != null && o.fullscreen || (
|
|
1590
|
-
},
|
|
1591
|
-
get: () =>
|
|
3008
|
+
}, f = () => {
|
|
3009
|
+
o != null && o.fullscreen || (y.value = !y.value);
|
|
3010
|
+
}, S = E({
|
|
3011
|
+
get: () => t.visible || !1,
|
|
1592
3012
|
set: (x) => {
|
|
1593
|
-
e("update:visible", x), x || (e("closed", x),
|
|
3013
|
+
e("update:visible", x), x || (e("closed", x), h());
|
|
1594
3014
|
}
|
|
1595
|
-
}),
|
|
1596
|
-
|
|
1597
|
-
},
|
|
1598
|
-
e("closed", !1),
|
|
1599
|
-
},
|
|
1600
|
-
},
|
|
3015
|
+
}), F = () => {
|
|
3016
|
+
S.value = !1, e("closed", !1), h();
|
|
3017
|
+
}, H = () => {
|
|
3018
|
+
e("closed", !1), h();
|
|
3019
|
+
}, M = () => {
|
|
3020
|
+
}, W = (x) => {
|
|
1601
3021
|
x();
|
|
1602
|
-
},
|
|
3022
|
+
}, U = E(() => ({ ...o })), J = E(() => y.value ? "dialogFull" : t.maxHeight ? "dialogShadow" : "dialogAuto"), K = () => {
|
|
1603
3023
|
const x = typeof window != "undefined" ? window.innerHeight : 800;
|
|
1604
3024
|
return Math.max(x - 135, 200);
|
|
1605
|
-
},
|
|
1606
|
-
const x =
|
|
1607
|
-
return
|
|
1608
|
-
maxHeight: typeof
|
|
3025
|
+
}, Q = E(() => {
|
|
3026
|
+
const x = K();
|
|
3027
|
+
return y.value ? { height: x + "px" } : t.maxHeight ? {
|
|
3028
|
+
maxHeight: typeof t.maxHeight == "number" ? `${t.maxHeight}px` : t.maxHeight
|
|
1609
3029
|
} : { maxHeight: x + "px" };
|
|
1610
|
-
}),
|
|
1611
|
-
renderBodyRefs:
|
|
1612
|
-
renderBodyRefsObject:
|
|
1613
|
-
lyFormInstance:
|
|
1614
|
-
dialogInstance:
|
|
1615
|
-
getRefs: () =>
|
|
1616
|
-
})),
|
|
1617
|
-
const
|
|
1618
|
-
typeof
|
|
1619
|
-
close:
|
|
1620
|
-
getRefs: (
|
|
1621
|
-
dialogInstance:
|
|
3030
|
+
}), O = E(() => ({
|
|
3031
|
+
renderBodyRefs: l.currentRef,
|
|
3032
|
+
renderBodyRefsObject: l,
|
|
3033
|
+
lyFormInstance: i,
|
|
3034
|
+
dialogInstance: c,
|
|
3035
|
+
getRefs: () => l
|
|
3036
|
+
})), u = (x) => {
|
|
3037
|
+
const z = x.click;
|
|
3038
|
+
typeof z == "function" && z(l.currentRef, {
|
|
3039
|
+
close: F,
|
|
3040
|
+
getRefs: (X) => X ? l[X] || null : l,
|
|
3041
|
+
dialogInstance: c
|
|
1622
3042
|
});
|
|
1623
3043
|
};
|
|
1624
|
-
|
|
1625
|
-
|
|
3044
|
+
Qn("bodyFormInstance", (x) => {
|
|
3045
|
+
i.value = x;
|
|
1626
3046
|
});
|
|
1627
|
-
const
|
|
1628
|
-
...
|
|
1629
|
-
})),
|
|
1630
|
-
closed:
|
|
3047
|
+
const g = E(() => ({
|
|
3048
|
+
...t.components
|
|
3049
|
+
})), _ = {
|
|
3050
|
+
closed: F
|
|
1631
3051
|
};
|
|
1632
|
-
return typeof
|
|
3052
|
+
return typeof r == "function" && r(_), {
|
|
1633
3053
|
// state
|
|
1634
|
-
dialogVisible:
|
|
1635
|
-
isFullscreen:
|
|
1636
|
-
lyFormInstance:
|
|
1637
|
-
renderBodyRefsObject:
|
|
3054
|
+
dialogVisible: S,
|
|
3055
|
+
isFullscreen: y,
|
|
3056
|
+
lyFormInstance: i,
|
|
3057
|
+
renderBodyRefsObject: l,
|
|
1638
3058
|
// computeds
|
|
1639
|
-
filteredAttrs:
|
|
1640
|
-
initDialogCls:
|
|
1641
|
-
initDialogHeight:
|
|
1642
|
-
getCurrentInstanceModel:
|
|
1643
|
-
dialogComponents:
|
|
3059
|
+
filteredAttrs: U,
|
|
3060
|
+
initDialogCls: J,
|
|
3061
|
+
initDialogHeight: Q,
|
|
3062
|
+
getCurrentInstanceModel: O,
|
|
3063
|
+
dialogComponents: g,
|
|
1644
3064
|
// methods
|
|
1645
|
-
handleClose:
|
|
1646
|
-
handleFullscreen:
|
|
1647
|
-
handleBtnClick:
|
|
1648
|
-
onDialogClose:
|
|
1649
|
-
onDialogClosed:
|
|
1650
|
-
beforeCloseHandler:
|
|
1651
|
-
checkPermission:
|
|
1652
|
-
filterOptions:
|
|
1653
|
-
getDisabled:
|
|
1654
|
-
getCompIcon:
|
|
3065
|
+
handleClose: F,
|
|
3066
|
+
handleFullscreen: f,
|
|
3067
|
+
handleBtnClick: u,
|
|
3068
|
+
onDialogClose: H,
|
|
3069
|
+
onDialogClosed: M,
|
|
3070
|
+
beforeCloseHandler: W,
|
|
3071
|
+
checkPermission: s,
|
|
3072
|
+
filterOptions: m,
|
|
3073
|
+
getDisabled: v,
|
|
3074
|
+
getCompIcon: Jn,
|
|
1655
3075
|
// exposed
|
|
1656
|
-
...
|
|
3076
|
+
..._
|
|
1657
3077
|
};
|
|
1658
3078
|
}
|
|
1659
3079
|
});
|
|
1660
|
-
var
|
|
3080
|
+
var Fi = function() {
|
|
1661
3081
|
var e = this, o = e._self._c;
|
|
1662
|
-
return e._self._setupProxy, o("div", { staticClass: "dp-dialog_wrapper" }, [o("el-dialog", e._b({ class: ["dg-dialog", e.initDialogCls], attrs: { visible: e.dialogVisible, width: typeof e.width == "number" ? e.width + "px" : e.width, "show-close": !1, fullscreen: e.filteredAttrs && e.filteredAttrs.fullscreen != null ? e.filteredAttrs.fullscreen : e.isFullscreen, "append-to-body": e.appendToBody, "modal-append-to-body": e.modalAppendToBody, "close-on-click-modal": e.closeOnClickModal, "close-on-press-escape": e.closeOnPressEscape, "destroy-on-close": e.destroyOnClose, "before-close": e.beforeCloseHandler }, on: { "update:visible": function(
|
|
1663
|
-
e.dialogVisible =
|
|
3082
|
+
return e._self._setupProxy, o("div", { staticClass: "dp-dialog_wrapper" }, [o("el-dialog", e._b({ class: ["dg-dialog", e.initDialogCls], attrs: { visible: e.dialogVisible, width: typeof e.width == "number" ? e.width + "px" : e.width, "show-close": !1, fullscreen: e.filteredAttrs && e.filteredAttrs.fullscreen != null ? e.filteredAttrs.fullscreen : e.isFullscreen, "append-to-body": e.appendToBody, "modal-append-to-body": e.modalAppendToBody, "close-on-click-modal": e.closeOnClickModal, "close-on-press-escape": e.closeOnPressEscape, "destroy-on-close": e.destroyOnClose, "before-close": e.beforeCloseHandler }, on: { "update:visible": function(n) {
|
|
3083
|
+
e.dialogVisible = n;
|
|
1664
3084
|
}, close: e.onDialogClose, closed: e.onDialogClosed }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
1665
3085
|
return [e.renderHeader && typeof e.renderHeader == "function" ? o("render-jsx", { attrs: { render: e.renderHeader, instance: e.getCurrentInstanceModel } }) : [o("div", { staticClass: "dialog-header" }, [o("span", { staticClass: "dialog-title" }, [e._v(e._s(e.title))]), o("div", { staticClass: "btns" }, [o("i", { directives: [{ name: "show", rawName: "v-show", value: !e.hiddenFullBtn, expression: "!hiddenFullBtn" }], class: e.isFullscreen ? "el-icon-copy-document" : "el-icon-full-screen", on: { click: e.handleFullscreen } }), o("i", { staticClass: "el-icon-close", on: { click: e.handleClose } })])])]];
|
|
1666
3086
|
}, proxy: !0 }, e.isHiddenFooter ? null : { key: "footer", fn: function() {
|
|
1667
|
-
return [e.$slots.footer ? e._t("footer") : o("span", { staticClass: "dialog-footer" }, [e.renderFooter && typeof e.renderFooter == "function" ? o("render-jsx", { attrs: { render: e.renderFooter, instance: e.getCurrentInstanceModel } }) : e.configBtn && e.configBtn.length ? [e._l(e.configBtn, function(
|
|
1668
|
-
return [e.checkPermission(
|
|
3087
|
+
return [e.$slots.footer ? e._t("footer") : o("span", { staticClass: "dialog-footer" }, [e.renderFooter && typeof e.renderFooter == "function" ? o("render-jsx", { attrs: { render: e.renderFooter, instance: e.getCurrentInstanceModel } }) : e.configBtn && e.configBtn.length ? [e._l(e.configBtn, function(n, r) {
|
|
3088
|
+
return [e.checkPermission(n.permissionValue) ? o("el-button", e._b({ key: n.key || r, attrs: { size: "small", icon: e.getCompIcon(n.icon), disabled: e.getDisabled(n) }, on: { click: () => e.handleBtnClick(n) } }, "el-button", e.filterOptions(n), !1), [e._v(" " + e._s(n.name) + " ")]) : e._e()];
|
|
1669
3089
|
})] : e._e()], 2)];
|
|
1670
3090
|
}, proxy: !0 }], null, !0) }, "el-dialog", e.filteredAttrs, !1), [o("div", { staticClass: "dialog_body_layouts", style: e.initDialogHeight }, [e.render && typeof e.render == "function" ? o("render-jsx", { attrs: { refs: e.renderBodyRefsObject, instance: e.getCurrentInstanceModel, render: e.render, components: e.dialogComponents } }) : e._e()], 1)])], 1);
|
|
1671
|
-
},
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
3091
|
+
}, Ri = [], Bi = /* @__PURE__ */ Ne(
|
|
3092
|
+
Ii,
|
|
3093
|
+
Fi,
|
|
3094
|
+
Ri,
|
|
1675
3095
|
!1,
|
|
1676
3096
|
null,
|
|
1677
3097
|
"1f2694c2"
|
|
1678
3098
|
);
|
|
1679
|
-
const
|
|
3099
|
+
const Ze = Bi.exports, ki = (t) => typeof t == "string" ? document.querySelector(t) || document.body : t instanceof HTMLElement ? t : document.body, $i = (t) => {
|
|
1680
3100
|
const e = {}, o = {};
|
|
1681
|
-
return Object.entries(
|
|
1682
|
-
if (
|
|
1683
|
-
const
|
|
1684
|
-
e[
|
|
3101
|
+
return Object.entries(t).forEach(([n, r]) => {
|
|
3102
|
+
if (n.startsWith("on") && typeof r == "function" && n.length > 2) {
|
|
3103
|
+
const a = n.slice(2), i = a.charAt(0).toLowerCase() + a.slice(1);
|
|
3104
|
+
e[i] = r;
|
|
1685
3105
|
} else
|
|
1686
|
-
o[
|
|
3106
|
+
o[n] = r;
|
|
1687
3107
|
}), { propsData: o, events: e };
|
|
1688
|
-
},
|
|
1689
|
-
const { propsData:
|
|
1690
|
-
return Object.entries(
|
|
1691
|
-
|
|
1692
|
-
}),
|
|
3108
|
+
}, gn = (t, e, o) => {
|
|
3109
|
+
const { propsData: n, events: r } = $i(e), a = mn.extend(t), i = new a({ propsData: n });
|
|
3110
|
+
return Object.entries(r).forEach(([y, c]) => {
|
|
3111
|
+
i.$on(y, c);
|
|
3112
|
+
}), i.$mount(), ki(o).appendChild(i.$el), i;
|
|
1693
3113
|
};
|
|
1694
|
-
function
|
|
1695
|
-
if (
|
|
1696
|
-
let
|
|
1697
|
-
const
|
|
1698
|
-
|
|
1699
|
-
|
|
3114
|
+
function Ct(t, e = {}) {
|
|
3115
|
+
if (t = t || Ze, Object.assign({ onlyInstance: !1 }, e).onlyInstance) {
|
|
3116
|
+
let n = null;
|
|
3117
|
+
const r = () => {
|
|
3118
|
+
n && (n.visible = !1, setTimeout(() => {
|
|
3119
|
+
n && (n.$destroy(), n.$el && n.$el.parentNode && n.$el.parentNode.removeChild(n.$el), n = null);
|
|
1700
3120
|
}, 300));
|
|
1701
|
-
},
|
|
1702
|
-
|
|
1703
|
-
const
|
|
1704
|
-
return
|
|
1705
|
-
|
|
1706
|
-
},
|
|
1707
|
-
|
|
1708
|
-
},
|
|
3121
|
+
}, a = (i) => {
|
|
3122
|
+
i.visible === void 0 && (i.visible = !0);
|
|
3123
|
+
const l = i.onClosed, y = i.onSubmit;
|
|
3124
|
+
return i.onClosed = (...c) => {
|
|
3125
|
+
l == null || l(...c), r();
|
|
3126
|
+
}, i.onSubmit = (c = r) => {
|
|
3127
|
+
y == null || y(c);
|
|
3128
|
+
}, n = gn(t, i, i.appendTo), n;
|
|
1709
3129
|
};
|
|
1710
|
-
return
|
|
3130
|
+
return a.close = r, a;
|
|
1711
3131
|
} else {
|
|
1712
|
-
let
|
|
1713
|
-
const
|
|
1714
|
-
|
|
1715
|
-
},
|
|
1716
|
-
|
|
1717
|
-
},
|
|
1718
|
-
if (
|
|
1719
|
-
return Object.entries(
|
|
1720
|
-
|
|
1721
|
-
}),
|
|
1722
|
-
const
|
|
3132
|
+
let n = null;
|
|
3133
|
+
const r = () => {
|
|
3134
|
+
n && (n.visible = !1);
|
|
3135
|
+
}, a = () => {
|
|
3136
|
+
n && (n.$destroy(), n.$el && n.$el.parentNode && n.$el.parentNode.removeChild(n.$el), n = null);
|
|
3137
|
+
}, i = (l) => {
|
|
3138
|
+
if (n)
|
|
3139
|
+
return Object.entries(l).forEach(([s, m]) => {
|
|
3140
|
+
s.startsWith("on") || (n[s] = m);
|
|
3141
|
+
}), n.visible = !0, n;
|
|
3142
|
+
const y = {
|
|
1723
3143
|
visible: !0,
|
|
1724
3144
|
width: "50%",
|
|
1725
3145
|
destroyOnClose: !0,
|
|
1726
|
-
...
|
|
1727
|
-
},
|
|
1728
|
-
return
|
|
1729
|
-
|
|
1730
|
-
},
|
|
1731
|
-
|
|
1732
|
-
},
|
|
3146
|
+
...l
|
|
3147
|
+
}, c = y.onClosed, p = y.onSubmit;
|
|
3148
|
+
return y.onClosed = () => {
|
|
3149
|
+
c == null || c(), r();
|
|
3150
|
+
}, y.onSubmit = (s = r) => {
|
|
3151
|
+
p == null || p(s);
|
|
3152
|
+
}, n = gn(t, y, y.appendTo), n;
|
|
1733
3153
|
};
|
|
1734
|
-
return
|
|
3154
|
+
return i.close = r, i.destroy = a, i;
|
|
1735
3155
|
}
|
|
1736
3156
|
}
|
|
1737
|
-
|
|
1738
|
-
|
|
3157
|
+
Ze.install = function(t) {
|
|
3158
|
+
t.component(Ze.name || "EsDialog", Ze), t.prototype.$useDialog = Ct;
|
|
1739
3159
|
};
|
|
1740
|
-
const
|
|
3160
|
+
const Pi = be({
|
|
1741
3161
|
name: "EsCrudPage",
|
|
1742
|
-
components: { EsForm:
|
|
3162
|
+
components: { EsForm: ze, EsTable: Ye },
|
|
1743
3163
|
inheritAttrs: !1,
|
|
1744
3164
|
props: {
|
|
1745
3165
|
schema: { type: Object, required: !0 },
|
|
@@ -1762,384 +3182,384 @@ const wn = ie({
|
|
|
1762
3182
|
"dialog-cancel",
|
|
1763
3183
|
"dialog-open"
|
|
1764
3184
|
],
|
|
1765
|
-
setup(
|
|
1766
|
-
const
|
|
1767
|
-
|
|
1768
|
-
() =>
|
|
1769
|
-
(
|
|
1770
|
-
|
|
1771
|
-
|
|
3185
|
+
setup(t, { emit: e, expose: o }) {
|
|
3186
|
+
const n = L(null), r = L(null), a = L([]), i = _t({});
|
|
3187
|
+
we(
|
|
3188
|
+
() => t.schema.formItems,
|
|
3189
|
+
(u) => {
|
|
3190
|
+
u && u.forEach((g) => {
|
|
3191
|
+
g.prop && !(g.prop in i) && (i[g.prop] = "");
|
|
1772
3192
|
});
|
|
1773
3193
|
},
|
|
1774
3194
|
{ immediate: !0 }
|
|
1775
3195
|
);
|
|
1776
|
-
const
|
|
3196
|
+
const l = L({
|
|
1777
3197
|
current: 1,
|
|
1778
3198
|
pageSize: 10,
|
|
1779
3199
|
total: 0,
|
|
1780
|
-
...
|
|
1781
|
-
}),
|
|
1782
|
-
var
|
|
1783
|
-
if (
|
|
1784
|
-
if (!((
|
|
1785
|
-
const
|
|
1786
|
-
width: ((
|
|
1787
|
-
formItems:
|
|
1788
|
-
...
|
|
1789
|
-
},
|
|
1790
|
-
return
|
|
1791
|
-
}),
|
|
1792
|
-
if (
|
|
1793
|
-
if (
|
|
1794
|
-
const
|
|
1795
|
-
return
|
|
3200
|
+
...t.schema.pagination || {}
|
|
3201
|
+
}), y = E(() => {
|
|
3202
|
+
var k, T;
|
|
3203
|
+
if (t.schema.dialogs) return t.schema.dialogs;
|
|
3204
|
+
if (!((k = t.schema.dialogFormItems) != null && k.length)) return {};
|
|
3205
|
+
const u = {
|
|
3206
|
+
width: ((T = t.schema.dialogOptions) == null ? void 0 : T.width) || "600px",
|
|
3207
|
+
formItems: t.schema.dialogFormItems,
|
|
3208
|
+
...t.schema.dialogOptions || {}
|
|
3209
|
+
}, g = {}, _ = t.schema.actions || ["add", "edit", "delete"];
|
|
3210
|
+
return _.includes("add") && (g.add = { ...u, title: "新增" }), _.includes("edit") && (g.edit = { ...u, title: "编辑" }), _.includes("view") && (g.view = { ...u, title: "查看", isHiddenFooter: !0 }), g;
|
|
3211
|
+
}), c = E(() => {
|
|
3212
|
+
if (t.schema.toolbarBtns) return t.schema.toolbarBtns;
|
|
3213
|
+
if (t.schema.dialogs || t.schema.operationColumn !== void 0) return [];
|
|
3214
|
+
const u = t.schema.actions || ["add", "edit", "delete"], g = [];
|
|
3215
|
+
return u.includes("add") && g.push({
|
|
1796
3216
|
name: "新增",
|
|
1797
3217
|
type: "primary",
|
|
1798
3218
|
key: "add",
|
|
1799
3219
|
icon: "Plus",
|
|
1800
3220
|
dialogKey: "add"
|
|
1801
|
-
}),
|
|
3221
|
+
}), u.includes("export") && g.push({
|
|
1802
3222
|
name: "导出",
|
|
1803
3223
|
key: "export",
|
|
1804
3224
|
icon: "Download",
|
|
1805
3225
|
actionType: "export"
|
|
1806
|
-
}),
|
|
3226
|
+
}), u.includes("import") && g.push({
|
|
1807
3227
|
name: "导入",
|
|
1808
3228
|
key: "import",
|
|
1809
3229
|
icon: "Upload",
|
|
1810
3230
|
actionType: "import"
|
|
1811
|
-
}),
|
|
1812
|
-
}),
|
|
3231
|
+
}), g;
|
|
3232
|
+
}), p = E(
|
|
1813
3233
|
() => {
|
|
1814
|
-
var
|
|
1815
|
-
if (
|
|
1816
|
-
const
|
|
1817
|
-
if ((
|
|
3234
|
+
var T;
|
|
3235
|
+
if (t.schema.operationColumn !== void 0) return t.schema.operationColumn;
|
|
3236
|
+
const u = t.schema.actions || ["add", "edit", "delete"];
|
|
3237
|
+
if ((T = t.schema.columns) == null ? void 0 : T.some(
|
|
1818
3238
|
(x) => x.prop === "action" || x.prop === "operate" || x.btns
|
|
1819
3239
|
)) return;
|
|
1820
|
-
if (
|
|
1821
|
-
const
|
|
1822
|
-
return
|
|
3240
|
+
if (u.filter((x) => ["edit", "delete", "view"].includes(x)).length === 0) return !1;
|
|
3241
|
+
const k = [];
|
|
3242
|
+
return u.includes("view") && k.push({ name: "查看", type: "primary", key: "view", dialogKey: "view" }), u.includes("edit") && k.push({ name: "编辑", type: "primary", key: "edit", dialogKey: "edit" }), u.includes("delete") && k.push({
|
|
1823
3243
|
name: "删除",
|
|
1824
3244
|
type: "danger",
|
|
1825
3245
|
key: "delete",
|
|
1826
3246
|
confirm: "确定删除该条数据吗?"
|
|
1827
3247
|
}), {
|
|
1828
3248
|
label: "操作",
|
|
1829
|
-
width:
|
|
3249
|
+
width: k.length * 80 + 20,
|
|
1830
3250
|
fixed: "right",
|
|
1831
|
-
btns:
|
|
3251
|
+
btns: k
|
|
1832
3252
|
};
|
|
1833
3253
|
}
|
|
1834
|
-
),
|
|
1835
|
-
if (
|
|
1836
|
-
const
|
|
3254
|
+
), s = E(() => {
|
|
3255
|
+
if (t.schema.queryBtns) return t.schema.queryBtns;
|
|
3256
|
+
const u = [
|
|
1837
3257
|
{ name: "查询", type: "primary", key: "query", triggerEvent: !0 },
|
|
1838
3258
|
{ name: "重置", key: "rest", triggerEvent: !0 }
|
|
1839
|
-
],
|
|
1840
|
-
const
|
|
1841
|
-
return
|
|
3259
|
+
], g = c.value.map((_) => {
|
|
3260
|
+
const k = { ..._ };
|
|
3261
|
+
return k.click || (k.click = () => S(_)), k;
|
|
1842
3262
|
});
|
|
1843
|
-
return [...
|
|
1844
|
-
}),
|
|
1845
|
-
const
|
|
1846
|
-
if (
|
|
1847
|
-
const
|
|
1848
|
-
name:
|
|
1849
|
-
type:
|
|
1850
|
-
permissionValue:
|
|
1851
|
-
clickEvent: (
|
|
3263
|
+
return [...u, ...g];
|
|
3264
|
+
}), m = E(() => {
|
|
3265
|
+
const u = [...t.schema.columns || []], g = p.value;
|
|
3266
|
+
if (g === !1 || g === void 0) return u;
|
|
3267
|
+
const _ = g.btns.map((k) => ({
|
|
3268
|
+
name: k.name,
|
|
3269
|
+
type: k.type,
|
|
3270
|
+
permissionValue: k.permissionValue,
|
|
3271
|
+
clickEvent: (T) => F(k, T)
|
|
1852
3272
|
}));
|
|
1853
|
-
return
|
|
3273
|
+
return u.push({
|
|
1854
3274
|
prop: "operate",
|
|
1855
|
-
label:
|
|
1856
|
-
width:
|
|
1857
|
-
fixed:
|
|
1858
|
-
btns:
|
|
1859
|
-
}),
|
|
1860
|
-
}),
|
|
1861
|
-
var
|
|
1862
|
-
return (
|
|
1863
|
-
name:
|
|
1864
|
-
type:
|
|
1865
|
-
size:
|
|
1866
|
-
icon:
|
|
1867
|
-
code:
|
|
1868
|
-
permissionValue:
|
|
1869
|
-
loading:
|
|
1870
|
-
disabled:
|
|
1871
|
-
click: () =>
|
|
3275
|
+
label: g.label || "操作",
|
|
3276
|
+
width: g.width || _.length * 80 + 20,
|
|
3277
|
+
fixed: g.fixed || "right",
|
|
3278
|
+
btns: _
|
|
3279
|
+
}), u;
|
|
3280
|
+
}), v = E(() => {
|
|
3281
|
+
var u;
|
|
3282
|
+
return (u = t.schema.tableBtns) != null && u.length ? t.schema.tableBtns.map((g) => ({
|
|
3283
|
+
name: g.name,
|
|
3284
|
+
type: g.type,
|
|
3285
|
+
size: g.size || "small",
|
|
3286
|
+
icon: g.icon,
|
|
3287
|
+
code: g.code || 1,
|
|
3288
|
+
permissionValue: g.permissionValue,
|
|
3289
|
+
loading: g.loading,
|
|
3290
|
+
disabled: g.disabled,
|
|
3291
|
+
click: () => S(g)
|
|
1872
3292
|
})) : [];
|
|
1873
|
-
}),
|
|
1874
|
-
const
|
|
3293
|
+
}), h = E(() => {
|
|
3294
|
+
const u = {
|
|
1875
3295
|
border: !0,
|
|
1876
|
-
isInitRun:
|
|
1877
|
-
...
|
|
3296
|
+
isInitRun: t.autoLoad,
|
|
3297
|
+
...t.schema.tableOptions || {}
|
|
1878
3298
|
};
|
|
1879
|
-
|
|
1880
|
-
const
|
|
1881
|
-
if (
|
|
1882
|
-
const
|
|
1883
|
-
|
|
3299
|
+
t.httpRequest && (u.httpRequest = t.httpRequest);
|
|
3300
|
+
const g = v.value;
|
|
3301
|
+
if (g.length > 0) {
|
|
3302
|
+
const _ = u.configBtn || [];
|
|
3303
|
+
u.configBtn = [..._, ...g];
|
|
1884
3304
|
}
|
|
1885
|
-
return
|
|
1886
|
-
}),
|
|
1887
|
-
const
|
|
1888
|
-
if (
|
|
3305
|
+
return u;
|
|
3306
|
+
}), f = E(() => {
|
|
3307
|
+
const u = t.schema.formLayout;
|
|
3308
|
+
if (u)
|
|
1889
3309
|
return {
|
|
1890
3310
|
rowLayProps: { gutter: 16 },
|
|
1891
3311
|
formLayProps: {
|
|
1892
|
-
labelBtnWidth:
|
|
1893
|
-
...
|
|
3312
|
+
labelBtnWidth: u.labelWidth,
|
|
3313
|
+
...u.minFoldRows ? { minFoldRows: u.minFoldRows } : {}
|
|
1894
3314
|
}
|
|
1895
3315
|
};
|
|
1896
3316
|
});
|
|
1897
|
-
async function
|
|
1898
|
-
const
|
|
1899
|
-
if (
|
|
1900
|
-
const
|
|
3317
|
+
async function S(u) {
|
|
3318
|
+
const g = u.key || u.actionType || "";
|
|
3319
|
+
if (u.confirm) {
|
|
3320
|
+
const _ = typeof u.confirm == "string" ? u.confirm : "确定执行此操作吗?";
|
|
1901
3321
|
try {
|
|
1902
|
-
await
|
|
1903
|
-
} catch (
|
|
3322
|
+
await tn.confirm(_, "提示", { type: "warning" });
|
|
3323
|
+
} catch (k) {
|
|
1904
3324
|
return;
|
|
1905
3325
|
}
|
|
1906
3326
|
}
|
|
1907
|
-
if (
|
|
1908
|
-
|
|
3327
|
+
if (u.dialogKey) {
|
|
3328
|
+
g === "add" && e("add"), M(u.dialogKey);
|
|
1909
3329
|
return;
|
|
1910
3330
|
}
|
|
1911
|
-
|
|
3331
|
+
g === "export" || u.actionType === "export" ? e("export", { ...i }) : g === "add" && e("add"), e("btn-click", g, { ...i });
|
|
1912
3332
|
}
|
|
1913
|
-
async function
|
|
1914
|
-
const
|
|
1915
|
-
if (
|
|
1916
|
-
const
|
|
3333
|
+
async function F(u, g) {
|
|
3334
|
+
const _ = u.key || "";
|
|
3335
|
+
if (u.confirm) {
|
|
3336
|
+
const k = typeof u.confirm == "string" ? u.confirm : "确定执行此操作吗?";
|
|
1917
3337
|
try {
|
|
1918
|
-
await
|
|
1919
|
-
} catch (
|
|
3338
|
+
await tn.confirm(k, "提示", { type: "warning" });
|
|
3339
|
+
} catch (T) {
|
|
1920
3340
|
return;
|
|
1921
3341
|
}
|
|
1922
3342
|
}
|
|
1923
|
-
if (
|
|
1924
|
-
|
|
3343
|
+
if (u.click) {
|
|
3344
|
+
u.click(g, { refresh: K, getSelectedRows: Q, openDialog: M });
|
|
1925
3345
|
return;
|
|
1926
3346
|
}
|
|
1927
|
-
if (
|
|
1928
|
-
|
|
3347
|
+
if (u.dialogKey) {
|
|
3348
|
+
M(u.dialogKey, g);
|
|
1929
3349
|
return;
|
|
1930
3350
|
}
|
|
1931
|
-
|
|
3351
|
+
_ === "edit" ? e("edit", g) : _ === "delete" ? e("delete", g) : _ === "view" && e("view", g), e("btn-click", _, g);
|
|
1932
3352
|
}
|
|
1933
|
-
const
|
|
1934
|
-
function
|
|
1935
|
-
var
|
|
1936
|
-
const
|
|
1937
|
-
if (!
|
|
1938
|
-
e("dialog-open",
|
|
1939
|
-
const
|
|
1940
|
-
|
|
1941
|
-
const
|
|
1942
|
-
|
|
1943
|
-
var
|
|
1944
|
-
q.prop && (
|
|
3353
|
+
const H = /* @__PURE__ */ new Map();
|
|
3354
|
+
function M(u, g) {
|
|
3355
|
+
var X;
|
|
3356
|
+
const _ = y.value[u];
|
|
3357
|
+
if (!_) return;
|
|
3358
|
+
e("dialog-open", u, g);
|
|
3359
|
+
const k = Ct();
|
|
3360
|
+
H.set(u, k);
|
|
3361
|
+
const T = _t({});
|
|
3362
|
+
_.formItems && _.formItems.forEach((q) => {
|
|
3363
|
+
var ve;
|
|
3364
|
+
q.prop && (T[q.prop] = (ve = g == null ? void 0 : g[q.prop]) != null ? ve : "");
|
|
1945
3365
|
});
|
|
1946
|
-
const x = typeof
|
|
1947
|
-
(
|
|
1948
|
-
const
|
|
1949
|
-
|
|
3366
|
+
const x = typeof _.title == "function" ? _.title(g) : _.title || "";
|
|
3367
|
+
(X = _.onOpen) == null || X.call(_, g);
|
|
3368
|
+
const z = U(u, _, T, g || {});
|
|
3369
|
+
k({
|
|
1950
3370
|
title: x,
|
|
1951
|
-
width:
|
|
1952
|
-
isDraggable:
|
|
1953
|
-
maxHeight:
|
|
1954
|
-
fullscreen:
|
|
1955
|
-
isHiddenFooter:
|
|
3371
|
+
width: _.width || "600px",
|
|
3372
|
+
isDraggable: _.isDraggable,
|
|
3373
|
+
maxHeight: _.maxHeight,
|
|
3374
|
+
fullscreen: _.fullscreen,
|
|
3375
|
+
isHiddenFooter: _.isHiddenFooter,
|
|
1956
3376
|
// 用户自定义 render
|
|
1957
|
-
render:
|
|
1958
|
-
row:
|
|
1959
|
-
model:
|
|
1960
|
-
registerRef:
|
|
1961
|
-
close: () =>
|
|
1962
|
-
refresh:
|
|
1963
|
-
}) :
|
|
1964
|
-
const
|
|
3377
|
+
render: _.render ? (q, ve) => _.render(q, {
|
|
3378
|
+
row: g || {},
|
|
3379
|
+
model: T,
|
|
3380
|
+
registerRef: ve.registerRef,
|
|
3381
|
+
close: () => W(u),
|
|
3382
|
+
refresh: K
|
|
3383
|
+
}) : _.formItems ? (q, { registerRef: ve }) => {
|
|
3384
|
+
const ge = q(ze, {
|
|
1965
3385
|
props: {
|
|
1966
|
-
model:
|
|
1967
|
-
formItemList:
|
|
3386
|
+
model: T,
|
|
3387
|
+
formItemList: _.formItems,
|
|
1968
3388
|
layoutFormProps: {
|
|
1969
3389
|
rowLayProps: { gutter: 16 },
|
|
1970
3390
|
formLayProps: {
|
|
1971
3391
|
isBtnHidden: !0,
|
|
1972
|
-
...
|
|
3392
|
+
..._.formLayout || {}
|
|
1973
3393
|
}
|
|
1974
3394
|
}
|
|
1975
3395
|
},
|
|
1976
3396
|
// Vue 2 函数式 ref:通过 RenderJsx 暴露的 registerRef 注册
|
|
1977
3397
|
ref: "dialogForm"
|
|
1978
3398
|
});
|
|
1979
|
-
return
|
|
1980
|
-
|
|
1981
|
-
}),
|
|
3399
|
+
return ge && ge.data && (ge.data.hook = ge.data.hook || {}, ge.data.hook.insert = (le) => {
|
|
3400
|
+
le.componentInstance && ve("dialogForm", le.componentInstance);
|
|
3401
|
+
}), ge;
|
|
1982
3402
|
} : void 0,
|
|
1983
|
-
configBtn:
|
|
3403
|
+
configBtn: z,
|
|
1984
3404
|
// useDialog 的 onClosed 通过 extractEventHandlers 转为 'closed' 事件
|
|
1985
3405
|
onClosed: () => {
|
|
1986
3406
|
var q;
|
|
1987
|
-
|
|
3407
|
+
H.delete(u), (q = _.onClose) == null || q.call(_);
|
|
1988
3408
|
}
|
|
1989
3409
|
});
|
|
1990
3410
|
}
|
|
1991
|
-
function
|
|
1992
|
-
const
|
|
1993
|
-
|
|
3411
|
+
function W(u) {
|
|
3412
|
+
const g = H.get(u);
|
|
3413
|
+
g && (g.close(), H.delete(u));
|
|
1994
3414
|
}
|
|
1995
|
-
function
|
|
1996
|
-
if (!
|
|
1997
|
-
return
|
|
1998
|
-
...
|
|
1999
|
-
click: (x, { close:
|
|
2000
|
-
e("dialog-cancel",
|
|
3415
|
+
function U(u, g, _, k) {
|
|
3416
|
+
if (!g.isHiddenFooter)
|
|
3417
|
+
return g.configBtn ? g.configBtn.map((T) => T.action === "cancel" ? {
|
|
3418
|
+
...T,
|
|
3419
|
+
click: (x, { close: z }) => {
|
|
3420
|
+
e("dialog-cancel", u), z();
|
|
2001
3421
|
}
|
|
2002
|
-
} :
|
|
2003
|
-
...
|
|
2004
|
-
click: async (x, { close:
|
|
2005
|
-
await
|
|
3422
|
+
} : T.action === "confirm" ? {
|
|
3423
|
+
...T,
|
|
3424
|
+
click: async (x, { close: z, getRefs: X }) => {
|
|
3425
|
+
await J(u, g, _, k, z, X);
|
|
2006
3426
|
}
|
|
2007
|
-
} :
|
|
3427
|
+
} : T) : [
|
|
2008
3428
|
{
|
|
2009
3429
|
name: "取消",
|
|
2010
|
-
click: (
|
|
2011
|
-
e("dialog-cancel",
|
|
3430
|
+
click: (T, { close: x }) => {
|
|
3431
|
+
e("dialog-cancel", u), x();
|
|
2012
3432
|
}
|
|
2013
3433
|
},
|
|
2014
3434
|
{
|
|
2015
3435
|
name: "确定",
|
|
2016
3436
|
type: "primary",
|
|
2017
|
-
click: async (
|
|
2018
|
-
await
|
|
3437
|
+
click: async (T, { close: x, getRefs: z }) => {
|
|
3438
|
+
await J(u, g, _, k, x, z);
|
|
2019
3439
|
}
|
|
2020
3440
|
}
|
|
2021
3441
|
];
|
|
2022
3442
|
}
|
|
2023
|
-
async function
|
|
2024
|
-
var
|
|
2025
|
-
if ((
|
|
3443
|
+
async function J(u, g, _, k, T, x) {
|
|
3444
|
+
var X;
|
|
3445
|
+
if ((X = g.formItems) != null && X.length) {
|
|
2026
3446
|
const q = x("dialogForm");
|
|
2027
3447
|
q != null && q.validate && await q.validate();
|
|
2028
3448
|
}
|
|
2029
|
-
const
|
|
2030
|
-
if (
|
|
2031
|
-
await
|
|
3449
|
+
const z = { close: T, refresh: K, getRefs: x, row: k };
|
|
3450
|
+
if (g.onConfirm)
|
|
3451
|
+
await g.onConfirm(_, z);
|
|
2032
3452
|
else {
|
|
2033
|
-
const q =
|
|
2034
|
-
e("btn-click", q,
|
|
3453
|
+
const q = u === "add" ? "add-confirm" : u === "edit" ? "edit-confirm" : `${u}-confirm`;
|
|
3454
|
+
e("btn-click", q, _), T(), K();
|
|
2035
3455
|
}
|
|
2036
|
-
e("dialog-confirm",
|
|
3456
|
+
e("dialog-confirm", u, _);
|
|
2037
3457
|
}
|
|
2038
|
-
function
|
|
2039
|
-
var
|
|
2040
|
-
(
|
|
3458
|
+
function K() {
|
|
3459
|
+
var u, g;
|
|
3460
|
+
(g = (u = n.value) == null ? void 0 : u.httpRequestInstance) == null || g.call(u);
|
|
2041
3461
|
}
|
|
2042
|
-
function
|
|
2043
|
-
var
|
|
2044
|
-
return ((
|
|
3462
|
+
function Q() {
|
|
3463
|
+
var u, g;
|
|
3464
|
+
return ((g = (u = n.value) == null ? void 0 : u.getSelectionRows) == null ? void 0 : g.call(u)) || [];
|
|
2045
3465
|
}
|
|
2046
|
-
const
|
|
2047
|
-
refresh:
|
|
2048
|
-
getSelectedRows:
|
|
2049
|
-
tableRef:
|
|
2050
|
-
formRef:
|
|
2051
|
-
queryModel:
|
|
2052
|
-
openDialog:
|
|
2053
|
-
closeDialog:
|
|
3466
|
+
const O = {
|
|
3467
|
+
refresh: K,
|
|
3468
|
+
getSelectedRows: Q,
|
|
3469
|
+
tableRef: n,
|
|
3470
|
+
formRef: r,
|
|
3471
|
+
queryModel: i,
|
|
3472
|
+
openDialog: M,
|
|
3473
|
+
closeDialog: W
|
|
2054
3474
|
};
|
|
2055
|
-
return typeof o == "function" && o(
|
|
3475
|
+
return typeof o == "function" && o(O), {
|
|
2056
3476
|
// refs
|
|
2057
|
-
tableRef:
|
|
2058
|
-
formRef:
|
|
2059
|
-
tableData:
|
|
2060
|
-
queryModel:
|
|
2061
|
-
paginationState:
|
|
3477
|
+
tableRef: n,
|
|
3478
|
+
formRef: r,
|
|
3479
|
+
tableData: a,
|
|
3480
|
+
queryModel: i,
|
|
3481
|
+
paginationState: l,
|
|
2062
3482
|
// computeds
|
|
2063
|
-
mergedColumns:
|
|
2064
|
-
mergedOptions:
|
|
2065
|
-
mergedFormBtns:
|
|
2066
|
-
formLayoutProps:
|
|
3483
|
+
mergedColumns: m,
|
|
3484
|
+
mergedOptions: h,
|
|
3485
|
+
mergedFormBtns: s,
|
|
3486
|
+
formLayoutProps: f,
|
|
2067
3487
|
// exposed
|
|
2068
|
-
...
|
|
3488
|
+
...O
|
|
2069
3489
|
};
|
|
2070
3490
|
}
|
|
2071
3491
|
});
|
|
2072
|
-
var
|
|
3492
|
+
var Ni = function() {
|
|
2073
3493
|
var e = this, o = e._self._c;
|
|
2074
|
-
return e._self._setupProxy, o("div", { staticClass: "es-crud-page" }, [o("es-table", e._b({ ref: "tableRef", attrs: { columns: e.mergedColumns, options: e.mergedOptions, "data-source": e.tableData, pagination: e.paginationState }, on: { "update:dataSource": function(
|
|
2075
|
-
e.tableData =
|
|
2076
|
-
}, "update:data-source": function(
|
|
2077
|
-
e.tableData =
|
|
2078
|
-
}, "update:pagination": function(
|
|
2079
|
-
e.paginationState =
|
|
2080
|
-
} }, scopedSlots: e._u([e._l(e.$slots, function(
|
|
2081
|
-
return { key:
|
|
2082
|
-
return [e._t(
|
|
3494
|
+
return e._self._setupProxy, o("div", { staticClass: "es-crud-page" }, [o("es-table", e._b({ ref: "tableRef", attrs: { columns: e.mergedColumns, options: e.mergedOptions, "data-source": e.tableData, pagination: e.paginationState }, on: { "update:dataSource": function(n) {
|
|
3495
|
+
e.tableData = n;
|
|
3496
|
+
}, "update:data-source": function(n) {
|
|
3497
|
+
e.tableData = n;
|
|
3498
|
+
}, "update:pagination": function(n) {
|
|
3499
|
+
e.paginationState = n;
|
|
3500
|
+
} }, scopedSlots: e._u([e._l(e.$slots, function(n, r) {
|
|
3501
|
+
return { key: r, fn: function(a) {
|
|
3502
|
+
return [e._t(r, null, null, a || {})];
|
|
2083
3503
|
} };
|
|
2084
3504
|
})], null, !0) }, "es-table", e.$attrs, !1), [e.schema.formItems && e.schema.formItems.length ? o("es-form", { ref: "formRef", attrs: { model: e.queryModel, "form-item-list": e.schema.formItems, "config-btn": e.mergedFormBtns, "layout-form-props": e.formLayoutProps } }) : e._e()], 1)], 1);
|
|
2085
|
-
},
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
3505
|
+
}, Di = [], Ai = /* @__PURE__ */ Ne(
|
|
3506
|
+
Pi,
|
|
3507
|
+
Ni,
|
|
3508
|
+
Di,
|
|
2089
3509
|
!1,
|
|
2090
3510
|
null,
|
|
2091
3511
|
"ad1d1cb8"
|
|
2092
3512
|
);
|
|
2093
|
-
const
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
3513
|
+
const gt = Ai.exports;
|
|
3514
|
+
gt.install = function(t) {
|
|
3515
|
+
t.component(
|
|
3516
|
+
gt.name || "EsCrudPage",
|
|
3517
|
+
gt
|
|
2098
3518
|
);
|
|
2099
3519
|
};
|
|
2100
|
-
const
|
|
2101
|
-
const e = { ...
|
|
3520
|
+
const Ti = [ze, Ye, Ze, gt], Hi = (t) => {
|
|
3521
|
+
const e = { ...t };
|
|
2102
3522
|
for (const o of ["EsTable", "EsForm", "EsDialog"]) {
|
|
2103
|
-
const
|
|
2104
|
-
if (!
|
|
2105
|
-
const
|
|
2106
|
-
if (
|
|
2107
|
-
const { methods:
|
|
2108
|
-
e[o] = { ...
|
|
3523
|
+
const n = e[o];
|
|
3524
|
+
if (!n || typeof n != "object") continue;
|
|
3525
|
+
const r = n.methods;
|
|
3526
|
+
if (r && typeof r == "object") {
|
|
3527
|
+
const { methods: i, ...l } = n;
|
|
3528
|
+
e[o] = { ...r, ...l };
|
|
2109
3529
|
}
|
|
2110
|
-
const
|
|
2111
|
-
typeof
|
|
3530
|
+
const a = e[o];
|
|
3531
|
+
typeof a.configQueryfieldOutput == "function" && typeof a.configQueryFieldOutput != "function" && (a.configQueryFieldOutput = a.configQueryfieldOutput);
|
|
2112
3532
|
}
|
|
2113
3533
|
return e;
|
|
2114
|
-
},
|
|
2115
|
-
const o =
|
|
2116
|
-
|
|
3534
|
+
}, Li = (t, e = {}) => {
|
|
3535
|
+
const o = t.__composition_api_installed__ === !0;
|
|
3536
|
+
Kn ? o && console.warn(
|
|
2117
3537
|
'[@es-plus/vue2] Vue 2.7+ detected together with @vue/composition-api plugin already installed. This causes setup() to run twice (once natively, once via the polyfill\'s data() wrapper) and will produce "setup binding ... already declared" warnings. Remove `Vue.use(VueCompositionAPI)` from your main.js — Vue 2.7 has Composition API natively.'
|
|
2118
|
-
) : !o &&
|
|
2119
|
-
const
|
|
2120
|
-
|
|
2121
|
-
const
|
|
2122
|
-
|
|
2123
|
-
}),
|
|
3538
|
+
) : !o && dn && t.use(dn);
|
|
3539
|
+
const n = Hi(e);
|
|
3540
|
+
go(n), n.skipComponentRegistration || Ti.forEach((r) => {
|
|
3541
|
+
const a = r.name;
|
|
3542
|
+
a && t.component(a, r);
|
|
3543
|
+
}), n.globalProperties !== !1 && (t.prototype.$useDialog = Ct), t.mixin({
|
|
2124
3544
|
provide: {
|
|
2125
3545
|
$EsPlus: {
|
|
2126
|
-
useDialog:
|
|
2127
|
-
...
|
|
3546
|
+
useDialog: Ct,
|
|
3547
|
+
...n
|
|
2128
3548
|
}
|
|
2129
3549
|
}
|
|
2130
3550
|
});
|
|
2131
|
-
},
|
|
2132
|
-
version: "1.1.
|
|
2133
|
-
install:
|
|
3551
|
+
}, Mi = {
|
|
3552
|
+
version: "1.1.1",
|
|
3553
|
+
install: Li
|
|
2134
3554
|
};
|
|
2135
3555
|
export {
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
3556
|
+
gt as EsCrudPage,
|
|
3557
|
+
Ze as EsDialog,
|
|
3558
|
+
ze as EsForm,
|
|
3559
|
+
Ye as EsTable,
|
|
3560
|
+
Ui as configureEsPlus,
|
|
3561
|
+
Mi as default,
|
|
3562
|
+
Li as install,
|
|
3563
|
+
Ct as useDialog
|
|
2144
3564
|
};
|
|
2145
3565
|
//# sourceMappingURL=es-plus-vue2.js.map
|