@gx-design-vue/pro-table 0.2.0-beta.139 → 0.2.0-beta.140
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 +63 -33
- package/dist/components/ListToolBar/index.d.ts +9 -3
- package/dist/components/ScrollBar/Bar/index.d.ts +44 -0
- package/dist/components/ScrollBar/Bar/props.d.ts +21 -0
- package/dist/components/ScrollBar/Thumb/index.d.ts +35 -0
- package/dist/components/ScrollBar/Thumb/props.d.ts +16 -0
- package/dist/components/ScrollBar/context.d.ts +10 -0
- package/dist/components/ScrollBar/util.d.ts +29 -0
- package/dist/components/ToolBar/index.d.ts +5 -2
- package/dist/context/TableContext.d.ts +5 -1
- package/dist/hooks/useColumns.d.ts +1 -79
- package/dist/hooks/useScrollArea.d.ts +15 -0
- package/dist/hooks/useTableScroll.d.ts +2 -7
- package/dist/pro-table.js +1639 -1212
- package/dist/pro-table.umd.cjs +3 -3
- package/dist/props.d.ts +34 -19
- package/dist/style/fit-page.d.ts +3 -0
- package/dist/{style.d.ts → style/index.d.ts} +3 -0
- package/dist/style/list.d.ts +3 -0
- package/dist/style/scroll.d.ts +3 -0
- package/dist/types/TableTypings.d.ts +35 -7
- package/dist/utils/utils.d.ts +1 -0
- package/package.json +7 -5
package/dist/ProTable.d.ts
CHANGED
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import type { RecordType } from '@gx-design-vue/pro-utils';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SlotsType } from 'vue';
|
|
3
3
|
import type { ColumnType, Key, RenderExpandIconProps, SpinProps } from './_utils';
|
|
4
4
|
import type { ProTableBodyCellProps } from './types/SlotsTypings';
|
|
5
5
|
import type { OptionConfig } from './types/TableTypings';
|
|
6
6
|
declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
|
+
id: {
|
|
8
|
+
type: import("vue").PropType<string>;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
class: {
|
|
12
|
+
type: import("vue").PropType<string>;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
style: {
|
|
16
|
+
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
17
|
+
default: () => {};
|
|
18
|
+
};
|
|
19
|
+
classNames: {
|
|
20
|
+
type: import("vue").PropType<import("./types/TableTypings").TableClassNamesType>;
|
|
21
|
+
default: () => {};
|
|
22
|
+
};
|
|
23
|
+
styles: {
|
|
24
|
+
type: import("vue").PropType<import("./types/TableTypings").TableStylesType>;
|
|
25
|
+
default: () => {};
|
|
26
|
+
};
|
|
27
|
+
fitPage: {
|
|
28
|
+
type: import("vue").PropType<import("./types/TableTypings").ProTableProps["fitPage"]>;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
7
31
|
rowSelection: {
|
|
8
32
|
type: import("vue").PropType<import("./types/TableTypings").ProTableRowSelection>;
|
|
9
33
|
default: undefined;
|
|
@@ -53,10 +77,6 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
53
77
|
type: import("vue").PropType<import("./types/TableTypings").ProTableProps["customRender"]>;
|
|
54
78
|
default: () => undefined;
|
|
55
79
|
};
|
|
56
|
-
useDefaultScrollStyle: {
|
|
57
|
-
type: import("vue").PropType<import("./types/TableTypings").ProTableProps["useDefaultScrollStyle"]>;
|
|
58
|
-
default: () => boolean;
|
|
59
|
-
};
|
|
60
80
|
emptyText: {
|
|
61
81
|
type: import("vue").PropType<import("./types/TableTypings").ProTableProps["emptyText"]>;
|
|
62
82
|
default: () => undefined;
|
|
@@ -65,10 +85,6 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
65
85
|
type: import("vue").PropType<import("./types/TableTypings").ProTableProps["showLoading"]>;
|
|
66
86
|
default: boolean;
|
|
67
87
|
};
|
|
68
|
-
tableProps: {
|
|
69
|
-
type: import("vue").PropType<import("./types/TableTypings").ProTableProps["tableProps"]>;
|
|
70
|
-
default: () => import("./types/TableTypings").ProTableProps["tableProps"];
|
|
71
|
-
};
|
|
72
88
|
emptyTextProps: {
|
|
73
89
|
type: import("vue").PropType<import("./types/TableTypings").ProTableProps["emptyTextProps"]>;
|
|
74
90
|
default: () => import("./types/TableTypings").ProTableProps["emptyTextProps"];
|
|
@@ -79,8 +95,8 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
79
95
|
placement: string;
|
|
80
96
|
};
|
|
81
97
|
};
|
|
82
|
-
|
|
83
|
-
type: import("vue").PropType<import("./types/TableTypings").ProTableProps["
|
|
98
|
+
listToolAfter: {
|
|
99
|
+
type: import("vue").PropType<import("./types/TableTypings").ProTableProps["listToolAfter"]>;
|
|
84
100
|
default: () => undefined;
|
|
85
101
|
};
|
|
86
102
|
headerTitle: {
|
|
@@ -93,7 +109,6 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
93
109
|
};
|
|
94
110
|
titleTipText: {
|
|
95
111
|
type: import("vue").PropType<import("./types/TableTypings").ProTableProps["titleTipText"]>;
|
|
96
|
-
default: string;
|
|
97
112
|
};
|
|
98
113
|
options: {
|
|
99
114
|
type: import("vue").PropType<import("./types/TableTypings").ProTableProps["options"]>;
|
|
@@ -166,7 +181,31 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
166
181
|
type: import("vue").PropType<(expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void>;
|
|
167
182
|
default: (expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void;
|
|
168
183
|
};
|
|
169
|
-
}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("reset" | "submit" | "
|
|
184
|
+
}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("reset" | "submit" | "change" | "reload" | "sizeChange" | "expandedRowsChange" | "expand" | "requestError" | "columnsStateChange" | "loadingChange")[], "reset" | "submit" | "change" | "reload" | "sizeChange" | "expandedRowsChange" | "expand" | "requestError" | "columnsStateChange" | "loadingChange", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
185
|
+
id: {
|
|
186
|
+
type: import("vue").PropType<string>;
|
|
187
|
+
default: string;
|
|
188
|
+
};
|
|
189
|
+
class: {
|
|
190
|
+
type: import("vue").PropType<string>;
|
|
191
|
+
default: string;
|
|
192
|
+
};
|
|
193
|
+
style: {
|
|
194
|
+
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
195
|
+
default: () => {};
|
|
196
|
+
};
|
|
197
|
+
classNames: {
|
|
198
|
+
type: import("vue").PropType<import("./types/TableTypings").TableClassNamesType>;
|
|
199
|
+
default: () => {};
|
|
200
|
+
};
|
|
201
|
+
styles: {
|
|
202
|
+
type: import("vue").PropType<import("./types/TableTypings").TableStylesType>;
|
|
203
|
+
default: () => {};
|
|
204
|
+
};
|
|
205
|
+
fitPage: {
|
|
206
|
+
type: import("vue").PropType<import("./types/TableTypings").ProTableProps["fitPage"]>;
|
|
207
|
+
default: boolean;
|
|
208
|
+
};
|
|
170
209
|
rowSelection: {
|
|
171
210
|
type: import("vue").PropType<import("./types/TableTypings").ProTableRowSelection>;
|
|
172
211
|
default: undefined;
|
|
@@ -216,10 +255,6 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
216
255
|
type: import("vue").PropType<import("./types/TableTypings").ProTableProps["customRender"]>;
|
|
217
256
|
default: () => undefined;
|
|
218
257
|
};
|
|
219
|
-
useDefaultScrollStyle: {
|
|
220
|
-
type: import("vue").PropType<import("./types/TableTypings").ProTableProps["useDefaultScrollStyle"]>;
|
|
221
|
-
default: () => boolean;
|
|
222
|
-
};
|
|
223
258
|
emptyText: {
|
|
224
259
|
type: import("vue").PropType<import("./types/TableTypings").ProTableProps["emptyText"]>;
|
|
225
260
|
default: () => undefined;
|
|
@@ -228,10 +263,6 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
228
263
|
type: import("vue").PropType<import("./types/TableTypings").ProTableProps["showLoading"]>;
|
|
229
264
|
default: boolean;
|
|
230
265
|
};
|
|
231
|
-
tableProps: {
|
|
232
|
-
type: import("vue").PropType<import("./types/TableTypings").ProTableProps["tableProps"]>;
|
|
233
|
-
default: () => import("./types/TableTypings").ProTableProps["tableProps"];
|
|
234
|
-
};
|
|
235
266
|
emptyTextProps: {
|
|
236
267
|
type: import("vue").PropType<import("./types/TableTypings").ProTableProps["emptyTextProps"]>;
|
|
237
268
|
default: () => import("./types/TableTypings").ProTableProps["emptyTextProps"];
|
|
@@ -242,8 +273,8 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
242
273
|
placement: string;
|
|
243
274
|
};
|
|
244
275
|
};
|
|
245
|
-
|
|
246
|
-
type: import("vue").PropType<import("./types/TableTypings").ProTableProps["
|
|
276
|
+
listToolAfter: {
|
|
277
|
+
type: import("vue").PropType<import("./types/TableTypings").ProTableProps["listToolAfter"]>;
|
|
247
278
|
default: () => undefined;
|
|
248
279
|
};
|
|
249
280
|
headerTitle: {
|
|
@@ -256,7 +287,6 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
256
287
|
};
|
|
257
288
|
titleTipText: {
|
|
258
289
|
type: import("vue").PropType<import("./types/TableTypings").ProTableProps["titleTipText"]>;
|
|
259
|
-
default: string;
|
|
260
290
|
};
|
|
261
291
|
options: {
|
|
262
292
|
type: import("vue").PropType<import("./types/TableTypings").ProTableProps["options"]>;
|
|
@@ -350,6 +380,7 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
350
380
|
};
|
|
351
381
|
emptyText: import("./types/SlotsTypings").DefaultRender;
|
|
352
382
|
rowKey: string;
|
|
383
|
+
id: string;
|
|
353
384
|
direction: "rtl" | "ltr";
|
|
354
385
|
pagination: ((false | import("ant-design-vue").TablePaginationConfig) & import("./types/TableTypings").ProTablePagination) | undefined;
|
|
355
386
|
loading: boolean | Partial<import("vue").ExtractPropTypes<{
|
|
@@ -370,27 +401,26 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
370
401
|
'onUpdate:expandedRowKeys': (expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void;
|
|
371
402
|
align: import("ant-design-vue/es/vc-table/interface").AlignType | undefined;
|
|
372
403
|
customRender: import("./types/SlotsTypings").CustomDataRender | undefined;
|
|
404
|
+
class: string;
|
|
373
405
|
headerTitle: import("./types/SlotsTypings").DefaultRender;
|
|
374
406
|
pageItemRender: import("./types/SlotsTypings").PageItemRender | undefined;
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
407
|
+
style: import("vue").CSSProperties;
|
|
408
|
+
fitPage: boolean | undefined;
|
|
409
|
+
classNames: Partial<Record<import("./types/TableTypings").TableSemanticName, string>>;
|
|
410
|
+
styles: Partial<Record<import("./types/TableTypings").TableSemanticName, import("vue").CSSProperties>>;
|
|
379
411
|
actionProps: {
|
|
380
412
|
placement?: import("./types/TableTypings").TableActionPlacement;
|
|
381
413
|
actions?: import("./types/SlotsTypings").DefaultRender[];
|
|
382
414
|
} | undefined;
|
|
383
|
-
titleTipText: string | undefined;
|
|
384
415
|
autoScroll: boolean | undefined;
|
|
385
416
|
keepAliveReload: boolean | undefined;
|
|
386
417
|
emptyTextProps: {
|
|
387
418
|
class?: string;
|
|
388
|
-
style?: CSSProperties;
|
|
419
|
+
style?: import("vue").CSSProperties;
|
|
389
420
|
extraProps?: RecordType;
|
|
390
421
|
} | undefined;
|
|
391
422
|
columnEmptyText: import("./types/TableTypings").ProFieldEmptyText | undefined;
|
|
392
423
|
showLoading: boolean | undefined;
|
|
393
|
-
useDefaultScrollStyle: boolean | undefined;
|
|
394
424
|
showIndex: boolean | undefined;
|
|
395
425
|
cardBordered: boolean | undefined;
|
|
396
426
|
options: boolean | OptionConfig | undefined;
|
|
@@ -401,14 +431,14 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
401
431
|
params: RecordType | undefined;
|
|
402
432
|
searchMap: import("./types/ColumnTypings").ProSearchMap<undefined, string>[] | undefined;
|
|
403
433
|
headerTitleTip: import("./types/SlotsTypings").DefaultRender;
|
|
404
|
-
|
|
434
|
+
listToolAfter: import("./types/SlotsTypings").DefaultRender;
|
|
405
435
|
}, SlotsType<{
|
|
406
436
|
form(): any;
|
|
407
437
|
actions(): any;
|
|
408
438
|
emptyText(): any;
|
|
409
439
|
headerTitle(): any;
|
|
410
440
|
headerTitleTip(): any;
|
|
411
|
-
|
|
441
|
+
listToolAfter(): any;
|
|
412
442
|
default(): any;
|
|
413
443
|
pageItemRender(params: {
|
|
414
444
|
page: number;
|
|
@@ -15,13 +15,16 @@ declare const ListToolBar: import("vue").DefineComponent<import("vue").ExtractPr
|
|
|
15
15
|
type: PropType<import("../../types/TableTypings").ProTableProps["headerTitle"]>;
|
|
16
16
|
default: () => undefined;
|
|
17
17
|
};
|
|
18
|
+
listToolAfter: {
|
|
19
|
+
type: PropType<import("../../types/TableTypings").ProTableProps["listToolAfter"]>;
|
|
20
|
+
default: () => undefined;
|
|
21
|
+
};
|
|
18
22
|
headerTitleTip: {
|
|
19
23
|
type: PropType<import("../../types/TableTypings").ProTableProps["headerTitleTip"]>;
|
|
20
24
|
default: () => undefined;
|
|
21
25
|
};
|
|
22
26
|
titleTipText: {
|
|
23
27
|
type: PropType<import("../../types/TableTypings").ProTableProps["titleTipText"]>;
|
|
24
|
-
default: string;
|
|
25
28
|
};
|
|
26
29
|
actionsPlacement: PropType<TableActionPlacement>;
|
|
27
30
|
}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -32,18 +35,21 @@ declare const ListToolBar: import("vue").DefineComponent<import("vue").ExtractPr
|
|
|
32
35
|
type: PropType<import("../../types/TableTypings").ProTableProps["headerTitle"]>;
|
|
33
36
|
default: () => undefined;
|
|
34
37
|
};
|
|
38
|
+
listToolAfter: {
|
|
39
|
+
type: PropType<import("../../types/TableTypings").ProTableProps["listToolAfter"]>;
|
|
40
|
+
default: () => undefined;
|
|
41
|
+
};
|
|
35
42
|
headerTitleTip: {
|
|
36
43
|
type: PropType<import("../../types/TableTypings").ProTableProps["headerTitleTip"]>;
|
|
37
44
|
default: () => undefined;
|
|
38
45
|
};
|
|
39
46
|
titleTipText: {
|
|
40
47
|
type: PropType<import("../../types/TableTypings").ProTableProps["titleTipText"]>;
|
|
41
|
-
default: string;
|
|
42
48
|
};
|
|
43
49
|
actionsPlacement: PropType<TableActionPlacement>;
|
|
44
50
|
}>> & Readonly<{}>, {
|
|
45
51
|
headerTitle: import("../../types/SlotsTypings").DefaultRender;
|
|
46
|
-
titleTipText: string | undefined;
|
|
47
52
|
headerTitleTip: import("../../types/SlotsTypings").DefaultRender;
|
|
53
|
+
listToolAfter: import("../../types/SlotsTypings").DefaultRender;
|
|
48
54
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
49
55
|
export default ListToolBar;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { ExtractPropTypes } from 'vue';
|
|
2
|
+
import { barProps } from './props';
|
|
3
|
+
export type BarProps = ExtractPropTypes<typeof barProps>;
|
|
4
|
+
declare const Bar: import("vue").DefineComponent<ExtractPropTypes<{
|
|
5
|
+
always: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
9
|
+
minSize: {
|
|
10
|
+
type: import("vue").PropType<number>;
|
|
11
|
+
default: number;
|
|
12
|
+
};
|
|
13
|
+
barStyle: {
|
|
14
|
+
type: import("vue").PropType<{
|
|
15
|
+
x: import("vue").CSSProperties;
|
|
16
|
+
y: import("vue").CSSProperties;
|
|
17
|
+
}>;
|
|
18
|
+
default: () => {};
|
|
19
|
+
};
|
|
20
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
21
|
+
always: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
minSize: {
|
|
26
|
+
type: import("vue").PropType<number>;
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
29
|
+
barStyle: {
|
|
30
|
+
type: import("vue").PropType<{
|
|
31
|
+
x: import("vue").CSSProperties;
|
|
32
|
+
y: import("vue").CSSProperties;
|
|
33
|
+
}>;
|
|
34
|
+
default: () => {};
|
|
35
|
+
};
|
|
36
|
+
}>> & Readonly<{}>, {
|
|
37
|
+
always: boolean;
|
|
38
|
+
barStyle: {
|
|
39
|
+
x: import("vue").CSSProperties;
|
|
40
|
+
y: import("vue").CSSProperties;
|
|
41
|
+
};
|
|
42
|
+
minSize: number;
|
|
43
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
44
|
+
export default Bar;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { CSSProperties, PropType } from 'vue';
|
|
2
|
+
export declare const barProps: {
|
|
3
|
+
always: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
7
|
+
minSize: {
|
|
8
|
+
type: PropType<number>;
|
|
9
|
+
default: number;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @description style of bar
|
|
13
|
+
*/
|
|
14
|
+
barStyle: {
|
|
15
|
+
type: PropType<{
|
|
16
|
+
x: CSSProperties;
|
|
17
|
+
y: CSSProperties;
|
|
18
|
+
}>;
|
|
19
|
+
default: () => {};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ExtractPropTypes, CSSProperties } from 'vue';
|
|
2
|
+
import { thumbProps } from './props';
|
|
3
|
+
export type ThumbProps = ExtractPropTypes<typeof thumbProps>;
|
|
4
|
+
declare const Thumb: import("vue").DefineComponent<ExtractPropTypes<{
|
|
5
|
+
vertical: BooleanConstructor;
|
|
6
|
+
size: StringConstructor;
|
|
7
|
+
move: NumberConstructor;
|
|
8
|
+
ratio: {
|
|
9
|
+
type: NumberConstructor;
|
|
10
|
+
required: boolean;
|
|
11
|
+
};
|
|
12
|
+
always: BooleanConstructor;
|
|
13
|
+
barStyle: {
|
|
14
|
+
type: import("vue").PropType<CSSProperties>;
|
|
15
|
+
default: () => {};
|
|
16
|
+
};
|
|
17
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
18
|
+
vertical: BooleanConstructor;
|
|
19
|
+
size: StringConstructor;
|
|
20
|
+
move: NumberConstructor;
|
|
21
|
+
ratio: {
|
|
22
|
+
type: NumberConstructor;
|
|
23
|
+
required: boolean;
|
|
24
|
+
};
|
|
25
|
+
always: BooleanConstructor;
|
|
26
|
+
barStyle: {
|
|
27
|
+
type: import("vue").PropType<CSSProperties>;
|
|
28
|
+
default: () => {};
|
|
29
|
+
};
|
|
30
|
+
}>> & Readonly<{}>, {
|
|
31
|
+
always: boolean;
|
|
32
|
+
vertical: boolean;
|
|
33
|
+
barStyle: CSSProperties;
|
|
34
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
35
|
+
export default Thumb;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { CSSProperties, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
export declare const thumbProps: {
|
|
3
|
+
vertical: BooleanConstructor;
|
|
4
|
+
size: StringConstructor;
|
|
5
|
+
move: NumberConstructor;
|
|
6
|
+
ratio: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
required: boolean;
|
|
9
|
+
};
|
|
10
|
+
always: BooleanConstructor;
|
|
11
|
+
barStyle: {
|
|
12
|
+
type: PropType<CSSProperties>;
|
|
13
|
+
default: () => {};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type ThumbProps = ExtractPropTypes<typeof thumbProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
export interface ScrollbarContext {
|
|
3
|
+
className: string;
|
|
4
|
+
hashId: Ref<string>;
|
|
5
|
+
tableHeaderHeight: Ref<number>;
|
|
6
|
+
scrollbarElement: Ref<HTMLElement | undefined>;
|
|
7
|
+
wrapElement: Ref<HTMLElement | undefined>;
|
|
8
|
+
}
|
|
9
|
+
declare const useScrollBarContext: (injectDefaultValue?: ScrollbarContext | undefined) => ScrollbarContext, provideScrollBarContext: (value: ScrollbarContext) => void;
|
|
10
|
+
export { provideScrollBarContext, useScrollBarContext };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { CSSProperties } from 'vue';
|
|
2
|
+
export declare const GAP = 4;
|
|
3
|
+
export declare const BAR_MAP: {
|
|
4
|
+
readonly vertical: {
|
|
5
|
+
readonly offset: "offsetHeight";
|
|
6
|
+
readonly scroll: "scrollTop";
|
|
7
|
+
readonly scrollSize: "scrollHeight";
|
|
8
|
+
readonly size: "height";
|
|
9
|
+
readonly key: "vertical";
|
|
10
|
+
readonly axis: "Y";
|
|
11
|
+
readonly client: "clientY";
|
|
12
|
+
readonly direction: "top";
|
|
13
|
+
};
|
|
14
|
+
readonly horizontal: {
|
|
15
|
+
readonly offset: "offsetWidth";
|
|
16
|
+
readonly scroll: "scrollLeft";
|
|
17
|
+
readonly scrollSize: "scrollWidth";
|
|
18
|
+
readonly size: "width";
|
|
19
|
+
readonly key: "horizontal";
|
|
20
|
+
readonly axis: "X";
|
|
21
|
+
readonly client: "clientX";
|
|
22
|
+
readonly direction: "left";
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare const renderThumbStyle: ({ move, size, bar, }: Pick<any, "move" | "size"> & {
|
|
26
|
+
bar: (typeof BAR_MAP)[keyof typeof BAR_MAP];
|
|
27
|
+
}) => CSSProperties;
|
|
28
|
+
export declare const isStringNumber: (val: string) => boolean;
|
|
29
|
+
export declare function addUnit(value?: string | number, defaultUnit?: string): string | undefined;
|
|
@@ -4,6 +4,7 @@ export type OptionsFunctionType = () => void;
|
|
|
4
4
|
export interface ToolBarProps {
|
|
5
5
|
actionsRender?: VNode[];
|
|
6
6
|
headerTitle?: ProTableProps['headerTitle'];
|
|
7
|
+
listToolAfter?: ProTableProps['listToolAfter'];
|
|
7
8
|
headerTitleTip?: ProTableProps['headerTitleTip'];
|
|
8
9
|
titleTipText?: ProTableProps['titleTipText'];
|
|
9
10
|
options?: OptionConfig | boolean;
|
|
@@ -11,16 +12,18 @@ export interface ToolBarProps {
|
|
|
11
12
|
declare const ToolbarRender: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
13
|
options: PropType<ProTableProps["options"]>;
|
|
13
14
|
actionsPlacement: PropType<TableActionPlacement>;
|
|
15
|
+
headerTitle: PropType<ProTableProps["headerTitle"]>;
|
|
16
|
+
listToolAfter: PropType<ProTableProps["listToolAfter"]>;
|
|
14
17
|
headerTitleTip: PropType<ProTableProps["headerTitleTip"]>;
|
|
15
18
|
titleTipText: PropType<ProTableProps["titleTipText"]>;
|
|
16
19
|
actionsRender: PropType<ToolBarProps["actionsRender"]>;
|
|
17
|
-
headerTitle: PropType<ProTableProps["headerTitle"]>;
|
|
18
20
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
21
|
options: PropType<ProTableProps["options"]>;
|
|
20
22
|
actionsPlacement: PropType<TableActionPlacement>;
|
|
23
|
+
headerTitle: PropType<ProTableProps["headerTitle"]>;
|
|
24
|
+
listToolAfter: PropType<ProTableProps["listToolAfter"]>;
|
|
21
25
|
headerTitleTip: PropType<ProTableProps["headerTitleTip"]>;
|
|
22
26
|
titleTipText: PropType<ProTableProps["titleTipText"]>;
|
|
23
27
|
actionsRender: PropType<ToolBarProps["actionsRender"]>;
|
|
24
|
-
headerTitle: PropType<ProTableProps["headerTitle"]>;
|
|
25
28
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
26
29
|
export default ToolbarRender;
|
|
@@ -2,7 +2,7 @@ import type { SizeType } from '@gx-design-vue/pro-utils';
|
|
|
2
2
|
import type { ComputedRef, Ref } from 'vue';
|
|
3
3
|
import type { PaginationProps } from '../_utils';
|
|
4
4
|
import type { ProColumnsType } from '../types/ColumnTypings';
|
|
5
|
-
import type { FormConfig } from '../types/TableTypings';
|
|
5
|
+
import type { FormConfig, TableClassNamesType, TableStylesType } from '../types/TableTypings';
|
|
6
6
|
export interface ProTableContextProps {
|
|
7
7
|
columns: ComputedRef<ProColumnsType>;
|
|
8
8
|
isMobile: ComputedRef<boolean>;
|
|
@@ -11,6 +11,10 @@ export interface ProTableContextProps {
|
|
|
11
11
|
formAutoRequest: ComputedRef<boolean>;
|
|
12
12
|
cacheColumns: ComputedRef<ProColumnsType>;
|
|
13
13
|
tableSize: Ref<SizeType>;
|
|
14
|
+
screenWidth: Ref<number>;
|
|
15
|
+
styles: Ref<TableStylesType>;
|
|
16
|
+
classNames: Ref<TableClassNamesType>;
|
|
17
|
+
tableListToolsHeight: Ref<number>;
|
|
14
18
|
action: {
|
|
15
19
|
/** @name 刷新 */
|
|
16
20
|
reload: (info?: any) => void;
|
|
@@ -11,85 +11,7 @@ interface UseColumnsType {
|
|
|
11
11
|
}
|
|
12
12
|
export declare function useColumns({ scroll, columns, breakpoint, draggable, autoScroll, neverScroll }: UseColumnsType): {
|
|
13
13
|
breakpoint: ComputedRef<boolean | undefined>;
|
|
14
|
-
proColumns: ComputedRef<
|
|
15
|
-
children?: ProColumnsType<import("@gx-design-vue/pro-utils/dist").RecordType, import("@gx-design-vue/pro-utils/dist").RecordType> | undefined;
|
|
16
|
-
index?: number;
|
|
17
|
-
copyText?: string | ((record: ProColumnType) => string);
|
|
18
|
-
tooltip?: false | (Partial<import("vue").ExtractPropTypes<{
|
|
19
|
-
title: import("vue-types").VueTypeValidableDef<any>;
|
|
20
|
-
trigger: import("vue").PropType<import("ant-design-vue/es/tooltip/abstractTooltipProps").TriggerType | import("ant-design-vue/es/tooltip/abstractTooltipProps").TriggerType[]>;
|
|
21
|
-
open: {
|
|
22
|
-
type: BooleanConstructor;
|
|
23
|
-
default: any;
|
|
24
|
-
};
|
|
25
|
-
visible: {
|
|
26
|
-
type: BooleanConstructor;
|
|
27
|
-
default: any;
|
|
28
|
-
};
|
|
29
|
-
placement: import("vue").PropType<import("ant-design-vue/es/tooltip").TooltipPlacement>;
|
|
30
|
-
color: import("vue").PropType<import("ant-design-vue/es/_util/type").LiteralUnion<import("ant-design-vue/es/_util/colors").PresetColorType>>;
|
|
31
|
-
transitionName: StringConstructor;
|
|
32
|
-
overlayStyle: {
|
|
33
|
-
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
34
|
-
default: import("vue").CSSProperties;
|
|
35
|
-
};
|
|
36
|
-
overlayInnerStyle: {
|
|
37
|
-
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
38
|
-
default: import("vue").CSSProperties;
|
|
39
|
-
};
|
|
40
|
-
overlayClassName: StringConstructor;
|
|
41
|
-
openClassName: StringConstructor;
|
|
42
|
-
prefixCls: StringConstructor;
|
|
43
|
-
mouseEnterDelay: NumberConstructor;
|
|
44
|
-
mouseLeaveDelay: NumberConstructor;
|
|
45
|
-
getPopupContainer: import("vue").PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
46
|
-
arrowPointAtCenter: {
|
|
47
|
-
type: BooleanConstructor;
|
|
48
|
-
default: any;
|
|
49
|
-
};
|
|
50
|
-
arrow: {
|
|
51
|
-
type: import("vue").PropType<boolean | {
|
|
52
|
-
pointAtCenter?: boolean;
|
|
53
|
-
}>;
|
|
54
|
-
default: boolean | {
|
|
55
|
-
pointAtCenter?: boolean;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
autoAdjustOverflow: {
|
|
59
|
-
type: import("vue").PropType<boolean | import("ant-design-vue/es/tooltip").AdjustOverflow>;
|
|
60
|
-
default: boolean | import("ant-design-vue/es/tooltip").AdjustOverflow;
|
|
61
|
-
};
|
|
62
|
-
destroyTooltipOnHide: {
|
|
63
|
-
type: BooleanConstructor;
|
|
64
|
-
default: any;
|
|
65
|
-
};
|
|
66
|
-
align: {
|
|
67
|
-
type: import("vue").PropType<import("ant-design-vue/es/vc-trigger/interface").AlignType>;
|
|
68
|
-
default: import("ant-design-vue/es/vc-trigger/interface").AlignType;
|
|
69
|
-
};
|
|
70
|
-
builtinPlacements: {
|
|
71
|
-
type: import("vue").PropType<import("ant-design-vue/es/vc-trigger/interface").BuildInPlacements>;
|
|
72
|
-
default: import("ant-design-vue/es/vc-trigger/interface").BuildInPlacements;
|
|
73
|
-
};
|
|
74
|
-
children: ArrayConstructor;
|
|
75
|
-
onVisibleChange: import("vue").PropType<(vis: boolean) => void>;
|
|
76
|
-
'onUpdate:visible': import("vue").PropType<(vis: boolean) => void>;
|
|
77
|
-
onOpenChange: import("vue").PropType<(vis: boolean) => void>;
|
|
78
|
-
'onUpdate:open': import("vue").PropType<(vis: boolean) => void>;
|
|
79
|
-
}>> & {
|
|
80
|
-
width?: number;
|
|
81
|
-
targetStyle?: Partial<import("vue").CSSProperties>;
|
|
82
|
-
hiddenLine?: number;
|
|
83
|
-
class?: string;
|
|
84
|
-
}) | undefined;
|
|
85
|
-
show?: boolean;
|
|
86
|
-
order?: number;
|
|
87
|
-
hideInSetting?: boolean;
|
|
88
|
-
searchConfig?: import("../types/ColumnTypings").ProSearchMap<undefined, string> | undefined;
|
|
89
|
-
copyable?: boolean;
|
|
90
|
-
columnEmptyText?: string;
|
|
91
|
-
valueType?: import("../types/ColumnTypings").ProColumnsValueType;
|
|
92
|
-
})[]>;
|
|
14
|
+
proColumns: ComputedRef<ProColumnsType>;
|
|
93
15
|
setColumns: (columnList: ProColumnsType) => void;
|
|
94
16
|
resizeColumnWidth: (width: number, col: ProColumnType) => void;
|
|
95
17
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import type { TableScroll } from '../types/TableTypings';
|
|
3
|
+
export declare function useScrollArea({ fitPage, hashId, scroll, baseClassName }: {
|
|
4
|
+
baseClassName: string;
|
|
5
|
+
hashId: Ref<string>;
|
|
6
|
+
scroll: ComputedRef<TableScroll>;
|
|
7
|
+
fitPage: Ref<boolean | undefined>;
|
|
8
|
+
}): {
|
|
9
|
+
barRef: Ref<any, any>;
|
|
10
|
+
tableCardEl: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
11
|
+
tableScrollEl: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
12
|
+
tableOverHidden: ComputedRef<boolean>;
|
|
13
|
+
tableScrollYHeight: ComputedRef<number>;
|
|
14
|
+
tableListToolsHeight: Ref<number, number>;
|
|
15
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Breakpoint } from '@gx-design-vue/pro-utils';
|
|
2
2
|
import type { ComputedRef, Ref } from 'vue';
|
|
3
3
|
import type { ProColumnsType } from '../types/ColumnTypings';
|
|
4
|
-
import type { ProTableProps } from '../types/TableTypings';
|
|
4
|
+
import type { ProTableProps, TableScroll } from '../types/TableTypings';
|
|
5
5
|
interface ConfigScroll {
|
|
6
6
|
scroll: Ref<ProTableProps['scroll']>;
|
|
7
7
|
autoScroll: Ref<ProTableProps['autoScroll']>;
|
|
@@ -16,12 +16,7 @@ type useTableScrollType = {
|
|
|
16
16
|
screens: Ref<Partial<Record<Breakpoint, boolean>>>;
|
|
17
17
|
} & ConfigScroll;
|
|
18
18
|
export declare function useTableScroll({ scroll, columns, autoScroll, modalScroll, neverScroll, rowSelection, screens, innerWidth, scrollBreakpoint }: useTableScrollType): {
|
|
19
|
-
proScroll: ComputedRef<
|
|
20
|
-
x?: number | true | string;
|
|
21
|
-
y?: number | string;
|
|
22
|
-
} & {
|
|
23
|
-
scrollToFirstRowOnChange?: boolean;
|
|
24
|
-
}) | undefined>;
|
|
19
|
+
proScroll: ComputedRef<TableScroll>;
|
|
25
20
|
breakpoint: ComputedRef<boolean | undefined>;
|
|
26
21
|
};
|
|
27
22
|
export {};
|