-
Notifications
You must be signed in to change notification settings - Fork 334
/
Copy pathdefaultProps.ts
51 lines (47 loc) · 1.25 KB
/
defaultProps.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
* */
import { TdBaseTableProps, TdPrimaryTableProps, TdEnhancedTableProps } from './type';
export const baseTableDefaultProps: TdBaseTableProps = {
bordered: false,
columns: [],
data: [],
disableDataPage: false,
empty: '',
footData: [],
footerAffixedBottom: false,
headerAffixedTop: false,
hover: false,
lazyLoad: false,
loading: undefined,
resizable: false,
rowKey: 'id',
showHeader: true,
size: 'medium',
stripe: false,
tableLayout: 'fixed',
verticalAlign: 'middle',
};
export const primaryTableDefaultProps: Pick<
TdPrimaryTableProps,
| 'columnControllerVisible'
| 'columns'
| 'expandIcon'
| 'defaultExpandedRowKeys'
| 'multipleSort'
| 'reserveSelectedRowOnPaginate'
| 'defaultSelectedRowKeys'
| 'showSortColumnBgColor'
| 'sortOnRowDraggable'
> = {
columnControllerVisible: undefined,
columns: [],
expandIcon: true,
defaultExpandedRowKeys: [],
multipleSort: false,
reserveSelectedRowOnPaginate: true,
defaultSelectedRowKeys: [],
showSortColumnBgColor: false,
sortOnRowDraggable: false,
};
export const enhancedTableDefaultProps: TdEnhancedTableProps = { defaultExpandedTreeNodes: [], rowKey: undefined };