|
| 1 | +import { CSSProperties, Slot, VNodeChild } from 'vue'; |
1 | 2 | // Project: https://github.com/vueComponent/ant-design-vue |
2 | 3 | // Definitions by: akki-jat <https://github.com/akki-jat> |
3 | 4 | // Definitions: https://github.com/vueComponent/ant-design-vue/types |
4 | 5 |
|
5 | 6 | import { AntdComponent } from '../component'; |
6 | 7 |
|
7 | | -export declare class LayoutSider extends AntdComponent { |
| 8 | +export interface LayoutSiderProps { |
8 | 9 | /** |
9 | 10 | * container className |
10 | 11 | * @type string |
11 | 12 | */ |
12 | | - class: string; |
| 13 | + class?: string; |
13 | 14 |
|
14 | 15 | /** |
15 | 16 | * whether can be collapsed |
16 | 17 | * @default false |
17 | 18 | * @type boolean |
18 | 19 | */ |
19 | | - collapsible: boolean; |
| 20 | + collapsible?: boolean; |
20 | 21 |
|
21 | 22 | /** |
22 | 23 | * to set the current status |
23 | 24 | * @type boolean |
24 | 25 | */ |
25 | | - collapsed: boolean; |
| 26 | + collapsed?: boolean; |
26 | 27 |
|
27 | 28 | /** |
28 | 29 | * to set the initial status |
29 | 30 | * @default false |
30 | 31 | * @type boolean |
31 | 32 | */ |
32 | | - defaultCollapsed: boolean; |
| 33 | + defaultCollapsed?: boolean; |
33 | 34 |
|
34 | 35 | /** |
35 | 36 | * reverse direction of arrow, for a sider that expands from the right |
36 | 37 | * @default false |
37 | 38 | * @type boolean |
38 | 39 | */ |
39 | | - reverseArrow: boolean; |
| 40 | + reverseArrow?: boolean; |
40 | 41 |
|
41 | 42 | /** |
42 | 43 | * to customize the styles |
43 | | - * @type object | string |
| 44 | + * @type CSSProperties |
44 | 45 | */ |
45 | | - style: object | string; |
| 46 | + style?: CSSProperties; |
46 | 47 |
|
47 | 48 | /** |
48 | 49 | * specify the customized trigger, set to null to hide the trigger |
49 | | - * @type string | slot |
| 50 | + * @type string | | VNodeChild | JSX.Element |
50 | 51 | */ |
51 | | - trigger: any; |
| 52 | + trigger?: string | VNodeChild | JSX.Element; |
52 | 53 |
|
53 | 54 | /** |
54 | 55 | * width of the sidebar |
55 | 56 | * @default 200 |
56 | 57 | * @type number | string |
57 | 58 | */ |
58 | | - width: number | string; |
| 59 | + width?: number | string; |
59 | 60 |
|
60 | 61 | /** |
61 | 62 | * width of the collapsed sidebar, by setting to 0 a special trigger will appear |
62 | 63 | * @default 80 |
63 | 64 | * @type number |
64 | 65 | */ |
65 | | - collapsedWidth: number; |
| 66 | + collapsedWidth?: number; |
66 | 67 |
|
67 | 68 | /** |
68 | 69 | * breakpoints of the responsive layout |
69 | 70 | * @type string |
70 | 71 | */ |
71 | | - breakpoint: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'; |
| 72 | + breakpoint?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'; |
72 | 73 |
|
73 | 74 | /** |
74 | 75 | * color theme of the sidebar |
75 | 76 | * @default 'dark' |
76 | 77 | * @type string |
77 | 78 | */ |
78 | | - theme: 'light' | 'dark'; |
| 79 | + theme?: 'light' | 'dark'; |
| 80 | +} |
| 81 | + |
| 82 | +export declare class LayoutSider extends AntdComponent { |
| 83 | + $props: LayoutSiderProps; |
79 | 84 | } |
0 commit comments