@gx-design-vue/pro-table 0.0.1 → 0.0.2-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/dist/ProTable.d.ts +69 -90
- package/dist/_utils/ant-design-vue/pagination/typings.d.ts +1 -1
- package/dist/_utils/ant-design-vue/table/props.d.ts +1 -1
- package/dist/_utils/index.d.ts +0 -1
- package/dist/components/ColumnSetting/index.d.ts +1 -0
- package/dist/components/Form/index.d.ts +1 -0
- package/dist/components/Form/useForm.d.ts +1 -0
- package/dist/components/ListToolBar/index.d.ts +13 -12
- package/dist/components/ToolBar/index.d.ts +1 -0
- package/dist/context/TableContext.d.ts +2 -1
- package/dist/hooks/useDebounceFn.d.ts +1 -5
- package/dist/hooks/useFetchData.d.ts +5 -4
- package/dist/hooks/useLoading.d.ts +1 -1
- package/dist/hooks/useRowSelection.d.ts +1 -0
- package/dist/hooks/useTableForm.d.ts +1 -0
- package/dist/hooks/useTableScroll.d.ts +1 -0
- package/dist/hooks/useTableSize.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/pro-table.mjs +1193 -1324
- package/dist/pro-table.umd.js +1 -1
- package/dist/props.d.ts +38 -20
- package/dist/types/column.d.ts +2 -1
- package/dist/types/table.d.ts +9 -8
- package/dist/typing.d.ts +9 -0
- package/dist/utils/config.d.ts +1 -0
- package/package.json +7 -8
- package/dist/_utils/ant-design-vue/table/typings.d.ts +0 -11
- package/dist/_utils/gx-design-vue/extract-public-props.d.ts +0 -7
- package/dist/_utils/gx-design-vue/index.d.ts +0 -2
- package/dist/_utils/gx-design-vue/typings.d.ts +0 -1
- package/dist/hooks/core/index.d.ts +0 -3
- package/dist/hooks/core/useMemo.d.ts +0 -10
- package/dist/hooks/core/useTimeout.d.ts +0 -11
- package/dist/typings/components.d.ts +0 -6
- package/dist/utils/index.d.ts +0 -86
- package/dist/utils/validate.d.ts +0 -25
package/dist/ProTable.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ExtractPropTypes } from 'vue';
|
|
2
|
+
import type { RecordType } from './typing';
|
|
2
3
|
import type { FilterValue, SorterResult } from './_utils';
|
|
3
4
|
import type { OptionConfig } from './types/table';
|
|
4
5
|
import type { ProColumns } from './types/column';
|
|
@@ -7,7 +8,7 @@ import './style/index.less';
|
|
|
7
8
|
export declare type ProTableProps = Partial<ExtractPropTypes<typeof proTableProps>>;
|
|
8
9
|
declare const ProTable: import("vue").DefineComponent<{
|
|
9
10
|
rowSelection: {
|
|
10
|
-
type: import("vue").PropType<any
|
|
11
|
+
type: import("vue").PropType<import("./types/table").ProTableRowSelection<any>>;
|
|
11
12
|
default: undefined;
|
|
12
13
|
};
|
|
13
14
|
columns: {
|
|
@@ -47,7 +48,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
47
48
|
default: () => never[];
|
|
48
49
|
};
|
|
49
50
|
customize: {
|
|
50
|
-
type: import("vue").PropType<WithFalse<(data?: RecordType[] | undefined) => CustomRender>>;
|
|
51
|
+
type: import("vue").PropType<import("./typing").WithFalse<(data?: RecordType[] | undefined) => import("./typing").CustomRender>>;
|
|
51
52
|
default: () => undefined;
|
|
52
53
|
};
|
|
53
54
|
actionRef: import("vue").PropType<import("./types/table").ProCoreActionType>;
|
|
@@ -56,24 +57,19 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
56
57
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
57
58
|
};
|
|
58
59
|
toolBarBtn: {
|
|
59
|
-
type: import("vue").PropType<ProVueNode>;
|
|
60
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
60
61
|
default: () => undefined;
|
|
61
62
|
};
|
|
62
63
|
headerTitle: {
|
|
63
|
-
type: import("vue").PropType<ProVueNode>;
|
|
64
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
64
65
|
default: () => undefined;
|
|
65
66
|
};
|
|
66
67
|
titleTip: {
|
|
67
|
-
type: import("vue").PropType<ProVueNode>;
|
|
68
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
68
69
|
default: () => undefined;
|
|
69
70
|
};
|
|
70
71
|
titleTipText: {
|
|
71
|
-
type: import("vue").PropType<string>;
|
|
72
|
-
* @Author gx12358
|
|
73
|
-
* @DateTime 2022/1/21
|
|
74
|
-
* @lastTime 2022/1/21
|
|
75
|
-
* @description Tabel-loading hooks 方法
|
|
76
|
-
*/
|
|
72
|
+
type: import("vue").PropType<string>;
|
|
77
73
|
default: string;
|
|
78
74
|
};
|
|
79
75
|
options: {
|
|
@@ -84,16 +80,11 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
84
80
|
type: import("vue").PropType<import("./hooks/useColumnSetting").ColumnsStateType>;
|
|
85
81
|
};
|
|
86
82
|
optionsExtra: {
|
|
87
|
-
type: import("vue").PropType<
|
|
83
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
88
84
|
default: () => undefined;
|
|
89
85
|
};
|
|
90
86
|
settingExtra: {
|
|
91
|
-
type: import("vue").PropType<
|
|
92
|
-
* @Author gx12358
|
|
93
|
-
* @DateTime 2022/1/21
|
|
94
|
-
* @lastTime 2022/1/21
|
|
95
|
-
* @description Tabel-scroll hooks 方法
|
|
96
|
-
*/
|
|
87
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
97
88
|
default: () => undefined;
|
|
98
89
|
};
|
|
99
90
|
showIndex: {
|
|
@@ -101,15 +92,15 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
101
92
|
default: boolean;
|
|
102
93
|
};
|
|
103
94
|
pageItemRender: {
|
|
104
|
-
type: import("vue").PropType<WithFalse<(opt: {
|
|
95
|
+
type: import("vue").PropType<import("./typing").WithFalse<(opt: {
|
|
105
96
|
page: number;
|
|
106
97
|
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
107
98
|
originalElement: any;
|
|
108
|
-
}) => CustomRender>>;
|
|
99
|
+
}) => import("./typing").CustomRender>>;
|
|
109
100
|
default: () => undefined;
|
|
110
101
|
};
|
|
111
102
|
size: {
|
|
112
|
-
type: import("vue").PropType<import("./
|
|
103
|
+
type: import("vue").PropType<import("./typing").SizeType>;
|
|
113
104
|
default: string;
|
|
114
105
|
};
|
|
115
106
|
align: {
|
|
@@ -132,14 +123,14 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
132
123
|
type: import("vue").PropType<import("./types/table").ProFieldEmptyText>;
|
|
133
124
|
default: boolean;
|
|
134
125
|
};
|
|
135
|
-
|
|
126
|
+
onReset: import("vue").PropType<(params?: Partial<Record<string, any>> | undefined) => any>;
|
|
136
127
|
onReload: import("vue").PropType<(params?: Partial<Record<string, any>> | undefined) => any>;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
128
|
+
onSubmit: import("vue").PropType<(params: Partial<Record<string, any>>) => any>;
|
|
129
|
+
onSizeChange: import("vue").PropType<(size: string) => any>;
|
|
130
|
+
onLadingChange: import("vue").PropType<(loading: boolean) => any>;
|
|
131
|
+
onRequestError: import("vue").PropType<(e: Error) => void>;
|
|
132
|
+
onBeforeSearchSubmit: import("vue").PropType<import("./types/table").requsetConfig>;
|
|
133
|
+
onColumnsStateChange: import("vue").PropType<(data: import("./hooks/useColumnSetting").ColumnsState[]) => void>;
|
|
143
134
|
prefixCls: {
|
|
144
135
|
type: import("vue").PropType<string>;
|
|
145
136
|
default: undefined;
|
|
@@ -245,7 +236,12 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
245
236
|
default: undefined;
|
|
246
237
|
};
|
|
247
238
|
childrenColumnName: {
|
|
248
|
-
type: import("vue").PropType<string | undefined>;
|
|
239
|
+
type: import("vue").PropType<string | undefined>; /**
|
|
240
|
+
* @Author gx12358
|
|
241
|
+
* @DateTime 2022/1/21
|
|
242
|
+
* @lastTime 2022/1/21
|
|
243
|
+
* @description Tabel-size hooks 方法
|
|
244
|
+
*/
|
|
249
245
|
default: undefined;
|
|
250
246
|
};
|
|
251
247
|
rowExpandable: {
|
|
@@ -261,12 +257,6 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
261
257
|
type: import("vue").PropType<any[] | undefined>;
|
|
262
258
|
default: undefined;
|
|
263
259
|
};
|
|
264
|
-
/**
|
|
265
|
-
* @Author gx12358
|
|
266
|
-
* @DateTime 2022/1/21
|
|
267
|
-
* @lastTime 2022/1/21
|
|
268
|
-
* @description Tabel-pagetion hooks 方法
|
|
269
|
-
*/
|
|
270
260
|
loading: {
|
|
271
261
|
type: import("vue").PropType<boolean | import("./_utils").SpinProps>;
|
|
272
262
|
default: undefined;
|
|
@@ -310,9 +300,9 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
310
300
|
transformCellText: {
|
|
311
301
|
type: import("vue").PropType<import("ant-design-vue/lib/vc-table/interface").TransformCellText<any> | undefined>;
|
|
312
302
|
};
|
|
313
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("loadingChange" | "sizeChange" | "
|
|
303
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("loadingChange" | "sizeChange" | "reset" | "postData" | "change" | "requestError" | "reload" | "submit" | "expandedRowsChange" | "expand" | "beforeSearchSubmit" | "columnsStateChange")[], "reload" | "loadingChange" | "sizeChange" | "postData" | "reset" | "change" | "requestError" | "submit" | "expandedRowsChange" | "expand" | "beforeSearchSubmit" | "columnsStateChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
314
304
|
rowSelection: {
|
|
315
|
-
type: import("vue").PropType<any
|
|
305
|
+
type: import("vue").PropType<import("./types/table").ProTableRowSelection<any>>;
|
|
316
306
|
default: undefined;
|
|
317
307
|
};
|
|
318
308
|
columns: {
|
|
@@ -352,7 +342,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
352
342
|
default: () => never[];
|
|
353
343
|
};
|
|
354
344
|
customize: {
|
|
355
|
-
type: import("vue").PropType<WithFalse<(data?: RecordType[] | undefined) => CustomRender>>;
|
|
345
|
+
type: import("vue").PropType<import("./typing").WithFalse<(data?: RecordType[] | undefined) => import("./typing").CustomRender>>;
|
|
356
346
|
default: () => undefined;
|
|
357
347
|
};
|
|
358
348
|
actionRef: import("vue").PropType<import("./types/table").ProCoreActionType>;
|
|
@@ -361,24 +351,19 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
361
351
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
362
352
|
};
|
|
363
353
|
toolBarBtn: {
|
|
364
|
-
type: import("vue").PropType<ProVueNode>;
|
|
354
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
365
355
|
default: () => undefined;
|
|
366
356
|
};
|
|
367
357
|
headerTitle: {
|
|
368
|
-
type: import("vue").PropType<ProVueNode>;
|
|
358
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
369
359
|
default: () => undefined;
|
|
370
360
|
};
|
|
371
361
|
titleTip: {
|
|
372
|
-
type: import("vue").PropType<ProVueNode>;
|
|
362
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
373
363
|
default: () => undefined;
|
|
374
364
|
};
|
|
375
365
|
titleTipText: {
|
|
376
|
-
type: import("vue").PropType<string>;
|
|
377
|
-
* @Author gx12358
|
|
378
|
-
* @DateTime 2022/1/21
|
|
379
|
-
* @lastTime 2022/1/21
|
|
380
|
-
* @description Tabel-loading hooks 方法
|
|
381
|
-
*/
|
|
366
|
+
type: import("vue").PropType<string>;
|
|
382
367
|
default: string;
|
|
383
368
|
};
|
|
384
369
|
options: {
|
|
@@ -389,16 +374,11 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
389
374
|
type: import("vue").PropType<import("./hooks/useColumnSetting").ColumnsStateType>;
|
|
390
375
|
};
|
|
391
376
|
optionsExtra: {
|
|
392
|
-
type: import("vue").PropType<
|
|
377
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
393
378
|
default: () => undefined;
|
|
394
379
|
};
|
|
395
380
|
settingExtra: {
|
|
396
|
-
type: import("vue").PropType<
|
|
397
|
-
* @Author gx12358
|
|
398
|
-
* @DateTime 2022/1/21
|
|
399
|
-
* @lastTime 2022/1/21
|
|
400
|
-
* @description Tabel-scroll hooks 方法
|
|
401
|
-
*/
|
|
381
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
402
382
|
default: () => undefined;
|
|
403
383
|
};
|
|
404
384
|
showIndex: {
|
|
@@ -406,15 +386,15 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
406
386
|
default: boolean;
|
|
407
387
|
};
|
|
408
388
|
pageItemRender: {
|
|
409
|
-
type: import("vue").PropType<WithFalse<(opt: {
|
|
389
|
+
type: import("vue").PropType<import("./typing").WithFalse<(opt: {
|
|
410
390
|
page: number;
|
|
411
391
|
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
412
392
|
originalElement: any;
|
|
413
|
-
}) => CustomRender>>;
|
|
393
|
+
}) => import("./typing").CustomRender>>;
|
|
414
394
|
default: () => undefined;
|
|
415
395
|
};
|
|
416
396
|
size: {
|
|
417
|
-
type: import("vue").PropType<import("./
|
|
397
|
+
type: import("vue").PropType<import("./typing").SizeType>;
|
|
418
398
|
default: string;
|
|
419
399
|
};
|
|
420
400
|
align: {
|
|
@@ -437,14 +417,14 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
437
417
|
type: import("vue").PropType<import("./types/table").ProFieldEmptyText>;
|
|
438
418
|
default: boolean;
|
|
439
419
|
};
|
|
440
|
-
|
|
420
|
+
onReset: import("vue").PropType<(params?: Partial<Record<string, any>> | undefined) => any>;
|
|
441
421
|
onReload: import("vue").PropType<(params?: Partial<Record<string, any>> | undefined) => any>;
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
422
|
+
onSubmit: import("vue").PropType<(params: Partial<Record<string, any>>) => any>;
|
|
423
|
+
onSizeChange: import("vue").PropType<(size: string) => any>;
|
|
424
|
+
onLadingChange: import("vue").PropType<(loading: boolean) => any>;
|
|
425
|
+
onRequestError: import("vue").PropType<(e: Error) => void>;
|
|
426
|
+
onBeforeSearchSubmit: import("vue").PropType<import("./types/table").requsetConfig>;
|
|
427
|
+
onColumnsStateChange: import("vue").PropType<(data: import("./hooks/useColumnSetting").ColumnsState[]) => void>;
|
|
448
428
|
prefixCls: {
|
|
449
429
|
type: import("vue").PropType<string>;
|
|
450
430
|
default: undefined;
|
|
@@ -550,7 +530,12 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
550
530
|
default: undefined;
|
|
551
531
|
};
|
|
552
532
|
childrenColumnName: {
|
|
553
|
-
type: import("vue").PropType<string | undefined>;
|
|
533
|
+
type: import("vue").PropType<string | undefined>; /**
|
|
534
|
+
* @Author gx12358
|
|
535
|
+
* @DateTime 2022/1/21
|
|
536
|
+
* @lastTime 2022/1/21
|
|
537
|
+
* @description Tabel-size hooks 方法
|
|
538
|
+
*/
|
|
554
539
|
default: undefined;
|
|
555
540
|
};
|
|
556
541
|
rowExpandable: {
|
|
@@ -566,12 +551,6 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
566
551
|
type: import("vue").PropType<any[] | undefined>;
|
|
567
552
|
default: undefined;
|
|
568
553
|
};
|
|
569
|
-
/**
|
|
570
|
-
* @Author gx12358
|
|
571
|
-
* @DateTime 2022/1/21
|
|
572
|
-
* @lastTime 2022/1/21
|
|
573
|
-
* @description Tabel-pagetion hooks 方法
|
|
574
|
-
*/
|
|
575
554
|
loading: {
|
|
576
555
|
type: import("vue").PropType<boolean | import("./_utils").SpinProps>;
|
|
577
556
|
default: undefined;
|
|
@@ -619,17 +598,16 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
619
598
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
620
599
|
onExpandedRowsChange?: ((...args: any[]) => any) | undefined;
|
|
621
600
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
622
|
-
onReload?: ((...args: any[]) => any) | undefined;
|
|
623
601
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
602
|
+
onReload?: ((...args: any[]) => any) | undefined;
|
|
624
603
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
625
|
-
onLoadingChange?: ((...args: any[]) => any) | undefined;
|
|
626
604
|
onSizeChange?: ((...args: any[]) => any) | undefined;
|
|
627
|
-
onBeforeSearchSubmit?: ((...args: any[]) => any) | undefined;
|
|
628
|
-
onPostData?: ((...args: any[]) => any) | undefined;
|
|
629
605
|
onRequestError?: ((...args: any[]) => any) | undefined;
|
|
606
|
+
onBeforeSearchSubmit?: ((...args: any[]) => any) | undefined;
|
|
630
607
|
onColumnsStateChange?: ((...args: any[]) => any) | undefined;
|
|
608
|
+
onLoadingChange?: ((...args: any[]) => any) | undefined;
|
|
609
|
+
onPostData?: ((...args: any[]) => any) | undefined;
|
|
631
610
|
}, {
|
|
632
|
-
search: import("./types/table").SearchConfig;
|
|
633
611
|
rowKey: string;
|
|
634
612
|
columns: ProColumns;
|
|
635
613
|
scroll: {
|
|
@@ -666,32 +644,33 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
666
644
|
childrenColumnName: string | undefined;
|
|
667
645
|
rowExpandable: ((record: any) => boolean) | undefined;
|
|
668
646
|
sticky: boolean | import("ant-design-vue/lib/vc-table/interface").TableSticky | undefined;
|
|
669
|
-
size: import("./
|
|
647
|
+
size: import("./typing").SizeType;
|
|
670
648
|
locale: import("ant-design-vue/es/table/interface").TableLocale;
|
|
671
649
|
onChange: (pagination: import("ant-design-vue/es/table/interface").TablePaginationConfig, filters: Record<string, FilterValue | null>, sorter: SorterResult<any> | SorterResult<any>[], extra: import("ant-design-vue/es/table/interface").TableCurrentDataSource<any>) => void;
|
|
672
650
|
getPopupContainer: import("ant-design-vue/es/table/interface").GetPopupContainer;
|
|
673
651
|
align: import("ant-design-vue/es/vc-table/interface").AlignType;
|
|
674
|
-
headerTitle: ProVueNode;
|
|
675
|
-
toolBarBtn: ProVueNode;
|
|
676
|
-
titleTip: ProVueNode;
|
|
677
|
-
settingExtra: VueNode;
|
|
678
|
-
optionsExtra: VueNode;
|
|
679
|
-
pageItemRender: WithFalse<(opt: {
|
|
680
|
-
page: number;
|
|
681
|
-
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
682
|
-
originalElement: any;
|
|
683
|
-
}) => CustomRender>;
|
|
684
|
-
customize: WithFalse<(data?: RecordType[] | undefined) => CustomRender>;
|
|
685
|
-
showIndex: boolean;
|
|
686
652
|
loading: boolean | import("./_utils").SpinProps;
|
|
687
|
-
|
|
653
|
+
search: import("./types/table").SearchConfig;
|
|
654
|
+
rowSelection: import("./types/table").ProTableRowSelection<any>;
|
|
688
655
|
pagination: import("./types/table").ProTablePagination;
|
|
689
656
|
request: import("./types/table").requsetConfig;
|
|
690
657
|
waitRequest: boolean;
|
|
691
658
|
debounceTime: number;
|
|
692
659
|
searchMap: import("./types/column").ProSearchMap<"text", "date">[];
|
|
660
|
+
customize: import("./typing").WithFalse<(data?: RecordType[] | undefined) => import("./typing").CustomRender>;
|
|
661
|
+
toolBarBtn: import("./typing").ProVueNode;
|
|
662
|
+
headerTitle: import("./typing").ProVueNode;
|
|
663
|
+
titleTip: import("./typing").ProVueNode;
|
|
693
664
|
titleTipText: string;
|
|
694
665
|
options: boolean | OptionConfig;
|
|
666
|
+
optionsExtra: import("./typing").ProVueNode;
|
|
667
|
+
settingExtra: import("./typing").ProVueNode;
|
|
668
|
+
showIndex: boolean;
|
|
669
|
+
pageItemRender: import("./typing").WithFalse<(opt: {
|
|
670
|
+
page: number;
|
|
671
|
+
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
672
|
+
originalElement: any;
|
|
673
|
+
}) => import("./typing").CustomRender>;
|
|
695
674
|
bordered: boolean;
|
|
696
675
|
autoScroll: boolean;
|
|
697
676
|
columnEmptyText: import("./types/table").ProFieldEmptyText;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { PaginationProps } from 'ant-design-vue/es/pagination';
|
|
1
|
+
export type { PaginationProps, } from 'ant-design-vue/es/pagination';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import type { ColumnsType, ColumnType, ContextSlots, FilterValue, GetPopupContainer, SorterResult, SortOrder, TableCurrentDataSource, TableLocale, TablePaginationConfig, TableRowSelection } from './typings';
|
|
3
|
-
import type {
|
|
3
|
+
import type { SpinProps, TooltipProps } from '../../index';
|
|
4
4
|
export declare const tableProps: {
|
|
5
5
|
prefixCls: {
|
|
6
6
|
type: PropType<string>;
|
package/dist/_utils/index.d.ts
CHANGED
|
@@ -11,5 +11,4 @@ export declare const getPrefixCls: ({ suffixCls, customizePrefixCls, isPor, clas
|
|
|
11
11
|
export declare function getSlot<T>(slots: Slots, props: Record<string, unknown>, prop?: string): T | false;
|
|
12
12
|
export declare function getSlotVNode<T>(slots: Slots, props: Record<string, unknown>, prop?: string): T | false;
|
|
13
13
|
export * from './typings';
|
|
14
|
-
export * from './gx-design-vue';
|
|
15
14
|
export * from './ant-design-vue';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { VueNode, PropType } from '../../typing';
|
|
1
2
|
import './style.less';
|
|
2
3
|
export declare type ListToolBarSetting = {
|
|
3
4
|
icon: VueNode;
|
|
@@ -7,17 +8,17 @@ export declare type ListToolBarSetting = {
|
|
|
7
8
|
};
|
|
8
9
|
declare const ListToolBar: import("vue").DefineComponent<{
|
|
9
10
|
actions: {
|
|
10
|
-
type: import("vue").PropType<ProVueNode>;
|
|
11
|
+
type: import("vue").PropType<import("../../typing").ProVueNode>;
|
|
11
12
|
default: () => undefined;
|
|
12
13
|
};
|
|
13
14
|
settings: PropType<VueNode[]>;
|
|
14
15
|
titleTip: {
|
|
15
|
-
type: import("vue").PropType<ProVueNode>;
|
|
16
|
+
type: import("vue").PropType<import("../../typing").ProVueNode>;
|
|
16
17
|
default: () => undefined;
|
|
17
18
|
};
|
|
18
19
|
prefixCls: StringConstructor;
|
|
19
20
|
headerTitle: {
|
|
20
|
-
type: import("vue").PropType<ProVueNode>;
|
|
21
|
+
type: import("vue").PropType<import("../../typing").ProVueNode>;
|
|
21
22
|
default: () => undefined;
|
|
22
23
|
};
|
|
23
24
|
titleTipText: {
|
|
@@ -25,22 +26,22 @@ declare const ListToolBar: import("vue").DefineComponent<{
|
|
|
25
26
|
default: string;
|
|
26
27
|
};
|
|
27
28
|
optionsExtra: {
|
|
28
|
-
type: import("vue").PropType<
|
|
29
|
+
type: import("vue").PropType<import("../../typing").ProVueNode>;
|
|
29
30
|
default: () => undefined;
|
|
30
31
|
};
|
|
31
32
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
33
|
actions: {
|
|
33
|
-
type: import("vue").PropType<ProVueNode>;
|
|
34
|
+
type: import("vue").PropType<import("../../typing").ProVueNode>;
|
|
34
35
|
default: () => undefined;
|
|
35
36
|
};
|
|
36
37
|
settings: PropType<VueNode[]>;
|
|
37
38
|
titleTip: {
|
|
38
|
-
type: import("vue").PropType<ProVueNode>;
|
|
39
|
+
type: import("vue").PropType<import("../../typing").ProVueNode>;
|
|
39
40
|
default: () => undefined;
|
|
40
41
|
};
|
|
41
42
|
prefixCls: StringConstructor;
|
|
42
43
|
headerTitle: {
|
|
43
|
-
type: import("vue").PropType<ProVueNode>;
|
|
44
|
+
type: import("vue").PropType<import("../../typing").ProVueNode>;
|
|
44
45
|
default: () => undefined;
|
|
45
46
|
};
|
|
46
47
|
titleTipText: {
|
|
@@ -48,14 +49,14 @@ declare const ListToolBar: import("vue").DefineComponent<{
|
|
|
48
49
|
default: string;
|
|
49
50
|
};
|
|
50
51
|
optionsExtra: {
|
|
51
|
-
type: import("vue").PropType<
|
|
52
|
+
type: import("vue").PropType<import("../../typing").ProVueNode>;
|
|
52
53
|
default: () => undefined;
|
|
53
54
|
};
|
|
54
55
|
}>>, {
|
|
55
|
-
headerTitle: ProVueNode;
|
|
56
|
-
titleTip: ProVueNode;
|
|
57
|
-
optionsExtra: VueNode;
|
|
56
|
+
headerTitle: import("../../typing").ProVueNode;
|
|
57
|
+
titleTip: import("../../typing").ProVueNode;
|
|
58
58
|
titleTipText: string;
|
|
59
|
-
|
|
59
|
+
optionsExtra: import("../../typing").ProVueNode;
|
|
60
|
+
actions: import("../../typing").ProVueNode;
|
|
60
61
|
}>;
|
|
61
62
|
export default ListToolBar;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { FunctionalComponent as FC } from 'vue';
|
|
2
2
|
import type { ProTableProps } from '../../ProTable';
|
|
3
|
+
import type { VueNode } from '../../typing';
|
|
3
4
|
import type { OptionConfig } from '../../types/table';
|
|
4
5
|
import './style.less';
|
|
5
6
|
export declare type ToolBarProps = {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { Ref, ComputedRef } from 'vue';
|
|
2
2
|
import type { InjectionKey, Slots } from 'vue';
|
|
3
|
+
import type { SizeType } from '../typing';
|
|
3
4
|
import type { ProColumns } from '../types/column';
|
|
4
5
|
import type { ColumnsState, SettingsAction } from '../hooks/useColumnSetting';
|
|
5
|
-
import type {
|
|
6
|
+
import type { PaginationProps } from '../_utils';
|
|
6
7
|
export declare type ContextType = any;
|
|
7
8
|
export interface TableContextProps {
|
|
8
9
|
columns?: ComputedRef<ProColumns>;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import type { ProTabelFeachParams } from '../types/table';
|
|
2
1
|
export declare type ReturnValue<T extends any[]> = {
|
|
3
2
|
run: (...args: T) => void;
|
|
4
3
|
cancel: () => void;
|
|
5
4
|
};
|
|
6
|
-
declare function useDebounceFn<T extends any[]>(fn: (...args: T) => Promise<any>, wait?: number):
|
|
7
|
-
cancel: () => void;
|
|
8
|
-
run: (...args: ProTabelFeachParams[]) => Promise<void>;
|
|
9
|
-
};
|
|
5
|
+
declare function useDebounceFn<T extends any[]>(fn: (...args: T) => Promise<any>, wait?: number): ReturnValue<T>;
|
|
10
6
|
export default useDebounceFn;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ComputedRef } from 'vue';
|
|
2
2
|
import type { SpinProps } from '../_utils';
|
|
3
3
|
import type { ProTableProps } from '../ProTable';
|
|
4
|
+
import type { RecordType } from '../typing';
|
|
4
5
|
import type { ProTablePagination, ProTablePaginationConfig } from '../types/table';
|
|
5
6
|
import type { ProColumns } from '../types/column';
|
|
6
7
|
interface ActionType {
|
|
@@ -12,7 +13,7 @@ interface ActionType {
|
|
|
12
13
|
removeRowKeys: (keyList: (string | number)[]) => void;
|
|
13
14
|
columns: ComputedRef<ProColumns>;
|
|
14
15
|
formParamsRef: RecordType;
|
|
15
|
-
|
|
16
|
+
onBeforeSearchSubmit: ProTableProps['onBeforeSearchSubmit'];
|
|
16
17
|
}
|
|
17
18
|
export declare type ConfigFetchData = {
|
|
18
19
|
polling: ComputedRef<ProTableProps['polling']>;
|
|
@@ -23,13 +24,13 @@ export declare type ConfigFetchData = {
|
|
|
23
24
|
dataSource: ComputedRef<ProTableProps['dataSource']>;
|
|
24
25
|
};
|
|
25
26
|
export declare function useConfigFetchData(props: ProTableProps): ConfigFetchData;
|
|
26
|
-
export declare function useFetchData({ polling, request, postData, dataSource, waitRequest, debounceTime, }: ConfigFetchData, { columns, getLoading, setLoading, setColumns, removeRowKeys, formParamsRef, setPagination, getPaginationInfo,
|
|
27
|
+
export declare function useFetchData({ polling, request, postData, dataSource, waitRequest, debounceTime, }: ConfigFetchData, { columns, getLoading, setLoading, setColumns, removeRowKeys, formParamsRef, setPagination, getPaginationInfo, onBeforeSearchSubmit }: ActionType, emit: any): {
|
|
27
28
|
getDataSourceRef: ComputedRef<RecordType[]>;
|
|
28
29
|
isTreeDataRef: ComputedRef<boolean>;
|
|
29
30
|
reSetDataList: (list: RecordType[]) => void;
|
|
30
|
-
changeDataValue: ({ key,
|
|
31
|
+
changeDataValue: ({ key, params }: {
|
|
31
32
|
key?: string | undefined;
|
|
32
|
-
|
|
33
|
+
params: RecordType;
|
|
33
34
|
}) => void;
|
|
34
35
|
handleTableChange: (pagination: ProTablePaginationConfig, filters: any, sorter: any) => void;
|
|
35
36
|
reload: (info?: any) => Promise<void>;
|
|
@@ -7,7 +7,7 @@ export declare function useLoading({ emit, loading }: {
|
|
|
7
7
|
getLoading: import("vue").ComputedRef<boolean | {
|
|
8
8
|
prefixCls?: string | undefined;
|
|
9
9
|
spinning?: boolean | undefined;
|
|
10
|
-
size?: "small" | "
|
|
10
|
+
size?: "small" | "large" | "default" | undefined;
|
|
11
11
|
wrapperClassName?: string | undefined;
|
|
12
12
|
tip?: string | undefined;
|
|
13
13
|
delay?: number | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
|
+
import type { RecordType } from '../typing';
|
|
2
3
|
import type { ProTableProps } from '../ProTable';
|
|
3
4
|
export declare function useRowSelection(rowKey: Ref<ProTableProps['rowKey']>, rowSelection: Ref<ProTableProps['rowSelection']>): {
|
|
4
5
|
selectedKey: Ref<(string | number)[]>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import './design/config.less';
|
|
2
2
|
import './style/table.less';
|
|
3
3
|
import './style.less';
|
|
4
|
-
export { default as ProTable } from './ProTable';
|
|
5
4
|
export { proTableProps } from './props';
|
|
5
|
+
export { default } from './ProTable';
|
|
6
6
|
export type { ProTableProps } from './ProTable';
|
|
7
|
+
export { default as ProTable } from './ProTable';
|