@gx-design-vue/pro-table 0.0.3 → 0.0.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 -102
- package/dist/_utils/ant-design-vue/table/typings.d.ts +7 -8
- package/dist/components/ColumnSetting/index.d.ts +2 -2
- package/dist/components/Form/index.d.ts +9 -9
- 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 +9 -9
- package/dist/hooks/usePagination.d.ts +1 -1
- package/dist/hooks/useTableForm.d.ts +4 -3
- package/dist/hooks/useTableScroll.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/pro-table.mjs +1093 -1088
- package/dist/pro-table.umd.js +1 -1
- package/dist/props.d.ts +16 -52
- package/dist/types/{column.d.ts → ColumnTypings.d.ts} +5 -6
- package/dist/types/SlotsTypings.d.ts +12 -0
- package/dist/types/{table.d.ts → TableTypings.d.ts} +25 -25
- package/dist/typing.d.ts +1 -2
- package/dist/utils/utils.d.ts +1 -1
- package/package.json +3 -3
package/dist/ProTable.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { ExtractPropTypes } from 'vue';
|
|
2
2
|
import type { RecordType } from './typing';
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
3
|
+
import type { OptionConfig } from './types/TableTypings';
|
|
4
|
+
import type { ProColumns } from './types/ColumnTypings';
|
|
5
|
+
import type { HeaderTitleRender, TitleTipRender, ToolBarBtnRender, CustomizeRender, SettingExtraRender, OptionsExtraRender } from './types/SlotsTypings';
|
|
6
6
|
import { proTableProps } from './props';
|
|
7
7
|
import './style/index.less';
|
|
8
8
|
export declare type ProTableProps = Partial<ExtractPropTypes<typeof proTableProps>>;
|
|
9
9
|
declare const ProTable: import("vue").DefineComponent<{
|
|
10
10
|
rowSelection: {
|
|
11
|
-
type: import("vue").PropType<import("./types/
|
|
11
|
+
type: import("vue").PropType<import("./types/TableTypings").ProTableRowSelection<any>>;
|
|
12
12
|
default: undefined;
|
|
13
13
|
};
|
|
14
14
|
columns: {
|
|
@@ -16,7 +16,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
16
16
|
default: never[];
|
|
17
17
|
};
|
|
18
18
|
pagination: {
|
|
19
|
-
type: import("vue").PropType<import("./types/
|
|
19
|
+
type: import("vue").PropType<import("./types/TableTypings").ProTablePagination>;
|
|
20
20
|
default: () => undefined;
|
|
21
21
|
};
|
|
22
22
|
rowKey: {
|
|
@@ -24,7 +24,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
24
24
|
default: undefined;
|
|
25
25
|
};
|
|
26
26
|
request: {
|
|
27
|
-
type: import("vue").PropType<import("./types/
|
|
27
|
+
type: import("vue").PropType<import("./types/TableTypings").RequsetFunction<any>>;
|
|
28
28
|
default: null;
|
|
29
29
|
};
|
|
30
30
|
virtualScroll: import("vue").PropType<boolean>;
|
|
@@ -40,33 +40,28 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
40
40
|
default: number;
|
|
41
41
|
};
|
|
42
42
|
search: {
|
|
43
|
-
type: import("vue").PropType<import("./types/
|
|
44
|
-
default: () => import("./types/
|
|
43
|
+
type: import("vue").PropType<import("./types/TableTypings").SearchConfig>;
|
|
44
|
+
default: () => import("./types/TableTypings").SearchConfig;
|
|
45
45
|
};
|
|
46
46
|
searchMap: {
|
|
47
|
-
type: import("vue").PropType<import("./types/
|
|
47
|
+
type: import("vue").PropType<import("./types/ColumnTypings").ProSearchMap<"text">[]>;
|
|
48
48
|
default: () => never[];
|
|
49
49
|
};
|
|
50
|
-
customize:
|
|
51
|
-
type: import("vue").PropType<import("./typing").WithFalse<(data?: RecordType[] | undefined) => import("./typing").CustomRender>>;
|
|
52
|
-
default: () => undefined;
|
|
53
|
-
};
|
|
54
|
-
actionRef: import("vue").PropType<import("./types/table").ProCoreActionType>;
|
|
55
|
-
formRef: import("vue").PropType<import("./types/table").ProCoreFormType>;
|
|
50
|
+
customize: import("vue").PropType<CustomizeRender>;
|
|
56
51
|
tableClassName: import("vue").PropType<String>;
|
|
57
52
|
tableStyle: {
|
|
58
53
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
59
54
|
};
|
|
60
55
|
toolBarBtn: {
|
|
61
|
-
type: import("vue").PropType<
|
|
56
|
+
type: import("vue").PropType<ToolBarBtnRender>;
|
|
62
57
|
default: () => undefined;
|
|
63
58
|
};
|
|
64
59
|
headerTitle: {
|
|
65
|
-
type: import("vue").PropType<
|
|
60
|
+
type: import("vue").PropType<HeaderTitleRender>;
|
|
66
61
|
default: () => undefined;
|
|
67
62
|
};
|
|
68
63
|
titleTip: {
|
|
69
|
-
type: import("vue").PropType<
|
|
64
|
+
type: import("vue").PropType<TitleTipRender>;
|
|
70
65
|
default: () => undefined;
|
|
71
66
|
};
|
|
72
67
|
titleTipText: {
|
|
@@ -81,11 +76,11 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
81
76
|
type: import("vue").PropType<import("./hooks/useColumnSetting").ColumnsStateType>;
|
|
82
77
|
};
|
|
83
78
|
optionsExtra: {
|
|
84
|
-
type: import("vue").PropType<
|
|
79
|
+
type: import("vue").PropType<OptionsExtraRender>;
|
|
85
80
|
default: () => undefined;
|
|
86
81
|
};
|
|
87
82
|
settingExtra: {
|
|
88
|
-
type: import("vue").PropType<
|
|
83
|
+
type: import("vue").PropType<SettingExtraRender>;
|
|
89
84
|
default: () => undefined;
|
|
90
85
|
};
|
|
91
86
|
showIndex: {
|
|
@@ -93,22 +88,13 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
93
88
|
default: boolean;
|
|
94
89
|
};
|
|
95
90
|
pageItemRender: {
|
|
96
|
-
type: import("vue").PropType<import("./
|
|
97
|
-
page: number;
|
|
98
|
-
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
99
|
-
originalElement: any;
|
|
100
|
-
}) => import("./typing").CustomRender>>;
|
|
91
|
+
type: import("vue").PropType<import("./types/SlotsTypings").PageItemRender>;
|
|
101
92
|
default: () => undefined;
|
|
102
93
|
};
|
|
103
94
|
size: {
|
|
104
95
|
type: import("vue").PropType<import("./typing").SizeType>;
|
|
105
96
|
default: string;
|
|
106
|
-
};
|
|
107
|
-
* @Author gx12358
|
|
108
|
-
* @DateTime 2022/1/21
|
|
109
|
-
* @lastTime 2022/1/21
|
|
110
|
-
* @description Tabel-Form(搜索) hooks 方法
|
|
111
|
-
*/
|
|
97
|
+
};
|
|
112
98
|
align: {
|
|
113
99
|
type: import("vue").PropType<import("ant-design-vue/es/vc-table/interface").AlignType>;
|
|
114
100
|
default: string;
|
|
@@ -126,16 +112,16 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
126
112
|
modalScroll: import("vue").PropType<boolean>;
|
|
127
113
|
neverScroll: import("vue").PropType<boolean>;
|
|
128
114
|
columnEmptyText: {
|
|
129
|
-
type: import("vue").PropType<import("./types/
|
|
115
|
+
type: import("vue").PropType<import("./types/TableTypings").ProFieldEmptyText>;
|
|
130
116
|
default: boolean;
|
|
131
117
|
};
|
|
132
118
|
onReset: import("vue").PropType<(params?: Partial<Record<string, any>> | undefined) => any>;
|
|
133
119
|
onReload: import("vue").PropType<(params?: Partial<Record<string, any>> | undefined) => any>;
|
|
134
120
|
onSubmit: import("vue").PropType<(params: Partial<Record<string, any>>) => any>;
|
|
135
121
|
onSizeChange: import("vue").PropType<(size: string) => any>;
|
|
136
|
-
|
|
122
|
+
onLoadingChange: import("vue").PropType<(loading: boolean) => any>;
|
|
137
123
|
onRequestError: import("vue").PropType<(e: Error) => void>;
|
|
138
|
-
onBeforeSearchSubmit: import("vue").PropType<import("./types/
|
|
124
|
+
onBeforeSearchSubmit: import("vue").PropType<import("./types/TableTypings").RequsetFunction<RecordType>>;
|
|
139
125
|
onColumnsStateChange: import("vue").PropType<(data: import("./hooks/useColumnSetting").ColumnsState[]) => void>;
|
|
140
126
|
prefixCls: {
|
|
141
127
|
type: import("vue").PropType<string>;
|
|
@@ -255,12 +241,6 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
255
241
|
};
|
|
256
242
|
dropdownPrefixCls: StringConstructor;
|
|
257
243
|
dataSource: {
|
|
258
|
-
/**
|
|
259
|
-
* @Author gx12358
|
|
260
|
-
* @DateTime 2022/1/21
|
|
261
|
-
* @lastTime 2022/1/21
|
|
262
|
-
* @description Tabel-pagetion hooks 方法
|
|
263
|
-
*/
|
|
264
244
|
type: import("vue").PropType<any[] | undefined>;
|
|
265
245
|
default: undefined;
|
|
266
246
|
};
|
|
@@ -273,7 +253,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
273
253
|
default: undefined;
|
|
274
254
|
};
|
|
275
255
|
onChange: {
|
|
276
|
-
type: import("vue").PropType<(pagination: import("ant-design-vue/es/table/interface").TablePaginationConfig, filters: Record<string, FilterValue | null>, sorter:
|
|
256
|
+
type: import("vue").PropType<(pagination: import("ant-design-vue/es/table/interface").TablePaginationConfig, filters: Record<string, import("ant-design-vue/es/table/interface").FilterValue | null>, sorter: any, extra: import("ant-design-vue/es/table/interface").TableCurrentDataSource<any>) => void>;
|
|
277
257
|
default: undefined;
|
|
278
258
|
};
|
|
279
259
|
onResizeColumn: {
|
|
@@ -309,7 +289,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
309
289
|
};
|
|
310
290
|
}, () => 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<{
|
|
311
291
|
rowSelection: {
|
|
312
|
-
type: import("vue").PropType<import("./types/
|
|
292
|
+
type: import("vue").PropType<import("./types/TableTypings").ProTableRowSelection<any>>;
|
|
313
293
|
default: undefined;
|
|
314
294
|
};
|
|
315
295
|
columns: {
|
|
@@ -317,7 +297,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
317
297
|
default: never[];
|
|
318
298
|
};
|
|
319
299
|
pagination: {
|
|
320
|
-
type: import("vue").PropType<import("./types/
|
|
300
|
+
type: import("vue").PropType<import("./types/TableTypings").ProTablePagination>;
|
|
321
301
|
default: () => undefined;
|
|
322
302
|
};
|
|
323
303
|
rowKey: {
|
|
@@ -325,7 +305,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
325
305
|
default: undefined;
|
|
326
306
|
};
|
|
327
307
|
request: {
|
|
328
|
-
type: import("vue").PropType<import("./types/
|
|
308
|
+
type: import("vue").PropType<import("./types/TableTypings").RequsetFunction<any>>;
|
|
329
309
|
default: null;
|
|
330
310
|
};
|
|
331
311
|
virtualScroll: import("vue").PropType<boolean>;
|
|
@@ -341,33 +321,28 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
341
321
|
default: number;
|
|
342
322
|
};
|
|
343
323
|
search: {
|
|
344
|
-
type: import("vue").PropType<import("./types/
|
|
345
|
-
default: () => import("./types/
|
|
324
|
+
type: import("vue").PropType<import("./types/TableTypings").SearchConfig>;
|
|
325
|
+
default: () => import("./types/TableTypings").SearchConfig;
|
|
346
326
|
};
|
|
347
327
|
searchMap: {
|
|
348
|
-
type: import("vue").PropType<import("./types/
|
|
328
|
+
type: import("vue").PropType<import("./types/ColumnTypings").ProSearchMap<"text">[]>;
|
|
349
329
|
default: () => never[];
|
|
350
330
|
};
|
|
351
|
-
customize:
|
|
352
|
-
type: import("vue").PropType<import("./typing").WithFalse<(data?: RecordType[] | undefined) => import("./typing").CustomRender>>;
|
|
353
|
-
default: () => undefined;
|
|
354
|
-
};
|
|
355
|
-
actionRef: import("vue").PropType<import("./types/table").ProCoreActionType>;
|
|
356
|
-
formRef: import("vue").PropType<import("./types/table").ProCoreFormType>;
|
|
331
|
+
customize: import("vue").PropType<CustomizeRender>;
|
|
357
332
|
tableClassName: import("vue").PropType<String>;
|
|
358
333
|
tableStyle: {
|
|
359
334
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
360
335
|
};
|
|
361
336
|
toolBarBtn: {
|
|
362
|
-
type: import("vue").PropType<
|
|
337
|
+
type: import("vue").PropType<ToolBarBtnRender>;
|
|
363
338
|
default: () => undefined;
|
|
364
339
|
};
|
|
365
340
|
headerTitle: {
|
|
366
|
-
type: import("vue").PropType<
|
|
341
|
+
type: import("vue").PropType<HeaderTitleRender>;
|
|
367
342
|
default: () => undefined;
|
|
368
343
|
};
|
|
369
344
|
titleTip: {
|
|
370
|
-
type: import("vue").PropType<
|
|
345
|
+
type: import("vue").PropType<TitleTipRender>;
|
|
371
346
|
default: () => undefined;
|
|
372
347
|
};
|
|
373
348
|
titleTipText: {
|
|
@@ -382,11 +357,11 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
382
357
|
type: import("vue").PropType<import("./hooks/useColumnSetting").ColumnsStateType>;
|
|
383
358
|
};
|
|
384
359
|
optionsExtra: {
|
|
385
|
-
type: import("vue").PropType<
|
|
360
|
+
type: import("vue").PropType<OptionsExtraRender>;
|
|
386
361
|
default: () => undefined;
|
|
387
362
|
};
|
|
388
363
|
settingExtra: {
|
|
389
|
-
type: import("vue").PropType<
|
|
364
|
+
type: import("vue").PropType<SettingExtraRender>;
|
|
390
365
|
default: () => undefined;
|
|
391
366
|
};
|
|
392
367
|
showIndex: {
|
|
@@ -394,22 +369,13 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
394
369
|
default: boolean;
|
|
395
370
|
};
|
|
396
371
|
pageItemRender: {
|
|
397
|
-
type: import("vue").PropType<import("./
|
|
398
|
-
page: number;
|
|
399
|
-
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
400
|
-
originalElement: any;
|
|
401
|
-
}) => import("./typing").CustomRender>>;
|
|
372
|
+
type: import("vue").PropType<import("./types/SlotsTypings").PageItemRender>;
|
|
402
373
|
default: () => undefined;
|
|
403
374
|
};
|
|
404
375
|
size: {
|
|
405
376
|
type: import("vue").PropType<import("./typing").SizeType>;
|
|
406
377
|
default: string;
|
|
407
|
-
};
|
|
408
|
-
* @Author gx12358
|
|
409
|
-
* @DateTime 2022/1/21
|
|
410
|
-
* @lastTime 2022/1/21
|
|
411
|
-
* @description Tabel-Form(搜索) hooks 方法
|
|
412
|
-
*/
|
|
378
|
+
};
|
|
413
379
|
align: {
|
|
414
380
|
type: import("vue").PropType<import("ant-design-vue/es/vc-table/interface").AlignType>;
|
|
415
381
|
default: string;
|
|
@@ -427,16 +393,16 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
427
393
|
modalScroll: import("vue").PropType<boolean>;
|
|
428
394
|
neverScroll: import("vue").PropType<boolean>;
|
|
429
395
|
columnEmptyText: {
|
|
430
|
-
type: import("vue").PropType<import("./types/
|
|
396
|
+
type: import("vue").PropType<import("./types/TableTypings").ProFieldEmptyText>;
|
|
431
397
|
default: boolean;
|
|
432
398
|
};
|
|
433
399
|
onReset: import("vue").PropType<(params?: Partial<Record<string, any>> | undefined) => any>;
|
|
434
400
|
onReload: import("vue").PropType<(params?: Partial<Record<string, any>> | undefined) => any>;
|
|
435
401
|
onSubmit: import("vue").PropType<(params: Partial<Record<string, any>>) => any>;
|
|
436
402
|
onSizeChange: import("vue").PropType<(size: string) => any>;
|
|
437
|
-
|
|
403
|
+
onLoadingChange: import("vue").PropType<(loading: boolean) => any>;
|
|
438
404
|
onRequestError: import("vue").PropType<(e: Error) => void>;
|
|
439
|
-
onBeforeSearchSubmit: import("vue").PropType<import("./types/
|
|
405
|
+
onBeforeSearchSubmit: import("vue").PropType<import("./types/TableTypings").RequsetFunction<RecordType>>;
|
|
440
406
|
onColumnsStateChange: import("vue").PropType<(data: import("./hooks/useColumnSetting").ColumnsState[]) => void>;
|
|
441
407
|
prefixCls: {
|
|
442
408
|
type: import("vue").PropType<string>;
|
|
@@ -556,12 +522,6 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
556
522
|
};
|
|
557
523
|
dropdownPrefixCls: StringConstructor;
|
|
558
524
|
dataSource: {
|
|
559
|
-
/**
|
|
560
|
-
* @Author gx12358
|
|
561
|
-
* @DateTime 2022/1/21
|
|
562
|
-
* @lastTime 2022/1/21
|
|
563
|
-
* @description Tabel-pagetion hooks 方法
|
|
564
|
-
*/
|
|
565
525
|
type: import("vue").PropType<any[] | undefined>;
|
|
566
526
|
default: undefined;
|
|
567
527
|
};
|
|
@@ -574,7 +534,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
574
534
|
default: undefined;
|
|
575
535
|
};
|
|
576
536
|
onChange: {
|
|
577
|
-
type: import("vue").PropType<(pagination: import("ant-design-vue/es/table/interface").TablePaginationConfig, filters: Record<string, FilterValue | null>, sorter:
|
|
537
|
+
type: import("vue").PropType<(pagination: import("ant-design-vue/es/table/interface").TablePaginationConfig, filters: Record<string, import("ant-design-vue/es/table/interface").FilterValue | null>, sorter: any, extra: import("ant-design-vue/es/table/interface").TableCurrentDataSource<any>) => void>;
|
|
578
538
|
default: undefined;
|
|
579
539
|
};
|
|
580
540
|
onResizeColumn: {
|
|
@@ -613,13 +573,13 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
613
573
|
onExpandedRowsChange?: ((...args: any[]) => any) | undefined;
|
|
614
574
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
615
575
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
616
|
-
onReload?: ((...args: any[]) => any) | undefined;
|
|
617
576
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
577
|
+
onReload?: ((...args: any[]) => any) | undefined;
|
|
618
578
|
onSizeChange?: ((...args: any[]) => any) | undefined;
|
|
579
|
+
onLoadingChange?: ((...args: any[]) => any) | undefined;
|
|
619
580
|
onRequestError?: ((...args: any[]) => any) | undefined;
|
|
620
581
|
onBeforeSearchSubmit?: ((...args: any[]) => any) | undefined;
|
|
621
582
|
onColumnsStateChange?: ((...args: any[]) => any) | undefined;
|
|
622
|
-
onLoadingChange?: ((...args: any[]) => any) | undefined;
|
|
623
583
|
}, {
|
|
624
584
|
rowKey: string;
|
|
625
585
|
columns: ProColumns;
|
|
@@ -659,38 +619,33 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
659
619
|
sticky: boolean | import("ant-design-vue/lib/vc-table/interface").TableSticky | undefined;
|
|
660
620
|
size: import("./typing").SizeType;
|
|
661
621
|
locale: import("ant-design-vue/es/table/interface").TableLocale;
|
|
662
|
-
onChange: (pagination: import("ant-design-vue/es/table/interface").TablePaginationConfig, filters: Record<string, FilterValue | null>, sorter:
|
|
622
|
+
onChange: (pagination: import("ant-design-vue/es/table/interface").TablePaginationConfig, filters: Record<string, import("ant-design-vue/es/table/interface").FilterValue | null>, sorter: any, extra: import("ant-design-vue/es/table/interface").TableCurrentDataSource<any>) => void;
|
|
663
623
|
getPopupContainer: import("ant-design-vue/es/table/interface").GetPopupContainer;
|
|
664
624
|
align: import("ant-design-vue/es/vc-table/interface").AlignType;
|
|
625
|
+
autoScroll: boolean;
|
|
626
|
+
search: import("./types/TableTypings").SearchConfig;
|
|
627
|
+
sortDirections: import("ant-design-vue/es/table/interface").SortOrder[];
|
|
628
|
+
showSorterTooltip: boolean | import("./_utils").TooltipProps;
|
|
629
|
+
columnEmptyText: import("./types/TableTypings").ProFieldEmptyText;
|
|
665
630
|
loading: boolean | import("./_utils").SpinProps;
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
request: import("./types/table").RequsetFunction<any>;
|
|
631
|
+
rowSelection: import("./types/TableTypings").ProTableRowSelection<any>;
|
|
632
|
+
pagination: import("./types/TableTypings").ProTablePagination;
|
|
633
|
+
request: import("./types/TableTypings").RequsetFunction<any>;
|
|
670
634
|
waitRequest: boolean;
|
|
671
635
|
debounceTime: number;
|
|
672
|
-
searchMap: import("./types/
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
titleTip: import("./typing").ProVueNode;
|
|
636
|
+
searchMap: import("./types/ColumnTypings").ProSearchMap<"text">[];
|
|
637
|
+
toolBarBtn: ToolBarBtnRender;
|
|
638
|
+
headerTitle: HeaderTitleRender;
|
|
639
|
+
titleTip: TitleTipRender;
|
|
677
640
|
titleTipText: string;
|
|
678
641
|
options: boolean | OptionConfig;
|
|
679
|
-
optionsExtra:
|
|
680
|
-
settingExtra:
|
|
642
|
+
optionsExtra: OptionsExtraRender;
|
|
643
|
+
settingExtra: SettingExtraRender;
|
|
681
644
|
showIndex: boolean;
|
|
682
|
-
pageItemRender: import("./
|
|
683
|
-
page: number;
|
|
684
|
-
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
685
|
-
originalElement: any;
|
|
686
|
-
}) => import("./typing").CustomRender>;
|
|
645
|
+
pageItemRender: import("./types/SlotsTypings").PageItemRender;
|
|
687
646
|
bordered: boolean;
|
|
688
|
-
autoScroll: boolean;
|
|
689
|
-
columnEmptyText: import("./types/table").ProFieldEmptyText;
|
|
690
647
|
'onUpdate:expandedRowKeys': ((expandedKeys: import("ant-design-vue/lib/vc-table/interface").Key[]) => void) | undefined;
|
|
691
648
|
dataSource: any[] | undefined;
|
|
692
649
|
onResizeColumn: (w: number, col: import("ant-design-vue/es/table/interface").ColumnType<any>) => void;
|
|
693
|
-
sortDirections: import("ant-design-vue/es/table/interface").SortOrder[];
|
|
694
|
-
showSorterTooltip: boolean | import("./_utils").TooltipProps;
|
|
695
650
|
}>;
|
|
696
651
|
export default ProTable;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { TableProps } from 'ant-design-vue';
|
|
2
|
-
import type {
|
|
2
|
+
import type { FilterValue, SorterResult } from 'ant-design-vue/es/table/interface';
|
|
3
|
+
import type { RecordType } from '../../../typing';
|
|
3
4
|
export type { ContextSlots } from 'ant-design-vue/es/table/context';
|
|
4
|
-
export
|
|
5
|
-
page: number;
|
|
6
|
-
type: 'page' | 'prev' | 'next' | 'jump-prev' | 'jump-next';
|
|
7
|
-
originalElement: any;
|
|
8
|
-
}) => CustomRender>;
|
|
9
|
-
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';
|
|
5
|
+
export type { Key, SortOrder, ColumnFilterItem, ColumnTitle, CompareFn, FilterDropdownProps, GetRowKey, ColumnsType, ExpandType, TablePaginationConfig, TableAction, TableLocale, TableCurrentDataSource, ColumnType, TableRowSelection, GetPopupContainer } from 'ant-design-vue/es/table/interface';
|
|
10
6
|
export type { AlignType, CellEllipsisType, DataIndex, FixedType, GetComponentProps, RenderedCell } from 'ant-design-vue/es/vc-table/interface';
|
|
11
7
|
export type { TableProps as RcTableProps } from 'ant-design-vue/es/vc-table/Table';
|
|
12
|
-
export type
|
|
8
|
+
export declare type TableFilters = Record<string, FilterValue | null>;
|
|
9
|
+
export declare type TableSorterRecord = SorterResult<RecordType>;
|
|
10
|
+
export declare type TableSorter = TableSorterRecord | TableSorterRecord[];
|
|
11
|
+
export type { TableProps, FilterValue };
|
|
@@ -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,14 +1,14 @@
|
|
|
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: {
|
|
11
|
-
type: PropType<ProSearchMap<"text"
|
|
11
|
+
type: PropType<ProSearchMap<"text">[]>;
|
|
12
12
|
default: () => never[];
|
|
13
13
|
};
|
|
14
14
|
loading: PropType<boolean>;
|
|
@@ -16,12 +16,12 @@ 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: {
|
|
24
|
-
type: PropType<ProSearchMap<"text"
|
|
24
|
+
type: PropType<ProSearchMap<"text">[]>;
|
|
25
25
|
default: () => never[];
|
|
26
26
|
};
|
|
27
27
|
loading: PropType<boolean>;
|
|
@@ -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/
|
|
34
|
-
searchMap: ProSearchMap<"text"
|
|
33
|
+
search: import("../../types/TableTypings").SearchConfig;
|
|
34
|
+
searchMap: ProSearchMap<"text">[];
|
|
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']>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { ComputedRef } from 'vue';
|
|
2
|
-
import type { SpinProps } from '../_utils';
|
|
1
|
+
import type { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import type { SpinProps, TableSorter } 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, ProTabelFeachParams, 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>;
|
|
@@ -20,12 +20,12 @@ export declare type ConfigFetchData = {
|
|
|
20
20
|
polling: ComputedRef<ProTableProps['polling']>;
|
|
21
21
|
request: ComputedRef<ProTableProps['request']>;
|
|
22
22
|
postData: ComputedRef<ProTableProps['postData']>;
|
|
23
|
-
waitRequest:
|
|
23
|
+
waitRequest: Ref<ProTableProps['waitRequest']>;
|
|
24
24
|
debounceTime: ComputedRef<ProTableProps['debounceTime']>;
|
|
25
25
|
dataSource: ComputedRef<ProTableProps['dataSource']>;
|
|
26
26
|
};
|
|
27
|
-
export declare function useConfigFetchData(props: ProTableProps): ConfigFetchData
|
|
28
|
-
export declare function useFetchData({ polling, request, postData, dataSource, waitRequest, debounceTime
|
|
27
|
+
export declare function useConfigFetchData(props: ProTableProps): Omit<ConfigFetchData, 'waitRequest'>;
|
|
28
|
+
export declare function useFetchData({ polling, request, postData, dataSource, waitRequest, debounceTime }: ConfigFetchData, { columns, getLoading, setLoading, setColumns, removeRowKeys, syncSelectedRows, formParamsRef, setPagination, getPaginationInfo, onBeforeSearchSubmit }: ActionType, emit: any): {
|
|
29
29
|
getDataSourceRef: ComputedRef<RecordType[]>;
|
|
30
30
|
isTreeDataRef: ComputedRef<boolean>;
|
|
31
31
|
reSetDataList: (list: RecordType[]) => void;
|
|
@@ -33,7 +33,7 @@ export declare function useFetchData({ polling, request, postData, dataSource, w
|
|
|
33
33
|
key?: string | undefined;
|
|
34
34
|
params: RecordType;
|
|
35
35
|
}) => void;
|
|
36
|
-
handleTableChange: (pagination: ProTablePaginationConfig, filters:
|
|
37
|
-
reload: (info?:
|
|
36
|
+
handleTableChange: (pagination: ProTablePaginationConfig, filters: Record<string, any[] | null>, sorter: TableSorter) => void;
|
|
37
|
+
reload: (info?: ProTabelFeachParams) => Promise<void>;
|
|
38
38
|
};
|
|
39
39
|
export {};
|
|
@@ -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>;
|