@gx-design-vue/pro-table 0.0.3-rc.3 → 0.0.3-rc.4
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 +57 -105
- package/dist/_utils/ant-design-vue/table/typings.d.ts +0 -6
- package/dist/components/ColumnSetting/index.d.ts +2 -2
- package/dist/components/Form/index.d.ts +6 -6
- package/dist/components/Form/useForm.d.ts +1 -1
- package/dist/components/ListToolBar/index.d.ts +12 -12
- package/dist/components/ToolBar/index.d.ts +3 -4
- package/dist/context/TableContext.d.ts +1 -1
- package/dist/hooks/useColumnSetting.d.ts +1 -1
- package/dist/hooks/useColums.d.ts +1 -1
- package/dist/hooks/useFetchData.d.ts +2 -2
- package/dist/hooks/usePagination.d.ts +1 -1
- package/dist/hooks/useTableForm.d.ts +2 -2
- package/dist/hooks/useTableScroll.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/pro-table.mjs +1006 -1018
- package/dist/pro-table.umd.js +1 -1
- package/dist/props.d.ts +19 -36
- package/dist/types/{column.d.ts → ColumnTypings.d.ts} +0 -0
- package/dist/types/SlotsTypings.d.ts +12 -0
- package/dist/types/{table.d.ts → TableTypings.d.ts} +14 -16
- package/dist/typing.d.ts +1 -2
- package/dist/utils/utils.d.ts +1 -1
- package/package.json +1 -1
package/dist/ProTable.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import type { ExtractPropTypes } from 'vue';
|
|
2
2
|
import type { RecordType } from './typing';
|
|
3
3
|
import type { FilterValue, SorterResult } from './_utils';
|
|
4
|
-
import type { OptionConfig } from './types/
|
|
5
|
-
import type { ProColumns } from './types/
|
|
4
|
+
import type { OptionConfig } from './types/TableTypings';
|
|
5
|
+
import type { ProColumns } from './types/ColumnTypings';
|
|
6
|
+
import type { HeaderTitleRender, TitleTipRender, ToolBarBtnRender, CustomizeRender, SettingExtraRender, OptionsExtraRender } from './types/SlotsTypings';
|
|
6
7
|
import { proTableProps } from './props';
|
|
7
8
|
import './style/index.less';
|
|
8
9
|
export declare type ProTableProps = Partial<ExtractPropTypes<typeof proTableProps>>;
|
|
9
10
|
declare const ProTable: import("vue").DefineComponent<{
|
|
10
11
|
rowSelection: {
|
|
11
|
-
type: import("vue").PropType<import("./types/
|
|
12
|
+
type: import("vue").PropType<import("./types/TableTypings").ProTableRowSelection<any>>;
|
|
12
13
|
default: undefined;
|
|
13
14
|
};
|
|
14
15
|
columns: {
|
|
@@ -16,7 +17,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
16
17
|
default: never[];
|
|
17
18
|
};
|
|
18
19
|
pagination: {
|
|
19
|
-
type: import("vue").PropType<import("./types/
|
|
20
|
+
type: import("vue").PropType<import("./types/TableTypings").ProTablePagination>;
|
|
20
21
|
default: () => undefined;
|
|
21
22
|
};
|
|
22
23
|
rowKey: {
|
|
@@ -24,7 +25,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
24
25
|
default: undefined;
|
|
25
26
|
};
|
|
26
27
|
request: {
|
|
27
|
-
type: import("vue").PropType<import("./types/
|
|
28
|
+
type: import("vue").PropType<import("./types/TableTypings").RequsetFunction<any>>;
|
|
28
29
|
default: null;
|
|
29
30
|
};
|
|
30
31
|
virtualScroll: import("vue").PropType<boolean>;
|
|
@@ -40,38 +41,30 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
40
41
|
default: number;
|
|
41
42
|
};
|
|
42
43
|
search: {
|
|
43
|
-
type: import("vue").PropType<import("./types/
|
|
44
|
-
default: () => import("./types/
|
|
44
|
+
type: import("vue").PropType<import("./types/TableTypings").SearchConfig>;
|
|
45
|
+
default: () => import("./types/TableTypings").SearchConfig;
|
|
45
46
|
};
|
|
46
47
|
searchMap: {
|
|
47
|
-
type: import("vue").PropType<import("./types/
|
|
48
|
+
type: import("vue").PropType<import("./types/ColumnTypings").ProSearchMap<"text", "date">[]>;
|
|
48
49
|
default: () => never[];
|
|
49
50
|
};
|
|
50
|
-
customize:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
};
|
|
54
|
-
actionRef: import("vue").PropType<import("./types/table").ProCoreActionType>;
|
|
55
|
-
formRef: import("vue").PropType<import("./types/table").ProCoreFormType>;
|
|
51
|
+
customize: import("vue").PropType<CustomizeRender>;
|
|
52
|
+
actionRef: import("vue").PropType<import("./types/TableTypings").ProCoreActionType>;
|
|
53
|
+
formRef: import("vue").PropType<import("./types/TableTypings").ProCoreFormType>;
|
|
56
54
|
tableClassName: import("vue").PropType<String>;
|
|
57
55
|
tableStyle: {
|
|
58
56
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
59
57
|
};
|
|
60
58
|
toolBarBtn: {
|
|
61
|
-
type: import("vue").PropType<
|
|
62
|
-
* @Author gx12358
|
|
63
|
-
* @DateTime 2022/1/21
|
|
64
|
-
* @lastTime 2022/1/21
|
|
65
|
-
* @description Tabel-loading hooks 方法
|
|
66
|
-
*/
|
|
59
|
+
type: import("vue").PropType<ToolBarBtnRender>;
|
|
67
60
|
default: () => undefined;
|
|
68
61
|
};
|
|
69
62
|
headerTitle: {
|
|
70
|
-
type: import("vue").PropType<
|
|
63
|
+
type: import("vue").PropType<HeaderTitleRender>;
|
|
71
64
|
default: () => undefined;
|
|
72
65
|
};
|
|
73
66
|
titleTip: {
|
|
74
|
-
type: import("vue").PropType<
|
|
67
|
+
type: import("vue").PropType<TitleTipRender>;
|
|
75
68
|
default: () => undefined;
|
|
76
69
|
};
|
|
77
70
|
titleTipText: {
|
|
@@ -86,11 +79,11 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
86
79
|
type: import("vue").PropType<import("./hooks/useColumnSetting").ColumnsStateType>;
|
|
87
80
|
};
|
|
88
81
|
optionsExtra: {
|
|
89
|
-
type: import("vue").PropType<
|
|
82
|
+
type: import("vue").PropType<OptionsExtraRender>;
|
|
90
83
|
default: () => undefined;
|
|
91
84
|
};
|
|
92
85
|
settingExtra: {
|
|
93
|
-
type: import("vue").PropType<
|
|
86
|
+
type: import("vue").PropType<SettingExtraRender>;
|
|
94
87
|
default: () => undefined;
|
|
95
88
|
};
|
|
96
89
|
showIndex: {
|
|
@@ -98,11 +91,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
98
91
|
default: boolean;
|
|
99
92
|
};
|
|
100
93
|
pageItemRender: {
|
|
101
|
-
type: import("vue").PropType<import("./
|
|
102
|
-
page: number;
|
|
103
|
-
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
104
|
-
originalElement: any;
|
|
105
|
-
}) => import("./typing").CustomRender>>;
|
|
94
|
+
type: import("vue").PropType<import("./types/SlotsTypings").PageItemRender>;
|
|
106
95
|
default: () => undefined;
|
|
107
96
|
};
|
|
108
97
|
size: {
|
|
@@ -126,7 +115,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
126
115
|
modalScroll: import("vue").PropType<boolean>;
|
|
127
116
|
neverScroll: import("vue").PropType<boolean>;
|
|
128
117
|
columnEmptyText: {
|
|
129
|
-
type: import("vue").PropType<import("./types/
|
|
118
|
+
type: import("vue").PropType<import("./types/TableTypings").ProFieldEmptyText>;
|
|
130
119
|
default: boolean;
|
|
131
120
|
};
|
|
132
121
|
onReset: import("vue").PropType<(params?: Partial<Record<string, any>> | undefined) => any>;
|
|
@@ -135,7 +124,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
135
124
|
onSizeChange: import("vue").PropType<(size: string) => any>;
|
|
136
125
|
onLadingChange: import("vue").PropType<(loading: boolean) => any>;
|
|
137
126
|
onRequestError: import("vue").PropType<(e: Error) => void>;
|
|
138
|
-
onBeforeSearchSubmit: import("vue").PropType<import("./types/
|
|
127
|
+
onBeforeSearchSubmit: import("vue").PropType<import("./types/TableTypings").RequsetFunction<RecordType>>;
|
|
139
128
|
onColumnsStateChange: import("vue").PropType<(data: import("./hooks/useColumnSetting").ColumnsState[]) => void>;
|
|
140
129
|
prefixCls: {
|
|
141
130
|
type: import("vue").PropType<string>;
|
|
@@ -235,18 +224,8 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
235
224
|
};
|
|
236
225
|
showExpandColumn: {
|
|
237
226
|
type: BooleanConstructor;
|
|
238
|
-
default: undefined;
|
|
239
|
-
|
|
240
|
-
* @DateTime 2022/1/21
|
|
241
|
-
* @lastTime 2022/1/21
|
|
242
|
-
* @description Tabel-loading hooks 方法
|
|
243
|
-
*/
|
|
244
|
-
}; /**
|
|
245
|
-
* @Author gx12358
|
|
246
|
-
* @DateTime 2022/1/21
|
|
247
|
-
* @lastTime 2022/1/21
|
|
248
|
-
* @description Tabel-loading hooks 方法
|
|
249
|
-
*/
|
|
227
|
+
default: undefined;
|
|
228
|
+
};
|
|
250
229
|
expandedRowClassName: {
|
|
251
230
|
type: import("vue").PropType<import("ant-design-vue/lib/vc-table/interface").RowClassName<any> | undefined>;
|
|
252
231
|
default: undefined;
|
|
@@ -313,7 +292,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
313
292
|
};
|
|
314
293
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("loadingChange" | "sizeChange" | "reset" | "change" | "requestError" | "reload" | "submit" | "expandedRowsChange" | "expand" | "beforeSearchSubmit" | "columnsStateChange")[], "loadingChange" | "sizeChange" | "reset" | "change" | "requestError" | "reload" | "submit" | "expandedRowsChange" | "expand" | "beforeSearchSubmit" | "columnsStateChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
315
294
|
rowSelection: {
|
|
316
|
-
type: import("vue").PropType<import("./types/
|
|
295
|
+
type: import("vue").PropType<import("./types/TableTypings").ProTableRowSelection<any>>;
|
|
317
296
|
default: undefined;
|
|
318
297
|
};
|
|
319
298
|
columns: {
|
|
@@ -321,7 +300,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
321
300
|
default: never[];
|
|
322
301
|
};
|
|
323
302
|
pagination: {
|
|
324
|
-
type: import("vue").PropType<import("./types/
|
|
303
|
+
type: import("vue").PropType<import("./types/TableTypings").ProTablePagination>;
|
|
325
304
|
default: () => undefined;
|
|
326
305
|
};
|
|
327
306
|
rowKey: {
|
|
@@ -329,7 +308,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
329
308
|
default: undefined;
|
|
330
309
|
};
|
|
331
310
|
request: {
|
|
332
|
-
type: import("vue").PropType<import("./types/
|
|
311
|
+
type: import("vue").PropType<import("./types/TableTypings").RequsetFunction<any>>;
|
|
333
312
|
default: null;
|
|
334
313
|
};
|
|
335
314
|
virtualScroll: import("vue").PropType<boolean>;
|
|
@@ -345,38 +324,30 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
345
324
|
default: number;
|
|
346
325
|
};
|
|
347
326
|
search: {
|
|
348
|
-
type: import("vue").PropType<import("./types/
|
|
349
|
-
default: () => import("./types/
|
|
327
|
+
type: import("vue").PropType<import("./types/TableTypings").SearchConfig>;
|
|
328
|
+
default: () => import("./types/TableTypings").SearchConfig;
|
|
350
329
|
};
|
|
351
330
|
searchMap: {
|
|
352
|
-
type: import("vue").PropType<import("./types/
|
|
331
|
+
type: import("vue").PropType<import("./types/ColumnTypings").ProSearchMap<"text", "date">[]>;
|
|
353
332
|
default: () => never[];
|
|
354
333
|
};
|
|
355
|
-
customize:
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
};
|
|
359
|
-
actionRef: import("vue").PropType<import("./types/table").ProCoreActionType>;
|
|
360
|
-
formRef: import("vue").PropType<import("./types/table").ProCoreFormType>;
|
|
334
|
+
customize: import("vue").PropType<CustomizeRender>;
|
|
335
|
+
actionRef: import("vue").PropType<import("./types/TableTypings").ProCoreActionType>;
|
|
336
|
+
formRef: import("vue").PropType<import("./types/TableTypings").ProCoreFormType>;
|
|
361
337
|
tableClassName: import("vue").PropType<String>;
|
|
362
338
|
tableStyle: {
|
|
363
339
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
364
340
|
};
|
|
365
341
|
toolBarBtn: {
|
|
366
|
-
type: import("vue").PropType<
|
|
367
|
-
* @Author gx12358
|
|
368
|
-
* @DateTime 2022/1/21
|
|
369
|
-
* @lastTime 2022/1/21
|
|
370
|
-
* @description Tabel-loading hooks 方法
|
|
371
|
-
*/
|
|
342
|
+
type: import("vue").PropType<ToolBarBtnRender>;
|
|
372
343
|
default: () => undefined;
|
|
373
344
|
};
|
|
374
345
|
headerTitle: {
|
|
375
|
-
type: import("vue").PropType<
|
|
346
|
+
type: import("vue").PropType<HeaderTitleRender>;
|
|
376
347
|
default: () => undefined;
|
|
377
348
|
};
|
|
378
349
|
titleTip: {
|
|
379
|
-
type: import("vue").PropType<
|
|
350
|
+
type: import("vue").PropType<TitleTipRender>;
|
|
380
351
|
default: () => undefined;
|
|
381
352
|
};
|
|
382
353
|
titleTipText: {
|
|
@@ -391,11 +362,11 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
391
362
|
type: import("vue").PropType<import("./hooks/useColumnSetting").ColumnsStateType>;
|
|
392
363
|
};
|
|
393
364
|
optionsExtra: {
|
|
394
|
-
type: import("vue").PropType<
|
|
365
|
+
type: import("vue").PropType<OptionsExtraRender>;
|
|
395
366
|
default: () => undefined;
|
|
396
367
|
};
|
|
397
368
|
settingExtra: {
|
|
398
|
-
type: import("vue").PropType<
|
|
369
|
+
type: import("vue").PropType<SettingExtraRender>;
|
|
399
370
|
default: () => undefined;
|
|
400
371
|
};
|
|
401
372
|
showIndex: {
|
|
@@ -403,11 +374,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
403
374
|
default: boolean;
|
|
404
375
|
};
|
|
405
376
|
pageItemRender: {
|
|
406
|
-
type: import("vue").PropType<import("./
|
|
407
|
-
page: number;
|
|
408
|
-
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
409
|
-
originalElement: any;
|
|
410
|
-
}) => import("./typing").CustomRender>>;
|
|
377
|
+
type: import("vue").PropType<import("./types/SlotsTypings").PageItemRender>;
|
|
411
378
|
default: () => undefined;
|
|
412
379
|
};
|
|
413
380
|
size: {
|
|
@@ -431,7 +398,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
431
398
|
modalScroll: import("vue").PropType<boolean>;
|
|
432
399
|
neverScroll: import("vue").PropType<boolean>;
|
|
433
400
|
columnEmptyText: {
|
|
434
|
-
type: import("vue").PropType<import("./types/
|
|
401
|
+
type: import("vue").PropType<import("./types/TableTypings").ProFieldEmptyText>;
|
|
435
402
|
default: boolean;
|
|
436
403
|
};
|
|
437
404
|
onReset: import("vue").PropType<(params?: Partial<Record<string, any>> | undefined) => any>;
|
|
@@ -440,7 +407,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
440
407
|
onSizeChange: import("vue").PropType<(size: string) => any>;
|
|
441
408
|
onLadingChange: import("vue").PropType<(loading: boolean) => any>;
|
|
442
409
|
onRequestError: import("vue").PropType<(e: Error) => void>;
|
|
443
|
-
onBeforeSearchSubmit: import("vue").PropType<import("./types/
|
|
410
|
+
onBeforeSearchSubmit: import("vue").PropType<import("./types/TableTypings").RequsetFunction<RecordType>>;
|
|
444
411
|
onColumnsStateChange: import("vue").PropType<(data: import("./hooks/useColumnSetting").ColumnsState[]) => void>;
|
|
445
412
|
prefixCls: {
|
|
446
413
|
type: import("vue").PropType<string>;
|
|
@@ -540,18 +507,8 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
540
507
|
};
|
|
541
508
|
showExpandColumn: {
|
|
542
509
|
type: BooleanConstructor;
|
|
543
|
-
default: undefined;
|
|
544
|
-
|
|
545
|
-
* @DateTime 2022/1/21
|
|
546
|
-
* @lastTime 2022/1/21
|
|
547
|
-
* @description Tabel-loading hooks 方法
|
|
548
|
-
*/
|
|
549
|
-
}; /**
|
|
550
|
-
* @Author gx12358
|
|
551
|
-
* @DateTime 2022/1/21
|
|
552
|
-
* @lastTime 2022/1/21
|
|
553
|
-
* @description Tabel-loading hooks 方法
|
|
554
|
-
*/
|
|
510
|
+
default: undefined;
|
|
511
|
+
};
|
|
555
512
|
expandedRowClassName: {
|
|
556
513
|
type: import("vue").PropType<import("ant-design-vue/lib/vc-table/interface").RowClassName<any> | undefined>;
|
|
557
514
|
default: undefined;
|
|
@@ -621,8 +578,8 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
621
578
|
onExpandedRowsChange?: ((...args: any[]) => any) | undefined;
|
|
622
579
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
623
580
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
624
|
-
onReload?: ((...args: any[]) => any) | undefined;
|
|
625
581
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
582
|
+
onReload?: ((...args: any[]) => any) | undefined;
|
|
626
583
|
onSizeChange?: ((...args: any[]) => any) | undefined;
|
|
627
584
|
onRequestError?: ((...args: any[]) => any) | undefined;
|
|
628
585
|
onBeforeSearchSubmit?: ((...args: any[]) => any) | undefined;
|
|
@@ -670,35 +627,30 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
670
627
|
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;
|
|
671
628
|
getPopupContainer: import("ant-design-vue/es/table/interface").GetPopupContainer;
|
|
672
629
|
align: import("ant-design-vue/es/vc-table/interface").AlignType;
|
|
630
|
+
autoScroll: boolean;
|
|
631
|
+
search: import("./types/TableTypings").SearchConfig;
|
|
632
|
+
sortDirections: import("ant-design-vue/es/table/interface").SortOrder[];
|
|
633
|
+
showSorterTooltip: boolean | import("./_utils").TooltipProps;
|
|
634
|
+
columnEmptyText: import("./types/TableTypings").ProFieldEmptyText;
|
|
673
635
|
loading: boolean | import("./_utils").SpinProps;
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
request: import("./types/table").RequsetFunction<any>;
|
|
636
|
+
rowSelection: import("./types/TableTypings").ProTableRowSelection<any>;
|
|
637
|
+
pagination: import("./types/TableTypings").ProTablePagination;
|
|
638
|
+
request: import("./types/TableTypings").RequsetFunction<any>;
|
|
678
639
|
waitRequest: boolean;
|
|
679
640
|
debounceTime: number;
|
|
680
|
-
searchMap: import("./types/
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
titleTip: import("./typing").ProVueNode;
|
|
641
|
+
searchMap: import("./types/ColumnTypings").ProSearchMap<"text", "date">[];
|
|
642
|
+
toolBarBtn: ToolBarBtnRender;
|
|
643
|
+
headerTitle: HeaderTitleRender;
|
|
644
|
+
titleTip: TitleTipRender;
|
|
685
645
|
titleTipText: string;
|
|
686
646
|
options: boolean | OptionConfig;
|
|
687
|
-
optionsExtra:
|
|
688
|
-
settingExtra:
|
|
647
|
+
optionsExtra: OptionsExtraRender;
|
|
648
|
+
settingExtra: SettingExtraRender;
|
|
689
649
|
showIndex: boolean;
|
|
690
|
-
pageItemRender: import("./
|
|
691
|
-
page: number;
|
|
692
|
-
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
693
|
-
originalElement: any;
|
|
694
|
-
}) => import("./typing").CustomRender>;
|
|
650
|
+
pageItemRender: import("./types/SlotsTypings").PageItemRender;
|
|
695
651
|
bordered: boolean;
|
|
696
|
-
autoScroll: boolean;
|
|
697
|
-
columnEmptyText: import("./types/table").ProFieldEmptyText;
|
|
698
652
|
'onUpdate:expandedRowKeys': ((expandedKeys: import("ant-design-vue/lib/vc-table/interface").Key[]) => void) | undefined;
|
|
699
653
|
dataSource: any[] | undefined;
|
|
700
654
|
onResizeColumn: (w: number, col: import("ant-design-vue/es/table/interface").ColumnType<any>) => void;
|
|
701
|
-
sortDirections: import("ant-design-vue/es/table/interface").SortOrder[];
|
|
702
|
-
showSorterTooltip: boolean | import("./_utils").TooltipProps;
|
|
703
655
|
}>;
|
|
704
656
|
export default ProTable;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import type { TableProps } from 'ant-design-vue';
|
|
2
|
-
import type { WithFalse, CustomRender } from '../../../typing';
|
|
3
2
|
export type { ContextSlots } from 'ant-design-vue/es/table/context';
|
|
4
|
-
export declare type PageItemRender = WithFalse<(opt: {
|
|
5
|
-
page: number;
|
|
6
|
-
type: 'page' | 'prev' | 'next' | 'jump-prev' | 'jump-next';
|
|
7
|
-
originalElement: any;
|
|
8
|
-
}) => CustomRender>;
|
|
9
3
|
export type { Key, SortOrder, ColumnFilterItem, ColumnTitle, CompareFn, FilterDropdownProps, GetRowKey, FilterValue, ColumnsType, ExpandType, TablePaginationConfig, TableAction, TableLocale, SorterResult, TableCurrentDataSource, ColumnType, TableRowSelection, GetPopupContainer } from 'ant-design-vue/es/table/interface';
|
|
10
4
|
export type { AlignType, CellEllipsisType, DataIndex, FixedType, GetComponentProps, RenderedCell } from 'ant-design-vue/es/vc-table/interface';
|
|
11
5
|
export type { TableProps as RcTableProps } from 'ant-design-vue/es/vc-table/Table';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { FunctionalComponent as FC } from 'vue';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SettingExtraRender } from '../../types/SlotsTypings';
|
|
3
3
|
import './style.less';
|
|
4
4
|
export declare type ColumnSettingProps = {
|
|
5
5
|
draggable?: boolean;
|
|
6
6
|
checkable?: boolean;
|
|
7
|
-
extra?:
|
|
7
|
+
extra?: SettingExtraRender;
|
|
8
8
|
checkedReset?: boolean;
|
|
9
9
|
};
|
|
10
10
|
declare const ColumnSetting: FC<ColumnSettingProps>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { PropType, RecordType } from '../../typing';
|
|
2
|
-
import type { ProSearchMap } from '../../types/
|
|
2
|
+
import type { ProSearchMap } from '../../types/ColumnTypings';
|
|
3
3
|
import './style.less';
|
|
4
4
|
declare const ProTableForm: import("vue").DefineComponent<{
|
|
5
5
|
search: {
|
|
6
|
-
type: import("vue").PropType<import("../../types/
|
|
7
|
-
default: () => import("../../types/
|
|
6
|
+
type: import("vue").PropType<import("../../types/TableTypings").SearchConfig>;
|
|
7
|
+
default: () => import("../../types/TableTypings").SearchConfig;
|
|
8
8
|
};
|
|
9
9
|
modal: import("vue").PropType<boolean>;
|
|
10
10
|
searchMap: {
|
|
@@ -16,8 +16,8 @@ declare const ProTableForm: import("vue").DefineComponent<{
|
|
|
16
16
|
defaultParams: PropType<RecordType>;
|
|
17
17
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "search"[], "search", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
18
|
search: {
|
|
19
|
-
type: import("vue").PropType<import("../../types/
|
|
20
|
-
default: () => import("../../types/
|
|
19
|
+
type: import("vue").PropType<import("../../types/TableTypings").SearchConfig>;
|
|
20
|
+
default: () => import("../../types/TableTypings").SearchConfig;
|
|
21
21
|
};
|
|
22
22
|
modal: import("vue").PropType<boolean>;
|
|
23
23
|
searchMap: {
|
|
@@ -30,7 +30,7 @@ declare const ProTableForm: import("vue").DefineComponent<{
|
|
|
30
30
|
}>> & {
|
|
31
31
|
onSearch?: ((...args: any[]) => any) | undefined;
|
|
32
32
|
}, {
|
|
33
|
-
search: import("../../types/
|
|
33
|
+
search: import("../../types/TableTypings").SearchConfig;
|
|
34
34
|
searchMap: ProSearchMap<"text", "date">[];
|
|
35
35
|
}>;
|
|
36
36
|
export default ProTableForm;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RecordType } from '../../typing';
|
|
2
|
-
import type { ProSearchMap } from '../../types/
|
|
2
|
+
import type { ProSearchMap } from '../../types/ColumnTypings';
|
|
3
3
|
export declare function useForm(defaultParams: RecordType, searchMap: ProSearchMap[]): {
|
|
4
4
|
formState: any;
|
|
5
5
|
resetFormState: () => void;
|
|
@@ -8,17 +8,17 @@ export declare type ListToolBarSetting = {
|
|
|
8
8
|
};
|
|
9
9
|
declare const ListToolBar: import("vue").DefineComponent<{
|
|
10
10
|
actions: {
|
|
11
|
-
type: import("vue").PropType<import("../../
|
|
11
|
+
type: import("vue").PropType<import("../../types/SlotsTypings").ToolBarBtnRender>;
|
|
12
12
|
default: () => undefined;
|
|
13
13
|
};
|
|
14
14
|
settings: PropType<VueNode[]>;
|
|
15
15
|
titleTip: {
|
|
16
|
-
type: import("vue").PropType<import("../../
|
|
16
|
+
type: import("vue").PropType<import("../../types/SlotsTypings").TitleTipRender>;
|
|
17
17
|
default: () => undefined;
|
|
18
18
|
};
|
|
19
19
|
prefixCls: StringConstructor;
|
|
20
20
|
headerTitle: {
|
|
21
|
-
type: import("vue").PropType<import("../../
|
|
21
|
+
type: import("vue").PropType<import("../../types/SlotsTypings").HeaderTitleRender>;
|
|
22
22
|
default: () => undefined;
|
|
23
23
|
};
|
|
24
24
|
titleTipText: {
|
|
@@ -26,22 +26,22 @@ declare const ListToolBar: import("vue").DefineComponent<{
|
|
|
26
26
|
default: string;
|
|
27
27
|
};
|
|
28
28
|
optionsExtra: {
|
|
29
|
-
type: import("vue").PropType<import("../../
|
|
29
|
+
type: import("vue").PropType<import("../../types/SlotsTypings").OptionsExtraRender>;
|
|
30
30
|
default: () => undefined;
|
|
31
31
|
};
|
|
32
32
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
33
|
actions: {
|
|
34
|
-
type: import("vue").PropType<import("../../
|
|
34
|
+
type: import("vue").PropType<import("../../types/SlotsTypings").ToolBarBtnRender>;
|
|
35
35
|
default: () => undefined;
|
|
36
36
|
};
|
|
37
37
|
settings: PropType<VueNode[]>;
|
|
38
38
|
titleTip: {
|
|
39
|
-
type: import("vue").PropType<import("../../
|
|
39
|
+
type: import("vue").PropType<import("../../types/SlotsTypings").TitleTipRender>;
|
|
40
40
|
default: () => undefined;
|
|
41
41
|
};
|
|
42
42
|
prefixCls: StringConstructor;
|
|
43
43
|
headerTitle: {
|
|
44
|
-
type: import("vue").PropType<import("../../
|
|
44
|
+
type: import("vue").PropType<import("../../types/SlotsTypings").HeaderTitleRender>;
|
|
45
45
|
default: () => undefined;
|
|
46
46
|
};
|
|
47
47
|
titleTipText: {
|
|
@@ -49,14 +49,14 @@ declare const ListToolBar: import("vue").DefineComponent<{
|
|
|
49
49
|
default: string;
|
|
50
50
|
};
|
|
51
51
|
optionsExtra: {
|
|
52
|
-
type: import("vue").PropType<import("../../
|
|
52
|
+
type: import("vue").PropType<import("../../types/SlotsTypings").OptionsExtraRender>;
|
|
53
53
|
default: () => undefined;
|
|
54
54
|
};
|
|
55
55
|
}>>, {
|
|
56
|
-
headerTitle: import("../../
|
|
57
|
-
titleTip: import("../../
|
|
56
|
+
headerTitle: import("../../types/SlotsTypings").HeaderTitleRender;
|
|
57
|
+
titleTip: import("../../types/SlotsTypings").TitleTipRender;
|
|
58
58
|
titleTipText: string;
|
|
59
|
-
optionsExtra: import("../../
|
|
60
|
-
actions: import("../../
|
|
59
|
+
optionsExtra: import("../../types/SlotsTypings").OptionsExtraRender;
|
|
60
|
+
actions: import("../../types/SlotsTypings").ToolBarBtnRender;
|
|
61
61
|
}>;
|
|
62
62
|
export default ListToolBar;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import type { FunctionalComponent as FC } from 'vue';
|
|
2
2
|
import type { ProTableProps } from '../../ProTable';
|
|
3
|
-
import type {
|
|
4
|
-
import type { OptionConfig } from '../../types/table';
|
|
3
|
+
import type { OptionConfig } from '../../types/TableTypings';
|
|
5
4
|
import './style.less';
|
|
6
5
|
export declare type ToolBarProps = {
|
|
7
6
|
headerTitle?: ProTableProps['headerTitle'];
|
|
8
7
|
titleTip?: ProTableProps['titleTip'];
|
|
9
8
|
toolBarBtn?: ProTableProps['toolBarBtn'];
|
|
10
9
|
titleTipText?: string;
|
|
11
|
-
optionsExtra?:
|
|
12
|
-
settingExtra?:
|
|
10
|
+
optionsExtra?: ProTableProps['optionsExtra'];
|
|
11
|
+
settingExtra?: ProTableProps['settingExtra'];
|
|
13
12
|
options?: OptionConfig | boolean;
|
|
14
13
|
};
|
|
15
14
|
export declare type OptionsFunctionType = () => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Ref, ComputedRef } from 'vue';
|
|
2
2
|
import type { InjectionKey, Slots } from 'vue';
|
|
3
3
|
import type { SizeType } from '../typing';
|
|
4
|
-
import type { ProColumns } from '../types/
|
|
4
|
+
import type { ProColumns } from '../types/ColumnTypings';
|
|
5
5
|
import type { ColumnsState, SettingsAction } from '../hooks/useColumnSetting';
|
|
6
6
|
import type { PaginationProps } from '../_utils';
|
|
7
7
|
export declare type ContextType = any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
|
-
import type { ProColumns } from '../types/
|
|
2
|
+
import type { ProColumns } from '../types/ColumnTypings';
|
|
3
3
|
export declare type SettingsOperationType = 'fixed' | 'drop' | 'show' | undefined;
|
|
4
4
|
export declare type ColumnsState = {
|
|
5
5
|
show?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Ref, ComputedRef } from 'vue';
|
|
2
2
|
import type { ColumnsState } from './useColumnSetting';
|
|
3
3
|
import type { ProTableProps } from '../ProTable';
|
|
4
|
-
import type { ProColumn, ProColumns } from '../types/
|
|
4
|
+
import type { ProColumn, ProColumns } from '../types/ColumnTypings';
|
|
5
5
|
export declare type ConfigColumns = {
|
|
6
6
|
draggabled: ComputedRef<ProTableProps['draggabled']>;
|
|
7
7
|
neverScroll: ComputedRef<ProTableProps['neverScroll']>;
|
|
@@ -2,8 +2,8 @@ import type { ComputedRef } from 'vue';
|
|
|
2
2
|
import type { SpinProps } from '../_utils';
|
|
3
3
|
import type { ProTableProps } from '../ProTable';
|
|
4
4
|
import type { RecordType } from '../typing';
|
|
5
|
-
import type { ProTablePagination, ProTablePaginationConfig } from '../types/
|
|
6
|
-
import type { ProColumns } from '../types/
|
|
5
|
+
import type { ProTablePagination, ProTablePaginationConfig } from '../types/TableTypings';
|
|
6
|
+
import type { ProColumns } from '../types/ColumnTypings';
|
|
7
7
|
interface ActionType {
|
|
8
8
|
getLoading: ComputedRef<boolean | SpinProps | undefined>;
|
|
9
9
|
getPaginationInfo: ComputedRef<ProTablePagination>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Ref, Slots, ComputedRef } from 'vue';
|
|
2
2
|
import type { ProTableProps } from '../ProTable';
|
|
3
|
-
import type { ProTablePagination } from '../types/
|
|
3
|
+
import type { ProTablePagination } from '../types/TableTypings';
|
|
4
4
|
export declare function usePagination({ slots, props, pagination }: {
|
|
5
5
|
slots: Slots;
|
|
6
6
|
props: ComputedRef<ProTableProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ComputedRef, Ref } from 'vue';
|
|
2
2
|
import type { RecordType } from '../typing';
|
|
3
3
|
import type { ProTableProps } from '../ProTable';
|
|
4
|
-
import type { SearchConfig } from '../types/
|
|
5
|
-
import type { ProSearchMap } from '../types/
|
|
4
|
+
import type { SearchConfig } from '../types/TableTypings';
|
|
5
|
+
import type { ProSearchMap } from '../types/ColumnTypings';
|
|
6
6
|
export declare function useTableForm({ search, searchMap, params, columns }: {
|
|
7
7
|
search: Ref<SearchConfig>;
|
|
8
8
|
searchMap: Ref<ProSearchMap[]>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComputedRef, Ref } from 'vue';
|
|
2
2
|
import type { Breakpoint } from '../typing';
|
|
3
3
|
import type { ProTableProps } from '../ProTable';
|
|
4
|
-
import type { ProColumns } from '../types/
|
|
4
|
+
import type { ProColumns } from '../types/ColumnTypings';
|
|
5
5
|
declare type ConfigScroll = {
|
|
6
6
|
scroll: ComputedRef<ProTableProps['scroll']>;
|
|
7
7
|
autoScroll: ComputedRef<ProTableProps['autoScroll']>;
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,6 @@ import './style.less';
|
|
|
7
7
|
export { proTableProps } from './props';
|
|
8
8
|
export { default } from './ProTable';
|
|
9
9
|
export type { ProTableProps } from './ProTable';
|
|
10
|
-
export type { RequsetFunction,
|
|
11
|
-
export type { ProColumn, ProColumns } from './types/
|
|
10
|
+
export type { RequsetFunction, ProTableRef, ProCoreActionType, ProTabelFeachParams, ProCoreFormType } from './types/TableTypings';
|
|
11
|
+
export type { ProColumn, ProColumns } from './types/ColumnTypings';
|
|
12
12
|
export { default as ProTable } from './ProTable';
|