@gx-design-vue/pro-table 0.0.1 → 0.0.2-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ProTable.d.ts +76 -58
- package/dist/_utils/ant-design-vue/pagination/typings.d.ts +1 -1
- package/dist/components/ListToolBar/index.d.ts +1 -1
- package/dist/context/TableContext.d.ts +1 -1
- package/dist/pro-table.mjs +1061 -1199
- package/dist/pro-table.umd.js +1 -1
- package/dist/types/column.d.ts +1 -1
- package/dist/types/table.d.ts +5 -6
- package/dist/typings/components.d.ts +1 -1
- package/dist/utils/config.d.ts +1 -0
- package/package.json +4 -3
- package/dist/utils/index.d.ts +0 -86
- package/dist/utils/validate.d.ts +0 -25
package/dist/ProTable.d.ts
CHANGED
|
@@ -68,12 +68,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
68
68
|
default: () => undefined;
|
|
69
69
|
};
|
|
70
70
|
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
|
-
*/
|
|
71
|
+
type: import("vue").PropType<string>;
|
|
77
72
|
default: string;
|
|
78
73
|
};
|
|
79
74
|
options: {
|
|
@@ -86,14 +81,14 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
86
81
|
optionsExtra: {
|
|
87
82
|
type: import("vue").PropType<VueNode>;
|
|
88
83
|
default: () => undefined;
|
|
89
|
-
};
|
|
84
|
+
}; /**
|
|
85
|
+
* @Author gx12358
|
|
86
|
+
* @DateTime 2022/1/21
|
|
87
|
+
* @lastTime 2022/1/21
|
|
88
|
+
* @description Tabel-scroll hooks 方法
|
|
89
|
+
*/
|
|
90
90
|
settingExtra: {
|
|
91
|
-
type: import("vue").PropType<VueNode>;
|
|
92
|
-
* @Author gx12358
|
|
93
|
-
* @DateTime 2022/1/21
|
|
94
|
-
* @lastTime 2022/1/21
|
|
95
|
-
* @description Tabel-scroll hooks 方法
|
|
96
|
-
*/
|
|
91
|
+
type: import("vue").PropType<VueNode>;
|
|
97
92
|
default: () => undefined;
|
|
98
93
|
};
|
|
99
94
|
showIndex: {
|
|
@@ -122,7 +117,12 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
122
117
|
};
|
|
123
118
|
draggabled: import("vue").PropType<boolean>;
|
|
124
119
|
autoScroll: {
|
|
125
|
-
type: import("vue").PropType<boolean>;
|
|
120
|
+
type: import("vue").PropType<boolean>; /**
|
|
121
|
+
* @Author gx12358
|
|
122
|
+
* @DateTime 2022/1/21
|
|
123
|
+
* @lastTime 2022/1/21
|
|
124
|
+
* @description Tabel-datasource hooks 方法
|
|
125
|
+
*/
|
|
126
126
|
default: boolean;
|
|
127
127
|
};
|
|
128
128
|
scrollBreakpoint: import("vue").PropType<string | number>;
|
|
@@ -237,7 +237,12 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
237
237
|
default: undefined;
|
|
238
238
|
};
|
|
239
239
|
showExpandColumn: {
|
|
240
|
-
type: BooleanConstructor;
|
|
240
|
+
type: BooleanConstructor; /**
|
|
241
|
+
* @Author gx12358
|
|
242
|
+
* @DateTime 2022/1/21
|
|
243
|
+
* @lastTime 2022/1/21
|
|
244
|
+
* @description Tabel-loading hooks 方法
|
|
245
|
+
*/
|
|
241
246
|
default: undefined;
|
|
242
247
|
};
|
|
243
248
|
expandedRowClassName: {
|
|
@@ -246,7 +251,12 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
246
251
|
};
|
|
247
252
|
childrenColumnName: {
|
|
248
253
|
type: import("vue").PropType<string | undefined>;
|
|
249
|
-
default: undefined;
|
|
254
|
+
default: undefined; /**
|
|
255
|
+
* @Author gx12358
|
|
256
|
+
* @DateTime 2022/1/21
|
|
257
|
+
* @lastTime 2022/1/21
|
|
258
|
+
* @description Tabel-size hooks 方法
|
|
259
|
+
*/
|
|
250
260
|
};
|
|
251
261
|
rowExpandable: {
|
|
252
262
|
type: import("vue").PropType<((record: any) => boolean) | undefined>;
|
|
@@ -261,12 +271,6 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
261
271
|
type: import("vue").PropType<any[] | undefined>;
|
|
262
272
|
default: undefined;
|
|
263
273
|
};
|
|
264
|
-
/**
|
|
265
|
-
* @Author gx12358
|
|
266
|
-
* @DateTime 2022/1/21
|
|
267
|
-
* @lastTime 2022/1/21
|
|
268
|
-
* @description Tabel-pagetion hooks 方法
|
|
269
|
-
*/
|
|
270
274
|
loading: {
|
|
271
275
|
type: import("vue").PropType<boolean | import("./_utils").SpinProps>;
|
|
272
276
|
default: undefined;
|
|
@@ -309,7 +313,12 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
309
313
|
};
|
|
310
314
|
transformCellText: {
|
|
311
315
|
type: import("vue").PropType<import("ant-design-vue/lib/vc-table/interface").TransformCellText<any> | undefined>;
|
|
312
|
-
};
|
|
316
|
+
}; /**
|
|
317
|
+
* @Author gx12358
|
|
318
|
+
* @DateTime 2022/1/21
|
|
319
|
+
* @lastTime 2022/1/21
|
|
320
|
+
* @description Tabel-Form(搜索) hooks 方法
|
|
321
|
+
*/
|
|
313
322
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("loadingChange" | "sizeChange" | "beforeSearchSubmit" | "postData" | "change" | "requestError" | "reload" | "reset" | "submit" | "expandedRowsChange" | "expand" | "columnsStateChange")[], "reload" | "loadingChange" | "sizeChange" | "postData" | "reset" | "submit" | "requestError" | "beforeSearchSubmit" | "columnsStateChange" | "change" | "expandedRowsChange" | "expand", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
314
323
|
rowSelection: {
|
|
315
324
|
type: import("vue").PropType<any>;
|
|
@@ -373,12 +382,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
373
382
|
default: () => undefined;
|
|
374
383
|
};
|
|
375
384
|
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
|
-
*/
|
|
385
|
+
type: import("vue").PropType<string>;
|
|
382
386
|
default: string;
|
|
383
387
|
};
|
|
384
388
|
options: {
|
|
@@ -391,14 +395,14 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
391
395
|
optionsExtra: {
|
|
392
396
|
type: import("vue").PropType<VueNode>;
|
|
393
397
|
default: () => undefined;
|
|
394
|
-
};
|
|
398
|
+
}; /**
|
|
399
|
+
* @Author gx12358
|
|
400
|
+
* @DateTime 2022/1/21
|
|
401
|
+
* @lastTime 2022/1/21
|
|
402
|
+
* @description Tabel-scroll hooks 方法
|
|
403
|
+
*/
|
|
395
404
|
settingExtra: {
|
|
396
|
-
type: import("vue").PropType<VueNode>;
|
|
397
|
-
* @Author gx12358
|
|
398
|
-
* @DateTime 2022/1/21
|
|
399
|
-
* @lastTime 2022/1/21
|
|
400
|
-
* @description Tabel-scroll hooks 方法
|
|
401
|
-
*/
|
|
405
|
+
type: import("vue").PropType<VueNode>;
|
|
402
406
|
default: () => undefined;
|
|
403
407
|
};
|
|
404
408
|
showIndex: {
|
|
@@ -427,7 +431,12 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
427
431
|
};
|
|
428
432
|
draggabled: import("vue").PropType<boolean>;
|
|
429
433
|
autoScroll: {
|
|
430
|
-
type: import("vue").PropType<boolean>;
|
|
434
|
+
type: import("vue").PropType<boolean>; /**
|
|
435
|
+
* @Author gx12358
|
|
436
|
+
* @DateTime 2022/1/21
|
|
437
|
+
* @lastTime 2022/1/21
|
|
438
|
+
* @description Tabel-datasource hooks 方法
|
|
439
|
+
*/
|
|
431
440
|
default: boolean;
|
|
432
441
|
};
|
|
433
442
|
scrollBreakpoint: import("vue").PropType<string | number>;
|
|
@@ -542,7 +551,12 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
542
551
|
default: undefined;
|
|
543
552
|
};
|
|
544
553
|
showExpandColumn: {
|
|
545
|
-
type: BooleanConstructor;
|
|
554
|
+
type: BooleanConstructor; /**
|
|
555
|
+
* @Author gx12358
|
|
556
|
+
* @DateTime 2022/1/21
|
|
557
|
+
* @lastTime 2022/1/21
|
|
558
|
+
* @description Tabel-loading hooks 方法
|
|
559
|
+
*/
|
|
546
560
|
default: undefined;
|
|
547
561
|
};
|
|
548
562
|
expandedRowClassName: {
|
|
@@ -551,7 +565,12 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
551
565
|
};
|
|
552
566
|
childrenColumnName: {
|
|
553
567
|
type: import("vue").PropType<string | undefined>;
|
|
554
|
-
default: undefined;
|
|
568
|
+
default: undefined; /**
|
|
569
|
+
* @Author gx12358
|
|
570
|
+
* @DateTime 2022/1/21
|
|
571
|
+
* @lastTime 2022/1/21
|
|
572
|
+
* @description Tabel-size hooks 方法
|
|
573
|
+
*/
|
|
555
574
|
};
|
|
556
575
|
rowExpandable: {
|
|
557
576
|
type: import("vue").PropType<((record: any) => boolean) | undefined>;
|
|
@@ -566,12 +585,6 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
566
585
|
type: import("vue").PropType<any[] | undefined>;
|
|
567
586
|
default: undefined;
|
|
568
587
|
};
|
|
569
|
-
/**
|
|
570
|
-
* @Author gx12358
|
|
571
|
-
* @DateTime 2022/1/21
|
|
572
|
-
* @lastTime 2022/1/21
|
|
573
|
-
* @description Tabel-pagetion hooks 方法
|
|
574
|
-
*/
|
|
575
588
|
loading: {
|
|
576
589
|
type: import("vue").PropType<boolean | import("./_utils").SpinProps>;
|
|
577
590
|
default: undefined;
|
|
@@ -614,7 +627,12 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
614
627
|
};
|
|
615
628
|
transformCellText: {
|
|
616
629
|
type: import("vue").PropType<import("ant-design-vue/lib/vc-table/interface").TransformCellText<any> | undefined>;
|
|
617
|
-
};
|
|
630
|
+
}; /**
|
|
631
|
+
* @Author gx12358
|
|
632
|
+
* @DateTime 2022/1/21
|
|
633
|
+
* @lastTime 2022/1/21
|
|
634
|
+
* @description Tabel-Form(搜索) hooks 方法
|
|
635
|
+
*/
|
|
618
636
|
}>> & {
|
|
619
637
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
620
638
|
onExpandedRowsChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -671,18 +689,6 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
671
689
|
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
690
|
getPopupContainer: import("ant-design-vue/es/table/interface").GetPopupContainer;
|
|
673
691
|
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
692
|
loading: boolean | import("./_utils").SpinProps;
|
|
687
693
|
rowSelection: any;
|
|
688
694
|
pagination: import("./types/table").ProTablePagination;
|
|
@@ -690,8 +696,20 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
690
696
|
waitRequest: boolean;
|
|
691
697
|
debounceTime: number;
|
|
692
698
|
searchMap: import("./types/column").ProSearchMap<"text", "date">[];
|
|
699
|
+
customize: WithFalse<(data?: RecordType[] | undefined) => CustomRender>;
|
|
700
|
+
toolBarBtn: ProVueNode;
|
|
701
|
+
headerTitle: ProVueNode;
|
|
702
|
+
titleTip: ProVueNode;
|
|
693
703
|
titleTipText: string;
|
|
694
704
|
options: boolean | OptionConfig;
|
|
705
|
+
optionsExtra: VueNode;
|
|
706
|
+
settingExtra: VueNode;
|
|
707
|
+
showIndex: boolean;
|
|
708
|
+
pageItemRender: WithFalse<(opt: {
|
|
709
|
+
page: number;
|
|
710
|
+
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
711
|
+
originalElement: any;
|
|
712
|
+
}) => CustomRender>;
|
|
695
713
|
bordered: boolean;
|
|
696
714
|
autoScroll: boolean;
|
|
697
715
|
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';
|
|
@@ -54,8 +54,8 @@ declare const ListToolBar: import("vue").DefineComponent<{
|
|
|
54
54
|
}>>, {
|
|
55
55
|
headerTitle: ProVueNode;
|
|
56
56
|
titleTip: ProVueNode;
|
|
57
|
-
optionsExtra: VueNode;
|
|
58
57
|
titleTipText: string;
|
|
58
|
+
optionsExtra: VueNode;
|
|
59
59
|
actions: ProVueNode;
|
|
60
60
|
}>;
|
|
61
61
|
export default ListToolBar;
|
|
@@ -2,7 +2,7 @@ import type { Ref, ComputedRef } from 'vue';
|
|
|
2
2
|
import type { InjectionKey, Slots } from 'vue';
|
|
3
3
|
import type { ProColumns } from '../types/column';
|
|
4
4
|
import type { ColumnsState, SettingsAction } from '../hooks/useColumnSetting';
|
|
5
|
-
import type { SizeType, PaginationProps } from '
|
|
5
|
+
import type { SizeType, PaginationProps } from '../_utils';
|
|
6
6
|
export declare type ContextType = any;
|
|
7
7
|
export interface TableContextProps {
|
|
8
8
|
columns?: ComputedRef<ProColumns>;
|