1 | import { ColumnFixed, ColumnAlign, ColumnFormatterMethodParams, ColumnCellRenderOptions, ColumnContentRenderOptions, Column } from './column'
|
2 | import { ColumnFilterOption, ColumnFilterRenderOptions, ColumnFilterMethodParams } from './filter'
|
3 | import { ColumnCellRenderParams } from './v-x-e-table/renderer'
|
4 | import { ColumnHeaderRenderParams } from './header'
|
5 | import { ColumnFooterRenderParams } from './footer'
|
6 | import { ColumnEditRenderOptions } from './edit'
|
7 | import { ColumnExportCellRenderParams, ColumnExportFooterRenderParams } from './export'
|
8 | import { TableOverflow } from './table'
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export declare class Colgroup extends Column {}
|
14 |
|
15 | export interface ColgroupOptions extends ColgroupProps {}
|
16 |
|
17 | export interface ColgroupProps {
|
18 | |
19 |
|
20 |
|
21 | type?: 'seq' | 'radio' | 'checkbox' | 'expand' | 'html';
|
22 | |
23 |
|
24 |
|
25 | field?: string;
|
26 | |
27 |
|
28 |
|
29 | title?: string;
|
30 | |
31 |
|
32 |
|
33 | width?: number | string;
|
34 | |
35 |
|
36 |
|
37 | minWidth?: number | string;
|
38 | |
39 |
|
40 |
|
41 | resizable?: boolean;
|
42 | |
43 |
|
44 |
|
45 | fixed?: ColumnFixed;
|
46 | |
47 |
|
48 |
|
49 | align?: ColumnAlign;
|
50 | |
51 |
|
52 |
|
53 | headerAlign?: ColumnAlign;
|
54 | |
55 |
|
56 |
|
57 | footerAlign?: ColumnAlign;
|
58 | |
59 |
|
60 |
|
61 | showOverflow?: TableOverflow;
|
62 | |
63 |
|
64 |
|
65 | showHeaderOverflow?: TableOverflow;
|
66 | |
67 |
|
68 |
|
69 | showFooterOverflow?: TableOverflow;
|
70 | |
71 |
|
72 |
|
73 | className?: string | ((params: ColumnCellRenderParams) => string | any[] | { [key: string]: boolean });
|
74 | /**
|
75 | * 给表头单元格附加 className
|
76 | */
|
77 | headerClassName?: string | ((params: ColumnHeaderRenderParams) => string | any[] | { [key: string]: boolean });
|
78 | /**
|
79 | * 给表尾单元格附加 className
|
80 | */
|
81 | footerClassName?: string | ((params: ColumnFooterRenderParams) => string | any[] | { [key: string]: boolean });
|
82 | /**
|
83 | * 格式化显示内容
|
84 | */
|
85 | formatter?: ((params: ColumnFormatterMethodParams) => string) | any[] | string;
|
86 | /**
|
87 | * 是否允许排序
|
88 | */
|
89 | sortable?: boolean;
|
90 | /**
|
91 | * 是否服务端排序
|
92 | */
|
93 | remoteSort?: boolean;
|
94 | /**
|
95 | * 自定义排序的属性
|
96 | */
|
97 | sortBy?: string | string[];
|
98 | /**
|
99 | * 自定义排序方法
|
100 | */
|
101 | sortMethod?(a: any, b: any): boolean;
|
102 | /**
|
103 | * 配置筛选条件数组
|
104 | */
|
105 | filters?: ColumnFilterOption[];
|
106 | /**
|
107 | * 筛选是否允许多选
|
108 | */
|
109 | filterMultiple?: boolean;
|
110 | /**
|
111 | * 自定义筛选方法
|
112 | */
|
113 | filterMethod?(params: ColumnFilterMethodParams): boolean;
|
114 | /**
|
115 | * 筛选模板配置项
|
116 | */
|
117 | filterRender?: ColumnFilterRenderOptions;
|
118 | /**
|
119 | * 指定为树节点
|
120 | */
|
121 | treeNode?: boolean;
|
122 | /**
|
123 | * 是否可视
|
124 | */
|
125 | visible?: boolean;
|
126 | /**
|
127 | * 自定义单元格数据导出方法
|
128 | */
|
129 | exportMethod?(params: ColumnExportCellRenderParams): string | number;
|
130 | /**
|
131 | * 自定义表尾单元格数据导出方法
|
132 | */
|
133 | footerExportMethod?(params: ColumnExportFooterRenderParams): string | number;
|
134 | /**
|
135 | * 单元格值类型
|
136 | */
|
137 | cellType?: string;
|
138 | /**
|
139 | * 单元格渲染配置项
|
140 | */
|
141 | cellRender?: ColumnCellRenderOptions;
|
142 | /**
|
143 | * 单元格编辑渲染配置项
|
144 | */
|
145 | editRender?: ColumnEditRenderOptions;
|
146 | /**
|
147 | * 内容渲染配置项
|
148 | */
|
149 | contentRender?: ColumnContentRenderOptions;
|
150 | /**
|
151 | * 额外的参数
|
152 | */
|
153 | params?: any;
|
154 | }
|
155 |
|
\ | No newline at end of file |