Jingsong Gao
4 years ago
committed by
GitHub
6 changed files with 65 additions and 39 deletions
@ -1,79 +1,84 @@ |
|||||||
|
import { CSSProperties, Slot, VNodeChild } from 'vue'; |
||||||
// Project: https://github.com/vueComponent/ant-design-vue
|
// Project: https://github.com/vueComponent/ant-design-vue
|
||||||
// Definitions by: akki-jat <https://github.com/akki-jat>
|
// Definitions by: akki-jat <https://github.com/akki-jat>
|
||||||
// Definitions: https://github.com/vueComponent/ant-design-vue/types
|
// Definitions: https://github.com/vueComponent/ant-design-vue/types
|
||||||
|
|
||||||
import { AntdComponent } from '../component'; |
import { AntdComponent } from '../component'; |
||||||
|
|
||||||
export declare class LayoutSider extends AntdComponent { |
export interface LayoutSiderProps { |
||||||
/** |
/** |
||||||
* container className |
* container className |
||||||
* @type string |
* @type string |
||||||
*/ |
*/ |
||||||
class: string; |
class?: string; |
||||||
|
|
||||||
/** |
/** |
||||||
* whether can be collapsed |
* whether can be collapsed |
||||||
* @default false |
* @default false |
||||||
* @type boolean |
* @type boolean |
||||||
*/ |
*/ |
||||||
collapsible: boolean; |
collapsible?: boolean; |
||||||
|
|
||||||
/** |
/** |
||||||
* to set the current status |
* to set the current status |
||||||
* @type boolean |
* @type boolean |
||||||
*/ |
*/ |
||||||
collapsed: boolean; |
collapsed?: boolean; |
||||||
|
|
||||||
/** |
/** |
||||||
* to set the initial status |
* to set the initial status |
||||||
* @default false |
* @default false |
||||||
* @type boolean |
* @type boolean |
||||||
*/ |
*/ |
||||||
defaultCollapsed: boolean; |
defaultCollapsed?: boolean; |
||||||
|
|
||||||
/** |
/** |
||||||
* reverse direction of arrow, for a sider that expands from the right |
* reverse direction of arrow, for a sider that expands from the right |
||||||
* @default false |
* @default false |
||||||
* @type boolean |
* @type boolean |
||||||
*/ |
*/ |
||||||
reverseArrow: boolean; |
reverseArrow?: boolean; |
||||||
|
|
||||||
/** |
/** |
||||||
* to customize the styles |
* to customize the styles |
||||||
* @type object | string |
* @type CSSProperties |
||||||
*/ |
*/ |
||||||
style: object | string; |
style?: CSSProperties; |
||||||
|
|
||||||
/** |
/** |
||||||
* specify the customized trigger, set to null to hide the trigger |
* specify the customized trigger, set to null to hide the trigger |
||||||
* @type string | slot |
* @type string | | VNodeChild | JSX.Element |
||||||
*/ |
*/ |
||||||
trigger: any; |
trigger?: string | VNodeChild | JSX.Element; |
||||||
|
|
||||||
/** |
/** |
||||||
* width of the sidebar |
* width of the sidebar |
||||||
* @default 200 |
* @default 200 |
||||||
* @type number | string |
* @type number | string |
||||||
*/ |
*/ |
||||||
width: number | string; |
width?: number | string; |
||||||
|
|
||||||
/** |
/** |
||||||
* width of the collapsed sidebar, by setting to 0 a special trigger will appear |
* width of the collapsed sidebar, by setting to 0 a special trigger will appear |
||||||
* @default 80 |
* @default 80 |
||||||
* @type number |
* @type number |
||||||
*/ |
*/ |
||||||
collapsedWidth: number; |
collapsedWidth?: number; |
||||||
|
|
||||||
/** |
/** |
||||||
* breakpoints of the responsive layout |
* breakpoints of the responsive layout |
||||||
* @type string |
* @type string |
||||||
*/ |
*/ |
||||||
breakpoint: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'; |
breakpoint?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'; |
||||||
|
|
||||||
/** |
/** |
||||||
* color theme of the sidebar |
* color theme of the sidebar |
||||||
* @default 'dark' |
* @default 'dark' |
||||||
* @type string |
* @type string |
||||||
*/ |
*/ |
||||||
theme: 'light' | 'dark'; |
theme?: 'light' | 'dark'; |
||||||
|
} |
||||||
|
|
||||||
|
export declare class LayoutSider extends AntdComponent { |
||||||
|
$props: LayoutSiderProps; |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue