@gx-design-vue/pro-table 0.0.3 → 0.0.4-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/README.md +5 -1
- package/dist/ProTable.d.ts +71 -104
- 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 +4 -4
- package/dist/pro-table.mjs +1102 -1097
- package/dist/pro-table.umd.js +1 -1
- package/dist/{pro-table.less → proTable.less} +0 -0
- package/dist/props.d.ts +16 -52
- package/dist/style.less +1 -1
- 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/README.md
CHANGED
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
|
-
declare const
|
|
9
|
+
declare const GProTable: 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,10 +253,16 @@ 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: {
|
|
260
|
+
/**
|
|
261
|
+
* @Author gx12358
|
|
262
|
+
* @DateTime 2022/1/21
|
|
263
|
+
* @lastTime 2022/1/21
|
|
264
|
+
* @description Tabel-scroll hooks 方法
|
|
265
|
+
*/
|
|
280
266
|
type: import("vue").PropType<(w: number, col: import("ant-design-vue/es/table/interface").ColumnType<any>) => void>;
|
|
281
267
|
default: undefined;
|
|
282
268
|
};
|
|
@@ -309,7 +295,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
309
295
|
};
|
|
310
296
|
}, () => 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
297
|
rowSelection: {
|
|
312
|
-
type: import("vue").PropType<import("./types/
|
|
298
|
+
type: import("vue").PropType<import("./types/TableTypings").ProTableRowSelection<any>>;
|
|
313
299
|
default: undefined;
|
|
314
300
|
};
|
|
315
301
|
columns: {
|
|
@@ -317,7 +303,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
317
303
|
default: never[];
|
|
318
304
|
};
|
|
319
305
|
pagination: {
|
|
320
|
-
type: import("vue").PropType<import("./types/
|
|
306
|
+
type: import("vue").PropType<import("./types/TableTypings").ProTablePagination>;
|
|
321
307
|
default: () => undefined;
|
|
322
308
|
};
|
|
323
309
|
rowKey: {
|
|
@@ -325,7 +311,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
325
311
|
default: undefined;
|
|
326
312
|
};
|
|
327
313
|
request: {
|
|
328
|
-
type: import("vue").PropType<import("./types/
|
|
314
|
+
type: import("vue").PropType<import("./types/TableTypings").RequsetFunction<any>>;
|
|
329
315
|
default: null;
|
|
330
316
|
};
|
|
331
317
|
virtualScroll: import("vue").PropType<boolean>;
|
|
@@ -341,33 +327,28 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
341
327
|
default: number;
|
|
342
328
|
};
|
|
343
329
|
search: {
|
|
344
|
-
type: import("vue").PropType<import("./types/
|
|
345
|
-
default: () => import("./types/
|
|
330
|
+
type: import("vue").PropType<import("./types/TableTypings").SearchConfig>;
|
|
331
|
+
default: () => import("./types/TableTypings").SearchConfig;
|
|
346
332
|
};
|
|
347
333
|
searchMap: {
|
|
348
|
-
type: import("vue").PropType<import("./types/
|
|
334
|
+
type: import("vue").PropType<import("./types/ColumnTypings").ProSearchMap<"text">[]>;
|
|
349
335
|
default: () => never[];
|
|
350
336
|
};
|
|
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>;
|
|
337
|
+
customize: import("vue").PropType<CustomizeRender>;
|
|
357
338
|
tableClassName: import("vue").PropType<String>;
|
|
358
339
|
tableStyle: {
|
|
359
340
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
360
341
|
};
|
|
361
342
|
toolBarBtn: {
|
|
362
|
-
type: import("vue").PropType<
|
|
343
|
+
type: import("vue").PropType<ToolBarBtnRender>;
|
|
363
344
|
default: () => undefined;
|
|
364
345
|
};
|
|
365
346
|
headerTitle: {
|
|
366
|
-
type: import("vue").PropType<
|
|
347
|
+
type: import("vue").PropType<HeaderTitleRender>;
|
|
367
348
|
default: () => undefined;
|
|
368
349
|
};
|
|
369
350
|
titleTip: {
|
|
370
|
-
type: import("vue").PropType<
|
|
351
|
+
type: import("vue").PropType<TitleTipRender>;
|
|
371
352
|
default: () => undefined;
|
|
372
353
|
};
|
|
373
354
|
titleTipText: {
|
|
@@ -382,11 +363,11 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
382
363
|
type: import("vue").PropType<import("./hooks/useColumnSetting").ColumnsStateType>;
|
|
383
364
|
};
|
|
384
365
|
optionsExtra: {
|
|
385
|
-
type: import("vue").PropType<
|
|
366
|
+
type: import("vue").PropType<OptionsExtraRender>;
|
|
386
367
|
default: () => undefined;
|
|
387
368
|
};
|
|
388
369
|
settingExtra: {
|
|
389
|
-
type: import("vue").PropType<
|
|
370
|
+
type: import("vue").PropType<SettingExtraRender>;
|
|
390
371
|
default: () => undefined;
|
|
391
372
|
};
|
|
392
373
|
showIndex: {
|
|
@@ -394,22 +375,13 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
394
375
|
default: boolean;
|
|
395
376
|
};
|
|
396
377
|
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>>;
|
|
378
|
+
type: import("vue").PropType<import("./types/SlotsTypings").PageItemRender>;
|
|
402
379
|
default: () => undefined;
|
|
403
380
|
};
|
|
404
381
|
size: {
|
|
405
382
|
type: import("vue").PropType<import("./typing").SizeType>;
|
|
406
383
|
default: string;
|
|
407
|
-
};
|
|
408
|
-
* @Author gx12358
|
|
409
|
-
* @DateTime 2022/1/21
|
|
410
|
-
* @lastTime 2022/1/21
|
|
411
|
-
* @description Tabel-Form(搜索) hooks 方法
|
|
412
|
-
*/
|
|
384
|
+
};
|
|
413
385
|
align: {
|
|
414
386
|
type: import("vue").PropType<import("ant-design-vue/es/vc-table/interface").AlignType>;
|
|
415
387
|
default: string;
|
|
@@ -427,16 +399,16 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
427
399
|
modalScroll: import("vue").PropType<boolean>;
|
|
428
400
|
neverScroll: import("vue").PropType<boolean>;
|
|
429
401
|
columnEmptyText: {
|
|
430
|
-
type: import("vue").PropType<import("./types/
|
|
402
|
+
type: import("vue").PropType<import("./types/TableTypings").ProFieldEmptyText>;
|
|
431
403
|
default: boolean;
|
|
432
404
|
};
|
|
433
405
|
onReset: import("vue").PropType<(params?: Partial<Record<string, any>> | undefined) => any>;
|
|
434
406
|
onReload: import("vue").PropType<(params?: Partial<Record<string, any>> | undefined) => any>;
|
|
435
407
|
onSubmit: import("vue").PropType<(params: Partial<Record<string, any>>) => any>;
|
|
436
408
|
onSizeChange: import("vue").PropType<(size: string) => any>;
|
|
437
|
-
|
|
409
|
+
onLoadingChange: import("vue").PropType<(loading: boolean) => any>;
|
|
438
410
|
onRequestError: import("vue").PropType<(e: Error) => void>;
|
|
439
|
-
onBeforeSearchSubmit: import("vue").PropType<import("./types/
|
|
411
|
+
onBeforeSearchSubmit: import("vue").PropType<import("./types/TableTypings").RequsetFunction<RecordType>>;
|
|
440
412
|
onColumnsStateChange: import("vue").PropType<(data: import("./hooks/useColumnSetting").ColumnsState[]) => void>;
|
|
441
413
|
prefixCls: {
|
|
442
414
|
type: import("vue").PropType<string>;
|
|
@@ -556,12 +528,6 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
556
528
|
};
|
|
557
529
|
dropdownPrefixCls: StringConstructor;
|
|
558
530
|
dataSource: {
|
|
559
|
-
/**
|
|
560
|
-
* @Author gx12358
|
|
561
|
-
* @DateTime 2022/1/21
|
|
562
|
-
* @lastTime 2022/1/21
|
|
563
|
-
* @description Tabel-pagetion hooks 方法
|
|
564
|
-
*/
|
|
565
531
|
type: import("vue").PropType<any[] | undefined>;
|
|
566
532
|
default: undefined;
|
|
567
533
|
};
|
|
@@ -574,10 +540,16 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
574
540
|
default: undefined;
|
|
575
541
|
};
|
|
576
542
|
onChange: {
|
|
577
|
-
type: import("vue").PropType<(pagination: import("ant-design-vue/es/table/interface").TablePaginationConfig, filters: Record<string, FilterValue | null>, sorter:
|
|
543
|
+
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
544
|
default: undefined;
|
|
579
545
|
};
|
|
580
546
|
onResizeColumn: {
|
|
547
|
+
/**
|
|
548
|
+
* @Author gx12358
|
|
549
|
+
* @DateTime 2022/1/21
|
|
550
|
+
* @lastTime 2022/1/21
|
|
551
|
+
* @description Tabel-scroll hooks 方法
|
|
552
|
+
*/
|
|
581
553
|
type: import("vue").PropType<(w: number, col: import("ant-design-vue/es/table/interface").ColumnType<any>) => void>;
|
|
582
554
|
default: undefined;
|
|
583
555
|
};
|
|
@@ -613,13 +585,13 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
613
585
|
onExpandedRowsChange?: ((...args: any[]) => any) | undefined;
|
|
614
586
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
615
587
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
616
|
-
onReload?: ((...args: any[]) => any) | undefined;
|
|
617
588
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
589
|
+
onReload?: ((...args: any[]) => any) | undefined;
|
|
618
590
|
onSizeChange?: ((...args: any[]) => any) | undefined;
|
|
591
|
+
onLoadingChange?: ((...args: any[]) => any) | undefined;
|
|
619
592
|
onRequestError?: ((...args: any[]) => any) | undefined;
|
|
620
593
|
onBeforeSearchSubmit?: ((...args: any[]) => any) | undefined;
|
|
621
594
|
onColumnsStateChange?: ((...args: any[]) => any) | undefined;
|
|
622
|
-
onLoadingChange?: ((...args: any[]) => any) | undefined;
|
|
623
595
|
}, {
|
|
624
596
|
rowKey: string;
|
|
625
597
|
columns: ProColumns;
|
|
@@ -659,38 +631,33 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
659
631
|
sticky: boolean | import("ant-design-vue/lib/vc-table/interface").TableSticky | undefined;
|
|
660
632
|
size: import("./typing").SizeType;
|
|
661
633
|
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:
|
|
634
|
+
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
635
|
getPopupContainer: import("ant-design-vue/es/table/interface").GetPopupContainer;
|
|
664
636
|
align: import("ant-design-vue/es/vc-table/interface").AlignType;
|
|
637
|
+
autoScroll: boolean;
|
|
638
|
+
search: import("./types/TableTypings").SearchConfig;
|
|
639
|
+
sortDirections: import("ant-design-vue/es/table/interface").SortOrder[];
|
|
640
|
+
showSorterTooltip: boolean | import("./_utils").TooltipProps;
|
|
641
|
+
columnEmptyText: import("./types/TableTypings").ProFieldEmptyText;
|
|
665
642
|
loading: boolean | import("./_utils").SpinProps;
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
request: import("./types/table").RequsetFunction<any>;
|
|
643
|
+
rowSelection: import("./types/TableTypings").ProTableRowSelection<any>;
|
|
644
|
+
pagination: import("./types/TableTypings").ProTablePagination;
|
|
645
|
+
request: import("./types/TableTypings").RequsetFunction<any>;
|
|
670
646
|
waitRequest: boolean;
|
|
671
647
|
debounceTime: number;
|
|
672
|
-
searchMap: import("./types/
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
titleTip: import("./typing").ProVueNode;
|
|
648
|
+
searchMap: import("./types/ColumnTypings").ProSearchMap<"text">[];
|
|
649
|
+
toolBarBtn: ToolBarBtnRender;
|
|
650
|
+
headerTitle: HeaderTitleRender;
|
|
651
|
+
titleTip: TitleTipRender;
|
|
677
652
|
titleTipText: string;
|
|
678
653
|
options: boolean | OptionConfig;
|
|
679
|
-
optionsExtra:
|
|
680
|
-
settingExtra:
|
|
654
|
+
optionsExtra: OptionsExtraRender;
|
|
655
|
+
settingExtra: SettingExtraRender;
|
|
681
656
|
showIndex: boolean;
|
|
682
|
-
pageItemRender: import("./
|
|
683
|
-
page: number;
|
|
684
|
-
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
685
|
-
originalElement: any;
|
|
686
|
-
}) => import("./typing").CustomRender>;
|
|
657
|
+
pageItemRender: import("./types/SlotsTypings").PageItemRender;
|
|
687
658
|
bordered: boolean;
|
|
688
|
-
autoScroll: boolean;
|
|
689
|
-
columnEmptyText: import("./types/table").ProFieldEmptyText;
|
|
690
659
|
'onUpdate:expandedRowKeys': ((expandedKeys: import("ant-design-vue/lib/vc-table/interface").Key[]) => void) | undefined;
|
|
691
660
|
dataSource: any[] | undefined;
|
|
692
661
|
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
662
|
}>;
|
|
696
|
-
export default
|
|
663
|
+
export default GProTable;
|
|
@@ -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']>;
|