1 | import { VXEComponent } from './component'
|
2 | import { VxeTableDataRow } from './table'
|
3 | import { VxeColumnPropTypes, VxeColumnSlotTypes } from './column'
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | export const VxeColgroup: VXEComponent<VxeColgroupProps, VxeColgroupEventProps, VxeColgroupSlots<any>>
|
12 |
|
13 |
|
14 |
|
15 | export const Colgroup: typeof VxeColgroup
|
16 |
|
17 | export type VxeColgroupProps = {
|
18 | |
19 |
|
20 |
|
21 | type?: VxeColumnPropTypes.Type
|
22 | |
23 |
|
24 |
|
25 | field?: VxeColumnPropTypes.Field
|
26 | |
27 |
|
28 |
|
29 | title?: VxeColumnPropTypes.Title
|
30 | |
31 |
|
32 |
|
33 | width?: VxeColumnPropTypes.Width
|
34 | |
35 |
|
36 |
|
37 | minWidth?: VxeColumnPropTypes.MinWidth
|
38 | |
39 |
|
40 |
|
41 | resizable?: VxeColumnPropTypes.Resizable
|
42 | |
43 |
|
44 |
|
45 | fixed?: VxeColumnPropTypes.Fixed
|
46 | |
47 |
|
48 |
|
49 | align?: VxeColumnPropTypes.Align
|
50 | |
51 |
|
52 |
|
53 | headerAlign?: VxeColumnPropTypes.HeaderAlign
|
54 | |
55 |
|
56 |
|
57 | showOverflow?: VxeColumnPropTypes.ShowOverflow
|
58 | |
59 |
|
60 |
|
61 | showHeaderOverflow?: VxeColumnPropTypes.ShowHeaderOverflow
|
62 | |
63 |
|
64 |
|
65 | className?: VxeColumnPropTypes.ClassName
|
66 | |
67 |
|
68 |
|
69 | headerClassName?: VxeColumnPropTypes.HeaderClassName
|
70 | |
71 |
|
72 |
|
73 | visible?: VxeColumnPropTypes.Visible
|
74 | |
75 |
|
76 |
|
77 | params?: VxeColumnPropTypes.Params
|
78 | }
|
79 |
|
80 | export type VxeColgroupEventProps = {
|
81 |
|
82 | }
|
83 |
|
84 | export interface VxeColgroupSlots<D = VxeTableDataRow> {
|
85 | |
86 |
|
87 |
|
88 | header: (params: VxeColumnSlotTypes.HeaderSlotParams<D>) => any
|
89 | |
90 |
|
91 |
|
92 | title: (params: VxeColumnSlotTypes.HeaderSlotParams<D>) => any
|
93 | }
|