@afwenming123/ant-design-vue 1.7.9 → 1.7.11
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/package.json +1 -1
- package/types/table/table.d.ts +321 -321
package/package.json
CHANGED
package/types/table/table.d.ts
CHANGED
|
@@ -1,321 +1,321 @@
|
|
|
1
|
-
// Project: https://github.com/vueComponent/ant-design-vue
|
|
2
|
-
// Definitions by: akki-jat <https://github.com/akki-jat>
|
|
3
|
-
// Definitions: https://github.com/vueComponent/ant-design-vue/types
|
|
4
|
-
|
|
5
|
-
import { AntdComponent } from '../component';
|
|
6
|
-
import { Spin } from '../spin';
|
|
7
|
-
import { ScopedSlot, VNode } from 'vue/types/vnode';
|
|
8
|
-
import { Pagination } from '../pagination';
|
|
9
|
-
import { Column } from './column';
|
|
10
|
-
import { ColumnGroup } from './column-group';
|
|
11
|
-
|
|
12
|
-
export declare class PaginationConfig extends Pagination {
|
|
13
|
-
position: 'top' | 'bottom' | 'both';
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface customSelection {
|
|
17
|
-
/**
|
|
18
|
-
* Key
|
|
19
|
-
* @description Unique key of this selection
|
|
20
|
-
* @default undefined
|
|
21
|
-
* @type string
|
|
22
|
-
*/
|
|
23
|
-
key?: string;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Text
|
|
27
|
-
* @description Display text of this selection
|
|
28
|
-
* @default undefined
|
|
29
|
-
* @type string | VNode
|
|
30
|
-
*/
|
|
31
|
-
text?: string | VNode;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* On Select
|
|
35
|
-
* @description Callback executed when this selection is clicked
|
|
36
|
-
* @default undefined
|
|
37
|
-
* @type Function
|
|
38
|
-
*/
|
|
39
|
-
onSelect?: (changeableRowKeys?: any) => any;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/** 表格纵向虚拟滚动(固定行高),需配合 scroll.y
|
|
43
|
-
export interface TableVirtualScrollConfig {
|
|
44
|
-
/** 行高(px),与实际 tbody 行高一致 */
|
|
45
|
-
itemHeight: number;
|
|
46
|
-
/** 可视区域上下额外渲染的行数,默认 8 */
|
|
47
|
-
overscan?: number;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export interface TableScrollConfig {
|
|
51
|
-
x?: number | true | string;
|
|
52
|
-
y?: number | true | string;
|
|
53
|
-
/** 分页、排序、筛选变化后是否滚回顶部 */
|
|
54
|
-
scrollToFirstRowOnChange?: boolean;
|
|
55
|
-
/** 固定行高虚拟滚动 */
|
|
56
|
-
virtual?: TableVirtualScrollConfig;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export interface TableRowSelection {
|
|
60
|
-
/**
|
|
61
|
-
* checkbox or radio
|
|
62
|
-
* @default 'checkbox'
|
|
63
|
-
* @type string
|
|
64
|
-
*/
|
|
65
|
-
type?: 'checkbox' | 'radio';
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Controlled selected row keys
|
|
69
|
-
* @type string[]
|
|
70
|
-
*/
|
|
71
|
-
selectedRowKeys?: string[];
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Get Checkbox or Radio props
|
|
75
|
-
* @type Function
|
|
76
|
-
*/
|
|
77
|
-
getCheckboxProps?: (record: any) => any;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Custom selection config, only displays default selections when set to true
|
|
81
|
-
* @type boolean | object[]
|
|
82
|
-
*/
|
|
83
|
-
selections?: boolean | customSelection[];
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Remove the default Select All and Select Invert selections
|
|
87
|
-
* @default false
|
|
88
|
-
* @type boolean
|
|
89
|
-
*/
|
|
90
|
-
hideDefaultSelections?: boolean;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Fixed selection column on the left
|
|
94
|
-
* @type boolean
|
|
95
|
-
*/
|
|
96
|
-
fixed?: boolean;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Set the width of the selection column
|
|
100
|
-
* @type string | number
|
|
101
|
-
*/
|
|
102
|
-
columnWidth?: string | number;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Set the title of the selection column
|
|
106
|
-
* @type string | VNode
|
|
107
|
-
*/
|
|
108
|
-
columnTitle?: string | VNode;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Callback executed when selected rows change
|
|
112
|
-
* @type Function
|
|
113
|
-
*/
|
|
114
|
-
onChange?: (selectedRowKeys: Array<string | number>, selectedRows: object[]) => any;
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Callback executed when select/deselect one row
|
|
118
|
-
* @type Function
|
|
119
|
-
*/
|
|
120
|
-
onSelect?: (record: any, selected: boolean, selectedRows: object[], nativeEvent: Event) => any;
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Callback executed when select/deselect all rows
|
|
124
|
-
* @type Function
|
|
125
|
-
*/
|
|
126
|
-
onSelectAll?: (selected: boolean, selectedRows: object[], changeRows: object[]) => any;
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Callback executed when row selection is inverted
|
|
130
|
-
* @type Function
|
|
131
|
-
*/
|
|
132
|
-
onSelectInvert?: (selectedRows: Object[]) => any;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
export declare class Table extends AntdComponent {
|
|
136
|
-
static Column: typeof Column;
|
|
137
|
-
static ColumnGroup: typeof ColumnGroup;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Whether to show all table borders
|
|
141
|
-
* @default false
|
|
142
|
-
* @type boolean
|
|
143
|
-
*/
|
|
144
|
-
bordered: boolean;
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* The column contains children to display
|
|
148
|
-
* @default 'children'
|
|
149
|
-
* @type string | string[]
|
|
150
|
-
*/
|
|
151
|
-
childrenColumnName: string | string[];
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* Columns of table
|
|
155
|
-
* @type any
|
|
156
|
-
*/
|
|
157
|
-
columns: any;
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Override default table elements
|
|
161
|
-
* @type object
|
|
162
|
-
*/
|
|
163
|
-
components: object;
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Data record array to be displayed
|
|
167
|
-
* @type any
|
|
168
|
-
*/
|
|
169
|
-
dataSource: any;
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Expand all rows initially
|
|
173
|
-
* @default false
|
|
174
|
-
* @type boolean
|
|
175
|
-
*/
|
|
176
|
-
defaultExpandAllRows: boolean;
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* Initial expanded row keys
|
|
180
|
-
* @type string[]
|
|
181
|
-
*/
|
|
182
|
-
defaultExpandedRowKeys: string[];
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Current expanded row keys
|
|
186
|
-
* @type string[]
|
|
187
|
-
*/
|
|
188
|
-
expandedRowKeys: string[];
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* Expanded container render for each row
|
|
192
|
-
* @type Function
|
|
193
|
-
*/
|
|
194
|
-
expandedRowRender: (record: any, index: number, indent: number, expanded: boolean) => any;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Customize row expand Icon.
|
|
198
|
-
* @type Function | ScopedSlot
|
|
199
|
-
*/
|
|
200
|
-
expandIcon: Function | ScopedSlot;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* Whether to expand row by clicking anywhere in the whole row
|
|
204
|
-
* @default false
|
|
205
|
-
* @type boolean
|
|
206
|
-
*/
|
|
207
|
-
expandRowByClick: boolean;
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* Table footer renderer
|
|
211
|
-
* @type Function | ScopedSlot
|
|
212
|
-
*/
|
|
213
|
-
footer: Function | ScopedSlot;
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* Indent size in pixels of tree data
|
|
217
|
-
* @default 15
|
|
218
|
-
* @type number
|
|
219
|
-
*/
|
|
220
|
-
indentSize: number;
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* Loading status of table
|
|
224
|
-
* @default false
|
|
225
|
-
* @type boolean | object
|
|
226
|
-
*/
|
|
227
|
-
loading: boolean | Spin;
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* i18n text including filter, sort, empty text, etc
|
|
231
|
-
* @default { filterConfirm: 'Ok', filterReset: 'Reset', emptyText: 'No Data' }
|
|
232
|
-
* @type object
|
|
233
|
-
*/
|
|
234
|
-
locale: object;
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* Pagination config or [Pagination] (/components/pagination/), hide it by setting it to false
|
|
238
|
-
* @type boolean | PaginationConfig
|
|
239
|
-
*/
|
|
240
|
-
pagination: boolean | PaginationConfig;
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* Row's className
|
|
244
|
-
* @type Function
|
|
245
|
-
*/
|
|
246
|
-
rowClassName: (record: any, index: number) => string;
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* Row's unique key, could be a string or function that returns a string
|
|
250
|
-
* @default 'key'
|
|
251
|
-
* @type string | Function
|
|
252
|
-
*/
|
|
253
|
-
rowKey: string | Function;
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* Row selection config
|
|
257
|
-
* @type object
|
|
258
|
-
*/
|
|
259
|
-
rowSelection: TableRowSelection;
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* Set horizontal or vertical scrolling, can also be used to specify the width and height of the scroll area.
|
|
263
|
-
* It is recommended to set a number for x, if you want to set it to true,
|
|
264
|
-
* you need to add style .ant-table td { white-space: nowrap; }.
|
|
265
|
-
* @type object
|
|
266
|
-
*/
|
|
267
|
-
scroll: TableScrollConfig;
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Whether to show table header
|
|
271
|
-
* @default true
|
|
272
|
-
* @type boolean
|
|
273
|
-
*/
|
|
274
|
-
showHeader: boolean;
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Size of table
|
|
278
|
-
* @default 'default'
|
|
279
|
-
* @type string
|
|
280
|
-
*/
|
|
281
|
-
size: 'default' | 'middle' | 'small' | 'large';
|
|
282
|
-
|
|
283
|
-
/**
|
|
284
|
-
* Table title renderer
|
|
285
|
-
* @type Function | ScopedSlot
|
|
286
|
-
*/
|
|
287
|
-
title: Function | ScopedSlot;
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* Set props on per header row
|
|
291
|
-
* @type Function
|
|
292
|
-
*/
|
|
293
|
-
customHeaderRow: (
|
|
294
|
-
column: any,
|
|
295
|
-
index: number,
|
|
296
|
-
) => {
|
|
297
|
-
props: object;
|
|
298
|
-
attrs: object;
|
|
299
|
-
on: object;
|
|
300
|
-
class: object;
|
|
301
|
-
style: object;
|
|
302
|
-
nativeOn: object;
|
|
303
|
-
};
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* Set props on per row
|
|
307
|
-
* @type Function
|
|
308
|
-
*/
|
|
309
|
-
customRow: (
|
|
310
|
-
record: any,
|
|
311
|
-
index: number,
|
|
312
|
-
) => {
|
|
313
|
-
props: object;
|
|
314
|
-
attrs: object;
|
|
315
|
-
on: object;
|
|
316
|
-
class: object;
|
|
317
|
-
style: object;
|
|
318
|
-
nativeOn: object;
|
|
319
|
-
};
|
|
320
|
-
transformCellText: Function;
|
|
321
|
-
}
|
|
1
|
+
// Project: https://github.com/vueComponent/ant-design-vue
|
|
2
|
+
// Definitions by: akki-jat <https://github.com/akki-jat>
|
|
3
|
+
// Definitions: https://github.com/vueComponent/ant-design-vue/types
|
|
4
|
+
|
|
5
|
+
import { AntdComponent } from '../component';
|
|
6
|
+
import { Spin } from '../spin';
|
|
7
|
+
import { ScopedSlot, VNode } from 'vue/types/vnode';
|
|
8
|
+
import { Pagination } from '../pagination';
|
|
9
|
+
import { Column } from './column';
|
|
10
|
+
import { ColumnGroup } from './column-group';
|
|
11
|
+
|
|
12
|
+
export declare class PaginationConfig extends Pagination {
|
|
13
|
+
position: 'top' | 'bottom' | 'both';
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface customSelection {
|
|
17
|
+
/**
|
|
18
|
+
* Key
|
|
19
|
+
* @description Unique key of this selection
|
|
20
|
+
* @default undefined
|
|
21
|
+
* @type string
|
|
22
|
+
*/
|
|
23
|
+
key?: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Text
|
|
27
|
+
* @description Display text of this selection
|
|
28
|
+
* @default undefined
|
|
29
|
+
* @type string | VNode
|
|
30
|
+
*/
|
|
31
|
+
text?: string | VNode;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* On Select
|
|
35
|
+
* @description Callback executed when this selection is clicked
|
|
36
|
+
* @default undefined
|
|
37
|
+
* @type Function
|
|
38
|
+
*/
|
|
39
|
+
onSelect?: (changeableRowKeys?: any) => any;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** 表格纵向虚拟滚动(固定行高),需配合 scroll.y 使用;y 可为数字、px 字符串,或 calc/百分比等由布局量测得到的高度 */
|
|
43
|
+
export interface TableVirtualScrollConfig {
|
|
44
|
+
/** 行高(px),与实际 tbody 行高一致 */
|
|
45
|
+
itemHeight: number;
|
|
46
|
+
/** 可视区域上下额外渲染的行数,默认 8 */
|
|
47
|
+
overscan?: number;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface TableScrollConfig {
|
|
51
|
+
x?: number | true | string;
|
|
52
|
+
y?: number | true | string;
|
|
53
|
+
/** 分页、排序、筛选变化后是否滚回顶部 */
|
|
54
|
+
scrollToFirstRowOnChange?: boolean;
|
|
55
|
+
/** 固定行高虚拟滚动 */
|
|
56
|
+
virtual?: TableVirtualScrollConfig;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface TableRowSelection {
|
|
60
|
+
/**
|
|
61
|
+
* checkbox or radio
|
|
62
|
+
* @default 'checkbox'
|
|
63
|
+
* @type string
|
|
64
|
+
*/
|
|
65
|
+
type?: 'checkbox' | 'radio';
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Controlled selected row keys
|
|
69
|
+
* @type string[]
|
|
70
|
+
*/
|
|
71
|
+
selectedRowKeys?: string[];
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Get Checkbox or Radio props
|
|
75
|
+
* @type Function
|
|
76
|
+
*/
|
|
77
|
+
getCheckboxProps?: (record: any) => any;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Custom selection config, only displays default selections when set to true
|
|
81
|
+
* @type boolean | object[]
|
|
82
|
+
*/
|
|
83
|
+
selections?: boolean | customSelection[];
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Remove the default Select All and Select Invert selections
|
|
87
|
+
* @default false
|
|
88
|
+
* @type boolean
|
|
89
|
+
*/
|
|
90
|
+
hideDefaultSelections?: boolean;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Fixed selection column on the left
|
|
94
|
+
* @type boolean
|
|
95
|
+
*/
|
|
96
|
+
fixed?: boolean;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Set the width of the selection column
|
|
100
|
+
* @type string | number
|
|
101
|
+
*/
|
|
102
|
+
columnWidth?: string | number;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Set the title of the selection column
|
|
106
|
+
* @type string | VNode
|
|
107
|
+
*/
|
|
108
|
+
columnTitle?: string | VNode;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Callback executed when selected rows change
|
|
112
|
+
* @type Function
|
|
113
|
+
*/
|
|
114
|
+
onChange?: (selectedRowKeys: Array<string | number>, selectedRows: object[]) => any;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Callback executed when select/deselect one row
|
|
118
|
+
* @type Function
|
|
119
|
+
*/
|
|
120
|
+
onSelect?: (record: any, selected: boolean, selectedRows: object[], nativeEvent: Event) => any;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Callback executed when select/deselect all rows
|
|
124
|
+
* @type Function
|
|
125
|
+
*/
|
|
126
|
+
onSelectAll?: (selected: boolean, selectedRows: object[], changeRows: object[]) => any;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Callback executed when row selection is inverted
|
|
130
|
+
* @type Function
|
|
131
|
+
*/
|
|
132
|
+
onSelectInvert?: (selectedRows: Object[]) => any;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export declare class Table extends AntdComponent {
|
|
136
|
+
static Column: typeof Column;
|
|
137
|
+
static ColumnGroup: typeof ColumnGroup;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Whether to show all table borders
|
|
141
|
+
* @default false
|
|
142
|
+
* @type boolean
|
|
143
|
+
*/
|
|
144
|
+
bordered: boolean;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* The column contains children to display
|
|
148
|
+
* @default 'children'
|
|
149
|
+
* @type string | string[]
|
|
150
|
+
*/
|
|
151
|
+
childrenColumnName: string | string[];
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Columns of table
|
|
155
|
+
* @type any
|
|
156
|
+
*/
|
|
157
|
+
columns: any;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Override default table elements
|
|
161
|
+
* @type object
|
|
162
|
+
*/
|
|
163
|
+
components: object;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Data record array to be displayed
|
|
167
|
+
* @type any
|
|
168
|
+
*/
|
|
169
|
+
dataSource: any;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Expand all rows initially
|
|
173
|
+
* @default false
|
|
174
|
+
* @type boolean
|
|
175
|
+
*/
|
|
176
|
+
defaultExpandAllRows: boolean;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Initial expanded row keys
|
|
180
|
+
* @type string[]
|
|
181
|
+
*/
|
|
182
|
+
defaultExpandedRowKeys: string[];
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Current expanded row keys
|
|
186
|
+
* @type string[]
|
|
187
|
+
*/
|
|
188
|
+
expandedRowKeys: string[];
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Expanded container render for each row
|
|
192
|
+
* @type Function
|
|
193
|
+
*/
|
|
194
|
+
expandedRowRender: (record: any, index: number, indent: number, expanded: boolean) => any;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Customize row expand Icon.
|
|
198
|
+
* @type Function | ScopedSlot
|
|
199
|
+
*/
|
|
200
|
+
expandIcon: Function | ScopedSlot;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Whether to expand row by clicking anywhere in the whole row
|
|
204
|
+
* @default false
|
|
205
|
+
* @type boolean
|
|
206
|
+
*/
|
|
207
|
+
expandRowByClick: boolean;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Table footer renderer
|
|
211
|
+
* @type Function | ScopedSlot
|
|
212
|
+
*/
|
|
213
|
+
footer: Function | ScopedSlot;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Indent size in pixels of tree data
|
|
217
|
+
* @default 15
|
|
218
|
+
* @type number
|
|
219
|
+
*/
|
|
220
|
+
indentSize: number;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Loading status of table
|
|
224
|
+
* @default false
|
|
225
|
+
* @type boolean | object
|
|
226
|
+
*/
|
|
227
|
+
loading: boolean | Spin;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* i18n text including filter, sort, empty text, etc
|
|
231
|
+
* @default { filterConfirm: 'Ok', filterReset: 'Reset', emptyText: 'No Data' }
|
|
232
|
+
* @type object
|
|
233
|
+
*/
|
|
234
|
+
locale: object;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Pagination config or [Pagination] (/components/pagination/), hide it by setting it to false
|
|
238
|
+
* @type boolean | PaginationConfig
|
|
239
|
+
*/
|
|
240
|
+
pagination: boolean | PaginationConfig;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Row's className
|
|
244
|
+
* @type Function
|
|
245
|
+
*/
|
|
246
|
+
rowClassName: (record: any, index: number) => string;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Row's unique key, could be a string or function that returns a string
|
|
250
|
+
* @default 'key'
|
|
251
|
+
* @type string | Function
|
|
252
|
+
*/
|
|
253
|
+
rowKey: string | Function;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Row selection config
|
|
257
|
+
* @type object
|
|
258
|
+
*/
|
|
259
|
+
rowSelection: TableRowSelection;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Set horizontal or vertical scrolling, can also be used to specify the width and height of the scroll area.
|
|
263
|
+
* It is recommended to set a number for x, if you want to set it to true,
|
|
264
|
+
* you need to add style .ant-table td { white-space: nowrap; }.
|
|
265
|
+
* @type object
|
|
266
|
+
*/
|
|
267
|
+
scroll: TableScrollConfig;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Whether to show table header
|
|
271
|
+
* @default true
|
|
272
|
+
* @type boolean
|
|
273
|
+
*/
|
|
274
|
+
showHeader: boolean;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Size of table
|
|
278
|
+
* @default 'default'
|
|
279
|
+
* @type string
|
|
280
|
+
*/
|
|
281
|
+
size: 'default' | 'middle' | 'small' | 'large';
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Table title renderer
|
|
285
|
+
* @type Function | ScopedSlot
|
|
286
|
+
*/
|
|
287
|
+
title: Function | ScopedSlot;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Set props on per header row
|
|
291
|
+
* @type Function
|
|
292
|
+
*/
|
|
293
|
+
customHeaderRow: (
|
|
294
|
+
column: any,
|
|
295
|
+
index: number,
|
|
296
|
+
) => {
|
|
297
|
+
props: object;
|
|
298
|
+
attrs: object;
|
|
299
|
+
on: object;
|
|
300
|
+
class: object;
|
|
301
|
+
style: object;
|
|
302
|
+
nativeOn: object;
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Set props on per row
|
|
307
|
+
* @type Function
|
|
308
|
+
*/
|
|
309
|
+
customRow: (
|
|
310
|
+
record: any,
|
|
311
|
+
index: number,
|
|
312
|
+
) => {
|
|
313
|
+
props: object;
|
|
314
|
+
attrs: object;
|
|
315
|
+
on: object;
|
|
316
|
+
class: object;
|
|
317
|
+
style: object;
|
|
318
|
+
nativeOn: object;
|
|
319
|
+
};
|
|
320
|
+
transformCellText: Function;
|
|
321
|
+
}
|