@gx-design-vue/pro-table 0.0.4 → 0.0.5-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -1
- package/dist/ProTable.d.ts +42 -12
- package/dist/_utils/ant-design-vue/index.d.ts +0 -2
- package/dist/_utils/ant-design-vue/table/typings.d.ts +2 -2
- package/dist/_utils/index.d.ts +0 -10
- package/dist/_utils/typings.d.ts +1 -3
- package/dist/{_utils → components/ColumnSetting}/hooks/useRefFunction/index.d.ts +0 -0
- package/dist/components/Form/index.d.ts +6 -5
- package/dist/components/Form/useForm.d.ts +1 -1
- package/dist/components/ListToolBar/index.d.ts +12 -11
- package/dist/hooks/useFetchData.d.ts +1 -1
- package/dist/hooks/useLoading.d.ts +1 -1
- package/dist/hooks/useRowSelection.d.ts +1 -1
- package/dist/hooks/useTableForm.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/pro-table.mjs +361 -372
- package/dist/pro-table.umd.js +1 -1
- package/dist/{pro-table.less → proTable.less} +0 -0
- package/dist/props.d.ts +3 -2
- package/dist/style.less +1 -1
- package/dist/types/ColumnTypings.d.ts +2 -1
- package/dist/types/SlotsTypings.d.ts +1 -1
- package/dist/types/TableTypings.d.ts +2 -1
- package/dist/typing.d.ts +0 -6
- package/package.json +4 -3
package/dist/pro-table.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ref as N, watchEffect as oe, computed as T, unref as f, reactive as ue, watch as
|
|
2
|
-
import { cloneDeep as H, omit as
|
|
1
|
+
import { ref as N, watchEffect as oe, computed as T, unref as f, reactive as ue, watch as G, onUnmounted as et, onDeactivated as Ft, onMounted as tt, provide as Dt, inject as Ot, defineComponent as xe, createVNode as u, Fragment as Me, nextTick as Mt, mergeProps as _, renderSlot as Pt, createTextVNode as me, isVNode as ye, cloneVNode as Et, toRef as U, toRaw as ke } from "vue";
|
|
2
|
+
import { cloneDeep as H, omit as Ge } from "lodash-unified";
|
|
3
3
|
import { useFullscreen as nt } from "@vueuse/core";
|
|
4
|
-
import { Form as
|
|
5
|
-
import { isBoolean as re, isFunction as
|
|
4
|
+
import { Form as Ue, Grid as ze, Space as te, Button as Je, Input as Qe, TimePicker as Nt, DatePicker as lt, TreeSelect as It, Spin as Pe, Select as Xe, Tree as zt, Tooltip as J, Popover as jt, Checkbox as $t, Dropdown as Yt, Menu as Ce, Pagination as Bt, Table as Kt, Typography as Lt } from "ant-design-vue";
|
|
5
|
+
import { isBoolean as re, getSlot as at, isFunction as we, arrayRepeat as Vt, runFunction as Ht, handleCurrentPage as At, isObject as je, getSortIndex as Wt, genColumnKey as ut, compareArray as _t, isNumber as ot, isString as qt, isArray as Ee, getRandomNumber as Ne, getPrefixCls as $e, handleShowIndex as Gt, getSlotVNode as ve, hanndleField as Ut } from "@gx-design-vue/pro-utils";
|
|
6
6
|
import { tryOnUnmounted as Jt, useMemo as Se } from "@gx-design-vue/pro-hooks";
|
|
7
7
|
import V from "dayjs";
|
|
8
|
-
import { UpOutlined as Qt, DownOutlined as Xt, VerticalAlignTopOutlined as Zt, VerticalAlignMiddleOutlined as en, VerticalAlignBottomOutlined as tn, SettingOutlined as
|
|
8
|
+
import { UpOutlined as Qt, DownOutlined as Xt, VerticalAlignTopOutlined as Zt, VerticalAlignMiddleOutlined as en, VerticalAlignBottomOutlined as tn, SettingOutlined as it, FullscreenExitOutlined as nn, FullscreenOutlined as ln, ColumnHeightOutlined as an, InfoCircleOutlined as un, ReloadOutlined as on } from "@ant-design/icons-vue";
|
|
9
9
|
function Ie() {
|
|
10
10
|
return Ie = Object.assign ? Object.assign.bind() : function(e) {
|
|
11
11
|
for (var a = 1; a < arguments.length; a++) {
|
|
@@ -128,18 +128,7 @@ const rn = {
|
|
|
128
128
|
transformCellText: {
|
|
129
129
|
type: Function
|
|
130
130
|
}
|
|
131
|
-
},
|
|
132
|
-
const o = l || (t ? "gx-pro" : "gx");
|
|
133
|
-
return a || (e ? `${o}-${e}` : o);
|
|
134
|
-
};
|
|
135
|
-
function it(e, a, t = "default") {
|
|
136
|
-
return a[t] === !1 ? !1 : a[t] || e[t];
|
|
137
|
-
}
|
|
138
|
-
function ve(e, a, t = "default") {
|
|
139
|
-
var l;
|
|
140
|
-
return a[t] === !1 ? !1 : a[t] || ((l = e[t]) == null ? void 0 : l.call(e));
|
|
141
|
-
}
|
|
142
|
-
const ne = {
|
|
131
|
+
}, ne = {
|
|
143
132
|
...rn,
|
|
144
133
|
rowSelection: {
|
|
145
134
|
type: Object,
|
|
@@ -265,18 +254,18 @@ function cn({ emit: e, loading: a }) {
|
|
|
265
254
|
t.value = a.value;
|
|
266
255
|
});
|
|
267
256
|
const l = T(() => f(t) || !1);
|
|
268
|
-
function o
|
|
269
|
-
t.value =
|
|
257
|
+
function i(o) {
|
|
258
|
+
t.value = o, e("loadingChange", !0);
|
|
270
259
|
}
|
|
271
|
-
return { getLoading: l, setLoading:
|
|
260
|
+
return { getLoading: l, setLoading: i };
|
|
272
261
|
}
|
|
273
262
|
function dn({ size: e, emit: a }) {
|
|
274
263
|
const t = N("middle");
|
|
275
264
|
oe(() => {
|
|
276
265
|
t.value = e.value;
|
|
277
266
|
});
|
|
278
|
-
function l(
|
|
279
|
-
t.value =
|
|
267
|
+
function l(i) {
|
|
268
|
+
t.value = i, a("sizeChange", !0);
|
|
280
269
|
}
|
|
281
270
|
return { sizeRef: t, setTableSize: l };
|
|
282
271
|
}
|
|
@@ -296,11 +285,11 @@ function fn({
|
|
|
296
285
|
for (const d in l)
|
|
297
286
|
delete l[d];
|
|
298
287
|
});
|
|
299
|
-
const
|
|
288
|
+
const i = T(() => {
|
|
300
289
|
var r;
|
|
301
290
|
if (re(t.value) && !t.value)
|
|
302
291
|
return !1;
|
|
303
|
-
const h =
|
|
292
|
+
const h = at(e, f(a), "pageItemRender"), d = we(h) ? {
|
|
304
293
|
itemRender: ({
|
|
305
294
|
page: s,
|
|
306
295
|
type: C,
|
|
@@ -310,7 +299,7 @@ function fn({
|
|
|
310
299
|
type: C,
|
|
311
300
|
originalElement: c
|
|
312
301
|
}) : null
|
|
313
|
-
} : null,
|
|
302
|
+
} : null, b = {
|
|
314
303
|
current: 1,
|
|
315
304
|
pageSize: 10,
|
|
316
305
|
size: "default",
|
|
@@ -321,23 +310,23 @@ function fn({
|
|
|
321
310
|
...f(l),
|
|
322
311
|
...d || {}
|
|
323
312
|
};
|
|
324
|
-
return (r = t.value) != null && r.showTotal || (
|
|
313
|
+
return (r = t.value) != null && r.showTotal || (b.showTotal = (s) => `\u5171${s < b.pageSize ? 1 : Math.ceil(s / b.pageSize)}\u9875 ${s}\u6761\u8BB0\u5F55`), b;
|
|
325
314
|
});
|
|
326
|
-
function
|
|
327
|
-
const d = f(
|
|
315
|
+
function o(h) {
|
|
316
|
+
const d = f(i);
|
|
328
317
|
Object.assign(l, {
|
|
329
318
|
...d || {},
|
|
330
319
|
...h
|
|
331
320
|
});
|
|
332
321
|
}
|
|
333
322
|
return {
|
|
334
|
-
getPaginationInfo:
|
|
335
|
-
setPagination:
|
|
323
|
+
getPaginationInfo: i,
|
|
324
|
+
setPagination: o
|
|
336
325
|
};
|
|
337
326
|
}
|
|
338
327
|
function hn(e, a) {
|
|
339
328
|
const t = N([]), l = N([]);
|
|
340
|
-
|
|
329
|
+
G(() => {
|
|
341
330
|
var r;
|
|
342
331
|
return (r = a.value) == null ? void 0 : r.selectedRowKeys;
|
|
343
332
|
}, (r) => {
|
|
@@ -345,7 +334,7 @@ function hn(e, a) {
|
|
|
345
334
|
}, {
|
|
346
335
|
deep: !0,
|
|
347
336
|
immediate: !0
|
|
348
|
-
}),
|
|
337
|
+
}), G(() => {
|
|
349
338
|
var r;
|
|
350
339
|
return (r = a.value) == null ? void 0 : r.defaultSelectRows;
|
|
351
340
|
}, (r) => {
|
|
@@ -356,21 +345,21 @@ function hn(e, a) {
|
|
|
356
345
|
deep: !0,
|
|
357
346
|
immediate: !0
|
|
358
347
|
});
|
|
359
|
-
const
|
|
348
|
+
const i = (r, s) => {
|
|
360
349
|
e.value && (s ? r != null && r[e.value] && (t.value.push(r[e.value]), l.value.push(r)) : (t.value = t.value.filter((C) => C !== r[e.value]), l.value = l.value.filter((C) => C[e.value] !== r[e.value])));
|
|
361
|
-
},
|
|
350
|
+
}, o = () => {
|
|
362
351
|
a.value && a.value.onChange(t.value, l.value);
|
|
363
352
|
};
|
|
364
353
|
return {
|
|
365
354
|
selectedKey: t,
|
|
366
|
-
selectRowKey:
|
|
355
|
+
selectRowKey: i,
|
|
367
356
|
selectAllRowKey: (r, s, C) => {
|
|
368
357
|
e.value && (r ? s.map((c) => (t.value.every((y) => y !== (c == null ? void 0 : c[e.value])) && c != null && c[e.value] && (t.value.push(c[e.value]), l.value.push(c)), c)) : C.map((c) => (t.value.some((y) => y === (c == null ? void 0 : c[e.value])) && (t.value = t.value.filter((y) => y !== c[e.value]), l.value = l.value.filter((y) => y[e.value] !== c[e.value])), c)));
|
|
369
358
|
},
|
|
370
359
|
removeRowKeys: (r) => {
|
|
371
|
-
t.value = t.value.filter((s) => !r.includes(s)), l.value = l.value.filter((s) => !r.includes(s == null ? void 0 : s[e.value || ""])),
|
|
360
|
+
t.value = t.value.filter((s) => !r.includes(s)), l.value = l.value.filter((s) => !r.includes(s == null ? void 0 : s[e.value || ""])), o();
|
|
372
361
|
},
|
|
373
|
-
changeRowKey:
|
|
362
|
+
changeRowKey: o,
|
|
374
363
|
syncSelectedRows: (r) => {
|
|
375
364
|
if (e.value && t.value.length !== l.value.length) {
|
|
376
365
|
const s = l.value.map((c) => c[e.value]), C = t.value.filter((c) => !s.includes(c));
|
|
@@ -382,109 +371,109 @@ function hn(e, a) {
|
|
|
382
371
|
};
|
|
383
372
|
}
|
|
384
373
|
function vn(e, a) {
|
|
385
|
-
const t = a || 0, l = N(),
|
|
386
|
-
|
|
387
|
-
function
|
|
374
|
+
const t = a || 0, l = N(), i = N(e);
|
|
375
|
+
i.value = e;
|
|
376
|
+
function o() {
|
|
388
377
|
l.value && clearTimeout(l.value);
|
|
389
378
|
}
|
|
390
379
|
async function h(...d) {
|
|
391
|
-
var
|
|
392
|
-
|
|
393
|
-
await
|
|
380
|
+
var b;
|
|
381
|
+
o(), l.value = (b = d[0]) != null && b.immediate ? await i.value(...d) : setTimeout(async () => {
|
|
382
|
+
await i.value(...d);
|
|
394
383
|
}, t);
|
|
395
384
|
}
|
|
396
|
-
return Jt(
|
|
397
|
-
cancel:
|
|
385
|
+
return Jt(o), {
|
|
386
|
+
cancel: o,
|
|
398
387
|
run: h
|
|
399
388
|
};
|
|
400
389
|
}
|
|
401
390
|
function mn(e) {
|
|
402
|
-
const a = T(() => e.polling), t = T(() => e.request), l = T(() => e.postData),
|
|
391
|
+
const a = T(() => e.polling), t = T(() => e.request), l = T(() => e.postData), i = T(() => e.debounceTime), o = T(() => e.dataSource);
|
|
403
392
|
return {
|
|
404
393
|
polling: a,
|
|
405
394
|
request: t,
|
|
406
395
|
postData: l,
|
|
407
|
-
debounceTime:
|
|
408
|
-
dataSource:
|
|
396
|
+
debounceTime: i,
|
|
397
|
+
dataSource: o
|
|
409
398
|
};
|
|
410
399
|
}
|
|
411
|
-
function gn({ polling: e, request: a, postData: t, dataSource: l, waitRequest:
|
|
412
|
-
const F = N(),
|
|
400
|
+
function gn({ polling: e, request: a, postData: t, dataSource: l, waitRequest: i, debounceTime: o }, { columns: h, getLoading: d, setLoading: b, setColumns: r, removeRowKeys: s, syncSelectedRows: C, formParamsRef: c, setPagination: y, getPaginationInfo: S, onBeforeSearchSubmit: g }, w) {
|
|
401
|
+
const F = N(), x = N(!0), R = N(!1), M = N(!1), I = N([]), Y = N(), B = vn(async (P) => {
|
|
413
402
|
Y.value && clearTimeout(Y.value);
|
|
414
|
-
const
|
|
403
|
+
const z = await p(P), K = Ht(e.value, z);
|
|
415
404
|
K && !F.value && (Y.value = setTimeout(() => {
|
|
416
405
|
B.run({ ...P, isPolling: K });
|
|
417
406
|
}, Math.max(K, 2e3)));
|
|
418
|
-
},
|
|
407
|
+
}, o.value || 20);
|
|
419
408
|
et(() => {
|
|
420
409
|
F.value = !0, clearTimeout(Y.value);
|
|
421
410
|
}), Ft(() => {
|
|
422
411
|
F.value = !0, clearTimeout(Y.value);
|
|
423
|
-
}),
|
|
412
|
+
}), G(() => e.value, () => {
|
|
424
413
|
e.value ? B.run({ isPolling: !0 }) : clearTimeout(Y.value);
|
|
425
|
-
}, { immediate: !0 }),
|
|
426
|
-
a.value ? (!
|
|
414
|
+
}, { immediate: !0 }), G(() => [i.value, l.value, c], () => {
|
|
415
|
+
a.value ? (!x.value || !e.value) && B.run({ isPolling: !1 }) : L(l.value || []);
|
|
427
416
|
}, {
|
|
428
417
|
deep: !0,
|
|
429
418
|
immediate: !0
|
|
430
419
|
});
|
|
431
420
|
const X = T(() => {
|
|
432
|
-
const P = f(h).filter((
|
|
421
|
+
const P = f(h).filter((z) => z.show || z.show === void 0);
|
|
433
422
|
return !f(I) || !P || P.length === 0 ? [] : f(I);
|
|
434
423
|
}), n = T(() => f(I).some((P) => P.children && P.children.length > 0));
|
|
435
424
|
function v(P) {
|
|
436
425
|
M.value = P;
|
|
437
426
|
}
|
|
438
|
-
function D(P,
|
|
439
|
-
B.run({ pagination: P, filters:
|
|
427
|
+
function D(P, z, K) {
|
|
428
|
+
B.run({ pagination: P, filters: z, sorter: K, isPolling: !1 }), w("change", P, z, K);
|
|
440
429
|
}
|
|
441
|
-
const O = (P,
|
|
442
|
-
L(P), y(
|
|
443
|
-
},
|
|
444
|
-
var fe,
|
|
445
|
-
const { pagination:
|
|
446
|
-
if (!f(a) || !
|
|
430
|
+
const O = (P, z) => {
|
|
431
|
+
L(P), y(z);
|
|
432
|
+
}, p = async (P = {}) => {
|
|
433
|
+
var fe, be;
|
|
434
|
+
const { pagination: z, filters: K = {}, sorter: le = {}, removeKeys: de = [], isPolling: pe = !1 } = P;
|
|
435
|
+
if (!f(a) || !we(f(a)) || f(i) && d.value || R.value)
|
|
447
436
|
return l.value || [];
|
|
448
|
-
if (R.value = !0, !
|
|
449
|
-
|
|
437
|
+
if (R.value = !0, !pe || f(i) || x.value ? b(!0) : v(!0), f(i)) {
|
|
438
|
+
x.value = !1, R.value = !1;
|
|
450
439
|
return;
|
|
451
440
|
}
|
|
452
|
-
|
|
441
|
+
z && y(z);
|
|
453
442
|
try {
|
|
454
443
|
let Q = {};
|
|
455
|
-
if (re(
|
|
444
|
+
if (re(z) && !z || re(S))
|
|
456
445
|
Q = {};
|
|
457
446
|
else {
|
|
458
|
-
const { current:
|
|
459
|
-
Q.pageNum =
|
|
447
|
+
const { current: j = 1, pageSize: ae = 10, total: A } = f(S) || {};
|
|
448
|
+
Q.pageNum = At({ current: j, pageSize: ae, total: A }, de.length), de.length && s(de), Q.pageSize = ae;
|
|
460
449
|
}
|
|
461
|
-
(
|
|
462
|
-
const ae = (
|
|
463
|
-
|
|
450
|
+
(je(le) ? [le] : le).forEach((j) => {
|
|
451
|
+
const ae = (j == null ? void 0 : j.columnKey) || (j == null ? void 0 : j.field);
|
|
452
|
+
j && (j == null ? void 0 : j.order) ? r(f(h).map((A) => (A.dataIndex === ae ? A.sortOrder = j == null ? void 0 : j.order : A.sortOrder = null, A))) : j && r(f(h).map((A) => (A.dataIndex === ae && (A.sortOrder = null), A)));
|
|
464
453
|
});
|
|
465
454
|
let he = {
|
|
466
455
|
...Q || {},
|
|
467
456
|
...P.params,
|
|
468
457
|
...c
|
|
469
458
|
};
|
|
470
|
-
g &&
|
|
459
|
+
g && we(g) && (he = await g(he, le, K));
|
|
471
460
|
let q = [];
|
|
472
461
|
const ie = await ((fe = f(a)) == null ? void 0 : fe(he, le, K));
|
|
473
|
-
return R.value = !1, ie && ie.success ? (q = ie.data || [], f(t) &&
|
|
462
|
+
return R.value = !1, ie && ie.success ? (q = ie.data || [], f(t) && we(f(t)) && (q = await ((be = f(t)) == null ? void 0 : be(q))), C(q), O(q || [], {
|
|
474
463
|
total: ie.total || (q == null ? void 0 : q.length) || 0
|
|
475
464
|
}), q) : [];
|
|
476
465
|
} catch (Q) {
|
|
477
|
-
I.value === void 0 && L([]),
|
|
466
|
+
I.value === void 0 && L([]), w("requestError", Q);
|
|
478
467
|
} finally {
|
|
479
|
-
|
|
468
|
+
x.value = !1, b(!1);
|
|
480
469
|
}
|
|
481
470
|
return [];
|
|
482
471
|
};
|
|
483
472
|
function L(P) {
|
|
484
|
-
I.value =
|
|
473
|
+
I.value = Wt(H(P), f(S.value));
|
|
485
474
|
}
|
|
486
|
-
function Te({ key: P, params:
|
|
487
|
-
I.value = I.value.map((K) => P &&
|
|
475
|
+
function Te({ key: P, params: z }) {
|
|
476
|
+
I.value = I.value.map((K) => P && z[P] === K[P] ? { ...K, ...z } : K);
|
|
488
477
|
}
|
|
489
478
|
return {
|
|
490
479
|
getDataSourceRef: X,
|
|
@@ -493,7 +482,7 @@ function gn({ polling: e, request: a, postData: t, dataSource: l, waitRequest: o
|
|
|
493
482
|
changeDataValue: Te,
|
|
494
483
|
handleTableChange: D,
|
|
495
484
|
reload: async (P) => {
|
|
496
|
-
f(a) ? await B.run({ ...P, isPolling: !1 }) :
|
|
485
|
+
f(a) ? await B.run({ ...P, isPolling: !1 }) : w("reload");
|
|
497
486
|
}
|
|
498
487
|
};
|
|
499
488
|
}
|
|
@@ -501,57 +490,57 @@ function yn(e) {
|
|
|
501
490
|
const a = {};
|
|
502
491
|
return e.forEach((t) => {
|
|
503
492
|
let l = t.initialValue;
|
|
504
|
-
const
|
|
505
|
-
!l &&
|
|
493
|
+
const i = ["select"], o = ["date", "time", "dateRange"];
|
|
494
|
+
!l && i.includes(t.valueType) ? l = void 0 : !l && o.includes(t.valueType) ? l = null : l || (l = ""), t.name === "dateRange" ? (a[t.rangeStartName || "start"] = l ? l[0] : null, a[t.rangeEndName || "end"] = l ? l[1] : null) : t.name && (a[t.name] = l);
|
|
506
495
|
}), a;
|
|
507
496
|
}
|
|
508
|
-
function
|
|
509
|
-
const
|
|
497
|
+
function pn({ search: e, searchMap: a, params: t, columns: l }) {
|
|
498
|
+
const i = ue({}), o = ue({}), h = N([]), d = T(() => !!e.value.showSearch);
|
|
510
499
|
tt(() => {
|
|
511
|
-
|
|
512
|
-
}),
|
|
513
|
-
|
|
500
|
+
b("all");
|
|
501
|
+
}), G(() => t.value, () => {
|
|
502
|
+
b("params");
|
|
514
503
|
}, {
|
|
515
504
|
deep: !0
|
|
516
|
-
}),
|
|
517
|
-
|
|
505
|
+
}), G(() => a.value, () => {
|
|
506
|
+
b("searchMap");
|
|
518
507
|
}, {
|
|
519
508
|
deep: !0
|
|
520
|
-
}),
|
|
521
|
-
|
|
509
|
+
}), G(() => l.value, () => {
|
|
510
|
+
b("columns");
|
|
522
511
|
}, {
|
|
523
512
|
deep: !0
|
|
524
513
|
});
|
|
525
|
-
const
|
|
514
|
+
const b = (s) => {
|
|
526
515
|
var c;
|
|
527
516
|
const C = [];
|
|
528
517
|
if ((s === "all" || s === "searchMap") && (a.value.forEach((y) => C.push(y)), h.value = H(C)), (s === "all" || s === "columns") && ((c = l.value) == null ? void 0 : c.length) && (l.value && l.value.forEach((y) => {
|
|
529
518
|
y.searchConfig && C.push(y.searchConfig);
|
|
530
519
|
}), h.value = H(C)), s === "all" || s === "searchMap" || s === "columns") {
|
|
531
520
|
const y = yn(C);
|
|
532
|
-
Object.assign(
|
|
521
|
+
Object.assign(o, { ...y });
|
|
533
522
|
for (const S in y)
|
|
534
|
-
|
|
523
|
+
i[S] || (i[S] = y[S]);
|
|
535
524
|
}
|
|
536
|
-
(s === "all" || s === "params" && !d.value) && Object.assign(
|
|
525
|
+
(s === "all" || s === "params" && !d.value) && Object.assign(i, t.value);
|
|
537
526
|
};
|
|
538
527
|
function r(s) {
|
|
539
|
-
Object.assign(
|
|
528
|
+
Object.assign(i, s);
|
|
540
529
|
}
|
|
541
|
-
return { formDataRef: h, formParamsRef:
|
|
530
|
+
return { formDataRef: h, formParamsRef: i, defaultParamsRef: o, setFormParams: r };
|
|
542
531
|
}
|
|
543
|
-
function
|
|
544
|
-
const l = N(void 0),
|
|
545
|
-
|
|
532
|
+
function bn({ columns: e, columnsState: a, changeColumns: t }) {
|
|
533
|
+
const l = N(void 0), i = ue({}), o = ue({}), h = ue({}), d = N([]);
|
|
534
|
+
G(() => e.value, () => {
|
|
546
535
|
var s;
|
|
547
536
|
(s = f(e)) == null || s.forEach(({ show: C, key: c, fixed: y }, S) => {
|
|
548
|
-
const g =
|
|
537
|
+
const g = ut(c, S);
|
|
549
538
|
g && (h[g] = { show: C === void 0 ? !0 : C, fixed: y });
|
|
550
539
|
});
|
|
551
540
|
}, {
|
|
552
541
|
deep: !0,
|
|
553
542
|
immediate: !0
|
|
554
|
-
}),
|
|
543
|
+
}), G(() => e.value, () => {
|
|
555
544
|
const s = f(e).map((C) => C.key);
|
|
556
545
|
r(s);
|
|
557
546
|
}, {
|
|
@@ -563,20 +552,20 @@ function pn({ columns: e, columnsState: a, changeColumns: t }) {
|
|
|
563
552
|
...(C = f(a)) == null ? void 0 : C.value,
|
|
564
553
|
...f(h)
|
|
565
554
|
};
|
|
566
|
-
Object.assign(
|
|
555
|
+
Object.assign(i, s), Object.assign(o, s);
|
|
567
556
|
});
|
|
568
|
-
function
|
|
569
|
-
l.value = C, Object.assign(
|
|
557
|
+
function b(s, C) {
|
|
558
|
+
l.value = C, Object.assign(i, s), t == null || t(i, C === "fixed");
|
|
570
559
|
}
|
|
571
560
|
function r(s) {
|
|
572
561
|
d.value = s;
|
|
573
562
|
}
|
|
574
563
|
return {
|
|
575
|
-
columnsMap:
|
|
564
|
+
columnsMap: i,
|
|
576
565
|
operationType: l,
|
|
577
|
-
setColumnsMap:
|
|
566
|
+
setColumnsMap: b,
|
|
578
567
|
sortKeyColumns: d,
|
|
579
|
-
cacheColumnsMap:
|
|
568
|
+
cacheColumnsMap: o,
|
|
580
569
|
setSortKeyColumns: r
|
|
581
570
|
};
|
|
582
571
|
}
|
|
@@ -588,49 +577,49 @@ function Cn(e) {
|
|
|
588
577
|
autoScroll: l
|
|
589
578
|
};
|
|
590
579
|
}
|
|
591
|
-
function Sn({ scroll: e, columns: a, breakpoint: t, draggabled: l, autoScroll:
|
|
580
|
+
function Sn({ scroll: e, columns: a, breakpoint: t, draggabled: l, autoScroll: i, neverScroll: o }) {
|
|
592
581
|
const h = N([]), d = N([]);
|
|
593
|
-
|
|
582
|
+
G([
|
|
594
583
|
() => e.value,
|
|
595
584
|
() => a.value,
|
|
596
585
|
() => t.value,
|
|
597
586
|
() => l.value,
|
|
598
|
-
() =>
|
|
599
|
-
() =>
|
|
587
|
+
() => i.value,
|
|
588
|
+
() => o.value
|
|
600
589
|
], () => {
|
|
601
590
|
h.value = H(s(f(a))), d.value = H(s(f(a)));
|
|
602
591
|
}, {
|
|
603
592
|
deep: !0,
|
|
604
593
|
immediate: !0
|
|
605
594
|
});
|
|
606
|
-
const
|
|
607
|
-
const S = r(f(h).filter((F) => F.fixed === "left")), g = r(f(h).filter((F) => F.fixed !== "left" && F.fixed !== "right")),
|
|
595
|
+
const b = T(() => {
|
|
596
|
+
const S = r(f(h).filter((F) => F.fixed === "left")), g = r(f(h).filter((F) => F.fixed !== "left" && F.fixed !== "right")), w = r(f(h).filter((F) => F.fixed === "right"));
|
|
608
597
|
return [
|
|
609
598
|
...S,
|
|
610
599
|
...g,
|
|
611
|
-
...
|
|
600
|
+
...w
|
|
612
601
|
];
|
|
613
602
|
});
|
|
614
603
|
function r(S) {
|
|
615
|
-
return S.sort((g,
|
|
604
|
+
return S.sort((g, w) => _t(g, w, "order", 0));
|
|
616
605
|
}
|
|
617
606
|
function s(S) {
|
|
618
|
-
return H(S).map((g,
|
|
607
|
+
return H(S).map((g, w) => {
|
|
619
608
|
var F;
|
|
620
|
-
if (g.dataIndex === "action" ||
|
|
609
|
+
if (g.dataIndex === "action" || w === S.length - 1 ? g.resizable = !1 : g.resizable = re(g.resizable) ? g.resizable : !!(ot(g.width) && f(l)), !g.width || f(o))
|
|
621
610
|
return g;
|
|
622
|
-
if (g.dataIndex === "action" && f(
|
|
611
|
+
if (g.dataIndex === "action" && f(i))
|
|
623
612
|
if (((F = f(e)) == null ? void 0 : F.x) || !f(t))
|
|
624
613
|
g.width = g.width || 100, g.fixed = "right";
|
|
625
614
|
else {
|
|
626
|
-
const
|
|
627
|
-
g.width = (
|
|
615
|
+
const x = f(a).find((R) => R.dataIndex === g.dataIndex);
|
|
616
|
+
g.width = (x == null ? void 0 : x.width) || "", g.fixed = x == null ? void 0 : x.fixed;
|
|
628
617
|
}
|
|
629
618
|
return g;
|
|
630
619
|
});
|
|
631
620
|
}
|
|
632
621
|
function C(S, g) {
|
|
633
|
-
h.value = h.value.map((
|
|
622
|
+
h.value = h.value.map((w) => (w.uuid === g.uuid && (w.width = S), w));
|
|
634
623
|
}
|
|
635
624
|
function c(S) {
|
|
636
625
|
if (S.length <= 0) {
|
|
@@ -641,56 +630,56 @@ function Sn({ scroll: e, columns: a, breakpoint: t, draggabled: l, autoScroll: o
|
|
|
641
630
|
}
|
|
642
631
|
function y(S) {
|
|
643
632
|
let g = H(a.value);
|
|
644
|
-
g = g.map((
|
|
645
|
-
var
|
|
646
|
-
const F =
|
|
647
|
-
show: (
|
|
648
|
-
fixed: (R = S[
|
|
649
|
-
order: (M = S[
|
|
633
|
+
g = g.map((w) => {
|
|
634
|
+
var x, R, M;
|
|
635
|
+
const F = w.key ? {
|
|
636
|
+
show: (x = S[w.key]) == null ? void 0 : x.show,
|
|
637
|
+
fixed: (R = S[w.key]) == null ? void 0 : R.fixed,
|
|
638
|
+
order: (M = S[w.key]) == null ? void 0 : M.order
|
|
650
639
|
} : {};
|
|
651
640
|
return {
|
|
652
|
-
...
|
|
641
|
+
...w,
|
|
653
642
|
...F
|
|
654
643
|
};
|
|
655
644
|
}), c(g);
|
|
656
645
|
}
|
|
657
646
|
return {
|
|
658
647
|
breakpoint: t,
|
|
659
|
-
getProColumns:
|
|
648
|
+
getProColumns: b,
|
|
660
649
|
cacheProColumns: d,
|
|
661
650
|
setColumns: c,
|
|
662
651
|
changeColumns: y,
|
|
663
652
|
resizeColumnWidth: C
|
|
664
653
|
};
|
|
665
654
|
}
|
|
666
|
-
function
|
|
667
|
-
const a = T(() => e.scroll), t = T(() => e.autoScroll), l = T(() => e.modalScroll),
|
|
655
|
+
function wn(e) {
|
|
656
|
+
const a = T(() => e.scroll), t = T(() => e.autoScroll), l = T(() => e.modalScroll), i = T(() => e.neverScroll), o = T(() => e.rowSelection), h = T(() => e.scrollBreakpoint);
|
|
668
657
|
return {
|
|
669
658
|
scroll: a,
|
|
670
|
-
neverScroll:
|
|
671
|
-
rowSelection:
|
|
659
|
+
neverScroll: i,
|
|
660
|
+
rowSelection: o,
|
|
672
661
|
autoScroll: t,
|
|
673
662
|
modalScroll: l,
|
|
674
663
|
scrollBreakpoint: h
|
|
675
664
|
};
|
|
676
665
|
}
|
|
677
|
-
function
|
|
666
|
+
function xn({ scroll: e, columns: a, autoScroll: t, modalScroll: l, neverScroll: i, rowSelection: o, screensRef: h, innerWidth: d, scrollBreakpoint: b }) {
|
|
678
667
|
const r = T(() => {
|
|
679
668
|
var c, y, S;
|
|
680
|
-
return f(
|
|
669
|
+
return f(b) ? ot(f(b)) ? d.value > f(b) : qt(f(b)) ? (c = h.value) == null ? void 0 : c[f(b)] : (y = h.value) == null ? void 0 : y.xl : (S = h.value) == null ? void 0 : S.xl;
|
|
681
670
|
}), s = T(() => {
|
|
682
671
|
let c = 0;
|
|
683
|
-
const y = f(
|
|
684
|
-
g.forEach((
|
|
685
|
-
c += Number.parseInt(
|
|
672
|
+
const y = f(o) ? 60 : 0, S = 150, g = H(f(a));
|
|
673
|
+
g.forEach((x) => {
|
|
674
|
+
c += Number.parseInt(x.width) || 0;
|
|
686
675
|
});
|
|
687
|
-
const F = g.filter((
|
|
676
|
+
const F = g.filter((x) => !Reflect.has(x, "width")).length;
|
|
688
677
|
return F !== 0 && (c += F * S), y && (c += y), c;
|
|
689
678
|
});
|
|
690
679
|
return { getScrollRef: T(() => {
|
|
691
680
|
var y;
|
|
692
681
|
const { xl: c } = h.value;
|
|
693
|
-
return f(
|
|
682
|
+
return f(i) ? {} : f(e) && Object.keys(f(e)).length ? f(e) : f(l) ? {
|
|
694
683
|
y: ((y = f(e)) == null ? void 0 : y.y) || (c ? 400 : 235)
|
|
695
684
|
} : f(t) ? r.value ? {} : re(r.value) ? { x: f(s) } : {} : {};
|
|
696
685
|
}), breakpoint: r };
|
|
@@ -705,29 +694,29 @@ function kn(e, a) {
|
|
|
705
694
|
});
|
|
706
695
|
function l() {
|
|
707
696
|
Object.keys(e).map((h) => {
|
|
708
|
-
|
|
697
|
+
i(h, e[h]);
|
|
709
698
|
});
|
|
710
|
-
const
|
|
711
|
-
|
|
712
|
-
e[
|
|
713
|
-
e[
|
|
699
|
+
const o = a.find((h) => h.valueType === "dateRange");
|
|
700
|
+
o && i(o.name || "", e[o.rangeStartName || "start"] ? [
|
|
701
|
+
e[o.rangeStartName || "start"],
|
|
702
|
+
e[o.rangeEndName || "end"]
|
|
714
703
|
] : []);
|
|
715
704
|
}
|
|
716
|
-
function o
|
|
717
|
-
t[
|
|
705
|
+
function i(o, h) {
|
|
706
|
+
t[o] = h;
|
|
718
707
|
}
|
|
719
708
|
return {
|
|
720
709
|
formState: t,
|
|
721
710
|
resetFormState: l,
|
|
722
|
-
changeFormState:
|
|
711
|
+
changeFormState: i
|
|
723
712
|
};
|
|
724
713
|
}
|
|
725
714
|
const {
|
|
726
715
|
useBreakpoint: Fn
|
|
727
|
-
} =
|
|
716
|
+
} = ze, {
|
|
728
717
|
MonthPicker: Dn,
|
|
729
718
|
RangePicker: On
|
|
730
|
-
} = lt, rt =
|
|
719
|
+
} = lt, rt = xe({
|
|
731
720
|
name: "ProTableForm",
|
|
732
721
|
props: {
|
|
733
722
|
search: ne.search,
|
|
@@ -746,11 +735,11 @@ const {
|
|
|
746
735
|
slots: t,
|
|
747
736
|
expose: l
|
|
748
737
|
}) {
|
|
749
|
-
const
|
|
750
|
-
formState:
|
|
738
|
+
const i = Fn(), {
|
|
739
|
+
formState: o,
|
|
751
740
|
resetFormState: h,
|
|
752
741
|
changeFormState: d
|
|
753
|
-
} = kn(e.defaultParams || {}, e.searchMap || []),
|
|
742
|
+
} = kn(e.defaultParams || {}, e.searchMap || []), b = N(!1), r = T(() => !!e.search.showSearch), s = T(() => e.search.showReset === void 0 ? r.value : e.search.showReset), C = [{
|
|
754
743
|
value: "xxl",
|
|
755
744
|
span: 4
|
|
756
745
|
}, {
|
|
@@ -769,28 +758,28 @@ const {
|
|
|
769
758
|
value: "xs",
|
|
770
759
|
span: 1
|
|
771
760
|
}], c = T(() => y(e.search.span));
|
|
772
|
-
|
|
773
|
-
|
|
761
|
+
G(() => e.search.defaultCollapsed, (n) => {
|
|
762
|
+
b.value = b.value || !!n;
|
|
774
763
|
});
|
|
775
764
|
const y = (n) => {
|
|
776
765
|
let v = 4;
|
|
777
766
|
for (let D = 0; D < C.length; D += 1) {
|
|
778
767
|
const O = C[D].value;
|
|
779
|
-
if (
|
|
768
|
+
if (i.value[O]) {
|
|
780
769
|
v = (n == null ? void 0 : n[O]) || (e.modal ? 3 : C[D].span);
|
|
781
770
|
break;
|
|
782
771
|
}
|
|
783
772
|
}
|
|
784
773
|
return v;
|
|
785
774
|
}, S = (n) => {
|
|
786
|
-
|
|
775
|
+
b.value = n;
|
|
787
776
|
}, g = (n, v, D) => (n + 1) % v === 0 ? {
|
|
788
777
|
...D,
|
|
789
778
|
marginRight: 0
|
|
790
779
|
} : {
|
|
791
780
|
...D,
|
|
792
781
|
marginRight: "2%"
|
|
793
|
-
},
|
|
782
|
+
}, w = (n, v) => {
|
|
794
783
|
var D, O;
|
|
795
784
|
switch (v.valueType) {
|
|
796
785
|
case "text":
|
|
@@ -815,16 +804,16 @@ const {
|
|
|
815
804
|
d(v.name || "", n ? V(n).format(v.valueFormat || "HH:mm:ss") : v.initialValue || null);
|
|
816
805
|
break;
|
|
817
806
|
}
|
|
818
|
-
e.search.showSearch || v.valueType === "text" || (v.valueType === "treeSelect" || v.valueType,
|
|
807
|
+
e.search.showSearch || v.valueType === "text" || (v.valueType === "treeSelect" || v.valueType, x());
|
|
819
808
|
}, F = () => {
|
|
820
|
-
const n = H(
|
|
821
|
-
return v && (n[v.name] =
|
|
822
|
-
},
|
|
809
|
+
const n = H(o), v = e.searchMap.find((p) => p.valueType === "text") || "", D = e.searchMap.find((p) => p.valueType === "dateRange") || "", O = e.searchMap.find((p) => p.valueType === "treeSelect") || "";
|
|
810
|
+
return v && (n[v.name] = o[v.name] || v.initialValue || ""), D && (n[D.rangeStartName || "start"] = n[D.name] ? n[D.name][0] : "", n[D.rangeEndName || "end"] = n[D.name] ? n[D.name][1] : "", delete n[D.name]), O && (Ee(o[O.name]) && (n[O.name] = o[O.name].length ? o[O.name].map((p) => p[O.valueKey === "text" ? "label" : "value"]).join() : ""), O && Ee(n[O.name]) && (n[O.name] = n[O.name].length ? n[O.name].map((p) => p[O.valueKey === "text" ? "label" : "value"]) : "")), n;
|
|
811
|
+
}, x = (n = !1, v) => {
|
|
823
812
|
Mt(() => {
|
|
824
813
|
(!r.value || n) && a("search", F(), !!v);
|
|
825
814
|
});
|
|
826
815
|
}, R = (n = !0) => {
|
|
827
|
-
h(),
|
|
816
|
+
h(), x(!0, n);
|
|
828
817
|
};
|
|
829
818
|
l({
|
|
830
819
|
getFormState: () => F(),
|
|
@@ -838,7 +827,7 @@ const {
|
|
|
838
827
|
}), r.value && u(Je, {
|
|
839
828
|
loading: e.loading,
|
|
840
829
|
type: "primary",
|
|
841
|
-
onClick: () =>
|
|
830
|
+
onClick: () => x(!0)
|
|
842
831
|
}, {
|
|
843
832
|
default: () => [e.search.searchText || "\u67E5\u8BE2"]
|
|
844
833
|
})]
|
|
@@ -866,11 +855,11 @@ const {
|
|
|
866
855
|
style: {
|
|
867
856
|
width: "100%"
|
|
868
857
|
},
|
|
869
|
-
value:
|
|
858
|
+
value: o[n.name],
|
|
870
859
|
placeholder: n.placeholder || "\u8BF7\u8F93\u5165",
|
|
871
860
|
allowClear: n.allowClear || n.allowClear === !1 ? n.allowClear : !0,
|
|
872
|
-
onChange: (
|
|
873
|
-
onSearch: (
|
|
861
|
+
onChange: (p) => w(p.target.value, n),
|
|
862
|
+
onSearch: (p) => x()
|
|
874
863
|
}, n.field || {}), null);
|
|
875
864
|
break;
|
|
876
865
|
case "select":
|
|
@@ -878,20 +867,20 @@ const {
|
|
|
878
867
|
style: {
|
|
879
868
|
width: "100%"
|
|
880
869
|
},
|
|
881
|
-
value: n.loading ? void 0 :
|
|
870
|
+
value: n.loading ? void 0 : o[n.name],
|
|
882
871
|
optionFilterProp: "label",
|
|
883
872
|
placeholder: n.placeholder || "\u8BF7\u9009\u62E9",
|
|
884
873
|
showSearch: n.showSearch,
|
|
885
874
|
allowClear: n.allowClear || n.allowClear === !1 ? n.allowClear : !0,
|
|
886
|
-
getPopupContainer: (
|
|
875
|
+
getPopupContainer: (p) => p && p.parentNode ? p.parentNode : p,
|
|
887
876
|
notFoundContent: n.loading === void 0 ? void 0 : n.loading ? u(Pe, {
|
|
888
877
|
size: "small"
|
|
889
878
|
}, null) : void 0,
|
|
890
|
-
onChange: (
|
|
879
|
+
onChange: (p) => w(p, n)
|
|
891
880
|
}, n.field || {}), {
|
|
892
881
|
default: () => {
|
|
893
|
-
var
|
|
894
|
-
return [((
|
|
882
|
+
var p;
|
|
883
|
+
return [((p = n.valueEnum) == null ? void 0 : p.length) || n.valueEnum.map((L) => u(Xe.Option, {
|
|
895
884
|
key: L.value,
|
|
896
885
|
value: L.value
|
|
897
886
|
}, {
|
|
@@ -905,15 +894,15 @@ const {
|
|
|
905
894
|
style: {
|
|
906
895
|
width: "100%"
|
|
907
896
|
},
|
|
908
|
-
value:
|
|
897
|
+
value: o[n.name],
|
|
909
898
|
placeholder: n.placeholder || "\u8BF7\u9009\u62E9",
|
|
910
899
|
allowClear: n.allowClear || n.allowClear === !1 ? n.allowClear : !0,
|
|
911
900
|
treeData: n.valueEnum,
|
|
912
|
-
getPopupContainer: (
|
|
901
|
+
getPopupContainer: (p) => p && p.parentNode ? p.parentNode : p,
|
|
913
902
|
notFoundContent: n.loading === void 0 ? void 0 : n.loading ? u(Pe, {
|
|
914
903
|
size: "small"
|
|
915
904
|
}, null) : void 0,
|
|
916
|
-
onChange: (
|
|
905
|
+
onChange: (p) => w(p, n)
|
|
917
906
|
}, n.field || {}), null);
|
|
918
907
|
break;
|
|
919
908
|
case "date":
|
|
@@ -921,14 +910,14 @@ const {
|
|
|
921
910
|
style: {
|
|
922
911
|
width: "100%"
|
|
923
912
|
},
|
|
924
|
-
value:
|
|
925
|
-
getPopupContainer: (
|
|
913
|
+
value: o[n.name] ? V(o[n.name], n.valueFormat || "YYYY-MM-DD") : void 0,
|
|
914
|
+
getPopupContainer: (p) => p && p.parentNode ? p.parentNode : p,
|
|
926
915
|
placeholder: n.placeholder || "\u8BF7\u9009\u62E9",
|
|
927
916
|
allowClear: n.allowClear || n.allowClear === !1 ? n.allowClear : !0,
|
|
928
917
|
format: n.valueFormat || "YYYY-MM-DD",
|
|
929
918
|
showTime: n.showTime,
|
|
930
919
|
showToday: n.showToday || !0,
|
|
931
|
-
onChange: (
|
|
920
|
+
onChange: (p) => w(p, n)
|
|
932
921
|
}, n.field || {}), null);
|
|
933
922
|
break;
|
|
934
923
|
case "dateMonth":
|
|
@@ -936,10 +925,10 @@ const {
|
|
|
936
925
|
style: {
|
|
937
926
|
width: "100%"
|
|
938
927
|
},
|
|
939
|
-
value:
|
|
940
|
-
getPopupContainer: (
|
|
928
|
+
value: o[n.name] ? V(o[n.name], n.valueFormat || "YYYY-MM") : void 0,
|
|
929
|
+
getPopupContainer: (p) => p && p.parentNode ? p.parentNode : p,
|
|
941
930
|
placeholder: n.placeholder || "\u8BF7\u9009\u62E9",
|
|
942
|
-
onChange: (
|
|
931
|
+
onChange: (p) => w(p, n)
|
|
943
932
|
}, n.field || {}), null);
|
|
944
933
|
break;
|
|
945
934
|
case "dateRange":
|
|
@@ -947,12 +936,12 @@ const {
|
|
|
947
936
|
style: {
|
|
948
937
|
width: "100%"
|
|
949
938
|
},
|
|
950
|
-
value: (O =
|
|
951
|
-
getPopupContainer: (
|
|
939
|
+
value: (O = o[n.name]) != null && O.length ? [V(o[n.name][0], n.valueFormat || "YYYY-MM-DD HH:mm:ss"), V(o[n.name][1], n.valueFormat || "YYYY-MM-DD HH:mm:ss")] : void 0,
|
|
940
|
+
getPopupContainer: (p) => p && p.parentNode ? p.parentNode : p,
|
|
952
941
|
placeholder: n.placeholder || ["\u5F00\u59CB\u65E5\u671F", "\u7ED3\u675F\u65E5\u671F"],
|
|
953
942
|
format: n.valueFormat || "YYYY-MM-DD HH:mm:ss",
|
|
954
943
|
showTime: n.showTime,
|
|
955
|
-
onChange: (
|
|
944
|
+
onChange: (p) => w(p, n)
|
|
956
945
|
}, n.field || {}), null);
|
|
957
946
|
break;
|
|
958
947
|
case "time":
|
|
@@ -960,13 +949,13 @@ const {
|
|
|
960
949
|
style: {
|
|
961
950
|
width: "100%"
|
|
962
951
|
},
|
|
963
|
-
value:
|
|
964
|
-
getPopupContainer: (
|
|
952
|
+
value: o[n.name] ? V(o[n.name], n.valueFormat || "HH:mm:ss") : void 0,
|
|
953
|
+
getPopupContainer: (p) => p && p.parentNode ? p.parentNode : p,
|
|
965
954
|
placeholder: n.placeholder || "\u8BF7\u9009\u62E9",
|
|
966
955
|
allowClear: n.allowClear || n.allowClear === !1 ? n.allowClear : !0,
|
|
967
956
|
use12Hours: n.use12Hours,
|
|
968
957
|
format: n.valueFormat || "HH:mm:ss",
|
|
969
|
-
onChange: (
|
|
958
|
+
onChange: (p) => w(p, n)
|
|
970
959
|
}, n.field || {}), null);
|
|
971
960
|
break;
|
|
972
961
|
}
|
|
@@ -974,7 +963,7 @@ const {
|
|
|
974
963
|
}, B = ({
|
|
975
964
|
formItemStyle: n,
|
|
976
965
|
item: v
|
|
977
|
-
}) => u(
|
|
966
|
+
}) => u(Ue.Item, {
|
|
978
967
|
style: n
|
|
979
968
|
}, {
|
|
980
969
|
default: () => [v.__v_isVNode ? v : Y(v)]
|
|
@@ -982,10 +971,10 @@ const {
|
|
|
982
971
|
var v;
|
|
983
972
|
const n = [...e.searchMap, ...((v = t.default) == null ? void 0 : v.call(t)) || []];
|
|
984
973
|
return n.map((D, O) => {
|
|
985
|
-
const
|
|
974
|
+
const p = {
|
|
986
975
|
width: `${(100 - (c.value - 1) * 2) / c.value}%`
|
|
987
|
-
}, L = g(O, c.value,
|
|
988
|
-
return n.length < c.value ||
|
|
976
|
+
}, L = g(O, c.value, p);
|
|
977
|
+
return n.length < c.value || b.value ? u(Me, null, [B({
|
|
989
978
|
formItemStyle: L,
|
|
990
979
|
item: D
|
|
991
980
|
}), O === n.length - 1 && I({
|
|
@@ -993,8 +982,8 @@ const {
|
|
|
993
982
|
flex: 1,
|
|
994
983
|
justifyContent: "flex-end"
|
|
995
984
|
},
|
|
996
|
-
advanced:
|
|
997
|
-
showAdvanced:
|
|
985
|
+
advanced: b.value,
|
|
986
|
+
showAdvanced: b.value
|
|
998
987
|
})]) : u(Me, null, [O < c.value - 1 && B({
|
|
999
988
|
formItemStyle: L,
|
|
1000
989
|
item: D
|
|
@@ -1016,7 +1005,7 @@ const {
|
|
|
1016
1005
|
[`${f(e.prefixCls)}-search`]: !0,
|
|
1017
1006
|
[`${e.search.className}`]: e.search.className
|
|
1018
1007
|
}
|
|
1019
|
-
}, [u(
|
|
1008
|
+
}, [u(Ue, {
|
|
1020
1009
|
class: `${f(e.prefixCls)}-form`,
|
|
1021
1010
|
layout: "horizontal"
|
|
1022
1011
|
}, {
|
|
@@ -1029,8 +1018,8 @@ const {
|
|
|
1029
1018
|
rt.inheritAttrs = !1;
|
|
1030
1019
|
function Mn(e, a) {
|
|
1031
1020
|
for (var t = Ie({}, e), l = 0; l < a.length; l += 1) {
|
|
1032
|
-
var
|
|
1033
|
-
delete t[
|
|
1021
|
+
var i = a[l];
|
|
1022
|
+
delete t[i];
|
|
1034
1023
|
}
|
|
1035
1024
|
return t;
|
|
1036
1025
|
}
|
|
@@ -1047,10 +1036,10 @@ const Fe = ({
|
|
|
1047
1036
|
treeKey: t,
|
|
1048
1037
|
fixed: l
|
|
1049
1038
|
}, {
|
|
1050
|
-
slots:
|
|
1039
|
+
slots: i
|
|
1051
1040
|
}) => {
|
|
1052
1041
|
const {
|
|
1053
|
-
cacheColumns:
|
|
1042
|
+
cacheColumns: o,
|
|
1054
1043
|
settingsAction: h
|
|
1055
1044
|
} = ce();
|
|
1056
1045
|
return a ? u(J, {
|
|
@@ -1059,10 +1048,10 @@ const Fe = ({
|
|
|
1059
1048
|
default: () => {
|
|
1060
1049
|
var d;
|
|
1061
1050
|
return [u("span", {
|
|
1062
|
-
onClick: (
|
|
1051
|
+
onClick: (b) => {
|
|
1063
1052
|
var y, S;
|
|
1064
|
-
|
|
1065
|
-
const r = ((y = f(
|
|
1053
|
+
b.stopPropagation(), b.preventDefault();
|
|
1054
|
+
const r = ((y = f(o).find((g) => g.uuid === t)) == null ? void 0 : y.key) || "", s = (h == null ? void 0 : h.columnsMap[r]) || {};
|
|
1066
1055
|
if (typeof s.disable == "boolean" ? s.disable : (S = s.disable) == null ? void 0 : S.icon)
|
|
1067
1056
|
return;
|
|
1068
1057
|
const c = {
|
|
@@ -1074,7 +1063,7 @@ const Fe = ({
|
|
|
1074
1063
|
};
|
|
1075
1064
|
h == null || h.setColumnsMap(c, "fixed");
|
|
1076
1065
|
}
|
|
1077
|
-
}, [(d =
|
|
1066
|
+
}, [(d = i.default) == null ? void 0 : d.call(i)])];
|
|
1078
1067
|
}
|
|
1079
1068
|
}) : null;
|
|
1080
1069
|
}, Pn = ({
|
|
@@ -1082,12 +1071,12 @@ const Fe = ({
|
|
|
1082
1071
|
title: a,
|
|
1083
1072
|
className: t,
|
|
1084
1073
|
fixed: l,
|
|
1085
|
-
autoScroll:
|
|
1074
|
+
autoScroll: i
|
|
1086
1075
|
}) => {
|
|
1087
1076
|
var r;
|
|
1088
1077
|
const {
|
|
1089
|
-
cacheColumns:
|
|
1090
|
-
} = ce(), h = ((r = f(
|
|
1078
|
+
cacheColumns: o
|
|
1079
|
+
} = ce(), h = ((r = f(o).find((s) => s.uuid === e)) == null ? void 0 : r.key) || "", d = T(() => h === "action" && (i == null ? void 0 : i.value)), b = u("span", {
|
|
1091
1080
|
class: `${t}-list-item-option`
|
|
1092
1081
|
}, [u(Fe, {
|
|
1093
1082
|
treeKey: e,
|
|
@@ -1116,8 +1105,8 @@ const Fe = ({
|
|
|
1116
1105
|
key: e
|
|
1117
1106
|
}, [u("div", {
|
|
1118
1107
|
class: `${t}-list-item-title`
|
|
1119
|
-
}, [a]),
|
|
1120
|
-
}, De =
|
|
1108
|
+
}, [a]), b]);
|
|
1109
|
+
}, De = xe({
|
|
1121
1110
|
props: {
|
|
1122
1111
|
list: Array,
|
|
1123
1112
|
keys: Array,
|
|
@@ -1131,90 +1120,90 @@ const Fe = ({
|
|
|
1131
1120
|
}
|
|
1132
1121
|
},
|
|
1133
1122
|
setup(e) {
|
|
1134
|
-
const a = N(Ne().uuid(15)), t = T(() => e.list && e.list.length > 0), l = N([]),
|
|
1135
|
-
cacheColumns:
|
|
1123
|
+
const a = N(Ne().uuid(15)), t = T(() => e.list && e.list.length > 0), l = N([]), i = N([]), {
|
|
1124
|
+
cacheColumns: o,
|
|
1136
1125
|
slots: h,
|
|
1137
1126
|
settingsAction: d
|
|
1138
|
-
} = ce(),
|
|
1127
|
+
} = ce(), b = (y, S) => y.map(({
|
|
1139
1128
|
key: g,
|
|
1140
|
-
children:
|
|
1129
|
+
children: w,
|
|
1141
1130
|
uuid: F,
|
|
1142
|
-
...
|
|
1131
|
+
...x
|
|
1143
1132
|
}) => {
|
|
1144
1133
|
var Y;
|
|
1145
1134
|
const R = (d == null ? void 0 : d.columnsMap[g || "null"]) || {
|
|
1146
1135
|
show: !0
|
|
1147
1136
|
};
|
|
1148
1137
|
let M = !1;
|
|
1149
|
-
R.show !== !1 && (S == null ? void 0 : S.show) !== !1 && !
|
|
1138
|
+
R.show !== !1 && (S == null ? void 0 : S.show) !== !1 && !w && (M = !0);
|
|
1150
1139
|
const I = {
|
|
1151
1140
|
key: F || "",
|
|
1152
|
-
...Mn(
|
|
1141
|
+
...Mn(x, ["dataIndex"]),
|
|
1153
1142
|
checked: M,
|
|
1154
1143
|
selectable: !1,
|
|
1155
1144
|
disabled: R.disable === !0,
|
|
1156
1145
|
disableCheckbox: typeof R.disable == "boolean" ? R.disable : (Y = R.disable) == null ? void 0 : Y.checkbox,
|
|
1157
1146
|
isLeaf: !0
|
|
1158
1147
|
};
|
|
1159
|
-
return
|
|
1148
|
+
return w && (I.children = b(w, R)), I;
|
|
1160
1149
|
});
|
|
1161
1150
|
oe(() => {
|
|
1162
|
-
const y =
|
|
1163
|
-
l.value = y,
|
|
1151
|
+
const y = b(e.list || []);
|
|
1152
|
+
l.value = y, i.value = y.filter((S) => S.checked).map((S) => S.key), (d == null ? void 0 : d.operationType.value) === "fixed" && (a.value = Ne().uuid(15));
|
|
1164
1153
|
});
|
|
1165
1154
|
const r = ge((y, S, g) => {
|
|
1166
1155
|
var X, n;
|
|
1167
|
-
const
|
|
1156
|
+
const w = ((X = f(o).find((v) => v.uuid === y)) == null ? void 0 : X.key) || "", F = ((n = f(o).find((v) => v.uuid === S)) == null ? void 0 : n.key) || "", x = {
|
|
1168
1157
|
...d == null ? void 0 : d.columnsMap
|
|
1169
|
-
}, R = [...d.sortKeyColumns.value], M = R.findIndex((v) => v ===
|
|
1158
|
+
}, R = [...d.sortKeyColumns.value], M = R.findIndex((v) => v === w), I = R.findIndex((v) => v === F), Y = g > M;
|
|
1170
1159
|
if (M < 0)
|
|
1171
1160
|
return;
|
|
1172
1161
|
const B = R[M];
|
|
1173
1162
|
R.splice(M, 1), g === 0 ? R.unshift(B) : R.splice(Y ? I : I + 1, 0, B), R.forEach((v, D) => {
|
|
1174
|
-
|
|
1175
|
-
...
|
|
1163
|
+
x[v] = {
|
|
1164
|
+
...x[v] || {},
|
|
1176
1165
|
order: D
|
|
1177
1166
|
};
|
|
1178
|
-
}), d == null || d.setColumnsMap(
|
|
1167
|
+
}), d == null || d.setColumnsMap(x, "drop"), d == null || d.setSortKeyColumns(R);
|
|
1179
1168
|
}), s = ge((y) => {
|
|
1180
1169
|
var R;
|
|
1181
|
-
const S = y.node.key, g = ((R = f(
|
|
1170
|
+
const S = y.node.key, g = ((R = f(o).find((M) => M.uuid === S)) == null ? void 0 : R.key) || "", F = {
|
|
1182
1171
|
...(d == null ? void 0 : d.columnsMap[g]) || {}
|
|
1183
1172
|
};
|
|
1184
1173
|
F.show = y.checked;
|
|
1185
|
-
const
|
|
1174
|
+
const x = {
|
|
1186
1175
|
...d == null ? void 0 : d.columnsMap,
|
|
1187
1176
|
[g]: F
|
|
1188
1177
|
};
|
|
1189
|
-
d == null || d.setColumnsMap(
|
|
1178
|
+
d == null || d.setColumnsMap(x, "show");
|
|
1190
1179
|
}), C = (y) => {
|
|
1191
|
-
const S = f(
|
|
1180
|
+
const S = f(o).find((g) => g.uuid === y.key);
|
|
1192
1181
|
return y.title || Pt(h, "headerCell", {
|
|
1193
1182
|
title: S.title,
|
|
1194
1183
|
column: S
|
|
1195
1184
|
}, () => [S.title]);
|
|
1196
1185
|
}, c = () => {
|
|
1197
1186
|
var y, S;
|
|
1198
|
-
return u(
|
|
1187
|
+
return u(zt, {
|
|
1199
1188
|
key: a.value,
|
|
1200
1189
|
draggable: e.draggable && !!((y = l.value) != null && y.length) && ((S = l.value) == null ? void 0 : S.length) > 1,
|
|
1201
1190
|
checkable: e.checkable,
|
|
1202
1191
|
blockNode: !0,
|
|
1203
1192
|
showLine: !1,
|
|
1204
|
-
checkedKeys:
|
|
1193
|
+
checkedKeys: i.value,
|
|
1205
1194
|
height: 280,
|
|
1206
1195
|
onDrop: (g) => {
|
|
1207
|
-
const
|
|
1208
|
-
dropPosition:
|
|
1196
|
+
const w = g.node.key, F = g.dragNode.key, {
|
|
1197
|
+
dropPosition: x,
|
|
1209
1198
|
dropToGap: R
|
|
1210
|
-
} = g, M =
|
|
1211
|
-
r(F,
|
|
1199
|
+
} = g, M = x === -1 || !R ? x + 1 : x;
|
|
1200
|
+
r(F, w, M);
|
|
1212
1201
|
},
|
|
1213
|
-
onCheck: (g,
|
|
1202
|
+
onCheck: (g, w) => s(w),
|
|
1214
1203
|
treeData: l.value
|
|
1215
1204
|
}, {
|
|
1216
1205
|
title: (g) => {
|
|
1217
|
-
const
|
|
1206
|
+
const w = {
|
|
1218
1207
|
...g,
|
|
1219
1208
|
children: void 0,
|
|
1220
1209
|
title: C(g),
|
|
@@ -1222,8 +1211,8 @@ const Fe = ({
|
|
|
1222
1211
|
};
|
|
1223
1212
|
return u(Pn, _({
|
|
1224
1213
|
className: e.className
|
|
1225
|
-
},
|
|
1226
|
-
treeKey:
|
|
1214
|
+
}, w, {
|
|
1215
|
+
treeKey: w.key
|
|
1227
1216
|
}), null);
|
|
1228
1217
|
}
|
|
1229
1218
|
});
|
|
@@ -1238,7 +1227,7 @@ const Fe = ({
|
|
|
1238
1227
|
draggable: t,
|
|
1239
1228
|
checkable: l
|
|
1240
1229
|
}) => {
|
|
1241
|
-
const
|
|
1230
|
+
const i = [], o = [], h = [], d = [];
|
|
1242
1231
|
e.forEach((s) => {
|
|
1243
1232
|
if (s.hideInSetting)
|
|
1244
1233
|
return;
|
|
@@ -1248,24 +1237,24 @@ const Fe = ({
|
|
|
1248
1237
|
uuid: y
|
|
1249
1238
|
} = s;
|
|
1250
1239
|
if ((c || c === void 0) && y && d.push(y), C === "left") {
|
|
1251
|
-
|
|
1240
|
+
o.push(s);
|
|
1252
1241
|
return;
|
|
1253
1242
|
}
|
|
1254
1243
|
if (C === "right") {
|
|
1255
|
-
|
|
1244
|
+
i.push(s);
|
|
1256
1245
|
return;
|
|
1257
1246
|
}
|
|
1258
1247
|
h.push(s);
|
|
1259
1248
|
});
|
|
1260
|
-
const
|
|
1249
|
+
const b = i && i.length > 0, r = o && o.length > 0;
|
|
1261
1250
|
return u("div", {
|
|
1262
1251
|
class: {
|
|
1263
1252
|
[`${a}-list`]: !0,
|
|
1264
|
-
[`${a}-list-group`]:
|
|
1253
|
+
[`${a}-list-group`]: b || r
|
|
1265
1254
|
}
|
|
1266
1255
|
}, [u(De, {
|
|
1267
1256
|
title: "\u56FA\u5B9A\u5728\u5DE6\u4FA7",
|
|
1268
|
-
list:
|
|
1257
|
+
list: o,
|
|
1269
1258
|
keys: d,
|
|
1270
1259
|
draggable: t,
|
|
1271
1260
|
checkable: l,
|
|
@@ -1276,11 +1265,11 @@ const Fe = ({
|
|
|
1276
1265
|
draggable: t,
|
|
1277
1266
|
checkable: l,
|
|
1278
1267
|
title: "\u4E0D\u56FA\u5B9A",
|
|
1279
|
-
showTitle: r ||
|
|
1268
|
+
showTitle: r || b,
|
|
1280
1269
|
className: a
|
|
1281
1270
|
}, null), u(De, {
|
|
1282
1271
|
title: "\u56FA\u5B9A\u5728\u53F3\u4FA7",
|
|
1283
|
-
list:
|
|
1272
|
+
list: i,
|
|
1284
1273
|
keys: d,
|
|
1285
1274
|
draggable: t,
|
|
1286
1275
|
checkable: l,
|
|
@@ -1295,35 +1284,35 @@ const Fe = ({
|
|
|
1295
1284
|
isPor: !0
|
|
1296
1285
|
}), {
|
|
1297
1286
|
columns: l,
|
|
1298
|
-
settingsAction:
|
|
1299
|
-
} = ce(),
|
|
1287
|
+
settingsAction: i
|
|
1288
|
+
} = ce(), o = ge((c = !0) => {
|
|
1300
1289
|
const y = {}, S = (g) => {
|
|
1301
1290
|
g.forEach(({
|
|
1302
|
-
key:
|
|
1291
|
+
key: w,
|
|
1303
1292
|
fixed: F,
|
|
1304
|
-
index:
|
|
1293
|
+
index: x,
|
|
1305
1294
|
children: R
|
|
1306
1295
|
}) => {
|
|
1307
|
-
const M =
|
|
1296
|
+
const M = ut(w, x);
|
|
1308
1297
|
M && (y[M] = {
|
|
1309
1298
|
show: c,
|
|
1310
1299
|
fixed: F
|
|
1311
1300
|
}), R && S(R);
|
|
1312
1301
|
});
|
|
1313
1302
|
};
|
|
1314
|
-
S(l.value),
|
|
1303
|
+
S(l.value), i == null || i.setColumnsMap(y, "show");
|
|
1315
1304
|
}), h = ge((c) => {
|
|
1316
|
-
c.target.checked ?
|
|
1305
|
+
c.target.checked ? o() : o(!1);
|
|
1317
1306
|
}), d = ge(() => {
|
|
1318
|
-
|
|
1319
|
-
}),
|
|
1320
|
-
return u(
|
|
1307
|
+
i == null || i.setColumnsMap(i == null ? void 0 : i.cacheColumnsMap, "fixed");
|
|
1308
|
+
}), b = T(() => Object.values(i == null ? void 0 : i.columnsMap).filter((c) => !c || c.show === !1)), r = T(() => f(b).length > 0 && f(b).length !== l.value.length);
|
|
1309
|
+
return u(jt, {
|
|
1321
1310
|
arrowPointAtCenter: !0,
|
|
1322
1311
|
title: u("div", {
|
|
1323
1312
|
class: `${t}-title`
|
|
1324
1313
|
}, [u($t, {
|
|
1325
1314
|
indeterminate: r.value,
|
|
1326
|
-
checked: f(
|
|
1315
|
+
checked: f(b).length === 0 && f(b).length !== l.value.length,
|
|
1327
1316
|
onChange: (c) => h(c)
|
|
1328
1317
|
}, {
|
|
1329
1318
|
default: () => [me("\u5217\u5C55\u793A")]
|
|
@@ -1349,7 +1338,7 @@ const Fe = ({
|
|
|
1349
1338
|
default: () => [u(J, {
|
|
1350
1339
|
title: "\u5217\u8BBE\u7F6E"
|
|
1351
1340
|
}, {
|
|
1352
|
-
default: () => [u(
|
|
1341
|
+
default: () => [u(it, null, null)]
|
|
1353
1342
|
})]
|
|
1354
1343
|
});
|
|
1355
1344
|
}, ct = () => {
|
|
@@ -1410,32 +1399,32 @@ function Ze(e) {
|
|
|
1410
1399
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ye(e);
|
|
1411
1400
|
}
|
|
1412
1401
|
const {
|
|
1413
|
-
useBreakpoint:
|
|
1414
|
-
} =
|
|
1415
|
-
function
|
|
1402
|
+
useBreakpoint: zn
|
|
1403
|
+
} = ze;
|
|
1404
|
+
function jn(e) {
|
|
1416
1405
|
if (ye(e))
|
|
1417
1406
|
return e;
|
|
1418
1407
|
if (e) {
|
|
1419
1408
|
const a = e, {
|
|
1420
1409
|
icon: t,
|
|
1421
1410
|
tooltip: l,
|
|
1422
|
-
onClick:
|
|
1423
|
-
key:
|
|
1411
|
+
onClick: i,
|
|
1412
|
+
key: o
|
|
1424
1413
|
} = a;
|
|
1425
1414
|
return t && l ? u(J, {
|
|
1426
1415
|
title: l
|
|
1427
1416
|
}, {
|
|
1428
1417
|
default: () => [u("span", {
|
|
1429
|
-
key:
|
|
1418
|
+
key: o,
|
|
1430
1419
|
onClick: () => {
|
|
1431
|
-
|
|
1420
|
+
i && i(o);
|
|
1432
1421
|
}
|
|
1433
1422
|
}, [t])]
|
|
1434
1423
|
}) : t;
|
|
1435
1424
|
}
|
|
1436
1425
|
return null;
|
|
1437
1426
|
}
|
|
1438
|
-
const dt =
|
|
1427
|
+
const dt = xe({
|
|
1439
1428
|
props: {
|
|
1440
1429
|
actions: ne.toolBarBtn,
|
|
1441
1430
|
settings: [Array],
|
|
@@ -1446,13 +1435,13 @@ const dt = we({
|
|
|
1446
1435
|
optionsExtra: ne.optionsExtra
|
|
1447
1436
|
},
|
|
1448
1437
|
setup(e) {
|
|
1449
|
-
const a =
|
|
1438
|
+
const a = zn(), t = T(() => {
|
|
1450
1439
|
var r;
|
|
1451
1440
|
return !!(e.titleTip || e.headerTitle || ((r = e.actions) == null ? void 0 : r.length));
|
|
1452
1441
|
}), l = T(() => {
|
|
1453
1442
|
var r;
|
|
1454
1443
|
return !!(((r = e.settings) == null ? void 0 : r.length) || e.optionsExtra);
|
|
1455
|
-
}),
|
|
1444
|
+
}), i = T(() => !!(e.titleTip || e.headerTitle)), o = Se(() => {
|
|
1456
1445
|
var s;
|
|
1457
1446
|
let r;
|
|
1458
1447
|
return Array.isArray(e.actions) ? ((s = e.actions) == null ? void 0 : s.length) < 1 ? null : u(te, {
|
|
@@ -1467,7 +1456,7 @@ const dt = we({
|
|
|
1467
1456
|
}) : e.actions;
|
|
1468
1457
|
}), h = Se(() => !t.value && l.value ? u("div", {
|
|
1469
1458
|
class: `${e.prefixCls}-left`
|
|
1470
|
-
}, null) :
|
|
1459
|
+
}, null) : i.value ? u(te, {
|
|
1471
1460
|
class: `${e.prefixCls}-left`
|
|
1472
1461
|
}, {
|
|
1473
1462
|
default: () => [u("div", {
|
|
@@ -1476,15 +1465,15 @@ const dt = we({
|
|
|
1476
1465
|
title: e.titleTipText
|
|
1477
1466
|
}, {
|
|
1478
1467
|
default: () => [re(e.titleTip) && e.titleTip ? u(un, null, null) : e.titleTip]
|
|
1479
|
-
})]),
|
|
1468
|
+
})]), o.value && u("div", {
|
|
1480
1469
|
class: `${e.prefixCls}-actions`
|
|
1481
|
-
}, [
|
|
1470
|
+
}, [o.value])]
|
|
1482
1471
|
}) : u(te, {
|
|
1483
1472
|
class: `${e.prefixCls}-left`
|
|
1484
1473
|
}, {
|
|
1485
|
-
default: () => [
|
|
1474
|
+
default: () => [o.value && u("div", {
|
|
1486
1475
|
class: `${e.prefixCls}-actions`
|
|
1487
|
-
}, [
|
|
1476
|
+
}, [o.value])]
|
|
1488
1477
|
})), d = Se(() => {
|
|
1489
1478
|
let r;
|
|
1490
1479
|
return l.value ? u(te, {
|
|
@@ -1500,7 +1489,7 @@ const dt = we({
|
|
|
1500
1489
|
align: "center",
|
|
1501
1490
|
class: `${e.prefixCls}-setting-items`
|
|
1502
1491
|
}, Ze(r = e.settings.map((C, c) => {
|
|
1503
|
-
const y =
|
|
1492
|
+
const y = jn(C);
|
|
1504
1493
|
return u("div", {
|
|
1505
1494
|
key: c,
|
|
1506
1495
|
class: `${e.prefixCls}-setting-item`
|
|
@@ -1510,7 +1499,7 @@ const dt = we({
|
|
|
1510
1499
|
}) : null];
|
|
1511
1500
|
}
|
|
1512
1501
|
}) : null;
|
|
1513
|
-
}),
|
|
1502
|
+
}), b = Se(() => {
|
|
1514
1503
|
if (!l.value && !t.value)
|
|
1515
1504
|
return null;
|
|
1516
1505
|
const r = {
|
|
@@ -1523,7 +1512,7 @@ const dt = we({
|
|
|
1523
1512
|
});
|
|
1524
1513
|
return () => u("div", {
|
|
1525
1514
|
class: `${e.prefixCls}`
|
|
1526
|
-
}, [
|
|
1515
|
+
}, [b.value]);
|
|
1527
1516
|
}
|
|
1528
1517
|
});
|
|
1529
1518
|
dt.inheritAttrs = !1;
|
|
@@ -1539,7 +1528,7 @@ function $n() {
|
|
|
1539
1528
|
},
|
|
1540
1529
|
setting: {
|
|
1541
1530
|
text: "\u5217\u8BBE\u7F6E",
|
|
1542
|
-
icon: u(
|
|
1531
|
+
icon: u(it, null, null)
|
|
1543
1532
|
},
|
|
1544
1533
|
fullScreen: {
|
|
1545
1534
|
text: "\u5168\u5C4F",
|
|
@@ -1552,8 +1541,8 @@ function Yn(e, a) {
|
|
|
1552
1541
|
const l = e[t];
|
|
1553
1542
|
if (!l)
|
|
1554
1543
|
return null;
|
|
1555
|
-
let
|
|
1556
|
-
if (typeof
|
|
1544
|
+
let i = l === !0 ? a[t] : () => l == null ? void 0 : l();
|
|
1545
|
+
if (typeof i != "function" && (i = () => {
|
|
1557
1546
|
}), t === "setting")
|
|
1558
1547
|
return u(Nn, _(e[t], {
|
|
1559
1548
|
key: t
|
|
@@ -1561,16 +1550,16 @@ function Yn(e, a) {
|
|
|
1561
1550
|
if (t === "fullScreen")
|
|
1562
1551
|
return u("span", {
|
|
1563
1552
|
key: t,
|
|
1564
|
-
onClick:
|
|
1553
|
+
onClick: i
|
|
1565
1554
|
}, [u(ct, null, null)]);
|
|
1566
|
-
const
|
|
1567
|
-
return
|
|
1555
|
+
const o = $n()[t];
|
|
1556
|
+
return o ? u("span", {
|
|
1568
1557
|
key: t,
|
|
1569
|
-
onClick:
|
|
1558
|
+
onClick: i
|
|
1570
1559
|
}, [u(J, {
|
|
1571
|
-
title:
|
|
1560
|
+
title: o.text
|
|
1572
1561
|
}, {
|
|
1573
|
-
default: () => [
|
|
1562
|
+
default: () => [o.icon]
|
|
1574
1563
|
})]) : null;
|
|
1575
1564
|
}).filter((t) => t);
|
|
1576
1565
|
}
|
|
@@ -1579,27 +1568,27 @@ function Bn({
|
|
|
1579
1568
|
headerTitle: a,
|
|
1580
1569
|
titleTip: t,
|
|
1581
1570
|
titleTipText: l,
|
|
1582
|
-
options:
|
|
1583
|
-
optionsExtra:
|
|
1571
|
+
options: i,
|
|
1572
|
+
optionsExtra: o,
|
|
1584
1573
|
settingExtra: h
|
|
1585
1574
|
}) {
|
|
1586
1575
|
const d = $e({
|
|
1587
1576
|
suffixCls: "table-list-toolbar",
|
|
1588
1577
|
isPor: !0
|
|
1589
1578
|
}), {
|
|
1590
|
-
action:
|
|
1579
|
+
action: b
|
|
1591
1580
|
} = ce(), r = T(() => {
|
|
1592
1581
|
const C = {
|
|
1593
|
-
reload: () =>
|
|
1582
|
+
reload: () => b == null ? void 0 : b.reload(),
|
|
1594
1583
|
density: !0,
|
|
1595
1584
|
setting: !0,
|
|
1596
|
-
fullScreen: () =>
|
|
1585
|
+
fullScreen: () => b == null ? void 0 : b.toggle()
|
|
1597
1586
|
};
|
|
1598
|
-
if (!Object.keys(
|
|
1587
|
+
if (!Object.keys(i || {}).length)
|
|
1599
1588
|
return [];
|
|
1600
1589
|
const c = {
|
|
1601
1590
|
...C,
|
|
1602
|
-
...
|
|
1591
|
+
...i
|
|
1603
1592
|
};
|
|
1604
1593
|
return c.setting !== !1 && h && (c.setting = {}, c.setting.extra = h), Yn(c, {
|
|
1605
1594
|
...C
|
|
@@ -1608,7 +1597,7 @@ function Bn({
|
|
|
1608
1597
|
return u(dt, {
|
|
1609
1598
|
prefixCls: d,
|
|
1610
1599
|
actions: e || [],
|
|
1611
|
-
optionsExtra:
|
|
1600
|
+
optionsExtra: o,
|
|
1612
1601
|
headerTitle: a,
|
|
1613
1602
|
settings: f(r),
|
|
1614
1603
|
titleTip: t,
|
|
@@ -1632,9 +1621,9 @@ function Hn(e, a, t) {
|
|
|
1632
1621
|
if (!a)
|
|
1633
1622
|
return e;
|
|
1634
1623
|
let l = e;
|
|
1635
|
-
if (
|
|
1636
|
-
const
|
|
1637
|
-
return u(
|
|
1624
|
+
if (je(a)) {
|
|
1625
|
+
const i = a.node === "a" ? "span" : a.node;
|
|
1626
|
+
return u(i, _(a.attr, {
|
|
1638
1627
|
class: [a.class, a.node === "a" ? `${t}-a` : ""],
|
|
1639
1628
|
onClick: a.click
|
|
1640
1629
|
}), Vn(e) ? e : {
|
|
@@ -1660,14 +1649,14 @@ function Hn(e, a, t) {
|
|
|
1660
1649
|
return l;
|
|
1661
1650
|
}
|
|
1662
1651
|
const {
|
|
1663
|
-
useBreakpoint:
|
|
1664
|
-
} =
|
|
1652
|
+
useBreakpoint: An
|
|
1653
|
+
} = ze, Wn = {
|
|
1665
1654
|
reload: !0,
|
|
1666
1655
|
density: !0,
|
|
1667
1656
|
setting: !0,
|
|
1668
1657
|
fullScreen: !0
|
|
1669
|
-
}, Oe =
|
|
1670
|
-
name: "
|
|
1658
|
+
}, Oe = xe({
|
|
1659
|
+
name: "GProTable",
|
|
1671
1660
|
props: ne,
|
|
1672
1661
|
emits: ["reset", "reload", "submit", "sizeChange", "expandedRowsChange", "expand", "change", "requestError", "beforeSearchSubmit", "columnsStateChange", "loadingChange"],
|
|
1673
1662
|
slots: ["customize", "search", "toolBarBtn", "headerTitle", "titleTip", "optionsExtra"],
|
|
@@ -1675,17 +1664,17 @@ const {
|
|
|
1675
1664
|
emit: a,
|
|
1676
1665
|
slots: t,
|
|
1677
1666
|
attrs: l,
|
|
1678
|
-
expose:
|
|
1667
|
+
expose: i
|
|
1679
1668
|
}) {
|
|
1680
|
-
const
|
|
1669
|
+
const o = $e({
|
|
1681
1670
|
suffixCls: "table",
|
|
1682
1671
|
isPor: !0
|
|
1683
|
-
}), h =
|
|
1672
|
+
}), h = An(), d = N(window.innerWidth), b = N(), r = N(), s = N(e.waitRequest);
|
|
1684
1673
|
oe(() => s.value = e.waitRequest);
|
|
1685
1674
|
const {
|
|
1686
1675
|
toggle: C,
|
|
1687
1676
|
isFullscreen: c
|
|
1688
|
-
} = nt(
|
|
1677
|
+
} = nt(b), y = T(() => ({
|
|
1689
1678
|
...e
|
|
1690
1679
|
})), S = T(() => {
|
|
1691
1680
|
var m, k;
|
|
@@ -1697,33 +1686,33 @@ const {
|
|
|
1697
1686
|
align: k.align || e.align,
|
|
1698
1687
|
uuid: Ne().uuid(15)
|
|
1699
1688
|
}));
|
|
1700
|
-
return
|
|
1689
|
+
return Gt(m, {
|
|
1701
1690
|
align: e.align,
|
|
1702
1691
|
showIndex: e.showIndex
|
|
1703
1692
|
});
|
|
1704
1693
|
}), {
|
|
1705
|
-
getLoading:
|
|
1694
|
+
getLoading: w,
|
|
1706
1695
|
setLoading: F
|
|
1707
1696
|
} = cn({
|
|
1708
1697
|
emit: a,
|
|
1709
|
-
loading:
|
|
1698
|
+
loading: U(e, "loading")
|
|
1710
1699
|
}), {
|
|
1711
|
-
sizeRef:
|
|
1700
|
+
sizeRef: x,
|
|
1712
1701
|
setTableSize: R
|
|
1713
1702
|
} = dn({
|
|
1714
1703
|
emit: a,
|
|
1715
|
-
size:
|
|
1704
|
+
size: U(e, "size")
|
|
1716
1705
|
}), {
|
|
1717
1706
|
getPaginationInfo: M,
|
|
1718
1707
|
setPagination: I
|
|
1719
1708
|
} = fn({
|
|
1720
1709
|
slots: t,
|
|
1721
1710
|
props: y,
|
|
1722
|
-
pagination:
|
|
1723
|
-
}), Y =
|
|
1711
|
+
pagination: U(e, "pagination")
|
|
1712
|
+
}), Y = wn(e), {
|
|
1724
1713
|
getScrollRef: B,
|
|
1725
1714
|
breakpoint: X
|
|
1726
|
-
} =
|
|
1715
|
+
} = xn({
|
|
1727
1716
|
...Y,
|
|
1728
1717
|
innerWidth: d,
|
|
1729
1718
|
columns: g,
|
|
@@ -1732,7 +1721,7 @@ const {
|
|
|
1732
1721
|
getProColumns: v,
|
|
1733
1722
|
cacheProColumns: D,
|
|
1734
1723
|
setColumns: O,
|
|
1735
|
-
changeColumns:
|
|
1724
|
+
changeColumns: p,
|
|
1736
1725
|
resizeColumnWidth: L
|
|
1737
1726
|
} = Sn({
|
|
1738
1727
|
...n,
|
|
@@ -1742,32 +1731,32 @@ const {
|
|
|
1742
1731
|
}), {
|
|
1743
1732
|
columnsMap: Te,
|
|
1744
1733
|
operationType: P,
|
|
1745
|
-
setColumnsMap:
|
|
1734
|
+
setColumnsMap: z,
|
|
1746
1735
|
sortKeyColumns: K,
|
|
1747
1736
|
cacheColumnsMap: le,
|
|
1748
1737
|
setSortKeyColumns: de
|
|
1749
|
-
} =
|
|
1738
|
+
} = bn({
|
|
1750
1739
|
columns: D,
|
|
1751
|
-
columnsState:
|
|
1752
|
-
changeColumns:
|
|
1740
|
+
columnsState: U(e, "columnsState"),
|
|
1741
|
+
changeColumns: p
|
|
1753
1742
|
}), {
|
|
1754
|
-
formDataRef:
|
|
1743
|
+
formDataRef: pe,
|
|
1755
1744
|
formParamsRef: fe,
|
|
1756
|
-
defaultParamsRef:
|
|
1745
|
+
defaultParamsRef: be,
|
|
1757
1746
|
setFormParams: Q
|
|
1758
|
-
} =
|
|
1759
|
-
search:
|
|
1760
|
-
searchMap:
|
|
1761
|
-
params:
|
|
1747
|
+
} = pn({
|
|
1748
|
+
search: U(e, "search"),
|
|
1749
|
+
searchMap: U(e, "searchMap"),
|
|
1750
|
+
params: U(e, "params"),
|
|
1762
1751
|
columns: g
|
|
1763
1752
|
}), {
|
|
1764
1753
|
selectedKey: Ye,
|
|
1765
1754
|
changeRowKey: he,
|
|
1766
1755
|
selectRowKey: q,
|
|
1767
1756
|
selectAllRowKey: ie,
|
|
1768
|
-
syncSelectedRows:
|
|
1757
|
+
syncSelectedRows: j,
|
|
1769
1758
|
removeRowKeys: ae
|
|
1770
|
-
} = hn(
|
|
1759
|
+
} = hn(U(e, "rowKey"), U(e, "rowSelection")), A = mn(e), {
|
|
1771
1760
|
reload: Re,
|
|
1772
1761
|
reSetDataList: ft,
|
|
1773
1762
|
changeDataValue: ht,
|
|
@@ -1775,22 +1764,22 @@ const {
|
|
|
1775
1764
|
getDataSourceRef: Ke,
|
|
1776
1765
|
handleTableChange: Le
|
|
1777
1766
|
} = gn({
|
|
1778
|
-
...
|
|
1767
|
+
...A,
|
|
1779
1768
|
waitRequest: s
|
|
1780
1769
|
}, {
|
|
1781
|
-
getLoading:
|
|
1770
|
+
getLoading: w,
|
|
1782
1771
|
getPaginationInfo: M,
|
|
1783
1772
|
setPagination: I,
|
|
1784
1773
|
removeRowKeys: ae,
|
|
1785
|
-
syncSelectedRows:
|
|
1774
|
+
syncSelectedRows: j,
|
|
1786
1775
|
setLoading: F,
|
|
1787
1776
|
setColumns: O,
|
|
1788
1777
|
columns: v,
|
|
1789
1778
|
formParamsRef: fe,
|
|
1790
1779
|
onBeforeSearchSubmit: e.onBeforeSearchSubmit
|
|
1791
1780
|
}, a), vt = T(() => e.options ? {
|
|
1792
|
-
...
|
|
1793
|
-
...H(
|
|
1781
|
+
...Wn,
|
|
1782
|
+
...H(je(e.options) ? e.options : {})
|
|
1794
1783
|
} : {});
|
|
1795
1784
|
tt(() => {
|
|
1796
1785
|
window.addEventListener("resize", Ve);
|
|
@@ -1805,26 +1794,26 @@ const {
|
|
|
1805
1794
|
...l,
|
|
1806
1795
|
...e,
|
|
1807
1796
|
virtualScroll: S.value,
|
|
1808
|
-
size: f(
|
|
1797
|
+
size: f(x),
|
|
1809
1798
|
scroll: f(B),
|
|
1810
|
-
loading: !!f(
|
|
1799
|
+
loading: !!f(w),
|
|
1811
1800
|
columns: ke(f(v).filter((E) => E.show || E.show === void 0)),
|
|
1812
1801
|
pagination: ke(f(M)),
|
|
1813
1802
|
dataSource: m
|
|
1814
1803
|
};
|
|
1815
|
-
return k =
|
|
1804
|
+
return k = Ge(k, ["class", "onChange", "onExpand", "onExpandedRowsChange"]), k;
|
|
1816
1805
|
}), mt = T(() => {
|
|
1817
1806
|
var m;
|
|
1818
1807
|
return [{
|
|
1819
|
-
[`${
|
|
1808
|
+
[`${o}`]: !0,
|
|
1820
1809
|
[`${l.class}`]: l.class,
|
|
1821
|
-
[`${
|
|
1822
|
-
[`${
|
|
1823
|
-
[`${
|
|
1810
|
+
[`${o}-no-scroll`]: !Object.keys(((m = He.value) == null ? void 0 : m.scroll) || {}).length,
|
|
1811
|
+
[`${o}-table-tree`]: Be.value,
|
|
1812
|
+
[`${o}-full-screen`]: c.value
|
|
1824
1813
|
}];
|
|
1825
1814
|
});
|
|
1826
1815
|
Rn({
|
|
1827
|
-
tableSize:
|
|
1816
|
+
tableSize: x,
|
|
1828
1817
|
columns: v,
|
|
1829
1818
|
cacheColumns: g,
|
|
1830
1819
|
action: {
|
|
@@ -1833,18 +1822,18 @@ const {
|
|
|
1833
1822
|
toggle: C
|
|
1834
1823
|
},
|
|
1835
1824
|
settingsAction: {
|
|
1836
|
-
autoScroll:
|
|
1825
|
+
autoScroll: U(e, "autoScroll"),
|
|
1837
1826
|
columnsMap: Te,
|
|
1838
1827
|
operationType: P,
|
|
1839
|
-
setColumnsMap:
|
|
1828
|
+
setColumnsMap: z,
|
|
1840
1829
|
sortKeyColumns: K,
|
|
1841
1830
|
cacheColumnsMap: le,
|
|
1842
1831
|
setSortKeyColumns: de
|
|
1843
1832
|
},
|
|
1844
1833
|
setPagination: I,
|
|
1845
|
-
changeColumns:
|
|
1834
|
+
changeColumns: p,
|
|
1846
1835
|
slots: t
|
|
1847
|
-
}),
|
|
1836
|
+
}), i({
|
|
1848
1837
|
formRef: () => ({
|
|
1849
1838
|
formParams: fe,
|
|
1850
1839
|
getFormState: () => {
|
|
@@ -1858,7 +1847,7 @@ const {
|
|
|
1858
1847
|
}),
|
|
1859
1848
|
actionRef: () => ({
|
|
1860
1849
|
pageParams: M.value,
|
|
1861
|
-
getLoadingStatus:
|
|
1850
|
+
getLoadingStatus: w.value,
|
|
1862
1851
|
reload: Re,
|
|
1863
1852
|
reloadAndRest: async (m) => {
|
|
1864
1853
|
s.value = !0, I({
|
|
@@ -1875,29 +1864,29 @@ const {
|
|
|
1875
1864
|
const gt = (m) => {
|
|
1876
1865
|
const k = {};
|
|
1877
1866
|
return Object.keys(m).map((E) => (Ln.includes(E) || (k[E] = m[E]), E)), k;
|
|
1878
|
-
},
|
|
1867
|
+
}, Ae = T(() => {
|
|
1879
1868
|
var Z;
|
|
1880
1869
|
let m;
|
|
1881
1870
|
const k = f(y).direction === "rtl" ? "bottomLeft" : "right", E = (Z = f(M)) == null ? void 0 : Z.position;
|
|
1882
1871
|
if (E !== null && Array.isArray(E)) {
|
|
1883
|
-
const se = E.find((ee) => ee.indexOf("top") !== -1), $ = E.find((ee) => ee.indexOf("bottom") !== -1),
|
|
1884
|
-
!se && !$ && !
|
|
1872
|
+
const se = E.find((ee) => ee.indexOf("top") !== -1), $ = E.find((ee) => ee.indexOf("bottom") !== -1), W = E.every((ee) => `${ee}` == "none");
|
|
1873
|
+
!se && !$ && !W && (m = k), se && (m = se.toLowerCase().replace("top", "")), $ && (m = $.toLowerCase().replace("bottom", ""));
|
|
1885
1874
|
} else
|
|
1886
1875
|
m = k;
|
|
1887
1876
|
return m;
|
|
1888
|
-
}),
|
|
1877
|
+
}), We = async (m) => {
|
|
1889
1878
|
e.search.showSearch ? (Q({
|
|
1890
1879
|
...m,
|
|
1891
1880
|
...e.params || {}
|
|
1892
1881
|
}), await Re()) : Q(m);
|
|
1893
1882
|
}, yt = async (m, k) => {
|
|
1894
|
-
k ? (a("reset", m), e.request && await
|
|
1883
|
+
k ? (a("reset", m), e.request && await We(m)) : e.request ? (a("submit", m), await We(m)) : a("submit", m);
|
|
1895
1884
|
}, _e = (m, k = {}, E = {}) => {
|
|
1896
1885
|
I({
|
|
1897
1886
|
current: m.current,
|
|
1898
1887
|
pageSize: m.pageSize
|
|
1899
1888
|
}), Le(m, k, E);
|
|
1900
|
-
},
|
|
1889
|
+
}, pt = (m, k) => {
|
|
1901
1890
|
var E;
|
|
1902
1891
|
I({
|
|
1903
1892
|
current: m,
|
|
@@ -1907,14 +1896,14 @@ const {
|
|
|
1907
1896
|
pageSize: k,
|
|
1908
1897
|
total: M.value && ((E = M.value) == null ? void 0 : E.total) || 0
|
|
1909
1898
|
}, {}, {});
|
|
1910
|
-
},
|
|
1899
|
+
}, bt = (m) => {
|
|
1911
1900
|
a("expandedRowsChange", m);
|
|
1912
1901
|
}, Ct = (m, k) => {
|
|
1913
1902
|
a("expand", m, k);
|
|
1914
|
-
}, St = (m, k) => L(m, k),
|
|
1903
|
+
}, St = (m, k) => L(m, k), wt = (m, k, E) => {
|
|
1915
1904
|
const Z = E.align === "center" ? "top" : E.align === "left" || !E.align ? "topLeft" : "topRight";
|
|
1916
1905
|
return k && E.copyable ? u(Lt.Paragraph, {
|
|
1917
|
-
class: `${
|
|
1906
|
+
class: `${o}-copyable`,
|
|
1918
1907
|
style: {
|
|
1919
1908
|
margin: "0",
|
|
1920
1909
|
width: "100%",
|
|
@@ -1927,7 +1916,7 @@ const {
|
|
|
1927
1916
|
placement: Z
|
|
1928
1917
|
}, {
|
|
1929
1918
|
default: () => [u("div", {
|
|
1930
|
-
class: `${
|
|
1919
|
+
class: `${o}-ellipsis`
|
|
1931
1920
|
}, [m])]
|
|
1932
1921
|
})]
|
|
1933
1922
|
}) : k && !E.copyable ? u(J, {
|
|
@@ -1935,11 +1924,11 @@ const {
|
|
|
1935
1924
|
placement: Z
|
|
1936
1925
|
}, {
|
|
1937
1926
|
default: () => [Be.value ? m : u("div", {
|
|
1938
|
-
class: `${
|
|
1927
|
+
class: `${o}-ellipsis`
|
|
1939
1928
|
}, [m])]
|
|
1940
1929
|
}) : m;
|
|
1941
|
-
},
|
|
1942
|
-
const m =
|
|
1930
|
+
}, xt = () => {
|
|
1931
|
+
const m = at(t, e, "customize");
|
|
1943
1932
|
return m ? m(Ke.value) : null;
|
|
1944
1933
|
}, Tt = (m, k, E) => u(Kn, {
|
|
1945
1934
|
headerTitle: m,
|
|
@@ -1954,34 +1943,34 @@ const {
|
|
|
1954
1943
|
var Z, se;
|
|
1955
1944
|
const m = ve(t, e, "headerTitle"), k = ve(t, e, "titleTip"), E = ve(t, e, "toolBarBtn");
|
|
1956
1945
|
return u("div", {
|
|
1957
|
-
ref: ($) =>
|
|
1946
|
+
ref: ($) => b.value = $,
|
|
1958
1947
|
class: mt.value
|
|
1959
1948
|
}, [u("div", {
|
|
1960
1949
|
class: "gx-pro-table-content"
|
|
1961
|
-
}, [(!!
|
|
1950
|
+
}, [(!!pe.value.length || !!((Z = t.search) != null && Z.call(t))) && u(rt, {
|
|
1962
1951
|
ref: r,
|
|
1963
1952
|
search: e.search,
|
|
1964
1953
|
modal: e.modalScroll,
|
|
1965
|
-
searchMap:
|
|
1966
|
-
prefixCls:
|
|
1967
|
-
loading: !!f(
|
|
1954
|
+
searchMap: pe.value,
|
|
1955
|
+
prefixCls: o,
|
|
1956
|
+
loading: !!f(w),
|
|
1968
1957
|
onSearch: yt,
|
|
1969
|
-
defaultParams:
|
|
1958
|
+
defaultParams: be
|
|
1970
1959
|
}, {
|
|
1971
1960
|
default: t.search ? () => {
|
|
1972
1961
|
var $;
|
|
1973
1962
|
return ($ = t.search) == null ? void 0 : $.call(t);
|
|
1974
1963
|
} : null
|
|
1975
1964
|
}), !S.value && Tt(m, E, k), ((se = e.customize) != null ? se : t.customize) ? u(Pe, {
|
|
1976
|
-
spinning: !!f(
|
|
1965
|
+
spinning: !!f(w)
|
|
1977
1966
|
}, {
|
|
1978
|
-
default: () => [
|
|
1967
|
+
default: () => [xt(), u(Bt, _({
|
|
1979
1968
|
class: {
|
|
1980
1969
|
["ant-table-pagination"]: !0,
|
|
1981
|
-
[`ant-table-pagination-${
|
|
1970
|
+
[`ant-table-pagination-${Ae.value}`]: Ae.value
|
|
1982
1971
|
}
|
|
1983
1972
|
}, ke(f(M)), {
|
|
1984
|
-
onChange:
|
|
1973
|
+
onChange: pt
|
|
1985
1974
|
}), null)]
|
|
1986
1975
|
}) : u(Kt, _(He.value, {
|
|
1987
1976
|
style: e.tableStyle || void 0,
|
|
@@ -1989,7 +1978,7 @@ const {
|
|
|
1989
1978
|
rowKey: ($) => $[e.rowKey || "sortIndex"],
|
|
1990
1979
|
transformCellText: ({
|
|
1991
1980
|
text: $,
|
|
1992
|
-
column:
|
|
1981
|
+
column: W
|
|
1993
1982
|
}) => {
|
|
1994
1983
|
const ee = Ee($) ? $ == null ? void 0 : $[0] : $;
|
|
1995
1984
|
if (ye(ee))
|
|
@@ -1997,18 +1986,18 @@ const {
|
|
|
1997
1986
|
const {
|
|
1998
1987
|
value: Rt,
|
|
1999
1988
|
success: kt
|
|
2000
|
-
} =
|
|
2001
|
-
return
|
|
1989
|
+
} = Ut(ee, (W == null ? void 0 : W.columnEmptyText) || (e == null ? void 0 : e.columnEmptyText)), qe = Hn(Rt, W == null ? void 0 : W.valueType, o);
|
|
1990
|
+
return W != null && W.ellipsis ? wt(qe, kt, W) : qe;
|
|
2002
1991
|
},
|
|
2003
1992
|
rowSelection: e.rowSelection ? {
|
|
2004
|
-
...
|
|
1993
|
+
...Ge(e.rowSelection, ["onSelect", "onSelectAll", "onChange", "selectedRowKeys"]),
|
|
2005
1994
|
selectedRowKeys: Ye.value,
|
|
2006
1995
|
onSelect: q,
|
|
2007
1996
|
onSelectAll: ie,
|
|
2008
1997
|
onChange: he
|
|
2009
1998
|
} : void 0,
|
|
2010
1999
|
onChange: _e,
|
|
2011
|
-
onExpandedRowsChange:
|
|
2000
|
+
onExpandedRowsChange: bt,
|
|
2012
2001
|
onExpand: Ct,
|
|
2013
2002
|
onResizeColumn: St
|
|
2014
2003
|
}), {
|
|
@@ -2019,7 +2008,7 @@ const {
|
|
|
2019
2008
|
});
|
|
2020
2009
|
Oe.install = (e) => (e.component(Oe.name, Oe), e);
|
|
2021
2010
|
export {
|
|
2022
|
-
Oe as
|
|
2011
|
+
Oe as GProTable,
|
|
2023
2012
|
Oe as default,
|
|
2024
2013
|
ne as proTableProps
|
|
2025
2014
|
};
|