@gx-design-vue/pro-table 0.2.0-beta.13 → 0.2.0-beta.130

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.
Files changed (50) hide show
  1. package/dist/ProTable.d.ts +253 -792
  2. package/dist/_utils/ant-design-vue/index.d.ts +4 -2
  3. package/dist/_utils/ant-design-vue/input/typings.d.ts +1 -0
  4. package/dist/_utils/ant-design-vue/table/props.d.ts +33 -2
  5. package/dist/_utils/ant-design-vue/table/typings.d.ts +6 -5
  6. package/dist/_utils/ant-design-vue/tooltip/typings.d.ts +1 -0
  7. package/dist/_utils/index.d.ts +1 -1
  8. package/dist/components/Form/components/RequestSelect.d.ts +39 -0
  9. package/dist/components/Form/{useForm.d.ts → hooks/useForm.d.ts} +1 -1
  10. package/dist/components/Form/index.d.ts +15 -27
  11. package/dist/components/Form/style.d.ts +2 -5
  12. package/dist/components/Form/utils/config.d.ts +5 -0
  13. package/dist/components/Form/utils/dateFormat.d.ts +20 -0
  14. package/dist/components/ListToolBar/index.d.ts +20 -33
  15. package/dist/components/ListToolBar/style.d.ts +2 -5
  16. package/dist/components/ToolBar/FullscreenIcon.d.ts +1 -1
  17. package/dist/components/ToolBar/index.d.ts +22 -23
  18. package/dist/context/TableContext.d.ts +15 -16
  19. package/dist/hooks/tryOnActivated.d.ts +2 -0
  20. package/dist/hooks/useColumnSetting.d.ts +6 -7
  21. package/dist/hooks/useColumns.d.ts +101 -0
  22. package/dist/hooks/useDebounceFn.d.ts +2 -2
  23. package/dist/hooks/useFetchData.d.ts +21 -16
  24. package/dist/hooks/useLoading.d.ts +5 -8
  25. package/dist/hooks/usePagination.d.ts +7 -6
  26. package/dist/hooks/useRowSelection.d.ts +11 -8
  27. package/dist/hooks/useTable.d.ts +40 -11
  28. package/dist/hooks/useTableForm.d.ts +9 -9
  29. package/dist/hooks/useTableScroll.d.ts +17 -18
  30. package/dist/hooks/useTableSize.d.ts +4 -7
  31. package/dist/index.d.ts +8 -7
  32. package/dist/pro-table.js +2307 -0
  33. package/dist/pro-table.umd.cjs +12 -0
  34. package/dist/props.d.ts +94 -377
  35. package/dist/style.d.ts +2 -6
  36. package/dist/types/ColumnTypings.d.ts +54 -16
  37. package/dist/types/SlotsTypings.d.ts +47 -9
  38. package/dist/types/TableTypings.d.ts +124 -76
  39. package/dist/utils/utils.d.ts +4 -1
  40. package/package.json +31 -51
  41. package/volar.d.ts +3 -3
  42. package/dist/components/ColumnSetting/hooks/useRefFunction/index.d.ts +0 -1
  43. package/dist/components/ColumnSetting/index.d.ts +0 -35
  44. package/dist/components/ColumnSetting/style.d.ts +0 -6
  45. package/dist/components/ToolBar/DensityIcon.d.ts +0 -3
  46. package/dist/hooks/useColums.d.ts +0 -24
  47. package/dist/pro-table.mjs +0 -35100
  48. package/dist/pro-table.umd.js +0 -364
  49. package/dist/typing.d.ts +0 -1
  50. package/dist/utils/config.d.ts +0 -1
