|
5 | 5 | import { AntdComponent } from '../component'; |
6 | 6 | type ColSpanType = number | string; |
7 | 7 | export declare class Col extends AntdComponent { |
8 | | - /** |
9 | | - * raster number of cells to occupy, 0 corresponds to display: none |
10 | | - * @default none (0) |
11 | | - * @type ColSpanType |
12 | | - */ |
13 | | - span: ColSpanType; |
| 8 | + $props: { |
| 9 | + /** |
| 10 | + * raster number of cells to occupy, 0 corresponds to display: none |
| 11 | + * @default none (0) |
| 12 | + * @type ColSpanType |
| 13 | + */ |
| 14 | + span?: ColSpanType; |
14 | 15 |
|
15 | | - /** |
16 | | - * raster order, used in flex layout mode |
17 | | - * @default 0 |
18 | | - * @type ColSpanType |
19 | | - */ |
20 | | - order: ColSpanType; |
| 16 | + /** |
| 17 | + * raster order, used in flex layout mode |
| 18 | + * @default 0 |
| 19 | + * @type ColSpanType |
| 20 | + */ |
| 21 | + order?: ColSpanType; |
21 | 22 |
|
22 | | - /** |
23 | | - * the layout fill of flex |
24 | | - * @default none |
25 | | - * @type ColSpanType |
26 | | - */ |
27 | | - flex: ColSpanType; |
| 23 | + /** |
| 24 | + * the layout fill of flex |
| 25 | + * @default none |
| 26 | + * @type ColSpanType |
| 27 | + */ |
| 28 | + flex?: ColSpanType; |
28 | 29 |
|
29 | | - /** |
30 | | - * the number of cells to offset Col from the left |
31 | | - * @default 0 |
32 | | - * @type ColSpanType |
33 | | - */ |
34 | | - offset: ColSpanType; |
| 30 | + /** |
| 31 | + * the number of cells to offset Col from the left |
| 32 | + * @default 0 |
| 33 | + * @type ColSpanType |
| 34 | + */ |
| 35 | + offset?: ColSpanType; |
35 | 36 |
|
36 | | - /** |
37 | | - * the number of cells that raster is moved to the right |
38 | | - * @default 0 |
39 | | - * @type ColSpanType |
40 | | - */ |
41 | | - push: ColSpanType; |
| 37 | + /** |
| 38 | + * the number of cells that raster is moved to the right |
| 39 | + * @default 0 |
| 40 | + * @type ColSpanType |
| 41 | + */ |
| 42 | + push?: ColSpanType; |
42 | 43 |
|
43 | | - /** |
44 | | - * the number of cells that raster is moved to the left |
45 | | - * @default 0 |
46 | | - * @type ColSpanType |
47 | | - */ |
48 | | - pull: ColSpanType; |
| 44 | + /** |
| 45 | + * the number of cells that raster is moved to the left |
| 46 | + * @default 0 |
| 47 | + * @type ColSpanType |
| 48 | + */ |
| 49 | + pull?: ColSpanType; |
49 | 50 |
|
50 | | - /** |
51 | | - * <576px and also default setting, could be a span value or an object containing above props |
52 | | - * @type { span: ColSpanType, offset: ColSpanType } | ColSpanType |
53 | | - */ |
54 | | - xs: { span: ColSpanType; offset: ColSpanType } | ColSpanType; |
| 51 | + /** |
| 52 | + * <576px and also default setting, could be a span value or an object containing above props |
| 53 | + * @type { span: ColSpanType, offset: ColSpanType } | ColSpanType |
| 54 | + */ |
| 55 | + xs?: { span: ColSpanType; offset: ColSpanType } | ColSpanType; |
55 | 56 |
|
56 | | - /** |
57 | | - * ≥576px, could be a span value or an object containing above props |
58 | | - * @type { span: ColSpanType, offset: ColSpanType } | ColSpanType |
59 | | - */ |
60 | | - sm: { span: ColSpanType; offset: ColSpanType } | ColSpanType; |
| 57 | + /** |
| 58 | + * ≥576px, could be a span value or an object containing above props |
| 59 | + * @type { span: ColSpanType, offset: ColSpanType } | ColSpanType |
| 60 | + */ |
| 61 | + sm?: { span: ColSpanType; offset: ColSpanType } | ColSpanType; |
61 | 62 |
|
62 | | - /** |
63 | | - * ≥768px, could be a span value or an object containing above props |
64 | | - * @type { span: ColSpanType, offset: ColSpanType } | ColSpanType |
65 | | - */ |
66 | | - md: { span: ColSpanType; offset: ColSpanType } | ColSpanType; |
| 63 | + /** |
| 64 | + * ≥768px, could be a span value or an object containing above props |
| 65 | + * @type { span: ColSpanType, offset: ColSpanType } | ColSpanType |
| 66 | + */ |
| 67 | + md?: { span: ColSpanType; offset: ColSpanType } | ColSpanType; |
67 | 68 |
|
68 | | - /** |
69 | | - * ≥992px, could be a span value or an object containing above props |
70 | | - * @type { span: ColSpanType, offset: ColSpanType } | ColSpanType |
71 | | - */ |
72 | | - lg: { span: ColSpanType; offset: ColSpanType } | ColSpanType; |
| 69 | + /** |
| 70 | + * ≥992px, could be a span value or an object containing above props |
| 71 | + * @type { span: ColSpanType, offset: ColSpanType } | ColSpanType |
| 72 | + */ |
| 73 | + lg?: { span: ColSpanType; offset: ColSpanType } | ColSpanType; |
73 | 74 |
|
74 | | - /** |
75 | | - * ≥1200px, could be a span value or an object containing above props |
76 | | - * @type { span: ColSpanType, offset: ColSpanType } | ColSpanType |
77 | | - */ |
78 | | - xl: { span: ColSpanType; offset: ColSpanType } | ColSpanType; |
| 75 | + /** |
| 76 | + * ≥1200px, could be a span value or an object containing above props |
| 77 | + * @type { span: ColSpanType, offset: ColSpanType } | ColSpanType |
| 78 | + */ |
| 79 | + xl?: { span: ColSpanType; offset: ColSpanType } | ColSpanType; |
| 80 | + |
| 81 | + /** |
| 82 | + * ≥1600px, could be a span value or an object containing above props |
| 83 | + * @type { span: ColSpanType, offset: ColSpanType } | ColSpanType |
| 84 | + */ |
| 85 | + xxl?: { span: ColSpanType; offset: ColSpanType } | ColSpanType; |
| 86 | + } |
79 | 87 |
|
80 | | - /** |
81 | | - * ≥1600px, could be a span value or an object containing above props |
82 | | - * @type { span: ColSpanType, offset: ColSpanType } | ColSpanType |
83 | | - */ |
84 | | - xxl: { span: ColSpanType; offset: ColSpanType } | ColSpanType; |
85 | 88 | } |
0 commit comments