@gx-design-vue/pro-table 0.0.2 → 0.0.3-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ProTable.d.ts +95 -95
- package/dist/_utils/ant-design-vue/table/props.d.ts +2 -1
- package/dist/_utils/ant-design-vue/table/typings.d.ts +1 -0
- package/dist/_utils/index.d.ts +0 -1
- package/dist/components/ColumnSetting/index.d.ts +1 -0
- package/dist/components/ColumnSetting/style.less +1 -3
- package/dist/components/Form/index.d.ts +1 -0
- package/dist/components/Form/style.less +1 -8
- package/dist/components/Form/useForm.d.ts +1 -0
- package/dist/components/ListToolBar/index.d.ts +13 -12
- package/dist/components/ListToolBar/style.less +1 -0
- package/dist/components/ToolBar/index.d.ts +1 -0
- package/dist/components/ToolBar/style.less +5 -29
- package/dist/context/TableContext.d.ts +2 -1
- package/dist/design/ant-design-theme.less +4 -0
- package/dist/design/ant-design-vue.less +19 -0
- package/dist/design/config.less +0 -5
- package/dist/hooks/useDebounceFn.d.ts +1 -5
- package/dist/hooks/useFetchData.d.ts +6 -4
- package/dist/hooks/useLoading.d.ts +1 -1
- package/dist/hooks/useRowSelection.d.ts +2 -0
- package/dist/hooks/useTableForm.d.ts +1 -0
- package/dist/hooks/useTableScroll.d.ts +1 -0
- package/dist/hooks/useTableSize.d.ts +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/pro-table.less +5 -0
- package/dist/pro-table.mjs +1178 -1253
- package/dist/pro-table.umd.js +1 -1
- package/dist/props.d.ts +40 -22
- package/dist/style/index.less +18 -0
- package/dist/style/table.less +0 -8
- package/dist/style.css +1 -1
- package/dist/style.less +3 -5
- package/dist/types/column.d.ts +11 -3
- package/dist/types/table.d.ts +30 -19
- package/dist/typing.d.ts +9 -0
- package/dist/utils/config.d.ts +1 -0
- package/dist/utils/utils.d.ts +2 -0
- package/package.json +11 -12
- package/dist/_utils/gx-design-vue/extract-public-props.d.ts +0 -7
- package/dist/_utils/gx-design-vue/index.d.ts +0 -2
- package/dist/_utils/gx-design-vue/typings.d.ts +0 -1
- package/dist/hooks/core/index.d.ts +0 -3
- package/dist/hooks/core/useMemo.d.ts +0 -10
- package/dist/hooks/core/useTimeout.d.ts +0 -11
- package/dist/typings/components.d.ts +0 -6
- package/dist/utils/index.d.ts +0 -86
- package/dist/utils/validate.d.ts +0 -25
package/dist/ProTable.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ExtractPropTypes } from 'vue';
|
|
2
|
+
import type { RecordType } from './typing';
|
|
2
3
|
import type { FilterValue, SorterResult } from './_utils';
|
|
3
4
|
import type { OptionConfig } from './types/table';
|
|
4
5
|
import type { ProColumns } from './types/column';
|
|
@@ -7,7 +8,7 @@ import './style/index.less';
|
|
|
7
8
|
export declare type ProTableProps = Partial<ExtractPropTypes<typeof proTableProps>>;
|
|
8
9
|
declare const ProTable: import("vue").DefineComponent<{
|
|
9
10
|
rowSelection: {
|
|
10
|
-
type: import("vue").PropType<any
|
|
11
|
+
type: import("vue").PropType<import("./types/table").ProTableRowSelection<any>>;
|
|
11
12
|
default: undefined;
|
|
12
13
|
};
|
|
13
14
|
columns: {
|
|
@@ -23,7 +24,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
23
24
|
default: undefined;
|
|
24
25
|
};
|
|
25
26
|
request: {
|
|
26
|
-
type: import("vue").PropType<import("./types/table").
|
|
27
|
+
type: import("vue").PropType<import("./types/table").RequsetFunction<any>>;
|
|
27
28
|
default: null;
|
|
28
29
|
};
|
|
29
30
|
virtualScroll: import("vue").PropType<boolean>;
|
|
@@ -47,33 +48,34 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
47
48
|
default: () => never[];
|
|
48
49
|
};
|
|
49
50
|
customize: {
|
|
50
|
-
type: import("vue").PropType<WithFalse<(data?: RecordType[] | undefined) => CustomRender>>;
|
|
51
|
+
type: import("vue").PropType<import("./typing").WithFalse<(data?: RecordType[] | undefined) => import("./typing").CustomRender>>;
|
|
51
52
|
default: () => undefined;
|
|
52
53
|
};
|
|
53
54
|
actionRef: import("vue").PropType<import("./types/table").ProCoreActionType>;
|
|
55
|
+
formRef: import("vue").PropType<import("./types/table").ProCoreFormType>;
|
|
54
56
|
tableClassName: import("vue").PropType<String>;
|
|
55
57
|
tableStyle: {
|
|
56
58
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
57
59
|
};
|
|
58
60
|
toolBarBtn: {
|
|
59
|
-
type: import("vue").PropType<ProVueNode>;
|
|
61
|
+
type: import("vue").PropType<import("./typing").ProVueNode>; /**
|
|
62
|
+
* @Author gx12358
|
|
63
|
+
* @DateTime 2022/1/21
|
|
64
|
+
* @lastTime 2022/1/21
|
|
65
|
+
* @description Tabel-loading hooks 方法
|
|
66
|
+
*/
|
|
60
67
|
default: () => undefined;
|
|
61
68
|
};
|
|
62
69
|
headerTitle: {
|
|
63
|
-
type: import("vue").PropType<ProVueNode>;
|
|
70
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
64
71
|
default: () => undefined;
|
|
65
72
|
};
|
|
66
73
|
titleTip: {
|
|
67
|
-
type: import("vue").PropType<ProVueNode>;
|
|
74
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
68
75
|
default: () => undefined;
|
|
69
76
|
};
|
|
70
77
|
titleTipText: {
|
|
71
|
-
type: import("vue").PropType<string>;
|
|
72
|
-
* @Author gx12358
|
|
73
|
-
* @DateTime 2022/1/21
|
|
74
|
-
* @lastTime 2022/1/21
|
|
75
|
-
* @description Tabel-loading hooks 方法
|
|
76
|
-
*/
|
|
78
|
+
type: import("vue").PropType<string>;
|
|
77
79
|
default: string;
|
|
78
80
|
};
|
|
79
81
|
options: {
|
|
@@ -84,16 +86,11 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
84
86
|
type: import("vue").PropType<import("./hooks/useColumnSetting").ColumnsStateType>;
|
|
85
87
|
};
|
|
86
88
|
optionsExtra: {
|
|
87
|
-
type: import("vue").PropType<
|
|
89
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
88
90
|
default: () => undefined;
|
|
89
91
|
};
|
|
90
92
|
settingExtra: {
|
|
91
|
-
type: import("vue").PropType<
|
|
92
|
-
* @Author gx12358
|
|
93
|
-
* @DateTime 2022/1/21
|
|
94
|
-
* @lastTime 2022/1/21
|
|
95
|
-
* @description Tabel-scroll hooks 方法
|
|
96
|
-
*/
|
|
93
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
97
94
|
default: () => undefined;
|
|
98
95
|
};
|
|
99
96
|
showIndex: {
|
|
@@ -101,15 +98,15 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
101
98
|
default: boolean;
|
|
102
99
|
};
|
|
103
100
|
pageItemRender: {
|
|
104
|
-
type: import("vue").PropType<WithFalse<(opt: {
|
|
101
|
+
type: import("vue").PropType<import("./typing").WithFalse<(opt: {
|
|
105
102
|
page: number;
|
|
106
103
|
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
107
104
|
originalElement: any;
|
|
108
|
-
}) => CustomRender>>;
|
|
105
|
+
}) => import("./typing").CustomRender>>;
|
|
109
106
|
default: () => undefined;
|
|
110
107
|
};
|
|
111
108
|
size: {
|
|
112
|
-
type: import("vue").PropType<import("./
|
|
109
|
+
type: import("vue").PropType<import("./typing").SizeType>;
|
|
113
110
|
default: string;
|
|
114
111
|
};
|
|
115
112
|
align: {
|
|
@@ -132,14 +129,14 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
132
129
|
type: import("vue").PropType<import("./types/table").ProFieldEmptyText>;
|
|
133
130
|
default: boolean;
|
|
134
131
|
};
|
|
135
|
-
|
|
132
|
+
onReset: import("vue").PropType<(params?: Partial<Record<string, any>> | undefined) => any>;
|
|
136
133
|
onReload: import("vue").PropType<(params?: Partial<Record<string, any>> | undefined) => any>;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
134
|
+
onSubmit: import("vue").PropType<(params: Partial<Record<string, any>>) => any>;
|
|
135
|
+
onSizeChange: import("vue").PropType<(size: string) => any>;
|
|
136
|
+
onLadingChange: import("vue").PropType<(loading: boolean) => any>;
|
|
137
|
+
onRequestError: import("vue").PropType<(e: Error) => void>;
|
|
138
|
+
onBeforeSearchSubmit: import("vue").PropType<import("./types/table").RequsetFunction<RecordType>>;
|
|
139
|
+
onColumnsStateChange: import("vue").PropType<(data: import("./hooks/useColumnSetting").ColumnsState[]) => void>;
|
|
143
140
|
prefixCls: {
|
|
144
141
|
type: import("vue").PropType<string>;
|
|
145
142
|
default: undefined;
|
|
@@ -238,8 +235,18 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
238
235
|
};
|
|
239
236
|
showExpandColumn: {
|
|
240
237
|
type: BooleanConstructor;
|
|
241
|
-
default: undefined;
|
|
242
|
-
|
|
238
|
+
default: undefined; /**
|
|
239
|
+
* @Author gx12358
|
|
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
|
+
*/
|
|
243
250
|
expandedRowClassName: {
|
|
244
251
|
type: import("vue").PropType<import("ant-design-vue/lib/vc-table/interface").RowClassName<any> | undefined>;
|
|
245
252
|
default: undefined;
|
|
@@ -261,12 +268,6 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
261
268
|
type: import("vue").PropType<any[] | undefined>;
|
|
262
269
|
default: undefined;
|
|
263
270
|
};
|
|
264
|
-
/**
|
|
265
|
-
* @Author gx12358
|
|
266
|
-
* @DateTime 2022/1/21
|
|
267
|
-
* @lastTime 2022/1/21
|
|
268
|
-
* @description Tabel-pagetion hooks 方法
|
|
269
|
-
*/
|
|
270
271
|
loading: {
|
|
271
272
|
type: import("vue").PropType<boolean | import("./_utils").SpinProps>;
|
|
272
273
|
default: undefined;
|
|
@@ -310,9 +311,9 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
310
311
|
transformCellText: {
|
|
311
312
|
type: import("vue").PropType<import("ant-design-vue/lib/vc-table/interface").TransformCellText<any> | undefined>;
|
|
312
313
|
};
|
|
313
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("loadingChange" | "sizeChange" | "
|
|
314
|
+
}, () => 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<{
|
|
314
315
|
rowSelection: {
|
|
315
|
-
type: import("vue").PropType<any
|
|
316
|
+
type: import("vue").PropType<import("./types/table").ProTableRowSelection<any>>;
|
|
316
317
|
default: undefined;
|
|
317
318
|
};
|
|
318
319
|
columns: {
|
|
@@ -328,7 +329,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
328
329
|
default: undefined;
|
|
329
330
|
};
|
|
330
331
|
request: {
|
|
331
|
-
type: import("vue").PropType<import("./types/table").
|
|
332
|
+
type: import("vue").PropType<import("./types/table").RequsetFunction<any>>;
|
|
332
333
|
default: null;
|
|
333
334
|
};
|
|
334
335
|
virtualScroll: import("vue").PropType<boolean>;
|
|
@@ -352,33 +353,34 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
352
353
|
default: () => never[];
|
|
353
354
|
};
|
|
354
355
|
customize: {
|
|
355
|
-
type: import("vue").PropType<WithFalse<(data?: RecordType[] | undefined) => CustomRender>>;
|
|
356
|
+
type: import("vue").PropType<import("./typing").WithFalse<(data?: RecordType[] | undefined) => import("./typing").CustomRender>>;
|
|
356
357
|
default: () => undefined;
|
|
357
358
|
};
|
|
358
359
|
actionRef: import("vue").PropType<import("./types/table").ProCoreActionType>;
|
|
360
|
+
formRef: import("vue").PropType<import("./types/table").ProCoreFormType>;
|
|
359
361
|
tableClassName: import("vue").PropType<String>;
|
|
360
362
|
tableStyle: {
|
|
361
363
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
362
364
|
};
|
|
363
365
|
toolBarBtn: {
|
|
364
|
-
type: import("vue").PropType<ProVueNode>;
|
|
366
|
+
type: import("vue").PropType<import("./typing").ProVueNode>; /**
|
|
367
|
+
* @Author gx12358
|
|
368
|
+
* @DateTime 2022/1/21
|
|
369
|
+
* @lastTime 2022/1/21
|
|
370
|
+
* @description Tabel-loading hooks 方法
|
|
371
|
+
*/
|
|
365
372
|
default: () => undefined;
|
|
366
373
|
};
|
|
367
374
|
headerTitle: {
|
|
368
|
-
type: import("vue").PropType<ProVueNode>;
|
|
375
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
369
376
|
default: () => undefined;
|
|
370
377
|
};
|
|
371
378
|
titleTip: {
|
|
372
|
-
type: import("vue").PropType<ProVueNode>;
|
|
379
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
373
380
|
default: () => undefined;
|
|
374
381
|
};
|
|
375
382
|
titleTipText: {
|
|
376
|
-
type: import("vue").PropType<string>;
|
|
377
|
-
* @Author gx12358
|
|
378
|
-
* @DateTime 2022/1/21
|
|
379
|
-
* @lastTime 2022/1/21
|
|
380
|
-
* @description Tabel-loading hooks 方法
|
|
381
|
-
*/
|
|
383
|
+
type: import("vue").PropType<string>;
|
|
382
384
|
default: string;
|
|
383
385
|
};
|
|
384
386
|
options: {
|
|
@@ -389,16 +391,11 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
389
391
|
type: import("vue").PropType<import("./hooks/useColumnSetting").ColumnsStateType>;
|
|
390
392
|
};
|
|
391
393
|
optionsExtra: {
|
|
392
|
-
type: import("vue").PropType<
|
|
394
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
393
395
|
default: () => undefined;
|
|
394
396
|
};
|
|
395
397
|
settingExtra: {
|
|
396
|
-
type: import("vue").PropType<
|
|
397
|
-
* @Author gx12358
|
|
398
|
-
* @DateTime 2022/1/21
|
|
399
|
-
* @lastTime 2022/1/21
|
|
400
|
-
* @description Tabel-scroll hooks 方法
|
|
401
|
-
*/
|
|
398
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
402
399
|
default: () => undefined;
|
|
403
400
|
};
|
|
404
401
|
showIndex: {
|
|
@@ -406,15 +403,15 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
406
403
|
default: boolean;
|
|
407
404
|
};
|
|
408
405
|
pageItemRender: {
|
|
409
|
-
type: import("vue").PropType<WithFalse<(opt: {
|
|
406
|
+
type: import("vue").PropType<import("./typing").WithFalse<(opt: {
|
|
410
407
|
page: number;
|
|
411
408
|
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
412
409
|
originalElement: any;
|
|
413
|
-
}) => CustomRender>>;
|
|
410
|
+
}) => import("./typing").CustomRender>>;
|
|
414
411
|
default: () => undefined;
|
|
415
412
|
};
|
|
416
413
|
size: {
|
|
417
|
-
type: import("vue").PropType<import("./
|
|
414
|
+
type: import("vue").PropType<import("./typing").SizeType>;
|
|
418
415
|
default: string;
|
|
419
416
|
};
|
|
420
417
|
align: {
|
|
@@ -437,14 +434,14 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
437
434
|
type: import("vue").PropType<import("./types/table").ProFieldEmptyText>;
|
|
438
435
|
default: boolean;
|
|
439
436
|
};
|
|
440
|
-
|
|
437
|
+
onReset: import("vue").PropType<(params?: Partial<Record<string, any>> | undefined) => any>;
|
|
441
438
|
onReload: import("vue").PropType<(params?: Partial<Record<string, any>> | undefined) => any>;
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
439
|
+
onSubmit: import("vue").PropType<(params: Partial<Record<string, any>>) => any>;
|
|
440
|
+
onSizeChange: import("vue").PropType<(size: string) => any>;
|
|
441
|
+
onLadingChange: import("vue").PropType<(loading: boolean) => any>;
|
|
442
|
+
onRequestError: import("vue").PropType<(e: Error) => void>;
|
|
443
|
+
onBeforeSearchSubmit: import("vue").PropType<import("./types/table").RequsetFunction<RecordType>>;
|
|
444
|
+
onColumnsStateChange: import("vue").PropType<(data: import("./hooks/useColumnSetting").ColumnsState[]) => void>;
|
|
448
445
|
prefixCls: {
|
|
449
446
|
type: import("vue").PropType<string>;
|
|
450
447
|
default: undefined;
|
|
@@ -543,8 +540,18 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
543
540
|
};
|
|
544
541
|
showExpandColumn: {
|
|
545
542
|
type: BooleanConstructor;
|
|
546
|
-
default: undefined;
|
|
547
|
-
|
|
543
|
+
default: undefined; /**
|
|
544
|
+
* @Author gx12358
|
|
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
|
+
*/
|
|
548
555
|
expandedRowClassName: {
|
|
549
556
|
type: import("vue").PropType<import("ant-design-vue/lib/vc-table/interface").RowClassName<any> | undefined>;
|
|
550
557
|
default: undefined;
|
|
@@ -566,12 +573,6 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
566
573
|
type: import("vue").PropType<any[] | undefined>;
|
|
567
574
|
default: undefined;
|
|
568
575
|
};
|
|
569
|
-
/**
|
|
570
|
-
* @Author gx12358
|
|
571
|
-
* @DateTime 2022/1/21
|
|
572
|
-
* @lastTime 2022/1/21
|
|
573
|
-
* @description Tabel-pagetion hooks 方法
|
|
574
|
-
*/
|
|
575
576
|
loading: {
|
|
576
577
|
type: import("vue").PropType<boolean | import("./_utils").SpinProps>;
|
|
577
578
|
default: undefined;
|
|
@@ -619,17 +620,15 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
619
620
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
620
621
|
onExpandedRowsChange?: ((...args: any[]) => any) | undefined;
|
|
621
622
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
622
|
-
onReload?: ((...args: any[]) => any) | undefined;
|
|
623
623
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
624
|
+
onReload?: ((...args: any[]) => any) | undefined;
|
|
624
625
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
625
|
-
onLoadingChange?: ((...args: any[]) => any) | undefined;
|
|
626
626
|
onSizeChange?: ((...args: any[]) => any) | undefined;
|
|
627
|
-
onBeforeSearchSubmit?: ((...args: any[]) => any) | undefined;
|
|
628
|
-
onPostData?: ((...args: any[]) => any) | undefined;
|
|
629
627
|
onRequestError?: ((...args: any[]) => any) | undefined;
|
|
628
|
+
onBeforeSearchSubmit?: ((...args: any[]) => any) | undefined;
|
|
630
629
|
onColumnsStateChange?: ((...args: any[]) => any) | undefined;
|
|
630
|
+
onLoadingChange?: ((...args: any[]) => any) | undefined;
|
|
631
631
|
}, {
|
|
632
|
-
search: import("./types/table").SearchConfig;
|
|
633
632
|
rowKey: string;
|
|
634
633
|
columns: ProColumns;
|
|
635
634
|
scroll: {
|
|
@@ -666,32 +665,33 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
666
665
|
childrenColumnName: string | undefined;
|
|
667
666
|
rowExpandable: ((record: any) => boolean) | undefined;
|
|
668
667
|
sticky: boolean | import("ant-design-vue/lib/vc-table/interface").TableSticky | undefined;
|
|
669
|
-
size: import("./
|
|
668
|
+
size: import("./typing").SizeType;
|
|
670
669
|
locale: import("ant-design-vue/es/table/interface").TableLocale;
|
|
671
670
|
onChange: (pagination: import("ant-design-vue/es/table/interface").TablePaginationConfig, filters: Record<string, FilterValue | null>, sorter: SorterResult<any> | SorterResult<any>[], extra: import("ant-design-vue/es/table/interface").TableCurrentDataSource<any>) => void;
|
|
672
671
|
getPopupContainer: import("ant-design-vue/es/table/interface").GetPopupContainer;
|
|
673
672
|
align: import("ant-design-vue/es/vc-table/interface").AlignType;
|
|
674
|
-
headerTitle: ProVueNode;
|
|
675
|
-
toolBarBtn: ProVueNode;
|
|
676
|
-
titleTip: ProVueNode;
|
|
677
|
-
settingExtra: VueNode;
|
|
678
|
-
optionsExtra: VueNode;
|
|
679
|
-
pageItemRender: WithFalse<(opt: {
|
|
680
|
-
page: number;
|
|
681
|
-
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
682
|
-
originalElement: any;
|
|
683
|
-
}) => CustomRender>;
|
|
684
|
-
customize: WithFalse<(data?: RecordType[] | undefined) => CustomRender>;
|
|
685
|
-
showIndex: boolean;
|
|
686
673
|
loading: boolean | import("./_utils").SpinProps;
|
|
687
|
-
|
|
674
|
+
search: import("./types/table").SearchConfig;
|
|
675
|
+
rowSelection: import("./types/table").ProTableRowSelection<any>;
|
|
688
676
|
pagination: import("./types/table").ProTablePagination;
|
|
689
|
-
request: import("./types/table").
|
|
677
|
+
request: import("./types/table").RequsetFunction<any>;
|
|
690
678
|
waitRequest: boolean;
|
|
691
679
|
debounceTime: number;
|
|
692
680
|
searchMap: import("./types/column").ProSearchMap<"text", "date">[];
|
|
681
|
+
customize: import("./typing").WithFalse<(data?: RecordType[] | undefined) => import("./typing").CustomRender>;
|
|
682
|
+
toolBarBtn: import("./typing").ProVueNode;
|
|
683
|
+
headerTitle: import("./typing").ProVueNode;
|
|
684
|
+
titleTip: import("./typing").ProVueNode;
|
|
693
685
|
titleTipText: string;
|
|
694
686
|
options: boolean | OptionConfig;
|
|
687
|
+
optionsExtra: import("./typing").ProVueNode;
|
|
688
|
+
settingExtra: import("./typing").ProVueNode;
|
|
689
|
+
showIndex: boolean;
|
|
690
|
+
pageItemRender: import("./typing").WithFalse<(opt: {
|
|
691
|
+
page: number;
|
|
692
|
+
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
693
|
+
originalElement: any;
|
|
694
|
+
}) => import("./typing").CustomRender>;
|
|
695
695
|
bordered: boolean;
|
|
696
696
|
autoScroll: boolean;
|
|
697
697
|
columnEmptyText: import("./types/table").ProFieldEmptyText;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import type { ColumnsType, ColumnType, ContextSlots, FilterValue, GetPopupContainer, SorterResult, SortOrder, TableCurrentDataSource, TableLocale, TablePaginationConfig, TableRowSelection } from './typings';
|
|
3
|
-
import type {
|
|
3
|
+
import type { SpinProps, TooltipProps } from '../../index';
|
|
4
|
+
import type { SizeType } from '../../../typing';
|
|
4
5
|
export declare const tableProps: {
|
|
5
6
|
prefixCls: {
|
|
6
7
|
type: PropType<string>;
|
package/dist/_utils/index.d.ts
CHANGED
|
@@ -11,5 +11,4 @@ export declare const getPrefixCls: ({ suffixCls, customizePrefixCls, isPor, clas
|
|
|
11
11
|
export declare function getSlot<T>(slots: Slots, props: Record<string, unknown>, prop?: string): T | false;
|
|
12
12
|
export declare function getSlotVNode<T>(slots: Slots, props: Record<string, unknown>, prop?: string): T | false;
|
|
13
13
|
export * from './typings';
|
|
14
|
-
export * from './gx-design-vue';
|
|
15
14
|
export * from './ant-design-vue';
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
@import '../../design/config.less';
|
|
2
|
-
|
|
3
|
-
@import 'ant-design-vue/es/tree-select/style/index.less';
|
|
4
|
-
@import 'ant-design-vue/es/button/style/index.less';
|
|
5
|
-
@import 'ant-design-vue/es/form/style/index.less';
|
|
6
|
-
@import 'ant-design-vue/es/select/style/index.less';
|
|
7
|
-
@import 'ant-design-vue/es/time-picker/style/index.less';
|
|
8
|
-
@import 'ant-design-vue/es/date-picker/style/index.less';
|
|
9
|
-
@import 'ant-design-vue/es/input/style/index.less';
|
|
2
|
+
@import '../../design/ant-design-theme.less';
|
|
10
3
|
|
|
11
4
|
@pro-table-form-prefix-cls: ~'@{gx-prefix-pro}-table-form';
|
|
12
5
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { VueNode, PropType } from '../../typing';
|
|
1
2
|
import './style.less';
|
|
2
3
|
export declare type ListToolBarSetting = {
|
|
3
4
|
icon: VueNode;
|
|
@@ -7,17 +8,17 @@ export declare type ListToolBarSetting = {
|
|
|
7
8
|
};
|
|
8
9
|
declare const ListToolBar: import("vue").DefineComponent<{
|
|
9
10
|
actions: {
|
|
10
|
-
type: import("vue").PropType<ProVueNode>;
|
|
11
|
+
type: import("vue").PropType<import("../../typing").ProVueNode>;
|
|
11
12
|
default: () => undefined;
|
|
12
13
|
};
|
|
13
14
|
settings: PropType<VueNode[]>;
|
|
14
15
|
titleTip: {
|
|
15
|
-
type: import("vue").PropType<ProVueNode>;
|
|
16
|
+
type: import("vue").PropType<import("../../typing").ProVueNode>;
|
|
16
17
|
default: () => undefined;
|
|
17
18
|
};
|
|
18
19
|
prefixCls: StringConstructor;
|
|
19
20
|
headerTitle: {
|
|
20
|
-
type: import("vue").PropType<ProVueNode>;
|
|
21
|
+
type: import("vue").PropType<import("../../typing").ProVueNode>;
|
|
21
22
|
default: () => undefined;
|
|
22
23
|
};
|
|
23
24
|
titleTipText: {
|
|
@@ -25,22 +26,22 @@ declare const ListToolBar: import("vue").DefineComponent<{
|
|
|
25
26
|
default: string;
|
|
26
27
|
};
|
|
27
28
|
optionsExtra: {
|
|
28
|
-
type: import("vue").PropType<
|
|
29
|
+
type: import("vue").PropType<import("../../typing").ProVueNode>;
|
|
29
30
|
default: () => undefined;
|
|
30
31
|
};
|
|
31
32
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
33
|
actions: {
|
|
33
|
-
type: import("vue").PropType<ProVueNode>;
|
|
34
|
+
type: import("vue").PropType<import("../../typing").ProVueNode>;
|
|
34
35
|
default: () => undefined;
|
|
35
36
|
};
|
|
36
37
|
settings: PropType<VueNode[]>;
|
|
37
38
|
titleTip: {
|
|
38
|
-
type: import("vue").PropType<ProVueNode>;
|
|
39
|
+
type: import("vue").PropType<import("../../typing").ProVueNode>;
|
|
39
40
|
default: () => undefined;
|
|
40
41
|
};
|
|
41
42
|
prefixCls: StringConstructor;
|
|
42
43
|
headerTitle: {
|
|
43
|
-
type: import("vue").PropType<ProVueNode>;
|
|
44
|
+
type: import("vue").PropType<import("../../typing").ProVueNode>;
|
|
44
45
|
default: () => undefined;
|
|
45
46
|
};
|
|
46
47
|
titleTipText: {
|
|
@@ -48,14 +49,14 @@ declare const ListToolBar: import("vue").DefineComponent<{
|
|
|
48
49
|
default: string;
|
|
49
50
|
};
|
|
50
51
|
optionsExtra: {
|
|
51
|
-
type: import("vue").PropType<
|
|
52
|
+
type: import("vue").PropType<import("../../typing").ProVueNode>;
|
|
52
53
|
default: () => undefined;
|
|
53
54
|
};
|
|
54
55
|
}>>, {
|
|
55
|
-
headerTitle: ProVueNode;
|
|
56
|
-
titleTip: ProVueNode;
|
|
57
|
-
optionsExtra: VueNode;
|
|
56
|
+
headerTitle: import("../../typing").ProVueNode;
|
|
57
|
+
titleTip: import("../../typing").ProVueNode;
|
|
58
58
|
titleTipText: string;
|
|
59
|
-
|
|
59
|
+
optionsExtra: import("../../typing").ProVueNode;
|
|
60
|
+
actions: import("../../typing").ProVueNode;
|
|
60
61
|
}>;
|
|
61
62
|
export default ListToolBar;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { FunctionalComponent as FC } from 'vue';
|
|
2
2
|
import type { ProTableProps } from '../../ProTable';
|
|
3
|
+
import type { VueNode } from '../../typing';
|
|
3
4
|
import type { OptionConfig } from '../../types/table';
|
|
4
5
|
import './style.less';
|
|
5
6
|
export declare type ToolBarProps = {
|
|
@@ -1,40 +1,16 @@
|
|
|
1
1
|
@import '../../design/config.less';
|
|
2
|
-
|
|
3
|
-
@import 'ant-design-vue/es/menu/style/index.less';
|
|
4
|
-
@import 'ant-design-vue/es/popover/style/index.less';
|
|
5
|
-
@import 'ant-design-vue/es/dropdown/style/index.less';
|
|
6
|
-
@import 'ant-design-vue/es/tooltip/style/index.less';
|
|
2
|
+
@import '../../design/ant-design-theme.less';
|
|
7
3
|
|
|
8
4
|
.@{gx-prefix-pro}-table-list-toolbar {
|
|
9
5
|
&-title {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: 8px;
|
|
10
9
|
flex: 1;
|
|
11
|
-
font-size:
|
|
10
|
+
font-size: @font-size-lg;
|
|
12
11
|
font-weight: 500;
|
|
13
12
|
line-height: 24px;
|
|
14
13
|
color: @label-color;
|
|
15
14
|
opacity: 0.85;
|
|
16
15
|
}
|
|
17
|
-
|
|
18
|
-
&-actions {
|
|
19
|
-
.ant-btn {
|
|
20
|
-
color: var(--ant-primary-color);
|
|
21
|
-
border-color: var(--ant-primary-color);
|
|
22
|
-
|
|
23
|
-
&.ant-btn-primary {
|
|
24
|
-
color: @white;
|
|
25
|
-
border-color: @white;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.ant-btn[disabled],
|
|
30
|
-
.ant-btn[disabled]:hover,
|
|
31
|
-
.ant-btn[disabled]:focus,
|
|
32
|
-
.ant-btn[disabled]:active {
|
|
33
|
-
color: #00000040;
|
|
34
|
-
text-shadow: none;
|
|
35
|
-
background: #f5f5f5;
|
|
36
|
-
border-color: #d9d9d9;
|
|
37
|
-
box-shadow: none;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
16
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { Ref, ComputedRef } from 'vue';
|
|
2
2
|
import type { InjectionKey, Slots } from 'vue';
|
|
3
|
+
import type { SizeType } from '../typing';
|
|
3
4
|
import type { ProColumns } from '../types/column';
|
|
4
5
|
import type { ColumnsState, SettingsAction } from '../hooks/useColumnSetting';
|
|
5
|
-
import type {
|
|
6
|
+
import type { PaginationProps } from '../_utils';
|
|
6
7
|
export declare type ContextType = any;
|
|
7
8
|
export interface TableContextProps {
|
|
8
9
|
columns?: ComputedRef<ProColumns>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@import 'ant-design-vue/es/empty/style/index.less';
|
|
2
|
+
@import 'ant-design-vue/es/tree/style/index.less';
|
|
3
|
+
@import 'ant-design-vue/es/checkbox/style/index.less';
|
|
4
|
+
@import 'ant-design-vue/es/grid/style/index.less';
|
|
5
|
+
@import 'ant-design-vue/es/pagination/style/index.less';
|
|
6
|
+
@import 'ant-design-vue/es/spin/style/index.less';
|
|
7
|
+
@import 'ant-design-vue/es/space/style/index.less';
|
|
8
|
+
@import 'ant-design-vue/es/table/style/index.less';
|
|
9
|
+
@import 'ant-design-vue/es/tree-select/style/index.less';
|
|
10
|
+
@import 'ant-design-vue/es/button/style/index.less';
|
|
11
|
+
@import 'ant-design-vue/es/form/style/index.less';
|
|
12
|
+
@import 'ant-design-vue/es/select/style/index.less';
|
|
13
|
+
@import 'ant-design-vue/es/time-picker/style/index.less';
|
|
14
|
+
@import 'ant-design-vue/es/date-picker/style/index.less';
|
|
15
|
+
@import 'ant-design-vue/es/input/style/index.less';
|
|
16
|
+
@import 'ant-design-vue/es/menu/style/index.less';
|
|
17
|
+
@import 'ant-design-vue/es/popover/style/index.less';
|
|
18
|
+
@import 'ant-design-vue/es/dropdown/style/index.less';
|
|
19
|
+
@import 'ant-design-vue/es/tooltip/style/index.less';
|