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
|
||||
// Definitions by: akki-jat <https://github.com/akki-jat>
|
||||
// Definitions: https://github.com/vueComponent/ant-design-vue/types
|
||||
|
||||
import { AntdComponent } from '../component'; |
||||
|
||||
export declare class LayoutSider extends AntdComponent { |
||||
export interface LayoutSiderProps { |
||||
/** |
||||
* container className |
||||
* @type string |
||||
*/ |
||||
class: string; |
||||
class?: string; |
||||
|
||||
/** |
||||
* whether can be collapsed |
||||
* @default false |
||||
* @type boolean |
||||
*/ |
||||
collapsible: boolean; |
||||
collapsible?: boolean; |
||||
|
||||
/** |
||||
* to set the current status |
||||
* @type boolean |
||||
*/ |
||||
collapsed: boolean; |
||||
collapsed?: boolean; |
||||
|
||||
/** |
||||
* to set the initial status |
||||
* @default false |
||||
* @type boolean |
||||
*/ |
||||
defaultCollapsed: boolean; |
||||
defaultCollapsed?: boolean; |
||||
|
||||
/** |
||||
* reverse direction of arrow, for a sider that expands from the right |
||||
* @default false |
||||
* @type boolean |
||||
*/ |
||||
reverseArrow: boolean; |
||||
reverseArrow?: boolean; |
||||
|
||||
/** |
||||
* 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 |
||||
* @type string | slot |
||||
* @type string | | VNodeChild | JSX.Element |
||||
*/ |
||||
trigger: any; |
||||
trigger?: string | VNodeChild | JSX.Element; |
||||
|
||||
/** |
||||
* width of the sidebar |
||||
* @default 200 |
||||
* @type number | string |
||||
*/ |
||||
width: number | string; |
||||
width?: number | string; |
||||
|
||||
/** |
||||
* width of the collapsed sidebar, by setting to 0 a special trigger will appear |
||||
* @default 80 |
||||
* @type number |
||||
*/ |
||||
collapsedWidth: number; |
||||
collapsedWidth?: number; |
||||
|
||||
/** |
||||
* breakpoints of the responsive layout |
||||
* @type string |
||||
*/ |
||||
breakpoint: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'; |
||||
breakpoint?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'; |
||||
|
||||
/** |
||||
* color theme of the sidebar |
||||
* @default 'dark' |
||||
* @type string |
||||
*/ |
||||
theme: 'light' | 'dark'; |
||||
theme?: 'light' | 'dark'; |
||||
} |
||||
|
||||
export declare class LayoutSider extends AntdComponent { |
||||
$props: LayoutSiderProps; |
||||
} |
||||
|
Loading…
Reference in new issue