2.1 KiB
		
	
	
	
	
			
		
		
	
	
			2.1 KiB
		
	
	
	
	
API
<Layout>
  <Header>header</Header>
  <Layout>
    <Sider>left sidebar</Sider>
    <Content>main content</Content>
    <Sider>right sidebar</Sider>
  </Layout>
  <Footer>footer</Footer>
</Layout>
Layout
The wrapper.
| Property | Description | Type | Default | 
|---|---|---|---|
| class | container className | string | - | 
| style | to customize the styles | object|string | - | 
| hasSider | whether contain Sider in children, don't have to assign it normally. Useful in ssr avoid style flickering | boolean | - | 
APIs of
Layout.HeaderLayout.FooterLayout.Contentare the same as that ofLayout.
Layout.Sider
The sidebar.
| Property | Description | Type | Default | 
|---|---|---|---|
| breakpoint | breakpoints of the responsive layout | Enum { 'xs', 'sm', 'md', 'lg', 'xl', 'xxl' } | - | 
| class | container className | string | - | 
| collapsed(v-model) | to set the current status | boolean | - | 
| collapsedWidth | width of the collapsed sidebar, by setting to 0a special trigger will appear | number | 80 | 
| collapsible | whether can be collapsed | boolean | false | 
| defaultCollapsed | to set the initial status | boolean | false | 
| reverseArrow | reverse direction of arrow, for a sider that expands from the right | boolean | false | 
| style | to customize the styles | object|string | - | 
| theme | color theme of the sidebar | string: lightdark | dark | 
| trigger | specify the customized trigger, set to null to hide the trigger | string|slot | - | 
| width | width of the sidebar | number|string | 200 | 
Events
| Events Name | Description | Arguments | 
|---|---|---|
| collapse | the callback function, executed by clicking the trigger or activating the responsive layout | (collapsed, type) => {} | 
| breakpoint | the callback function, executed when breakpoints changed | (broken) => {} | 
breakpoint width
{
  xs: '480px',
  sm: '576px',
  md: '768px',
  lg: '992px',
  xl: '1200px',
  xxl: '1600px',
}