@gx-design-vue/pro-table 0.0.2-rc.1 → 0.0.2-rc.10
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 +84 -113
- package/dist/_utils/ant-design-vue/pagination/typings.d.ts +1 -1
- 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 +1 -28
- 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 +5 -4
- package/dist/hooks/useLoading.d.ts +1 -1
- package/dist/hooks/useRowSelection.d.ts +1 -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 +5 -1
- package/dist/pro-table.less +5 -0
- package/dist/pro-table.mjs +752 -748
- package/dist/pro-table.umd.js +1 -1
- package/dist/props.d.ts +27 -21
- package/dist/style/index.less +9 -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 +1 -0
- package/dist/types/table.d.ts +18 -12
- package/dist/typing.d.ts +9 -0
- package/package.json +11 -13
- 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/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,7 +48,7 @@ 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>;
|
|
@@ -56,15 +57,15 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
56
57
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
57
58
|
};
|
|
58
59
|
toolBarBtn: {
|
|
59
|
-
type: import("vue").PropType<ProVueNode>;
|
|
60
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
60
61
|
default: () => undefined;
|
|
61
62
|
};
|
|
62
63
|
headerTitle: {
|
|
63
|
-
type: import("vue").PropType<ProVueNode>;
|
|
64
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
64
65
|
default: () => undefined;
|
|
65
66
|
};
|
|
66
67
|
titleTip: {
|
|
67
|
-
type: import("vue").PropType<ProVueNode>;
|
|
68
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
68
69
|
default: () => undefined;
|
|
69
70
|
};
|
|
70
71
|
titleTipText: {
|
|
@@ -79,16 +80,11 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
79
80
|
type: import("vue").PropType<import("./hooks/useColumnSetting").ColumnsStateType>;
|
|
80
81
|
};
|
|
81
82
|
optionsExtra: {
|
|
82
|
-
type: import("vue").PropType<
|
|
83
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
83
84
|
default: () => undefined;
|
|
84
|
-
};
|
|
85
|
-
* @Author gx12358
|
|
86
|
-
* @DateTime 2022/1/21
|
|
87
|
-
* @lastTime 2022/1/21
|
|
88
|
-
* @description Tabel-scroll hooks 方法
|
|
89
|
-
*/
|
|
85
|
+
};
|
|
90
86
|
settingExtra: {
|
|
91
|
-
type: import("vue").PropType<
|
|
87
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
92
88
|
default: () => undefined;
|
|
93
89
|
};
|
|
94
90
|
showIndex: {
|
|
@@ -96,15 +92,15 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
96
92
|
default: boolean;
|
|
97
93
|
};
|
|
98
94
|
pageItemRender: {
|
|
99
|
-
type: import("vue").PropType<WithFalse<(opt: {
|
|
95
|
+
type: import("vue").PropType<import("./typing").WithFalse<(opt: {
|
|
100
96
|
page: number;
|
|
101
97
|
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
102
98
|
originalElement: any;
|
|
103
|
-
}) => CustomRender>>;
|
|
99
|
+
}) => import("./typing").CustomRender>>;
|
|
104
100
|
default: () => undefined;
|
|
105
101
|
};
|
|
106
102
|
size: {
|
|
107
|
-
type: import("vue").PropType<import("./
|
|
103
|
+
type: import("vue").PropType<import("./typing").SizeType>;
|
|
108
104
|
default: string;
|
|
109
105
|
};
|
|
110
106
|
align: {
|
|
@@ -117,12 +113,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
117
113
|
};
|
|
118
114
|
draggabled: import("vue").PropType<boolean>;
|
|
119
115
|
autoScroll: {
|
|
120
|
-
type: import("vue").PropType<boolean>;
|
|
121
|
-
* @Author gx12358
|
|
122
|
-
* @DateTime 2022/1/21
|
|
123
|
-
* @lastTime 2022/1/21
|
|
124
|
-
* @description Tabel-datasource hooks 方法
|
|
125
|
-
*/
|
|
116
|
+
type: import("vue").PropType<boolean>;
|
|
126
117
|
default: boolean;
|
|
127
118
|
};
|
|
128
119
|
scrollBreakpoint: import("vue").PropType<string | number>;
|
|
@@ -132,14 +123,14 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
132
123
|
type: import("vue").PropType<import("./types/table").ProFieldEmptyText>;
|
|
133
124
|
default: boolean;
|
|
134
125
|
};
|
|
135
|
-
|
|
126
|
+
onReset: import("vue").PropType<(params?: Partial<Record<string, any>> | undefined) => any>;
|
|
136
127
|
onReload: import("vue").PropType<(params?: Partial<Record<string, any>> | undefined) => any>;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
128
|
+
onSubmit: import("vue").PropType<(params: Partial<Record<string, any>>) => any>;
|
|
129
|
+
onSizeChange: import("vue").PropType<(size: string) => any>;
|
|
130
|
+
onLadingChange: import("vue").PropType<(loading: boolean) => any>;
|
|
131
|
+
onRequestError: import("vue").PropType<(e: Error) => void>;
|
|
132
|
+
onBeforeSearchSubmit: import("vue").PropType<import("./types/table").RequsetFunction<RecordType>>;
|
|
133
|
+
onColumnsStateChange: import("vue").PropType<(data: import("./hooks/useColumnSetting").ColumnsState[]) => void>;
|
|
143
134
|
prefixCls: {
|
|
144
135
|
type: import("vue").PropType<string>;
|
|
145
136
|
default: undefined;
|
|
@@ -233,11 +224,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
233
224
|
default: undefined;
|
|
234
225
|
};
|
|
235
226
|
expandIconColumnIndex: {
|
|
236
|
-
type: import("vue").PropType<number | undefined>;
|
|
237
|
-
default: undefined;
|
|
238
|
-
};
|
|
239
|
-
showExpandColumn: {
|
|
240
|
-
type: BooleanConstructor; /**
|
|
227
|
+
type: import("vue").PropType<number | undefined>; /**
|
|
241
228
|
* @Author gx12358
|
|
242
229
|
* @DateTime 2022/1/21
|
|
243
230
|
* @lastTime 2022/1/21
|
|
@@ -245,25 +232,29 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
245
232
|
*/
|
|
246
233
|
default: undefined;
|
|
247
234
|
};
|
|
235
|
+
showExpandColumn: {
|
|
236
|
+
type: BooleanConstructor;
|
|
237
|
+
default: undefined;
|
|
238
|
+
};
|
|
248
239
|
expandedRowClassName: {
|
|
249
240
|
type: import("vue").PropType<import("ant-design-vue/lib/vc-table/interface").RowClassName<any> | undefined>;
|
|
250
241
|
default: undefined;
|
|
251
242
|
};
|
|
252
243
|
childrenColumnName: {
|
|
253
244
|
type: import("vue").PropType<string | undefined>;
|
|
254
|
-
default: undefined;
|
|
255
|
-
* @Author gx12358
|
|
256
|
-
* @DateTime 2022/1/21
|
|
257
|
-
* @lastTime 2022/1/21
|
|
258
|
-
* @description Tabel-size hooks 方法
|
|
259
|
-
*/
|
|
245
|
+
default: undefined;
|
|
260
246
|
};
|
|
261
247
|
rowExpandable: {
|
|
262
248
|
type: import("vue").PropType<((record: any) => boolean) | undefined>;
|
|
263
249
|
default: undefined;
|
|
264
250
|
};
|
|
265
251
|
sticky: {
|
|
266
|
-
type: import("vue").PropType<boolean | import("ant-design-vue/lib/vc-table/interface").TableSticky | undefined>;
|
|
252
|
+
type: import("vue").PropType<boolean | import("ant-design-vue/lib/vc-table/interface").TableSticky | undefined>; /**
|
|
253
|
+
* @Author gx12358
|
|
254
|
+
* @DateTime 2022/1/21
|
|
255
|
+
* @lastTime 2022/1/21
|
|
256
|
+
* @description Tabel-pagetion hooks 方法
|
|
257
|
+
*/
|
|
267
258
|
default: undefined;
|
|
268
259
|
};
|
|
269
260
|
dropdownPrefixCls: StringConstructor;
|
|
@@ -313,15 +304,10 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
313
304
|
};
|
|
314
305
|
transformCellText: {
|
|
315
306
|
type: import("vue").PropType<import("ant-design-vue/lib/vc-table/interface").TransformCellText<any> | undefined>;
|
|
316
|
-
};
|
|
317
|
-
|
|
318
|
-
* @DateTime 2022/1/21
|
|
319
|
-
* @lastTime 2022/1/21
|
|
320
|
-
* @description Tabel-Form(搜索) hooks 方法
|
|
321
|
-
*/
|
|
322
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("loadingChange" | "sizeChange" | "beforeSearchSubmit" | "postData" | "change" | "requestError" | "reload" | "reset" | "submit" | "expandedRowsChange" | "expand" | "columnsStateChange")[], "reload" | "loadingChange" | "sizeChange" | "postData" | "reset" | "submit" | "requestError" | "beforeSearchSubmit" | "columnsStateChange" | "change" | "expandedRowsChange" | "expand", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
307
|
+
};
|
|
308
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("loadingChange" | "sizeChange" | "reset" | "postData" | "change" | "requestError" | "reload" | "submit" | "expandedRowsChange" | "expand" | "beforeSearchSubmit" | "columnsStateChange")[], "reload" | "loadingChange" | "sizeChange" | "postData" | "reset" | "change" | "requestError" | "submit" | "expandedRowsChange" | "expand" | "beforeSearchSubmit" | "columnsStateChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
323
309
|
rowSelection: {
|
|
324
|
-
type: import("vue").PropType<any
|
|
310
|
+
type: import("vue").PropType<import("./types/table").ProTableRowSelection<any>>;
|
|
325
311
|
default: undefined;
|
|
326
312
|
};
|
|
327
313
|
columns: {
|
|
@@ -337,7 +323,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
337
323
|
default: undefined;
|
|
338
324
|
};
|
|
339
325
|
request: {
|
|
340
|
-
type: import("vue").PropType<import("./types/table").
|
|
326
|
+
type: import("vue").PropType<import("./types/table").RequsetFunction<any>>;
|
|
341
327
|
default: null;
|
|
342
328
|
};
|
|
343
329
|
virtualScroll: import("vue").PropType<boolean>;
|
|
@@ -361,7 +347,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
361
347
|
default: () => never[];
|
|
362
348
|
};
|
|
363
349
|
customize: {
|
|
364
|
-
type: import("vue").PropType<WithFalse<(data?: RecordType[] | undefined) => CustomRender>>;
|
|
350
|
+
type: import("vue").PropType<import("./typing").WithFalse<(data?: RecordType[] | undefined) => import("./typing").CustomRender>>;
|
|
365
351
|
default: () => undefined;
|
|
366
352
|
};
|
|
367
353
|
actionRef: import("vue").PropType<import("./types/table").ProCoreActionType>;
|
|
@@ -370,15 +356,15 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
370
356
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
371
357
|
};
|
|
372
358
|
toolBarBtn: {
|
|
373
|
-
type: import("vue").PropType<ProVueNode>;
|
|
359
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
374
360
|
default: () => undefined;
|
|
375
361
|
};
|
|
376
362
|
headerTitle: {
|
|
377
|
-
type: import("vue").PropType<ProVueNode>;
|
|
363
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
378
364
|
default: () => undefined;
|
|
379
365
|
};
|
|
380
366
|
titleTip: {
|
|
381
|
-
type: import("vue").PropType<ProVueNode>;
|
|
367
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
382
368
|
default: () => undefined;
|
|
383
369
|
};
|
|
384
370
|
titleTipText: {
|
|
@@ -393,16 +379,11 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
393
379
|
type: import("vue").PropType<import("./hooks/useColumnSetting").ColumnsStateType>;
|
|
394
380
|
};
|
|
395
381
|
optionsExtra: {
|
|
396
|
-
type: import("vue").PropType<
|
|
382
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
397
383
|
default: () => undefined;
|
|
398
|
-
};
|
|
399
|
-
* @Author gx12358
|
|
400
|
-
* @DateTime 2022/1/21
|
|
401
|
-
* @lastTime 2022/1/21
|
|
402
|
-
* @description Tabel-scroll hooks 方法
|
|
403
|
-
*/
|
|
384
|
+
};
|
|
404
385
|
settingExtra: {
|
|
405
|
-
type: import("vue").PropType<
|
|
386
|
+
type: import("vue").PropType<import("./typing").ProVueNode>;
|
|
406
387
|
default: () => undefined;
|
|
407
388
|
};
|
|
408
389
|
showIndex: {
|
|
@@ -410,15 +391,15 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
410
391
|
default: boolean;
|
|
411
392
|
};
|
|
412
393
|
pageItemRender: {
|
|
413
|
-
type: import("vue").PropType<WithFalse<(opt: {
|
|
394
|
+
type: import("vue").PropType<import("./typing").WithFalse<(opt: {
|
|
414
395
|
page: number;
|
|
415
396
|
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
416
397
|
originalElement: any;
|
|
417
|
-
}) => CustomRender>>;
|
|
398
|
+
}) => import("./typing").CustomRender>>;
|
|
418
399
|
default: () => undefined;
|
|
419
400
|
};
|
|
420
401
|
size: {
|
|
421
|
-
type: import("vue").PropType<import("./
|
|
402
|
+
type: import("vue").PropType<import("./typing").SizeType>;
|
|
422
403
|
default: string;
|
|
423
404
|
};
|
|
424
405
|
align: {
|
|
@@ -431,12 +412,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
431
412
|
};
|
|
432
413
|
draggabled: import("vue").PropType<boolean>;
|
|
433
414
|
autoScroll: {
|
|
434
|
-
type: import("vue").PropType<boolean>;
|
|
435
|
-
* @Author gx12358
|
|
436
|
-
* @DateTime 2022/1/21
|
|
437
|
-
* @lastTime 2022/1/21
|
|
438
|
-
* @description Tabel-datasource hooks 方法
|
|
439
|
-
*/
|
|
415
|
+
type: import("vue").PropType<boolean>;
|
|
440
416
|
default: boolean;
|
|
441
417
|
};
|
|
442
418
|
scrollBreakpoint: import("vue").PropType<string | number>;
|
|
@@ -446,14 +422,14 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
446
422
|
type: import("vue").PropType<import("./types/table").ProFieldEmptyText>;
|
|
447
423
|
default: boolean;
|
|
448
424
|
};
|
|
449
|
-
|
|
425
|
+
onReset: import("vue").PropType<(params?: Partial<Record<string, any>> | undefined) => any>;
|
|
450
426
|
onReload: import("vue").PropType<(params?: Partial<Record<string, any>> | undefined) => any>;
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
427
|
+
onSubmit: import("vue").PropType<(params: Partial<Record<string, any>>) => any>;
|
|
428
|
+
onSizeChange: import("vue").PropType<(size: string) => any>;
|
|
429
|
+
onLadingChange: import("vue").PropType<(loading: boolean) => any>;
|
|
430
|
+
onRequestError: import("vue").PropType<(e: Error) => void>;
|
|
431
|
+
onBeforeSearchSubmit: import("vue").PropType<import("./types/table").RequsetFunction<RecordType>>;
|
|
432
|
+
onColumnsStateChange: import("vue").PropType<(data: import("./hooks/useColumnSetting").ColumnsState[]) => void>;
|
|
457
433
|
prefixCls: {
|
|
458
434
|
type: import("vue").PropType<string>;
|
|
459
435
|
default: undefined;
|
|
@@ -547,11 +523,7 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
547
523
|
default: undefined;
|
|
548
524
|
};
|
|
549
525
|
expandIconColumnIndex: {
|
|
550
|
-
type: import("vue").PropType<number | undefined>;
|
|
551
|
-
default: undefined;
|
|
552
|
-
};
|
|
553
|
-
showExpandColumn: {
|
|
554
|
-
type: BooleanConstructor; /**
|
|
526
|
+
type: import("vue").PropType<number | undefined>; /**
|
|
555
527
|
* @Author gx12358
|
|
556
528
|
* @DateTime 2022/1/21
|
|
557
529
|
* @lastTime 2022/1/21
|
|
@@ -559,25 +531,29 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
559
531
|
*/
|
|
560
532
|
default: undefined;
|
|
561
533
|
};
|
|
534
|
+
showExpandColumn: {
|
|
535
|
+
type: BooleanConstructor;
|
|
536
|
+
default: undefined;
|
|
537
|
+
};
|
|
562
538
|
expandedRowClassName: {
|
|
563
539
|
type: import("vue").PropType<import("ant-design-vue/lib/vc-table/interface").RowClassName<any> | undefined>;
|
|
564
540
|
default: undefined;
|
|
565
541
|
};
|
|
566
542
|
childrenColumnName: {
|
|
567
543
|
type: import("vue").PropType<string | undefined>;
|
|
568
|
-
default: undefined;
|
|
569
|
-
* @Author gx12358
|
|
570
|
-
* @DateTime 2022/1/21
|
|
571
|
-
* @lastTime 2022/1/21
|
|
572
|
-
* @description Tabel-size hooks 方法
|
|
573
|
-
*/
|
|
544
|
+
default: undefined;
|
|
574
545
|
};
|
|
575
546
|
rowExpandable: {
|
|
576
547
|
type: import("vue").PropType<((record: any) => boolean) | undefined>;
|
|
577
548
|
default: undefined;
|
|
578
549
|
};
|
|
579
550
|
sticky: {
|
|
580
|
-
type: import("vue").PropType<boolean | import("ant-design-vue/lib/vc-table/interface").TableSticky | undefined>;
|
|
551
|
+
type: import("vue").PropType<boolean | import("ant-design-vue/lib/vc-table/interface").TableSticky | undefined>; /**
|
|
552
|
+
* @Author gx12358
|
|
553
|
+
* @DateTime 2022/1/21
|
|
554
|
+
* @lastTime 2022/1/21
|
|
555
|
+
* @description Tabel-pagetion hooks 方法
|
|
556
|
+
*/
|
|
581
557
|
default: undefined;
|
|
582
558
|
};
|
|
583
559
|
dropdownPrefixCls: StringConstructor;
|
|
@@ -627,27 +603,21 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
627
603
|
};
|
|
628
604
|
transformCellText: {
|
|
629
605
|
type: import("vue").PropType<import("ant-design-vue/lib/vc-table/interface").TransformCellText<any> | undefined>;
|
|
630
|
-
};
|
|
631
|
-
* @Author gx12358
|
|
632
|
-
* @DateTime 2022/1/21
|
|
633
|
-
* @lastTime 2022/1/21
|
|
634
|
-
* @description Tabel-Form(搜索) hooks 方法
|
|
635
|
-
*/
|
|
606
|
+
};
|
|
636
607
|
}>> & {
|
|
637
608
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
638
609
|
onExpandedRowsChange?: ((...args: any[]) => any) | undefined;
|
|
639
610
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
640
|
-
onReload?: ((...args: any[]) => any) | undefined;
|
|
641
611
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
612
|
+
onReload?: ((...args: any[]) => any) | undefined;
|
|
642
613
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
643
|
-
onLoadingChange?: ((...args: any[]) => any) | undefined;
|
|
644
614
|
onSizeChange?: ((...args: any[]) => any) | undefined;
|
|
645
|
-
onBeforeSearchSubmit?: ((...args: any[]) => any) | undefined;
|
|
646
|
-
onPostData?: ((...args: any[]) => any) | undefined;
|
|
647
615
|
onRequestError?: ((...args: any[]) => any) | undefined;
|
|
616
|
+
onBeforeSearchSubmit?: ((...args: any[]) => any) | undefined;
|
|
648
617
|
onColumnsStateChange?: ((...args: any[]) => any) | undefined;
|
|
618
|
+
onLoadingChange?: ((...args: any[]) => any) | undefined;
|
|
619
|
+
onPostData?: ((...args: any[]) => any) | undefined;
|
|
649
620
|
}, {
|
|
650
|
-
search: import("./types/table").SearchConfig;
|
|
651
621
|
rowKey: string;
|
|
652
622
|
columns: ProColumns;
|
|
653
623
|
scroll: {
|
|
@@ -684,32 +654,33 @@ declare const ProTable: import("vue").DefineComponent<{
|
|
|
684
654
|
childrenColumnName: string | undefined;
|
|
685
655
|
rowExpandable: ((record: any) => boolean) | undefined;
|
|
686
656
|
sticky: boolean | import("ant-design-vue/lib/vc-table/interface").TableSticky | undefined;
|
|
687
|
-
size: import("./
|
|
657
|
+
size: import("./typing").SizeType;
|
|
688
658
|
locale: import("ant-design-vue/es/table/interface").TableLocale;
|
|
689
659
|
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;
|
|
690
660
|
getPopupContainer: import("ant-design-vue/es/table/interface").GetPopupContainer;
|
|
691
661
|
align: import("ant-design-vue/es/vc-table/interface").AlignType;
|
|
692
662
|
loading: boolean | import("./_utils").SpinProps;
|
|
693
|
-
|
|
663
|
+
search: import("./types/table").SearchConfig;
|
|
664
|
+
rowSelection: import("./types/table").ProTableRowSelection<any>;
|
|
694
665
|
pagination: import("./types/table").ProTablePagination;
|
|
695
|
-
request: import("./types/table").
|
|
666
|
+
request: import("./types/table").RequsetFunction<any>;
|
|
696
667
|
waitRequest: boolean;
|
|
697
668
|
debounceTime: number;
|
|
698
669
|
searchMap: import("./types/column").ProSearchMap<"text", "date">[];
|
|
699
|
-
customize: WithFalse<(data?: RecordType[] | undefined) => CustomRender>;
|
|
700
|
-
toolBarBtn: ProVueNode;
|
|
701
|
-
headerTitle: ProVueNode;
|
|
702
|
-
titleTip: ProVueNode;
|
|
670
|
+
customize: import("./typing").WithFalse<(data?: RecordType[] | undefined) => import("./typing").CustomRender>;
|
|
671
|
+
toolBarBtn: import("./typing").ProVueNode;
|
|
672
|
+
headerTitle: import("./typing").ProVueNode;
|
|
673
|
+
titleTip: import("./typing").ProVueNode;
|
|
703
674
|
titleTipText: string;
|
|
704
675
|
options: boolean | OptionConfig;
|
|
705
|
-
optionsExtra:
|
|
706
|
-
settingExtra:
|
|
676
|
+
optionsExtra: import("./typing").ProVueNode;
|
|
677
|
+
settingExtra: import("./typing").ProVueNode;
|
|
707
678
|
showIndex: boolean;
|
|
708
|
-
pageItemRender: WithFalse<(opt: {
|
|
679
|
+
pageItemRender: import("./typing").WithFalse<(opt: {
|
|
709
680
|
page: number;
|
|
710
681
|
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
711
682
|
originalElement: any;
|
|
712
|
-
}) => CustomRender>;
|
|
683
|
+
}) => import("./typing").CustomRender>;
|
|
713
684
|
bordered: boolean;
|
|
714
685
|
autoScroll: boolean;
|
|
715
686
|
columnEmptyText: import("./types/table").ProFieldEmptyText;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { PaginationProps
|
|
1
|
+
export type { PaginationProps } from 'ant-design-vue/es/pagination';
|
|
@@ -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;
|
|
56
|
+
headerTitle: import("../../typing").ProVueNode;
|
|
57
|
+
titleTip: import("../../typing").ProVueNode;
|
|
57
58
|
titleTipText: string;
|
|
58
|
-
optionsExtra:
|
|
59
|
-
actions: ProVueNode;
|
|
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,9 +1,5 @@
|
|
|
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 {
|
|
@@ -14,27 +10,4 @@
|
|
|
14
10
|
color: @label-color;
|
|
15
11
|
opacity: 0.85;
|
|
16
12
|
}
|
|
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
13
|
}
|
|
@@ -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>;
|