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