@@ -0,0 +1,2307 @@
1
+ /*!
2
+ * Gx Design Pro
3
+ * Version: 0.2.0-beta.129
4
+ * Author: gx12358
5
+ * Copyright (C) 2024 gx12358
6
+ * License: MIT License
7
+ * Description: Gx Design Pro Table
8
+ * Date Created: 2025-12-06
9
+ * Homepage:
10
+ * Contact: gx12358@gmail.com
11
+ */
12
+ import { defineComponent as Te, ref as O, watch as z, cloneVNode as Qe, reactive as Oe, watchEffect as dt, computed as S, createVNode as c, Fragment as Ye, isVNode as V, mergeProps as M, h as ft, unref as T, onActivated as Et, nextTick as Lt, getCurrentInstance as Wt, toRaw as ye, onUnmounted as kt, onDeactivated as Ht, onMounted as qt, toRef as q, isRef as ke } from "vue";
13
+ import { UpOutlined as Vt, DownOutlined as Kt, InfoCircleOutlined as Gt, FullscreenExitOutlined as Qt, FullscreenOutlined as Xt, ReloadOutlined as _t, CopyOutlined as Ut } from "@ant-design/icons-vue";
14
+ import { useProAppContext as mt } from "@gx-design-vue/pro-app";
15
+ import { useBreakpoint as vt, useMemo as Pe, tryOnUnmounted as Jt } from "@gx-design-vue/pro-hooks";
16
+ import { useContext as Zt, useProStyle as Xe, unit as it, useProConfigContext as ea } from "@gx-design-vue/pro-provider";
17
+ import { isArray as L, isBoolean as de, classNames as Z, isNumber as Be, filterEmpty as ht, getPrefixCls as pt, isObject as k, keysOf as gt, isDeepEqualReact as Ge, cloneDeep as _, compareArray as ta, runFunction as aa, getSortIndex as la, isFunction as De, convertValueBoolean as Me, handleCurrentPage as na, deepMerge as xe, arrayRepeat as ia, useDeepMerge as Ee, isString as yt, getRandomNumber as oa, handleShowIndex as ua, getSlot as ot, getSlotsProps as sa, handleEmptyField as ra, getTextWidth as ca, getSlotVNode as da } from "@gx-design-vue/pro-utils";
18
+ import { useDebounceFn as fa, useFullscreen as bt, useWindowSize as ma } from "@vueuse/core";
19
+ import { Grid as va, DatePicker as Ct, Space as ut, Input as Ne, TimePicker as ha, TreeSelect as pa, Select as ga, InputNumber as He, Button as st, Spin as St, Tooltip as we, theme as ya, Pagination as ba, Table as Ca, message as Sa, Empty as xa } from "ant-design-vue";
20
+ import { omit as Le, cloneDeep as xt, pick as rt } from "lodash-es";
21
+ import { tableProps as wa } from "ant-design-vue/es/table/Table";
22
+ import "ant-design-vue/es/_util/props-util";
23
+ import { warning as Ta } from "ant-design-vue/es/vc-util/warning";
24
+ import W from "dayjs";
25
+ const Ra = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered", "loading"], wt = {
26
+ ...Le(wa(), Ra),
27
+ transformCellText: Function,
28
+ /**
29
+ * @Author gx12358
30
+ * @DateTime 2022/2/8
31
+ * @lastTime 2022/2/8
32
+ * @description 是否展示外边框和列边框
33
+ */
34
+ bordered: {
35
+ type: Boolean,
36
+ default: void 0
37
+ },
38
+ loading: {
39
+ type: [Boolean, Object],
40
+ default: void 0
41
+ },
42
+ scroll: {
43
+ type: Object,
44
+ default: void 0
45
+ }
46
+ }, { provideContext: $a, useInjectContext: _e } = Zt("pro-table"), be = {
47
+ ...wt,
48
+ rowSelection: {
49
+ type: Object,
50
+ default: void 0
51
+ },
52
+ columns: { type: Array, default: () => [] },
53
+ pagination: { type: [Object, Boolean], default: () => {
54
+ } },
55
+ rowKey: { type: String, default: "id" },
56
+ /**
57
+ * @Author gx12358
58
+ * @DateTime 2022/2/8
59
+ * @lastTime 2022/2/8
60
+ * @description 获取 dataSource 的方法
61
+ */
62
+ request: {
63
+ type: Function,
64
+ default: void 0
65
+ },
66
+ // 是否启用虚拟滚动
67
+ virtualScroll: Boolean,
68
+ // 用于 request 查询的额外参数,一旦变化会触发重新加载
69
+ params: {
70
+ type: Object,
71
+ default: () => ({})
72
+ },
73
+ // 等待请求时间设置
74
+ waitRequest: {
75
+ type: Boolean,
76
+ default: !1
77
+ },
78
+ // 轮训时间间隔设置
79
+ polling: Number,
80
+ // 防抖时间设置
81
+ debounceTime: {
82
+ type: Number,
83
+ default: 10
84
+ },
85
+ /**
86
+ * @Author gx12358
87
+ * @DateTime 2022/2/8
88
+ * @lastTime 2022/2/8
89
+ * @description 是否显示搜索表单,传入对象时为搜索表单的配置
90
+ */
91
+ search: {
92
+ type: [Object, Boolean],
93
+ default: () => ({
94
+ autoRequest: !0,
95
+ resetText: "重置",
96
+ searchText: "查询"
97
+ })
98
+ },
99
+ searchMap: {
100
+ type: Array,
101
+ default: () => []
102
+ },
103
+ /**
104
+ * @Author gx12358
105
+ * @DateTime 2022/2/8
106
+ * @lastTime 2022/2/8
107
+ * @description 自定义表格渲染模式:默认表格展示,也可以自定义数据列表展示
108
+ */
109
+ customRender: {
110
+ type: [Function, Object, Boolean, Array],
111
+ default: () => {
112
+ }
113
+ },
114
+ useDefaultScrollStyle: {
115
+ type: Boolean,
116
+ default: () => !1
117
+ },
118
+ emptyText: {
119
+ type: [Function, Object, Boolean, Array],
120
+ default: () => {
121
+ }
122
+ },
123
+ showLoading: {
124
+ type: Boolean,
125
+ default: !0
126
+ },
127
+ tableProps: {
128
+ type: Object,
129
+ default: () => ({
130
+ style: {}
131
+ })
132
+ },
133
+ emptyTextProps: {
134
+ type: Object,
135
+ default: () => ({
136
+ style: {}
137
+ })
138
+ },
139
+ actionProps: {
140
+ type: Object,
141
+ default: () => ({
142
+ placement: "right"
143
+ })
144
+ },
145
+ // 表格标题
146
+ headerTitle: {
147
+ type: [Object, Function, Boolean, String, Array],
148
+ default: () => {
149
+ }
150
+ },
151
+ // 标题提示
152
+ titleTip: {
153
+ type: [Object, Function, Boolean, String, Array],
154
+ default: () => {
155
+ }
156
+ },
157
+ // 标题提示字
158
+ titleTipText: {
159
+ type: String,
160
+ default: "这是一个标题提示"
161
+ },
162
+ /**
163
+ * @Author gx12358
164
+ * @DateTime 2022/2/8
165
+ * @lastTime 2022/2/8
166
+ * @description table 工具栏,设为 false 时不显示
167
+ */
168
+ options: {
169
+ type: [Object, Boolean],
170
+ default: !1
171
+ },
172
+ /**
173
+ * @Author gx12358
174
+ * @DateTime 2022/2/8
175
+ * @lastTime 2022/2/8
176
+ * @description 列设置额外的元素
177
+ */
178
+ settingExtra: {
179
+ type: [Object, Function, Array],
180
+ default: () => {
181
+ }
182
+ },
183
+ // 针对 keepalive 缓存的页面 是否重新reload
184
+ keepAliveReload: {
185
+ type: Boolean,
186
+ default: !1
187
+ },
188
+ /**
189
+ * @Author gx12358
190
+ * @DateTime 2022/2/8
191
+ * @lastTime 2022/2/8
192
+ * @description 是否展示序号栏
193
+ */
194
+ showIndex: {
195
+ type: Boolean,
196
+ default: !1
197
+ },
198
+ /**
199
+ * @Author gx12358
200
+ * @DateTime 2024/11/15
201
+ * @lastTime 2024/11/15
202
+ * @description 是否已card分割
203
+ */
204
+ cardBordered: {
205
+ type: Boolean,
206
+ default: !1
207
+ },
208
+ /**
209
+ * @Author gx12358
210
+ * @DateTime 2022/2/8
211
+ * @lastTime 2022/2/8
212
+ * @description 翻页item设置
213
+ */
214
+ pageItemRender: {
215
+ type: [Function, Object, Array],
216
+ default: () => {
217
+ }
218
+ },
219
+ /**
220
+ * @Author gx12358
221
+ * @DateTime 2022/2/8
222
+ * @lastTime 2022/2/8
223
+ * @description 表格大小
224
+ */
225
+ size: {
226
+ type: String,
227
+ default: "middle"
228
+ },
229
+ /**
230
+ * @Author gx12358
231
+ * @DateTime 2022/2/8
232
+ * @lastTime 2022/2/8
233
+ * @description 表格全局对齐方式
234
+ */
235
+ align: {
236
+ type: String,
237
+ default: "left"
238
+ },
239
+ /**
240
+ * @Author gx12358
241
+ * @DateTime 2022/2/8
242
+ * @lastTime 2022/2/8
243
+ * @description 是否列拖动
244
+ */
245
+ draggable: Boolean,
246
+ /**
247
+ * @Author gx12358
248
+ * @DateTime 2022/2/8
249
+ * @lastTime 2022/2/8
250
+ * @description 根据屏幕大小或者scrollBreakpoint或者scroll?.x是否存在判断action列是否固定
251
+ */
252
+ autoScroll: {
253
+ type: Boolean,
254
+ default: !0
255
+ },
256
+ /**
257
+ * @Author gx12358
258
+ * @DateTime 2022/2/8
259
+ * @lastTime 2022/2/8
260
+ * @description 滚动断点支持数字(屏幕宽度);也支持md、xl,xxl等
261
+ */
262
+ scrollBreakpoint: [String, Number],
263
+ /**
264
+ * @Author gx12358
265
+ * @DateTime 2022/2/8
266
+ * @lastTime 2022/2/8
267
+ * @description modalTable时,自动固定滚动高度
268
+ */
269
+ modalScroll: Boolean,
270
+ /**
271
+ * @Author gx12358
272
+ * @DateTime 2022/2/8
273
+ * @lastTime 2022/2/8
274
+ * @description 从不滚动
275
+ */
276
+ neverScroll: Boolean,
277
+ /**
278
+ * @Author gx12358
279
+ * @DateTime 2022/2/8
280
+ * @lastTime 2022/2/8
281
+ * @description 空值时的显示,不设置时显示 -, false 可以关闭此功能
282
+ */
283
+ columnEmptyText: {
284
+ type: [String, Boolean],
285
+ default: !1
286
+ },
287
+ /**
288
+ * @Author gx12358
289
+ * @DateTime 2022/2/8
290
+ * @lastTime 2022/2/8
291
+ * @description Pro-Table 的方法
292
+ */
293
+ // 对通过 request 获取的数据进行处理
294
+ postData: Function,
295
+ onReset: Function,
296
+ onReload: Function,
297
+ onSubmit: Function,
298
+ onSizeChange: Function,
299
+ onLoadingChange: Function,
300
+ onRequestError: Function,
301
+ onBeforeSearchSubmit: Function
302
+ }, Fa = /* @__PURE__ */ Te({
303
+ name: "RequestSelect",
304
+ props: {
305
+ fetch: Function,
306
+ loading: Boolean,
307
+ debounceTime: Number,
308
+ manual: {
309
+ type: Boolean,
310
+ default: void 0
311
+ },
312
+ fieldName: {
313
+ type: String,
314
+ default: "options"
315
+ },
316
+ notFoundContent: {
317
+ type: Function
318
+ }
319
+ },
320
+ setup(e, {
321
+ slots: l
322
+ }) {
323
+ const a = O([]), n = O(e.loading ?? !1), s = O("init"), u = fa(e.fetch, e.debounceTime || 10);
324
+ return z([() => e.fetch, () => e.manual], () => {
325
+ if (s.value !== "init" && n.value) return;
326
+ const d = e.manual ?? !1;
327
+ e.fetch && !d && (n.value = !0, u().then((h) => {
328
+ a.value = xt(h), s.value = "success";
329
+ }).catch((h) => {
330
+ console.error(h), s.value = "error";
331
+ }).finally(() => {
332
+ n.value = !1;
333
+ }));
334
+ }, {
335
+ immediate: !0
336
+ }), () => {
337
+ const d = l.default?.();
338
+ return Qe(L(d) ? d[0] : d, {
339
+ options: a.value,
340
+ notFoundContent: e.notFoundContent?.(n.value)
341
+ });
342
+ };
343
+ }
344
+ });
345
+ function Pa(e, l) {
346
+ const a = Oe({});
347
+ function n() {
348
+ Object.keys(e).forEach((d) => {
349
+ s(d, e[d]);
350
+ });
351
+ const u = l.find((d) => d.valueType === "dateRange");
352
+ u && s(u.name || "", e[u.rangeStartName || "start"] ? [
353
+ e[u.rangeStartName || "start"],
354
+ e[u.rangeEndName || "end"]
355
+ ] : []);
356
+ }
357
+ dt(() => {
358
+ n();
359
+ });
360
+ function s(u, d) {
361
+ a[u] = d;
362
+ }
363
+ return {
364
+ formState: a,
365
+ resetFormState: n,
366
+ changeFormState: s
367
+ };
368
+ }
369
+ const Da = (e) => ({
370
+ [`${e.componentCls}-search`]: {
371
+ position: "relative",
372
+ display: "flex",
373
+ flexWrap: "wrap",
374
+ alignItems: "center",
375
+ "&-border": {
376
+ paddingInline: e.paddingMD,
377
+ paddingBlock: e.paddingMD,
378
+ paddingBlockEnd: e.paddingMD - 16,
379
+ border: `${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,
380
+ borderRadius: e.borderRadiusLG,
381
+ marginBottom: e.marginLG,
382
+ backgroundColor: e.colorBgContainer
383
+ },
384
+ "&-collapse-buttons": {
385
+ display: "flex",
386
+ alignItems: "center",
387
+ height: e.controlHeight,
388
+ marginBottom: e.margin,
389
+ fontSize: e.fontSize,
390
+ lineHeight: e.lineHeight
391
+ },
392
+ [`${e.componentCls}-search-item`]: {
393
+ display: "flex",
394
+ alignItems: "center",
395
+ marginBottom: e.margin,
396
+ [`${e.componentCls}-search-input-compact`]: {
397
+ display: "flex",
398
+ alignItems: "center",
399
+ [`${e.antCls}-input-number`]: {
400
+ flex: 1,
401
+ "&:first-child": {
402
+ borderRightWidth: 0,
403
+ "&:hover": {
404
+ borderRightWidth: 1
405
+ }
406
+ },
407
+ "&:last-child": {
408
+ borderLeftWidth: 0,
409
+ "&:hover": {
410
+ borderLeftWidth: 1
411
+ }
412
+ }
413
+ },
414
+ [`${e.antCls}-input`]: {
415
+ width: 30,
416
+ borderLeftWidth: 0,
417
+ borderRightWidth: 0,
418
+ backgroundColor: "transparent",
419
+ cursor: "default"
420
+ }
421
+ },
422
+ "&-label": {
423
+ flexShrink: 0,
424
+ "&::after": {
425
+ content: '":"',
426
+ position: "relative",
427
+ marginBlock: 0,
428
+ marginInlineStart: e.marginXXS / 2,
429
+ marginInlineEnd: e.marginXS
430
+ },
431
+ [`&${e.componentCls}-search-item-label-no-colon::after`]: {
432
+ content: '" "'
433
+ },
434
+ [`&${e.componentCls}-search-item-label-left`]: {
435
+ textAlign: "left"
436
+ },
437
+ [`&${e.componentCls}-search-item-label-center`]: {
438
+ textAlign: "center"
439
+ },
440
+ [`&${e.componentCls}-search-item-label-right`]: {
441
+ textAlign: "right"
442
+ }
443
+ },
444
+ "&-children": {
445
+ width: "100%"
446
+ }
447
+ }
448
+ },
449
+ [`${e.componentCls}-search-empty-text`]: {
450
+ display: "flex",
451
+ flexDirection: "column",
452
+ justifyContent: "center",
453
+ alignItems: "center"
454
+ }
455
+ }), qe = [
456
+ { value: "xxl", span: 4 },
457
+ { value: "xl", span: 3 },
458
+ { value: "lg", span: 2 },
459
+ { value: "md", span: 2 },
460
+ { value: "sm", span: 2 },
461
+ { value: "xs", span: 1 }
462
+ ];
463
+ function ce(e, l) {
464
+ return typeof l == "function" ? l(W(e)) : W(e).format(l);
465
+ }
466
+ function Fe(e, l) {
467
+ return l ? "YYYY-MM-DD HH:mm:ss" : e ?? "YYYY-MM-DD";
468
+ }
469
+ const ct = (e, l, a = "string") => {
470
+ if (L(e)) {
471
+ const [n, s] = e;
472
+ let u, d;
473
+ if (Array.isArray(l) ? (u = l[0], d = l[1]) : typeof l == "object" && l.type === "mask" ? (u = l.format, d = l.format) : (u = l, d = l), a === "string") {
474
+ const h = n ? ce(n, u) : "", y = s ? ce(s, d) : "";
475
+ return [h, y];
476
+ }
477
+ return [W(n), W(s)];
478
+ }
479
+ };
480
+ function Oa(e) {
481
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !V(e);
482
+ }
483
+ const {
484
+ useBreakpoint: Ba
485
+ } = va, {
486
+ MonthPicker: Ia,
487
+ RangePicker: ja,
488
+ YearPicker: Aa,
489
+ WeekPicker: Na,
490
+ QuarterPicker: za
491
+ } = Ct;
492
+ function Ya(e) {
493
+ let l = e.reduce((a, n) => n.order !== void 0 ? Math.max(a, n.order) : a, 0);
494
+ return e.forEach((a) => {
495
+ a.order === void 0 && (l += 1, a.order = l);
496
+ }), e.sort((a, n) => a.order - n.order), e;
497
+ }
498
+ const Ma = {
499
+ modalScroll: be.modalScroll,
500
+ searchMap: {
501
+ type: Array,
502
+ default: () => []
503
+ },
504
+ loading: be.loading,
505
+ cardBordered: be.cardBordered,
506
+ prefixCls: String,
507
+ defaultState: Object,
508
+ onSearch: Function
509
+ }, Ea = /* @__PURE__ */ Te({
510
+ name: "ProTableForm",
511
+ inheritAttrs: !1,
512
+ props: Ma,
513
+ setup(e, {
514
+ slots: l,
515
+ expose: a
516
+ }) {
517
+ const {
518
+ wrapSSR: n,
519
+ hashId: s
520
+ } = Xe("ProTableForm", [Da], e.prefixCls), u = mt(), d = Ba(), {
521
+ autoRequest: h,
522
+ searchConfig: y,
523
+ searchActions: P
524
+ } = _e(), {
525
+ formState: o,
526
+ resetFormState: R,
527
+ changeFormState: v
528
+ } = Pa(e.defaultState || {}, e.searchMap || []), f = O(y.value?.collapsed ?? y.value?.defaultCollapsed), p = S(() => de(P.value?.reset) ? P.value?.reset : !h.value), w = S(() => K(y.value?.span)), F = S(() => y.value?.label);
529
+ z(() => y.value?.collapsed, (t) => {
530
+ f.value = t;
531
+ });
532
+ function K(t) {
533
+ let r = 4;
534
+ for (let C = 0; C < qe.length; C += 1) {
535
+ const b = qe[C].value;
536
+ if (d.value[b]) {
537
+ r = t?.[b] || (e.modalScroll ? 3 : qe[C].span);
538
+ break;
539
+ }
540
+ }
541
+ return r;
542
+ }
543
+ const le = (t) => {
544
+ f.value = t;
545
+ }, fe = (t, r, C) => (t + 1) % r === 0 ? {
546
+ ...C,
547
+ marginRight: 0
548
+ } : {
549
+ ...C,
550
+ marginRight: "2%"
551
+ }, oe = () => {
552
+ const t = xt(o), r = e.searchMap.find((g) => g.valueType === "text") || "", C = e.searchMap.find((g) => g.valueType === "dateRange") || "", b = e.searchMap.find((g) => g.valueType === "treeSelect");
553
+ return r && (t[r.name] = o[r.name] || r.initialValue || ""), C && (t[C.rangeStartName || "start"] = t[C.name] ? t[C.name][0] : "", t[C.rangeEndName || "end"] = t[C.name] ? t[C.name][1] : "", delete t[C.name]), b && (b?.name && L(o[b?.name]) && (t[b.name] = o[b.name].length ? o[b.name].map((g) => g[b.valueKey === "text" ? "label" : "value"]).join() : ""), b?.name && L(t[b?.name]) && (t[b.name] = t[b.name].length ? t[b.name].map((g) => g[b.valueKey === "text" ? "label" : "value"]) : "")), t;
554
+ }, G = (t = !1, r) => {
555
+ (h.value || t) && e.onSearch?.(oe(), t ? r ? "reset" : "submit" : void 0);
556
+ }, I = (t, r, C) => {
557
+ const b = o[r.name || ""];
558
+ switch (r.valueType) {
559
+ case "text":
560
+ v(r.name || "", t || "");
561
+ break;
562
+ case "number":
563
+ v(r.name || "", t || void 0);
564
+ break;
565
+ case "numberRange":
566
+ Be(C?.key) && (b[C.key] = t, v(r.name || "", b || []));
567
+ break;
568
+ case "select":
569
+ v(r.name || "", t ?? void 0);
570
+ break;
571
+ case "treeSelect":
572
+ v(r.name || "", t ?? (r.field?.treeCheckable || r.field?.multiple ? [] : null));
573
+ break;
574
+ case "date":
575
+ v(r.name || "", t ? ce(t, Fe(r.valueFormat, r.showTime)) : null);
576
+ break;
577
+ case "dateWeek":
578
+ v(r.name || "", t ? ce(t, "YYYY-wo") : null);
579
+ break;
580
+ case "dateMonth":
581
+ v(r.name || "", t ? ce(t, "YYYY-MM") : null);
582
+ break;
583
+ case "dateQuarter":
584
+ v(r.name || "", t ? ce(t, "YYYY-QQ") : null);
585
+ break;
586
+ case "dateYear":
587
+ v(r.name || "", t ? ce(t, "YYYY") : null);
588
+ break;
589
+ case "dateRange":
590
+ v(r.name || "", t && L(t) && t.length === 2 ? ct(t, Fe(r.valueFormat, r.showTime)) : null);
591
+ break;
592
+ case "time":
593
+ v(r.name || "", t ? ce(t, r.valueFormat || "HH:mm:ss") : null);
594
+ break;
595
+ }
596
+ r.valueType === "treeSelect" || r.valueType, G();
597
+ }, ue = (t = !0) => {
598
+ R(), G(!0, t);
599
+ };
600
+ a({
601
+ getFormState: () => oe(),
602
+ resetForm: ue
603
+ });
604
+ const A = () => {
605
+ const t = u?.emptyText?.value;
606
+ if (t) {
607
+ const r = V(t), C = r ? ft(t) : ht(t || []);
608
+ return c("div", {
609
+ class: Z(`${e.prefixCls}-search-empty-text`, s.value)
610
+ }, [r ? C : L(C) ? C.map((b) => Qe(b)) : void 0]);
611
+ }
612
+ }, U = () => (!h.value || p.value) && c(ut, null, {
613
+ default: () => [p.value && c(st, {
614
+ onClick: () => ue()
615
+ }, {
616
+ default: () => [P.value?.resetText || "重置"]
617
+ }), !h.value && c(st, {
618
+ loading: e.loading,
619
+ type: "primary",
620
+ onClick: () => G(!0)
621
+ }, {
622
+ default: () => [P.value?.searchText || "查询"]
623
+ })]
624
+ }), ne = ({
625
+ formItemStyle: t,
626
+ collapsed: r,
627
+ collapseRender: C = !0
628
+ }) => c("div", {
629
+ style: t,
630
+ class: `${e.prefixCls}-search-collapse-buttons ${s.value}`
631
+ }, [c(ut, {
632
+ size: 16
633
+ }, {
634
+ default: () => [U(), y.value?.collapseRender !== !1 && C && c(Ye, null, [typeof y.value?.collapseRender == "function" ? y.value?.collapseRender(r) : c("span", {
635
+ class: `${e.prefixCls}-a ${s.value}`,
636
+ onClick: () => le(!r)
637
+ }, [r ? "收起" : "展开", r ? c(Vt, null, null) : c(Kt, null, null)])])]
638
+ })]);
639
+ function J(t) {
640
+ return t === void 0 ? void 0 : t ? c(St, {
641
+ size: "small",
642
+ indicator: u?.indicator?.value
643
+ }, null) : A();
644
+ }
645
+ function ee(t, r) {
646
+ return c(Fa, M(t.request, {
647
+ loading: t.loading,
648
+ notFoundContent: J
649
+ }), Oa(r) ? r : {
650
+ default: () => [r]
651
+ });
652
+ }
653
+ const me = (t) => {
654
+ let r;
655
+ const C = h.value ? Ne.Search : Ne, b = Le(t.field || {}, "rules");
656
+ let g = null;
657
+ switch (t.valueType) {
658
+ case "text":
659
+ r = c(C, M({
660
+ style: {
661
+ width: "100%"
662
+ },
663
+ value: o[t.name],
664
+ placeholder: t.placeholder || "请输入",
665
+ allowClear: t.allowClear ?? !0,
666
+ onChange: (i) => I(i.target.value, t),
667
+ onSearch: (i) => G()
668
+ }, b), null);
669
+ break;
670
+ case "number":
671
+ r = c(He, M({
672
+ style: {
673
+ width: "100%"
674
+ },
675
+ value: o[t.name],
676
+ placeholder: t.placeholder || "请输入",
677
+ onChange: (i) => I(i, t)
678
+ }, b), null);
679
+ break;
680
+ case "numberRange":
681
+ r = c(Ne.Group, {
682
+ compact: !0,
683
+ class: Z(s.value, `${e.prefixCls}-search-input-compact`)
684
+ }, {
685
+ default: () => [c(He, {
686
+ value: o[t.name]?.[0],
687
+ onChange: (i) => I(i, t, {
688
+ key: 0
689
+ }),
690
+ placeholder: L(t.placeholder) && t.placeholder?.[0] || "请输入"
691
+ }, null), c(Ne, {
692
+ disabled: !0,
693
+ placeholder: "~"
694
+ }, null), c(He, {
695
+ value: o[t.name]?.[1],
696
+ onChange: (i) => I(i, t, {
697
+ key: 1
698
+ }),
699
+ placeholder: L(t.placeholder) && t.placeholder?.[1] || "请输入"
700
+ }, null)]
701
+ });
702
+ break;
703
+ case "select":
704
+ g = c(ga, M({
705
+ style: {
706
+ width: "100%"
707
+ },
708
+ value: t.loading ? void 0 : o[t.name],
709
+ optionFilterProp: "label",
710
+ placeholder: t.placeholder || "请选择",
711
+ showSearch: t.showSearch,
712
+ allowClear: t.allowClear ?? !0,
713
+ getPopupContainer: (i) => i && i.parentNode ? i.parentNode : i,
714
+ notFoundContent: J(t.loading),
715
+ onChange: (i) => I(i, t),
716
+ options: t.loading ? [] : t?.valueEnum || []
717
+ }, b), null);
718
+ break;
719
+ case "treeSelect":
720
+ g = c(pa, M({
721
+ style: {
722
+ width: "100%"
723
+ },
724
+ value: o[t.name],
725
+ placeholder: t.placeholder || "请选择",
726
+ allowClear: t.allowClear ?? !0,
727
+ treeData: t.loading ? [] : t.valueEnum || [],
728
+ getPopupContainer: (i) => i && i.parentNode ? i.parentNode : i,
729
+ notFoundContent: J(t.loading),
730
+ onChange: (i) => I(i, t)
731
+ }, b), null);
732
+ break;
733
+ case "date":
734
+ r = c(Ct, M({
735
+ style: {
736
+ width: "100%"
737
+ },
738
+ value: o[t.name] ? W(o[t.name]) : void 0,
739
+ getPopupContainer: (i) => i && i.parentNode ? i.parentNode : i,
740
+ placeholder: t.placeholder || "请选择",
741
+ allowClear: t.allowClear ?? !0,
742
+ format: Fe(t.valueFormat, t.showTime),
743
+ showTime: t.showTime,
744
+ showToday: t.showToday || !0,
745
+ onChange: (i) => I(i, t)
746
+ }, b), null);
747
+ break;
748
+ case "dateWeek":
749
+ r = c(Na, M({
750
+ style: {
751
+ width: "100%"
752
+ },
753
+ value: o[t.name] ? W(o[t.name], t.valueFormat || "YYYY-wo") : void 0,
754
+ getPopupContainer: (i) => i && i.parentNode ? i.parentNode : i,
755
+ allowClear: t.allowClear ?? !0,
756
+ placeholder: t.placeholder || "请选择",
757
+ onChange: (i) => I(i, t)
758
+ }, b), null);
759
+ break;
760
+ case "dateMonth":
761
+ r = c(Ia, M({
762
+ style: {
763
+ width: "100%"
764
+ },
765
+ value: o[t.name] ? W(o[t.name], t.valueFormat || "YYYY-MM") : void 0,
766
+ getPopupContainer: (i) => i && i.parentNode ? i.parentNode : i,
767
+ allowClear: t.allowClear ?? !0,
768
+ placeholder: t.placeholder || "请选择",
769
+ onChange: (i) => I(i, t)
770
+ }, b), null);
771
+ break;
772
+ case "dateQuarter":
773
+ r = c(za, M({
774
+ style: {
775
+ width: "100%"
776
+ },
777
+ value: o[t.name] ? W(o[t.name], t.valueFormat || "YYYY-QQ") : void 0,
778
+ getPopupContainer: (i) => i && i.parentNode ? i.parentNode : i,
779
+ allowClear: t.allowClear ?? !0,
780
+ placeholder: t.placeholder || "请选择",
781
+ onChange: (i) => I(i, t)
782
+ }, b), null);
783
+ break;
784
+ case "dateYear":
785
+ r = c(Aa, M({
786
+ style: {
787
+ width: "100%"
788
+ },
789
+ value: o[t.name] ? W(o[t.name], t.valueFormat || "YYYY") : void 0,
790
+ getPopupContainer: (i) => i && i.parentNode ? i.parentNode : i,
791
+ allowClear: t.allowClear ?? !0,
792
+ placeholder: t.placeholder || "请选择",
793
+ onChange: (i) => I(i, t)
794
+ }, b), null);
795
+ break;
796
+ case "dateRange":
797
+ r = c(ja, M({
798
+ style: {
799
+ width: "100%"
800
+ },
801
+ value: o[t.name] && L(o[t.name]) && o[t.name]?.length === 2 ? ct(o[t.name], Fe(t.valueFormat, t.showTime), "dayjs") : void 0,
802
+ getPopupContainer: (i) => i && i.parentNode ? i.parentNode : i,
803
+ placeholder: t.placeholder || ["开始日期", "结束日期"],
804
+ format: Fe(t.valueFormat, t.showTime),
805
+ showTime: t.showTime,
806
+ onChange: (i) => I(i, t)
807
+ }, b), null);
808
+ break;
809
+ case "time":
810
+ r = c(ha, M({
811
+ style: {
812
+ width: "100%"
813
+ },
814
+ value: o[t.name] ? W(o[t.name], t.valueFormat || "HH:mm:ss") : void 0,
815
+ getPopupContainer: (i) => i && i.parentNode ? i.parentNode : i,
816
+ placeholder: t.placeholder || "请选择",
817
+ allowClear: t.allowClear || t.allowClear === !1 ? t.allowClear : !0,
818
+ use12Hours: t.use12Hours,
819
+ format: t.valueFormat || "HH:mm:ss",
820
+ onChange: (i) => I(i, t)
821
+ }, b), null);
822
+ break;
823
+ }
824
+ return t.valueType && ["select", "treeSelect"].includes(t.valueType) && (r = t.request ? ee(t, g) : g), r;
825
+ }, ve = ({
826
+ formItemStyle: t = {},
827
+ item: r
828
+ }) => {
829
+ const C = V(r) ? r.props?.label : r.label, b = (V(r) ? r.props?.labelWidth : r.labelWidth) || F.value?.width, g = (V(r) ? r.props?.labelAlign : r.labelAlign) || F.value?.align;
830
+ return c("div", {
831
+ class: `${e.prefixCls}-search-item`,
832
+ style: {
833
+ ...t,
834
+ gap: F.value?.gap ? it(F.value?.gap) : void 0
835
+ }
836
+ }, [C && c("div", {
837
+ class: Z(`${e.prefixCls}-search-item-label`, F.value?.colon === !1 && `${e.prefixCls}-search-item-label-no-colon`, g && `${e.prefixCls}-search-item-label-${g}`),
838
+ style: {
839
+ width: b ? it(b) : void 0
840
+ }
841
+ }, [C]), c("div", {
842
+ class: Z(`${e.prefixCls}-search-item-children`)
843
+ }, [V(r) ? r : me(r)])]);
844
+ }, Q = () => {
845
+ let t = l.default?.() || [];
846
+ t.length === 1 && t[0].type === "template" && (t = t[0]?.children || []);
847
+ const r = Ya([...e.searchMap, ...t.map((b) => ({
848
+ ...b,
849
+ order: b.props?.order || void 0
850
+ }))]), C = {
851
+ width: `${(100 - (w.value - 1) * 2) / w.value}%`
852
+ };
853
+ return r.map((b, g) => {
854
+ const i = fe(g, w.value, C);
855
+ return r.length < w.value || f.value ? c(Ye, null, [ve({
856
+ formItemStyle: i,
857
+ item: b
858
+ }), g === r.length - 1 && ne({
859
+ formItemStyle: {
860
+ flex: 1,
861
+ justifyContent: "flex-end"
862
+ },
863
+ collapsed: f.value,
864
+ collapseRender: !!f.value
865
+ })]) : c(Ye, null, [g < w.value - 1 && ve({
866
+ formItemStyle: i,
867
+ item: b
868
+ }), g === w.value - 1 && (w.value - 1 === 0 || r.length === w.value) && ve({
869
+ formItemStyle: i,
870
+ item: b
871
+ }), g === w.value - 1 && r.length >= w.value && ne({
872
+ formItemStyle: {
873
+ flex: 1,
874
+ justifyContent: "flex-end"
875
+ },
876
+ collapsed: !1,
877
+ collapseRender: r.length !== w.value
878
+ })]);
879
+ });
880
+ };
881
+ return () => {
882
+ const t = e.cardBordered && `${e.prefixCls}-search-border`;
883
+ return n(c("div", {
884
+ class: Z(s.value, `${e.prefixCls}-search`, t, s.value, y.value?.className)
885
+ }, [Q()]));
886
+ };
887
+ }
888
+ }), La = (e) => ({
889
+ [`${e.componentCls}`]: {
890
+ lineHeight: 1,
891
+ "&-container": {
892
+ display: "flex",
893
+ alignItems: "center",
894
+ justifyContent: "space-between",
895
+ gap: e.padding,
896
+ paddingBottom: e.padding,
897
+ "&-mobile": {
898
+ flexDirection: "column",
899
+ flexWrap: "wrap",
900
+ alignItems: "flex-start",
901
+ [`${e.componentCls}-left`]: {
902
+ flexWrap: "wrap",
903
+ maxWidth: "100%"
904
+ },
905
+ [`${e.componentCls}-right`]: {
906
+ width: "100%"
907
+ }
908
+ }
909
+ },
910
+ "&-title": {
911
+ display: "flex",
912
+ alignItems: "center",
913
+ justifyContent: "flex-start",
914
+ color: e.colorTextHeading,
915
+ fontWeight: "500",
916
+ fontSize: e.fontSizeLG
917
+ },
918
+ "&-left": {
919
+ display: "flex",
920
+ flexWrap: "wrap",
921
+ alignItems: "center",
922
+ gap: e.marginXS,
923
+ justifyContent: "flex-start",
924
+ [`${e.antCls}-tabs`]: {
925
+ width: "100%"
926
+ },
927
+ "&-has-tabs": {
928
+ overflow: "hidden"
929
+ }
930
+ },
931
+ "&-right": {
932
+ flex: 1,
933
+ display: "flex",
934
+ flexWrap: "wrap",
935
+ justifyContent: "flex-end",
936
+ gap: e.marginXS
937
+ },
938
+ "&-setting-items": {
939
+ display: "flex",
940
+ gap: e.marginXS,
941
+ lineHeight: "32px",
942
+ alignItems: "center"
943
+ },
944
+ "&-setting-item": {
945
+ color: e.colorIconHover,
946
+ fontSize: e.fontSizeLG,
947
+ cursor: "pointer",
948
+ "> span": { display: "block", width: "100%", height: "100%" },
949
+ "&:hover": {
950
+ color: e.colorPrimary
951
+ }
952
+ }
953
+ }
954
+ });
955
+ function Wa(e) {
956
+ if (V(e))
957
+ return e;
958
+ if (e) {
959
+ const l = e, {
960
+ icon: a,
961
+ tooltip: n,
962
+ onClick: s,
963
+ key: u
964
+ } = l;
965
+ return a && n ? c(we, {
966
+ title: n,
967
+ key: u
968
+ }, {
969
+ default: () => [c("span", {
970
+ key: u,
971
+ onClick: () => {
972
+ s && s(u);
973
+ }
974
+ }, [a])]
975
+ }) : a;
976
+ }
977
+ return null;
978
+ }
979
+ const Tt = /* @__PURE__ */ Te({
980
+ props: {
981
+ actions: [Array],
982
+ settings: [Array],
983
+ titleTip: be.titleTip,
984
+ prefixCls: String,
985
+ headerTitle: be.headerTitle,
986
+ titleTipText: be.titleTipText,
987
+ actionsPlacement: String
988
+ },
989
+ setup(e) {
990
+ const {
991
+ wrapSSR: l,
992
+ hashId: a
993
+ } = Xe("ListToolBar", [La], e.prefixCls), n = vt(), {
994
+ isMobile: s
995
+ } = _e(), u = S(() => !!(e.titleTip || e.headerTitle)), d = Pe(() => {
996
+ if (!Array.isArray(e.actions) || e.actions?.length < 1)
997
+ return {
998
+ left: null,
999
+ right: null
1000
+ };
1001
+ const v = e.actions.filter((p) => V(p)).filter((p) => (p?.props?.placement || e.actionsPlacement) === "left"), f = e.actions.filter((p) => V(p)).filter((p) => (p?.props?.placement || e.actionsPlacement) === "right");
1002
+ return {
1003
+ left: v.length ? c("div", {
1004
+ class: `${e.prefixCls}-actions ${a.value}`
1005
+ }, [v]) : null,
1006
+ right: f.length ? c("div", {
1007
+ class: `${e.prefixCls}-actions ${a.value}`
1008
+ }, [f]) : null
1009
+ };
1010
+ }, [() => e.actions, () => e.actionsPlacement]), h = S(() => !!(e.titleTip || e.headerTitle || d.value.left)), y = S(() => !!(e.settings?.length || d.value.right)), P = Pe(() => {
1011
+ if (!h.value && y.value)
1012
+ return c("div", {
1013
+ class: `${e.prefixCls}-left ${a.value}`
1014
+ }, null);
1015
+ const v = d.value.left;
1016
+ return u.value ? c("div", {
1017
+ class: `${e.prefixCls}-left ${a.value}`
1018
+ }, [c("div", {
1019
+ class: `${e.prefixCls}-title ${a.value}`
1020
+ }, [e.headerTitle, e.titleTip && c(we, {
1021
+ title: e.titleTipText
1022
+ }, {
1023
+ default: () => [de(e.titleTip) && e.titleTip ? c(Gt, null, null) : e.titleTip]
1024
+ })]), v]) : c("div", {
1025
+ class: `${e.prefixCls}-left ${a.value}`
1026
+ }, [v]);
1027
+ }, [() => h.value, () => y.value, () => u.value, () => e.prefixCls, () => e.headerTitle, () => e.titleTipText, () => e.titleTip]), o = Pe(() => {
1028
+ if (!y.value) return null;
1029
+ const v = d.value.right;
1030
+ return c("div", {
1031
+ class: `${e.prefixCls}-right ${a.value}`,
1032
+ style: {
1033
+ alignItems: n.value.lg ? "center" : "flex-end",
1034
+ flexDirection: n.value.lg ? "row" : "column"
1035
+ }
1036
+ }, [v, e.settings?.length ? c("div", {
1037
+ class: Z(`${e.prefixCls}-setting-items`, a.value)
1038
+ }, [e.settings.map((f, p) => {
1039
+ const w = Wa(f);
1040
+ return c("div", {
1041
+ key: p,
1042
+ class: Z(`${e.prefixCls}-setting-item`, a.value)
1043
+ }, [w]);
1044
+ })]) : null]);
1045
+ }, [() => n.value, () => y.value, () => e.prefixCls, () => u.value, () => d.value, () => e.settings]), R = Pe(() => {
1046
+ if (!y.value && !h.value) return null;
1047
+ const v = {
1048
+ [`${a.value}`]: !0,
1049
+ [`${e.prefixCls}-container`]: !0,
1050
+ [`${e.prefixCls}-container-mobile`]: s.value
1051
+ };
1052
+ return c("div", {
1053
+ class: v
1054
+ }, [P.value, o.value]);
1055
+ }, [() => s.value, () => h.value, () => y.value, () => P.value, () => e.prefixCls, () => o.value]);
1056
+ return () => l(c("div", {
1057
+ class: `${e.prefixCls} ${a.value}`
1058
+ }, [R.value]));
1059
+ }
1060
+ });
1061
+ Tt.inheritAttrs = !1;
1062
+ const Rt = /* @__PURE__ */ Te({
1063
+ setup() {
1064
+ const {
1065
+ isFullscreen: e
1066
+ } = bt();
1067
+ return () => e.value ? c(we, {
1068
+ title: "退出全屏"
1069
+ }, {
1070
+ default: () => [c(Qt, null, null)]
1071
+ }) : c(we, {
1072
+ title: "全屏"
1073
+ }, {
1074
+ default: () => [c(Xt, null, null)]
1075
+ });
1076
+ }
1077
+ });
1078
+ function ka() {
1079
+ return {
1080
+ reload: {
1081
+ text: "刷新",
1082
+ icon: c(_t, null, null)
1083
+ },
1084
+ fullScreen: {
1085
+ text: "全屏",
1086
+ icon: c(Rt, null, null)
1087
+ }
1088
+ };
1089
+ }
1090
+ function Ha(e, l) {
1091
+ return gt(e).filter((a) => a).map((a) => {
1092
+ const n = e[a];
1093
+ if (!n)
1094
+ return null;
1095
+ let s = n === !0 ? l[a] : () => n?.();
1096
+ if (typeof s != "function" && (s = () => {
1097
+ }), a === "fullScreen")
1098
+ return c("span", {
1099
+ key: a,
1100
+ onClick: s
1101
+ }, [c(Rt, null, null)]);
1102
+ const u = ka()[a];
1103
+ return u ? c("span", {
1104
+ key: a,
1105
+ onClick: s
1106
+ }, [c(we, {
1107
+ title: u.text
1108
+ }, {
1109
+ default: () => [u.icon]
1110
+ })]) : null;
1111
+ }).filter((a) => a);
1112
+ }
1113
+ const qa = {
1114
+ options: [Boolean, Object, Array],
1115
+ actionsPlacement: [String],
1116
+ titleTip: [Function, Boolean, Object, String],
1117
+ settingExtra: [Function, Boolean, Object, Array],
1118
+ titleTipText: [String],
1119
+ actionsRender: [Array],
1120
+ headerTitle: [Function, Boolean, Object, Array, String]
1121
+ }, Va = /* @__PURE__ */ Te({
1122
+ props: qa,
1123
+ inheritAttrs: !1,
1124
+ setup(e) {
1125
+ const l = pt({
1126
+ suffixCls: "table-list-toolbar",
1127
+ isPor: !0
1128
+ }), {
1129
+ action: a
1130
+ } = _e(), n = Pe(() => {
1131
+ const s = {
1132
+ reload: () => a?.reload(),
1133
+ fullScreen: () => a?.toggle()
1134
+ }, u = k(e.options) ? e.options : {};
1135
+ return Ha({
1136
+ reload: () => a?.reload(),
1137
+ fullScreen: () => a?.toggle(),
1138
+ ...u
1139
+ }, {
1140
+ ...s
1141
+ });
1142
+ }, [() => e.options]);
1143
+ return () => {
1144
+ const s = e.actionsRender || [];
1145
+ return c(Tt, {
1146
+ prefixCls: l,
1147
+ headerTitle: e.headerTitle,
1148
+ actions: s,
1149
+ actionsPlacement: e.actionsPlacement,
1150
+ settings: T(n),
1151
+ titleTip: e.titleTip,
1152
+ titleTipText: e.titleTipText
1153
+ }, null);
1154
+ };
1155
+ }
1156
+ });
1157
+ function Ka(e) {
1158
+ return Wt();
1159
+ }
1160
+ function Ga(e, l = !0, a) {
1161
+ Ka() ? Et(e, a) : l ? e() : Lt(e);
1162
+ }
1163
+ function Qa(e) {
1164
+ const l = S(() => e.draggable), a = S(() => e.neverScroll), n = S(() => e.autoScroll);
1165
+ return {
1166
+ draggable: l,
1167
+ neverScroll: a,
1168
+ autoScroll: n
1169
+ };
1170
+ }
1171
+ function Xa({ scroll: e, columns: l, breakpoint: a, draggable: n, autoScroll: s, neverScroll: u }) {
1172
+ const d = O([]);
1173
+ z([
1174
+ () => e.value,
1175
+ () => l.value,
1176
+ () => a.value,
1177
+ () => n.value,
1178
+ () => a.value,
1179
+ () => s.value,
1180
+ () => u.value
1181
+ ], () => {
1182
+ const f = P(ye(l.value));
1183
+ Ge(f, ye(d.value)) || (d.value = _(f));
1184
+ }, {
1185
+ deep: !0,
1186
+ immediate: !0
1187
+ });
1188
+ const h = S(() => {
1189
+ const f = y(T(d).filter((F) => F.fixed === "left")), p = y(T(d).filter((F) => F.fixed !== "left" && F.fixed !== "right")), w = y(T(d).filter((F) => F.fixed === "right"));
1190
+ return [
1191
+ ...f,
1192
+ ...p,
1193
+ ...w
1194
+ ];
1195
+ });
1196
+ function y(f) {
1197
+ return f.sort((p, w) => ta(p, w, "order", 0));
1198
+ }
1199
+ function P(f) {
1200
+ return _(f).map((p, w) => {
1201
+ if (p.dataIndex === "action" || w === f.length - 1 ? p.resizable = !1 : p.resizable = de(p.resizable) ? p.resizable : !!(Be(p.width) && T(n)), !p.width || T(u))
1202
+ return p;
1203
+ if (p.dataIndex === "action" && T(s))
1204
+ if (T(e)?.x || !T(a))
1205
+ p.width = p.width || 100, p.fixed = "right";
1206
+ else {
1207
+ const F = T(l).find((K) => K.dataIndex === p.dataIndex);
1208
+ p.width = F?.width || "", p.fixed = F?.fixed;
1209
+ }
1210
+ return p;
1211
+ });
1212
+ }
1213
+ function o(f, p) {
1214
+ d.value = d.value.map((w) => (w.uuid === p.uuid && (w.width = f), w));
1215
+ }
1216
+ function R(f) {
1217
+ if (f.length <= 0) {
1218
+ d.value = [];
1219
+ return;
1220
+ }
1221
+ Ge(P(f), ye(d.value)) || (d.value = P(f));
1222
+ }
1223
+ function v(f) {
1224
+ R(_(ye(l.value)).map((p) => {
1225
+ const w = p.key ? {
1226
+ show: f[p.key]?.show,
1227
+ fixed: f[p.key]?.fixed,
1228
+ order: f[p.key]?.order
1229
+ } : {};
1230
+ return { ...p, ...w };
1231
+ }));
1232
+ }
1233
+ return {
1234
+ breakpoint: a,
1235
+ proColumns: h,
1236
+ setColumns: R,
1237
+ changeColumns: v,
1238
+ resizeColumnWidth: o
1239
+ };
1240
+ }
1241
+ function _a(e, l) {
1242
+ const a = S(() => l), n = O(), s = O(e);
1243
+ function u() {
1244
+ n.value && clearTimeout(n.value);
1245
+ }
1246
+ async function d(...h) {
1247
+ return a.value === 0 || a.value === void 0 ? s.value(...h) : (u(), new Promise(async (y) => {
1248
+ h[0]?.immediate ? y(await s.value(...h)) : n.value = setTimeout(async () => {
1249
+ y(await s.value(...h));
1250
+ }, a.value);
1251
+ }));
1252
+ }
1253
+ return Jt(u), {
1254
+ cancel: u,
1255
+ run: d
1256
+ };
1257
+ }
1258
+ function Ua(e) {
1259
+ const l = S(() => e.rowKey), a = S(() => e.polling), n = S(() => e.debounceTime), s = S(() => e.dataSource);
1260
+ return {
1261
+ rowKey: l,
1262
+ polling: a,
1263
+ request: e.request,
1264
+ postData: e.postData,
1265
+ debounceTime: n,
1266
+ dataSource: s
1267
+ };
1268
+ }
1269
+ function Ja({ rowKey: e, polling: l, request: a, postData: n, dataSource: s, waitRequest: u, debounceTime: d }, { search: h, columns: y, loading: P, setLoading: o, setColumns: R, removeRowKeys: v, syncSelectedRows: f, formState: p, setPagination: w, paginationInfo: F, onBeforeSearchSubmit: K, hasCustomRender: le }, fe) {
1270
+ const oe = O(), G = O(!0), I = O(!1), ue = O(!1), A = O([]), U = O(), ne = S(() => k(h.value) ? h.value?.autoRequest ?? !0 : !0), J = async (g = {}) => {
1271
+ const { pagination: i, filters: B = {}, sorter: X = {}, removeKeys: se = [], isPolling: te = !1, extra: re } = g;
1272
+ if (!a || !De(a) || T(u) && P.value || I.value)
1273
+ return s.value || [];
1274
+ if (I.value = !0, !te || T(u) || G.value ? o(!0) : t(!0), T(u)) {
1275
+ G.value = !1, I.value = !1;
1276
+ return;
1277
+ }
1278
+ i && w(i);
1279
+ try {
1280
+ let E = {};
1281
+ if (de(i) && !i || de(F))
1282
+ E = {};
1283
+ else {
1284
+ const { current: ae = 1, pageSize: pe = 10, total: ge } = T(F) || {};
1285
+ E.pageNum = na({ current: ae, pageSize: pe, total: ge }, se.length), se.length && v(se), E.pageSize = pe;
1286
+ }
1287
+ const he = k(X) ? Object.keys(X).length ? [X] : [] : X;
1288
+ R(T(y).map((ae) => {
1289
+ const pe = he.find((ge) => (ge?.columnKey || ge?.field) === ae.dataIndex);
1290
+ return {
1291
+ ...ae,
1292
+ sortOrder: pe?.order
1293
+ };
1294
+ }));
1295
+ let Ce = {
1296
+ ...E,
1297
+ ...g.params,
1298
+ ...ye(p)
1299
+ };
1300
+ K && De(K) && (Ce = await K({
1301
+ params: Ce,
1302
+ sorter: he,
1303
+ filter: B,
1304
+ extra: re
1305
+ }));
1306
+ let ie = [];
1307
+ const Se = await a?.({
1308
+ params: _(ye(Ce)),
1309
+ sorter: he,
1310
+ filter: B,
1311
+ extra: re
1312
+ });
1313
+ if (I.value = !1, Se && Se?.success) {
1314
+ ie = Se.data || [], n && De(n) && (ie = await n?.(ie)), f(ie);
1315
+ const ae = Se.total || ie?.length || 0;
1316
+ return ae !== T(F)?.total && w({
1317
+ total: ae || 0
1318
+ }), C(ie), ie;
1319
+ } else
1320
+ return [];
1321
+ } catch (E) {
1322
+ A.value === void 0 && C([]), fe("requestError", E);
1323
+ } finally {
1324
+ G.value = !1, o(!1);
1325
+ }
1326
+ return [];
1327
+ }, ee = _a(async (g) => {
1328
+ U.value && clearTimeout(U.value);
1329
+ const i = await J(g), B = aa(l.value, i);
1330
+ return B && !oe.value && (U.value = setTimeout(() => {
1331
+ ee.run({ ...g, isPolling: B });
1332
+ }, Math.max(B, 2e3))), i;
1333
+ }, d.value || 10);
1334
+ kt(() => {
1335
+ oe.value = !0, clearTimeout(U.value);
1336
+ }), Ht(() => {
1337
+ oe.value = !0, clearTimeout(U.value);
1338
+ }), z(() => l.value, () => {
1339
+ l.value ? ee.run({ isPolling: !0 }) : clearTimeout(U.value);
1340
+ }, { immediate: !0 }), z([() => u.value, () => s.value], () => {
1341
+ me();
1342
+ }, { deep: !0, immediate: !0 }), z(() => p, () => {
1343
+ ne.value && me();
1344
+ }, { deep: !0, immediate: !0 });
1345
+ function me() {
1346
+ a ? (!G.value || !l.value) && ee.run({ isPolling: !1 }) : C(s.value || []);
1347
+ }
1348
+ const ve = S(() => {
1349
+ if (le.value)
1350
+ return T(A);
1351
+ const g = y.value.filter((i) => i.show || i.show === void 0);
1352
+ return !T(A) || !g || g.length === 0 ? [] : T(A);
1353
+ }), Q = S(() => T(A).some((g) => L(g.children) && g.children.length > 0));
1354
+ function t(g) {
1355
+ ue.value = g;
1356
+ }
1357
+ function r(g, i, B, X) {
1358
+ ee.run({ pagination: g, filters: i, sorter: B, extra: X, isPolling: !1 }), fe("change", g, i, B, X);
1359
+ }
1360
+ function C(g) {
1361
+ const i = la(_(g), T(F.value));
1362
+ if (!Ge(i, A.value) && (A.value = i, !a || !De(a))) {
1363
+ const B = i.length || 0;
1364
+ B !== T(F)?.total && w({
1365
+ total: B
1366
+ });
1367
+ }
1368
+ }
1369
+ return {
1370
+ dataSource: ve,
1371
+ isTreeDataRef: Q,
1372
+ reSetDataList: C,
1373
+ changeDataValue: (g) => {
1374
+ const { key: i, row: B, value: X, type: se = "update" } = g, te = i ?? e.value, re = B?.[te] ?? X;
1375
+ switch (!B && se !== "delete" && console.warn("row is required"), se) {
1376
+ case "update":
1377
+ te && re && B && (A.value = A.value.map((E) => re === E[te] ? xe(E, B) : E));
1378
+ break;
1379
+ case "push":
1380
+ B && A.value.push(B);
1381
+ break;
1382
+ case "unshift":
1383
+ B && A.value.unshift(B);
1384
+ break;
1385
+ case "delete":
1386
+ te && (A.value = A.value.filter((E) => X !== E[te]));
1387
+ break;
1388
+ }
1389
+ },
1390
+ handleTableChange: r,
1391
+ reload: async (g) => {
1392
+ Me(a) ? await ee.run({ ...g, isPolling: !1 }) : fe("reload");
1393
+ }
1394
+ };
1395
+ }
1396
+ function Za(e) {
1397
+ const l = O(a(e.loading.value));
1398
+ z(() => e.loading.value, (s) => {
1399
+ l.value = a(s, l.value);
1400
+ });
1401
+ function a(s, u = !1) {
1402
+ return de(s) ? s : k(s) ? s?.spinning ?? u : u;
1403
+ }
1404
+ function n(s) {
1405
+ l.value = s;
1406
+ }
1407
+ return [l, n];
1408
+ }
1409
+ const ze = {
1410
+ current: 1,
1411
+ pageSize: 10,
1412
+ size: "default",
1413
+ showQuickJumper: !0,
1414
+ showSizeChanger: !0,
1415
+ pageSizeOptions: ["10", "20", "50", "100"]
1416
+ };
1417
+ function el({
1418
+ pagination: e,
1419
+ pageItemRender: l
1420
+ }) {
1421
+ const a = O({
1422
+ ...ze
1423
+ }), n = Oe({
1424
+ pageNum: ze.current,
1425
+ pageSize: ze.pageSize
1426
+ });
1427
+ z(() => e.value, () => {
1428
+ if (e.value === !1) {
1429
+ a.value = !1;
1430
+ return;
1431
+ }
1432
+ const u = De(l) ? {
1433
+ itemRender: ({
1434
+ page: h,
1435
+ type: y,
1436
+ originalElement: P
1437
+ }) => l ? l({
1438
+ page: h,
1439
+ type: y,
1440
+ originalElement: P
1441
+ }) : null
1442
+ } : null, d = {
1443
+ ...ze,
1444
+ ...e.value || {},
1445
+ ...u || {}
1446
+ };
1447
+ e.value?.showTotal || (d.showTotal = (h) => `共${h < d.pageSize ? 1 : Math.ceil(h / (d.pageSize || 10))}页 ${h}条记录`), a.value = d, Object.assign(n, {
1448
+ pageNum: d.current,
1449
+ pageSize: d.pageSize
1450
+ });
1451
+ }, {
1452
+ deep: 1,
1453
+ immediate: !0
1454
+ });
1455
+ function s(u) {
1456
+ if (k(a.value) && k(u)) {
1457
+ const d = {};
1458
+ Object.keys(u).forEach((h) => {
1459
+ Object.prototype.hasOwnProperty.call(u, h) && a.value[h] === u[h] || (d[h] = u[h]);
1460
+ }), Object.keys(d).length > 0 && (Object.assign(a.value, d), tl(d) && Object.assign(n, d));
1461
+ }
1462
+ }
1463
+ return {
1464
+ paginationInfo: a,
1465
+ requestPagination: n,
1466
+ setPagination: s
1467
+ };
1468
+ }
1469
+ function tl(e) {
1470
+ if (typeof e != "object" || e === null)
1471
+ return !1;
1472
+ const l = Object.keys(e);
1473
+ return l.length === 2 && l.includes("pageNum") && l.includes("pageSize");
1474
+ }
1475
+ function al(e, l) {
1476
+ const a = O([]), n = O([]);
1477
+ z(() => l.value?.selectedRows, (o) => {
1478
+ n.value = _(o || []);
1479
+ }, {
1480
+ deep: !0,
1481
+ immediate: !0
1482
+ }), z(() => l.value?.selectedRowKeys, (o) => {
1483
+ a.value = ia([...o || []]);
1484
+ }, {
1485
+ deep: !0,
1486
+ immediate: !0
1487
+ });
1488
+ const s = (o, R) => {
1489
+ const v = l.value?.type || "checkbox";
1490
+ e.value && (R ? o?.[e.value] && v === "checkbox" ? (a.value.push(o[e.value]), n.value.push(o)) : (a.value = [o[e.value]], n.value = [o]) : (a.value = a.value.filter((f) => f !== o[e.value]), n.value = n.value.filter((f) => f[e.value] !== o[e.value])));
1491
+ }, u = () => {
1492
+ l.value && l.value?.onChange?.(a.value, n.value);
1493
+ };
1494
+ return {
1495
+ selectedKeys: a,
1496
+ selectedItems: n,
1497
+ selectRowKey: s,
1498
+ selectAllRowKey: (o, R, v) => {
1499
+ e.value && (o ? R.map((f) => (a.value.every((p) => p !== f?.[e.value]) && f?.[e.value] && (a.value.push(f[e.value]), n.value.push(f)), f)) : v.map((f) => (a.value.includes(f?.[e.value]) && (a.value = a.value.filter((p) => p !== f[e.value]), n.value = n.value.filter((p) => p[e.value] !== f[e.value])), f)));
1500
+ },
1501
+ removeRowKeys: (o) => {
1502
+ a.value = a.value.filter((R) => !o.includes(R)), n.value = n.value.filter((R) => !o.includes(R?.[e.value || ""])), u();
1503
+ },
1504
+ changeRowKey: u,
1505
+ syncSelectedRows: (o) => {
1506
+ if (e.value && a.value.length !== n.value.length) {
1507
+ const R = n.value.map((f) => f[e.value]), v = a.value.filter((f) => !R.includes(f));
1508
+ o.forEach((f) => {
1509
+ v.includes(f[e.value]) && n.value.push(_(f));
1510
+ });
1511
+ }
1512
+ },
1513
+ clearAllRowKeys: () => {
1514
+ a.value = [], n.value = [], u();
1515
+ }
1516
+ };
1517
+ }
1518
+ function ll(e) {
1519
+ const l = {};
1520
+ return e.forEach((a) => {
1521
+ let n = a.initialValue;
1522
+ const s = ["select", "number"], u = ["date", "time", "dateRange"], d = ["treeSelect", "numberRange"];
1523
+ a.valueType ? !n && s.includes(a.valueType) ? n = void 0 : !n && u.includes(a.valueType) ? n = null : !n && d.includes(a.valueType) ? n = [] : n || (n = "") : n || (n = ""), a.name === "dateRange" ? (l[a.rangeStartName || "start"] = n ? n[0] : null, l[a.rangeEndName || "end"] = n ? n[1] : null) : a.name && (l[a.name] = n);
1524
+ }), l;
1525
+ }
1526
+ function nl({ searchMap: e, params: l, columns: a, setPagination: n }) {
1527
+ const s = Oe({ ...l.value || {} }), u = Oe({}), d = O([]);
1528
+ function h(o) {
1529
+ o.forEach((R) => {
1530
+ d.value.some((v) => v.name === R.name) ? d.value = d.value.map((v) => v.name === R.name ? {
1531
+ ...v,
1532
+ ...R
1533
+ } : v) : d.value.push(R);
1534
+ });
1535
+ }
1536
+ const y = (o) => {
1537
+ const R = [];
1538
+ if ((o === "all" || o === "searchMap") && (e.value?.forEach((v) => R.push(v)), h(R)), (o === "all" || o === "columns") && a.value?.length && (a.value && a.value.forEach((v) => {
1539
+ v.searchConfig && R.push(v.searchConfig);
1540
+ }), h(R)), o === "all" || o === "searchMap" || o === "columns") {
1541
+ n({ current: 1 });
1542
+ const v = ll(R);
1543
+ Ee(u, { ...v });
1544
+ for (const f in u)
1545
+ s[f] || (s[f] = v[f]);
1546
+ }
1547
+ (o === "all" || o === "params") && (n({ current: 1 }), Ee(s, {
1548
+ ...l.value || {}
1549
+ }));
1550
+ };
1551
+ qt(() => {
1552
+ y("all");
1553
+ }), z(() => l.value, () => {
1554
+ y("params");
1555
+ }, { deep: !0 }), z(() => e.value, () => {
1556
+ y("searchMap");
1557
+ }, { deep: !0 }), z(() => a.value, () => {
1558
+ y("columns");
1559
+ }, { deep: !0 });
1560
+ function P(o) {
1561
+ n({ current: 1 }), Ee(s, { ...o });
1562
+ }
1563
+ return { formDataRef: d, formState: s, defaultState: u, setFormState: P };
1564
+ }
1565
+ function il({ scroll: e, columns: l, autoScroll: a, modalScroll: n, neverScroll: s, rowSelection: u, screens: d, innerWidth: h, scrollBreakpoint: y }) {
1566
+ const P = S(() => y.value ? Be(y.value) ? h.value > y.value : yt(y.value) ? d.value?.[y.value] : d.value?.xl : d.value?.xl), o = S(() => {
1567
+ let v = 0;
1568
+ const f = T(u) ? 60 : 0, p = 150, w = _(T(l));
1569
+ w.forEach((le) => {
1570
+ v += Number.parseInt(String(le.width)) || 0;
1571
+ });
1572
+ const K = w.filter((le) => !Reflect.has(le, "width")).length;
1573
+ return K !== 0 && (v += K * p), f && (v += f), v;
1574
+ });
1575
+ return { proScroll: S(() => s.value ? {} : e.value && gt(e.value).length ? T(e) : n.value ? {
1576
+ y: e.value?.y || (d.value?.xl ? 400 : 235)
1577
+ } : a.value ? P.value ? {} : de(P.value) ? { x: o.value } : {} : {}), breakpoint: P };
1578
+ }
1579
+ function ol(e) {
1580
+ const l = O(e.size.value || "middle");
1581
+ z(() => e.size.value, (n) => l.value = n);
1582
+ function a(n) {
1583
+ l.value = n || l.value;
1584
+ }
1585
+ return [l, a];
1586
+ }
1587
+ const Ve = (e) => ({
1588
+ "&::-webkit-scrollbar": {
1589
+ width: 4,
1590
+ height: 4
1591
+ },
1592
+ "&::-webkit-scrollbar-thumb": {
1593
+ backgroundColor: e.colorTextTertiary,
1594
+ borderRadius: e.borderRadiusSM
1595
+ },
1596
+ "&::-webkit-scrollbar-track": {
1597
+ backgroundColor: e.colorTextTertiary,
1598
+ borderRadius: e.borderRadiusSM
1599
+ }
1600
+ }), ul = (e) => {
1601
+ const l = `${e.antCls}-table`;
1602
+ return {
1603
+ [e.componentCls]: {
1604
+ "&-a": {
1605
+ cursor: "pointer",
1606
+ color: e.colorPrimary,
1607
+ "&:hover": {
1608
+ color: e.colorPrimaryHover
1609
+ }
1610
+ },
1611
+ [`${l}`]: {
1612
+ [`${l}-cell-ellipsis`]: {
1613
+ overflow: "unset",
1614
+ whiteSpace: "unset"
1615
+ }
1616
+ },
1617
+ "&-empty-text": {
1618
+ display: "flex",
1619
+ flexDirection: "column",
1620
+ alignItems: "center",
1621
+ justifyContent: "center"
1622
+ },
1623
+ "&-table-tree": {
1624
+ [`${e.antCls}-table-row-cell-ellipsis`]: {
1625
+ overflow: "hidden",
1626
+ textOverflow: "ellipsis",
1627
+ whiteSpace: "nowrap",
1628
+ [`${e.antCls}-table-column-title`]: {
1629
+ overflow: "hidden",
1630
+ textOverflow: "ellipsis",
1631
+ whiteSpace: "nowrap"
1632
+ }
1633
+ }
1634
+ },
1635
+ "&-full-screen": {
1636
+ [`${e.componentCls}-content`]: {
1637
+ height: "100% !important",
1638
+ padding: 24,
1639
+ backgroundColor: e.colorWhite,
1640
+ boxShadow: "0 4px 8px #0003, 0 6px 20px #00000030 !important"
1641
+ }
1642
+ },
1643
+ "&-no-scroll": {
1644
+ [`${e.antCls}-table`]: {
1645
+ table: {
1646
+ width: "100% !important",
1647
+ minWidth: "unset"
1648
+ }
1649
+ },
1650
+ [`${e.antCls}-table-ping-right:not(${e.antCls}-table-has-fix-right)`]: {
1651
+ [`${e.antCls}-table-container::after`]: {
1652
+ boxShadow: "none"
1653
+ }
1654
+ },
1655
+ [`${e.antCls}-table-bordered ${e.antCls}-table-fixed-left ${e.antCls}-table-thead > tr > th`]: {
1656
+ "&:last-child": {
1657
+ borderRight: 0
1658
+ }
1659
+ },
1660
+ [`${e.antCls}-table-bordered ${e.antCls}-table-fixed-left ${e.antCls}-table-tbody > tr > td`]: {
1661
+ "&:last-child": {
1662
+ borderRight: 0
1663
+ }
1664
+ }
1665
+ },
1666
+ "&-wrapper": {
1667
+ clear: "both",
1668
+ maxWidth: "100%",
1669
+ [`${e.componentCls}-pagination${e.antCls}-pagination`]: {
1670
+ margin: `${e.margin}px 0`
1671
+ },
1672
+ [`${e.componentCls}-pagination`]: {
1673
+ display: "flex",
1674
+ flexWrap: "wrap",
1675
+ rowGap: e.paddingXS,
1676
+ "> *": {
1677
+ flex: "none"
1678
+ },
1679
+ "&-left": {
1680
+ justifyContent: "flex-start"
1681
+ },
1682
+ "&-center": {
1683
+ justifyContent: "center"
1684
+ },
1685
+ "&-right": {
1686
+ justifyContent: "flex-end"
1687
+ }
1688
+ }
1689
+ },
1690
+ "&-card-border": {
1691
+ paddingInline: e.paddingMD,
1692
+ paddingBlock: e.paddingMD,
1693
+ border: `${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,
1694
+ borderRadius: e.borderRadiusLG,
1695
+ backgroundColor: e.colorBgContainer,
1696
+ [`${e.antCls}-table-wrapper ${e.antCls}-table-pagination${e.antCls}-pagination`]: {
1697
+ marginBottom: 0
1698
+ }
1699
+ },
1700
+ [`${e.componentCls}-copyable`]: {
1701
+ display: "flex",
1702
+ alignItems: "center",
1703
+ [`${e.componentCls}-copyable-icon`]: {
1704
+ marginLeft: 8,
1705
+ color: e.colorPrimary,
1706
+ cursor: "pointer"
1707
+ }
1708
+ },
1709
+ [`${e.componentCls}-ellipsis`]: {
1710
+ overflow: "hidden",
1711
+ textOverflow: "ellipsis",
1712
+ display: "-webkit-box",
1713
+ "-webkit-box-orient": "vertical",
1714
+ "word-break": "break-word"
1715
+ },
1716
+ [`${e.componentCls}-action-size`]: {
1717
+ display: "inline-block"
1718
+ },
1719
+ [`${e.componentCls}-action-columns`]: {
1720
+ display: "inline-block",
1721
+ [`${e.antCls}-popover-inner-content`]: {
1722
+ padding: "8px 0 8px 16px"
1723
+ },
1724
+ [`${e.antCls}-tree ${e.antCls}-tree-switcher-noop`]: {
1725
+ display: "none"
1726
+ },
1727
+ [`${e.antCls}-tree > ${e.antCls}-tree-treenode`]: {
1728
+ width: "100%",
1729
+ alignItems: "center",
1730
+ "&:first-child": {
1731
+ paddingTop: 0
1732
+ },
1733
+ "&:last-child": {
1734
+ paddingBottom: 4
1735
+ },
1736
+ "&:hover": {
1737
+ backgroundColor: "#e6f7ff",
1738
+ [`${e.componentCls}-action-columns-list-item-actions`]: {
1739
+ display: "block"
1740
+ }
1741
+ }
1742
+ },
1743
+ [`${e.antCls}-tree ${e.antCls}-tree-node-content-wrapper`]: {
1744
+ flex: "1",
1745
+ "&:hover": {
1746
+ backgroundColor: "transparent"
1747
+ }
1748
+ },
1749
+ "&-popover-title": {
1750
+ display: "flex",
1751
+ alignItems: "center",
1752
+ justifyContent: "space-between",
1753
+ "&-check": {
1754
+ marginRight: 8
1755
+ },
1756
+ [`${e.antCls}-btn-sm`]: {
1757
+ padding: 0
1758
+ }
1759
+ },
1760
+ "&-list-group": {
1761
+ marginTop: 6,
1762
+ marginBottom: 6,
1763
+ fontSize: 12,
1764
+ color: "rgba(0, 0, 0, 0.45)"
1765
+ },
1766
+ "$-list-item": {
1767
+ display: "flex",
1768
+ alignItems: "center",
1769
+ justifyContent: "space-between",
1770
+ "&-actions": {
1771
+ display: "block",
1772
+ float: "right",
1773
+ cursor: "pointer",
1774
+ "> span + span": {
1775
+ marginLeft: 8
1776
+ },
1777
+ "&-disabled": {
1778
+ action: {
1779
+ color: "rgba(0, 0, 0, 0.25)"
1780
+ }
1781
+ },
1782
+ anticon: {
1783
+ color: e.colorPrimary
1784
+ }
1785
+ }
1786
+ }
1787
+ },
1788
+ // ant-class
1789
+ [`${e.antCls}-tooltip-inner`]: {
1790
+ a: {
1791
+ color: e.colorWhite
1792
+ }
1793
+ },
1794
+ [`&${e.componentCls}-beautify-scroll`]: {
1795
+ [`${e.antCls}-table-content`]: Ve(e),
1796
+ [`${e.antCls}-table-body`]: Ve(e),
1797
+ [`${e.antCls}-table-empty`]: {
1798
+ [`${e.antCls}-table-content`]: Ve(e)
1799
+ }
1800
+ }
1801
+ }
1802
+ };
1803
+ };
1804
+ function sl(e) {
1805
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !V(e);
1806
+ }
1807
+ function rl(e, l, a, n) {
1808
+ if (!l) return e;
1809
+ let s = e;
1810
+ if (k(l)) {
1811
+ const u = l.node === "a" ? "span" : l.node;
1812
+ return c(u, M(l?.attr || {}, {
1813
+ class: [l.class, l.node === "a" ? `${a}-a` : ""],
1814
+ onClick: l.click
1815
+ }), sl(e) ? e : {
1816
+ default: () => [e]
1817
+ });
1818
+ }
1819
+ switch (l) {
1820
+ case "link":
1821
+ s = c("span", {
1822
+ class: [`${a}-a`, n]
1823
+ }, [e]);
1824
+ break;
1825
+ case "time":
1826
+ s = W(e).format("HH:mm:ss");
1827
+ break;
1828
+ case "dateMonth":
1829
+ s = `${W(e).month() + 1}月`;
1830
+ break;
1831
+ case "date":
1832
+ s = W(e).format("YYYY-MM-DD");
1833
+ break;
1834
+ case "dateTime":
1835
+ s = W(e).format("YYYY-MM-DD HH:mm:ss");
1836
+ break;
1837
+ }
1838
+ return s;
1839
+ }
1840
+ function cl(e, l) {
1841
+ const a = l && l.current || 1, n = l && l.pageSize || 10;
1842
+ return e.filter((s, u) => u < a * n && u >= n * (a - 1));
1843
+ }
1844
+ function dl(e) {
1845
+ const l = document.createElement("textarea");
1846
+ l.style.position = "absolute", l.style.opacity = "0", l.value = e, document.body.appendChild(l), l.select(), document.execCommand("copy"), document.body.removeChild(l);
1847
+ }
1848
+ function fl(e) {
1849
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !V(e);
1850
+ }
1851
+ const ml = {
1852
+ reload: !0,
1853
+ fullScreen: !0
1854
+ }, vl = ya.useToken, Ke = /* @__PURE__ */ Te({
1855
+ name: "GProTable",
1856
+ inheritAttrs: !1,
1857
+ props: be,
1858
+ emits: ["reset", "reload", "submit", "sizeChange", "expandedRowsChange", "expand", "change", "requestError", "columnsStateChange", "loadingChange"],
1859
+ slots: Object,
1860
+ setup(e, {
1861
+ emit: l,
1862
+ slots: a,
1863
+ attrs: n,
1864
+ expose: s
1865
+ }) {
1866
+ const u = pt({
1867
+ suffixCls: "table",
1868
+ isPor: !0
1869
+ }), {
1870
+ wrapSSR: d,
1871
+ hashId: h
1872
+ } = Xe("ProBaseTable", [ul], u), {
1873
+ token: y
1874
+ } = vl(), P = ea(), o = vt(), {
1875
+ width: R
1876
+ } = ma(), v = O(!1), f = mt(), p = O(), w = O(), F = O(e.waitRequest);
1877
+ dt(() => F.value = e.waitRequest);
1878
+ const {
1879
+ toggle: K,
1880
+ isFullscreen: le
1881
+ } = bt(p), fe = S(() => ({
1882
+ ...e
1883
+ })), oe = S(() => !o.value.xl), G = S(() => (e.virtualScroll && Ta(!e.scroll?.y, "参数scroll的Y值不能为空!"), !!(e.scroll?.y && e.virtualScroll))), I = S(() => e.search === !1 ? !1 : k(e.search) ? e.search : {
1884
+ type: "auto",
1885
+ resetText: "重置",
1886
+ searchText: "查询"
1887
+ }), ue = S(() => I.value === !1 ? {} : I.value), A = S(() => ue.value?.autoRequest ?? !0), U = S(() => ue.value?.actions), ne = S(() => {
1888
+ const m = (e.columns || []).filter((x) => x.key || x.dataIndex).map((x) => {
1889
+ const $ = x.key || x.dataIndex;
1890
+ return x.key = $, x.dataIndex = $, x.align = x.align || e.align, x.uuid = x.uuid || oa().uuid(15), x;
1891
+ });
1892
+ return ua(m, {
1893
+ align: e.align ?? "left",
1894
+ showIndex: e.showIndex ?? !1
1895
+ });
1896
+ }), [J, ee] = Za({
1897
+ loading: q(e, "loading")
1898
+ }), [me, ve] = ol({
1899
+ size: q(e, "size")
1900
+ }), {
1901
+ paginationInfo: Q,
1902
+ requestPagination: t,
1903
+ setPagination: r
1904
+ } = el({
1905
+ pagination: q(e, "pagination"),
1906
+ pageItemRender: ot({
1907
+ slots: a,
1908
+ props: e,
1909
+ key: "pageItemRender"
1910
+ })
1911
+ }), {
1912
+ proScroll: C,
1913
+ breakpoint: b
1914
+ } = il({
1915
+ scroll: q(e, "scroll"),
1916
+ autoScroll: q(e, "autoScroll"),
1917
+ modalScroll: q(e, "modalScroll"),
1918
+ neverScroll: q(e, "neverScroll"),
1919
+ rowSelection: q(e, "rowSelection"),
1920
+ scrollBreakpoint: q(e, "scrollBreakpoint"),
1921
+ innerWidth: R,
1922
+ columns: ne,
1923
+ screens: o
1924
+ }), g = Qa(e), {
1925
+ proColumns: i,
1926
+ setColumns: B,
1927
+ changeColumns: X,
1928
+ resizeColumnWidth: se
1929
+ } = Xa({
1930
+ ...g,
1931
+ breakpoint: b,
1932
+ scroll: C,
1933
+ columns: ne
1934
+ }), {
1935
+ formDataRef: te,
1936
+ formState: re,
1937
+ defaultState: E,
1938
+ setFormState: he
1939
+ } = nl({
1940
+ searchMap: q(e, "searchMap"),
1941
+ params: q(e, "params"),
1942
+ columns: ne,
1943
+ setPagination: r
1944
+ }), {
1945
+ selectedKeys: Ce,
1946
+ selectedItems: ie,
1947
+ changeRowKey: Se,
1948
+ selectRowKey: ae,
1949
+ selectAllRowKey: pe,
1950
+ syncSelectedRows: ge,
1951
+ removeRowKeys: Ue,
1952
+ clearAllRowKeys: $t
1953
+ } = al(q(e, "rowKey"), q(e, "rowSelection")), Ft = Ua(e), {
1954
+ reload: Re,
1955
+ reSetDataList: Pt,
1956
+ changeDataValue: Dt,
1957
+ isTreeDataRef: Ot,
1958
+ dataSource: $e,
1959
+ handleTableChange: Je
1960
+ } = Ja({
1961
+ ...Ft,
1962
+ waitRequest: F
1963
+ }, {
1964
+ loading: J,
1965
+ paginationInfo: Q,
1966
+ setPagination: r,
1967
+ removeRowKeys: Ue,
1968
+ syncSelectedRows: ge,
1969
+ setLoading: ee,
1970
+ setColumns: B,
1971
+ search: I,
1972
+ columns: i,
1973
+ formState: re,
1974
+ onBeforeSearchSubmit: e.onBeforeSearchSubmit,
1975
+ hasCustomRender: S(() => Me(e.customRender || a?.customRender))
1976
+ }, l), Bt = S(() => ({
1977
+ size: T(me),
1978
+ scroll: T(C),
1979
+ dataSource: T($e),
1980
+ pagination: T(Q),
1981
+ virtualScroll: G.value,
1982
+ columns: T(i).filter((m) => m.show || m.show === void 0)
1983
+ })), Ze = S(() => {
1984
+ const m = k(e.loading) ? Le(e.loading, "spinning") : {};
1985
+ return !m.indicator && f?.indicator?.value && (m.indicator = f?.indicator?.value), {
1986
+ spinning: e.showLoading ? Me(J.value) : !1,
1987
+ ...m
1988
+ };
1989
+ }), et = S(() => {
1990
+ let m;
1991
+ const x = T(fe).direction === "rtl" ? "bottomLeft" : "right", $ = T(Q)?.position;
1992
+ if ($ !== null && Array.isArray($)) {
1993
+ const D = $.find((H) => H.includes("top")), j = $.find((H) => H.includes("bottom")), Y = $.every((H) => `${H}` == "none");
1994
+ !D && !j && !Y && (m = x), D && (m = D.toLowerCase().replace("top", "")), j && (m = j.toLowerCase().replace("bottom", ""));
1995
+ } else
1996
+ m = x;
1997
+ return m;
1998
+ });
1999
+ Ga(() => {
2000
+ v.value && e.keepAliveReload ? Re() : v.value = !0;
2001
+ });
2002
+ const tt = async (m, x) => {
2003
+ A.value ? (he(xe(e.params, m)), await Re()) : U.value?.reload && x ? (he(m), await Re()) : he(m);
2004
+ }, It = async (m, x) => {
2005
+ x === "reset" ? (l("reset", m), e.request && await tt(m, x)) : e.request ? (l("submit", m), await tt(m, x)) : l("submit", m);
2006
+ }, at = (m, x, $, D) => {
2007
+ r(rt(m, ["current", "pageSize"])), Je(m, x, $, D);
2008
+ }, jt = (m, x) => {
2009
+ r({
2010
+ current: m,
2011
+ pageSize: x
2012
+ }), Je({
2013
+ current: m,
2014
+ pageSize: x,
2015
+ total: Q.value && Q.value?.total || 0
2016
+ }, {}, {});
2017
+ }, At = (m) => {
2018
+ l("expandedRowsChange", m);
2019
+ }, Nt = (m, x) => {
2020
+ l("expand", m, x);
2021
+ }, zt = (m, x) => se(m, x), Yt = (m, x, $) => {
2022
+ let D = m;
2023
+ if (x) {
2024
+ const j = L(m) ? typeof m?.[0]?.children == "string" ? m?.[0]?.children : "" : m ? m.toString() : "", Y = $.tooltip === !1 ? {} : $.tooltip, H = $.tooltip === !1 ? 1 : Be(Y?.hiddenLine) && Y?.hiddenLine > 0 ? Y?.hiddenLine : 1, N = $.tooltip === !1 ? 0 : Be(Y?.width) ? Y?.width : 0, Ie = $.tooltip !== !1 && yt(j) && N > 0 ? ca(j, {
2025
+ cssObject: {
2026
+ fontSize: "14px",
2027
+ lineHeight: "22px",
2028
+ fontFamily: P?.token?.value?.fontFamily || y?.value?.fontFamily,
2029
+ ...Y?.targetStyle || {}
2030
+ }
2031
+ }) : 0, je = document.querySelector(`.${u} .ant-table-tbody`), Ae = c("div", {
2032
+ class: `${u}-ellipsis-text`
2033
+ }, [m]), nt = () => $.tooltip === !1 || k($.tooltip) && Ie < N && N > 0 ? Ae : c(we, M({
2034
+ title: m,
2035
+ getPopupContainer: (We) => je ?? We?.parentNode?.parentNode
2036
+ }, k($.tooltip) ? $.tooltip : {}, {
2037
+ destroyTooltipOnHide: !0
2038
+ }), fl(Ae) ? Ae : {
2039
+ default: () => [Ae]
2040
+ });
2041
+ if (D = c("div", {
2042
+ class: `${u}-ellipsis ${Y?.class ?? ""}`,
2043
+ style: {
2044
+ "-webkit-line-clamp": H
2045
+ }
2046
+ }, [nt()]), $.copyable) {
2047
+ const We = typeof $.copyText == "function" ? $.copyText?.($) : $.copyText || j;
2048
+ D = c("div", {
2049
+ class: `${u}-copyable`
2050
+ }, [c("div", {
2051
+ class: `${u}-ellipsis ${Y?.class ?? ""}`,
2052
+ style: {
2053
+ "-webkit-line-clamp": H
2054
+ }
2055
+ }, [nt()]), c(Ut, {
2056
+ class: `${u}-copyable-icon`,
2057
+ onClick: () => {
2058
+ dl(We), Sa.success("复制成功");
2059
+ }
2060
+ }, null)]);
2061
+ }
2062
+ }
2063
+ return D;
2064
+ };
2065
+ function lt() {
2066
+ const m = da({
2067
+ slots: a,
2068
+ props: e,
2069
+ key: "emptyText"
2070
+ });
2071
+ if (m !== !1 && f?.emptyText?.value !== !1) {
2072
+ const $ = e.emptyTextProps?.extraProps || {}, D = m || f?.emptyText?.value, j = V(D), Y = j ? ft(D, $) : ht(L(D) ? D : [D]);
2073
+ return c("div", {
2074
+ class: Z(`${u}-empty-text`, h.value, e.emptyTextProps?.class),
2075
+ style: e.emptyTextProps?.style
2076
+ }, [j ? Y : L(Y) ? Y.map((H) => Qe(H, $)) : c(xa, null, null)]);
2077
+ }
2078
+ return null;
2079
+ }
2080
+ const Mt = () => {
2081
+ const m = ot({
2082
+ slots: a,
2083
+ props: e,
2084
+ key: "customRender"
2085
+ });
2086
+ if (m) {
2087
+ if ($e.value?.length) {
2088
+ const x = _(T($e));
2089
+ return m?.({
2090
+ dataSource: x,
2091
+ currentData: cl(x, Q.value)
2092
+ });
2093
+ }
2094
+ return lt();
2095
+ }
2096
+ return c(Ye, null, null);
2097
+ };
2098
+ return $a({
2099
+ tableSize: me,
2100
+ columns: i,
2101
+ cacheColumns: ne,
2102
+ isMobile: oe,
2103
+ searchConfig: ue,
2104
+ autoRequest: A,
2105
+ searchActions: U,
2106
+ action: {
2107
+ setTableSize: ve,
2108
+ reload: (m) => Re(m),
2109
+ toggle: K
2110
+ },
2111
+ setPagination: r,
2112
+ changeColumns: X
2113
+ }), s({
2114
+ formRef: () => ({
2115
+ getFormState: () => re,
2116
+ getFormInnerState: () => w.value?.getFormState() || {},
2117
+ restFormState: (m) => {
2118
+ F.value = !0, m && m?.(), w.value?.resetForm(!1), F.value = !1;
2119
+ }
2120
+ }),
2121
+ actionRef: () => ({
2122
+ loading: J,
2123
+ dataSource: $e,
2124
+ pageState: t,
2125
+ pagination: Q.value,
2126
+ selectedKeys: S(() => Ce.value),
2127
+ selectedItems: S(() => ie.value),
2128
+ rowsSelection: {
2129
+ clear: $t,
2130
+ select: ae,
2131
+ remove: Ue,
2132
+ sync: ge,
2133
+ selectAll: pe
2134
+ },
2135
+ reload: Re,
2136
+ getLoadingStatus: () => T(J),
2137
+ reloadAndReset: async (m) => {
2138
+ F.value = !0, r({
2139
+ current: 1,
2140
+ pageSize: t?.pageSize || 10
2141
+ }), m?.callBack && (m?.wait ? await m?.callBack?.() : m?.callBack?.()), w.value?.resetForm(!1), F.value = !1;
2142
+ },
2143
+ reSetDataList: Pt,
2144
+ setPageAndReload: at,
2145
+ setPagination: r,
2146
+ setDataValue: Dt,
2147
+ setLoading: ee
2148
+ })
2149
+ }), () => {
2150
+ const m = Me(e.customRender || a.customRender), x = a.actions?.() || e.actionProps?.actions, $ = sa({
2151
+ slots: a,
2152
+ props: e,
2153
+ keys: ["headerTitle", "titleTip", "settingExtra"],
2154
+ render: !0
2155
+ });
2156
+ return d(c("div", {
2157
+ ref: p,
2158
+ class: Z([{
2159
+ [`${h.value}`]: !0,
2160
+ [`${u}`]: !0,
2161
+ [`${n.class}`]: n.class,
2162
+ [`${u}-beautify-scroll`]: de(e.useDefaultScrollStyle) ? !e.useDefaultScrollStyle : !0,
2163
+ [`${u}-no-scroll`]: !Object.keys(T(C) || {}).length,
2164
+ [`${u}-table-tree`]: Ot.value,
2165
+ [`${u}-full-screen`]: le.value
2166
+ }]),
2167
+ style: n.style
2168
+ }, [c("div", {
2169
+ class: [`${u}-content`, h.value]
2170
+ }, [(te.value.length > 0 || !!a.search) && e.search !== !1 && c(Ea, {
2171
+ ref: w,
2172
+ modalScroll: e.modalScroll,
2173
+ cardBordered: e.cardBordered,
2174
+ searchMap: te.value,
2175
+ prefixCls: u,
2176
+ loading: T(J),
2177
+ onSearch: It,
2178
+ defaultState: E
2179
+ }, {
2180
+ default: a.search ? () => a.search?.() : null
2181
+ }), c("div", {
2182
+ class: Z(h.value, `${u}-card`, e.cardBordered && `${u}-card-border`)
2183
+ }, [c(Va, {
2184
+ options: e.options ? {
2185
+ ...ml,
2186
+ ...k(e.options) ? e.options : {}
2187
+ } : !1,
2188
+ titleTipText: e.titleTipText,
2189
+ actionsPlacement: e.actionProps?.placement,
2190
+ actionsRender: x,
2191
+ headerTitle: $.headerTitle,
2192
+ titleTip: $.titleTip,
2193
+ settingExtra: $.settingExtra
2194
+ }, null), m ? c(St, Ze.value, {
2195
+ default: () => [c("div", {
2196
+ class: `${u}-wrapper ${h.value}`
2197
+ }, [c("div", {
2198
+ class: Z(`${u}-list`, h.value, e.tableProps?.class),
2199
+ style: e.tableProps?.style
2200
+ }, [Mt()]), e.pagination !== !1 && $e.value?.length > 0 && c(ba, M({
2201
+ class: {
2202
+ [`${u}-pagination ${h.value}`]: !0,
2203
+ [`${u}-pagination-${et.value} ${h.value}`]: !!et.value
2204
+ }
2205
+ }, ye(T(Q)), {
2206
+ onChange: jt
2207
+ }), null)])]
2208
+ }) : c(Ca, M(rt(e, Object.keys(wt)), Bt.value, {
2209
+ style: e.tableProps?.style,
2210
+ class: e.tableProps?.class,
2211
+ loading: Ze.value,
2212
+ rowKey: (D) => D[e.rowKey],
2213
+ transformCellText: (D) => {
2214
+ e.transformCellText && typeof e.transformCellText && e.transformCellText?.(D);
2215
+ const {
2216
+ column: j
2217
+ } = D;
2218
+ if (!j) return D.text;
2219
+ const Y = j?.key || j?.dataIndex;
2220
+ let H = !0, N = D.text;
2221
+ if (L(N))
2222
+ if (N.length === 0 || N.length === 1 && !V(N[0])) {
2223
+ N = N?.[0];
2224
+ const Ie = ra(N, j?.columnEmptyText || e?.columnEmptyText || "");
2225
+ H = Ie.success, N = rl(Ie.value, j?.valueType || e.columns?.find((je) => (je.key || je.dataIndex) === Y)?.valueType, u, h.value);
2226
+ } else N[0]?.type === "template" && (N = N[0]?.children);
2227
+ return j?.ellipsis ? Yt(N, H, j) : N;
2228
+ },
2229
+ rowSelection: e.rowSelection ? {
2230
+ ...Le(e.rowSelection, ["onSelect", "onSelectAll", "onChange", "selectedRowKeys"]),
2231
+ selectedRowKeys: Ce.value || [],
2232
+ onSelect: ae,
2233
+ onSelectAll: pe,
2234
+ onChange: Se
2235
+ } : void 0,
2236
+ onChange: at,
2237
+ onExpandedRowsChange: At,
2238
+ onExpand: Nt,
2239
+ onResizeColumn: (D, j) => zt(D, j)
2240
+ }), {
2241
+ ...a,
2242
+ emptyText: () => lt()
2243
+ })])])]));
2244
+ };
2245
+ }
2246
+ });
2247
+ Ke.install = (e) => (e.component(Ke.name, Ke), e);
2248
+ function Pl(e, l) {
2249
+ function a() {
2250
+ const o = {
2251
+ params: {},
2252
+ searchMap: []
2253
+ };
2254
+ if (l?.state) {
2255
+ if (ke(l.state) && k(l.state.value))
2256
+ return xe(o, _(l.state.value));
2257
+ if (k(l.state) && !ke(l.state))
2258
+ return xe(o, _(l.state));
2259
+ }
2260
+ return o;
2261
+ }
2262
+ const n = Oe(xe(a(), {
2263
+ request: l?.request
2264
+ }));
2265
+ l?.state && z(() => l.state && ke(l.state) ? l.state.value : l.state, () => {
2266
+ y();
2267
+ }, { deep: !0 });
2268
+ const s = S(() => e?.value?.actionRef?.()), u = S(() => e?.value?.formRef?.()), d = S(() => ({
2269
+ ...s.value?.pageState || {},
2270
+ ...u.value?.getFormState?.() || {}
2271
+ })), h = O(!!s.value?.loading?.value);
2272
+ z(() => s.value?.loading?.value, (o) => {
2273
+ h.value = !!o;
2274
+ }), z(h, (o) => {
2275
+ s.value?.setLoading?.(!!o);
2276
+ });
2277
+ function y() {
2278
+ Ee(n, a());
2279
+ }
2280
+ function P(o, R) {
2281
+ n.searchMap && (n.searchMap = _(n.searchMap).map((v) => v.name === o ? xe(v, R) : v));
2282
+ }
2283
+ return {
2284
+ formRef: u,
2285
+ actionRef: s,
2286
+ tableState: n,
2287
+ requestSearch: d,
2288
+ loading: h,
2289
+ dataSource: S(() => s?.value?.dataSource?.value || []),
2290
+ selectedKeys: S(() => s?.value?.selectedKeys?.value || []),
2291
+ selectedItems: S(() => s?.value?.selectedItems?.value || []),
2292
+ rowsSelection: s?.value?.rowsSelection,
2293
+ mutate: (o) => s.value?.reSetDataList?.(o),
2294
+ reloadAndReset: (o) => s.value?.reloadAndReset?.(o),
2295
+ setPageAndReload: (o, R, v, f) => s.value?.setPageAndReload?.(o, R, v, f),
2296
+ setPagination: (o) => s.value?.setPagination?.(o),
2297
+ setLoading: (o) => h.value = o,
2298
+ setDataValue: (o) => s.value?.setDataValue?.(o),
2299
+ reload: (o) => s.value?.reload?.(o),
2300
+ updateSearchMap: P
2301
+ };
2302
+ }
2303
+ export {
2304
+ Ke as GProTable,
2305
+ be as proTableProps,
2306
+ Pl as useTable
2307
+ };