# drill-pro-layout **Repository Path**: SayHelloCat/drill-pro-layout ## Basic Information - **Project Name**: drill-pro-layout - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-14 - **Last Updated**: 2021-08-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README English | [简体中文](./README.zh-CN.md)

Ant Design Pro Layout

## Usage ```bash npm i @ant-design-vue/pro-layout --save // or yarn add @ant-design-vue/pro-layout ``` ```jsx import ProLayout from '@ant-design-vue/pro-layout' // by jsx export default { name: 'BasicLayout', render () { return ( ) } } ``` ```vue ``` ## API ### ProLayout | Property | Description | Type | Default Value | | --- | --- | --- | --- | | title | layout in the upper left corner title | VNode \| String | `'Ant Design Pro'` | | logo | layout top left logo url | VNode \| render | - | | loading`*` | layout loading status | boolean | - | | layout | layout menu mode, sidemenu: right navigation, topmenu: top navigation | 'sidemenu' \| 'topmenu' | `'sidemenu'` | | contentWidth | content mode of layout, Fluid: fixed width 1200px, Fixed: adaptive | true \| false | `false` | | theme | Navigation menu theme | 'light' \| 'dark' | `'dark'` | | menus | Vue-router `routes` prop | Object | `[{}]` | | collapsed | control menu's collapse and expansion | boolean | true | | isMobile | is mobile | boolean | false | | handleCollapse | folding collapse event of menu | (collapsed: boolean) => void | - | | menuHeaderRender | render logo and title | v-slot \| VNode \| (logo,title)=>VNode \| false | - | | headerRender | custom header render method | (props: BasicLayoutProps) => VNode | - | | rightContentRender | header right content render method | (props: HeaderViewProps) => VNode | - | | collapsedButtonRender | custom collapsed button method | (collapsed: boolean) => VNode | - | | footerRender | custom footer render method | (props: BasicLayoutProps) => VNode | - | | breadcrumbRender | custom breadcrumb render method | ({ route, params, routes, paths, h }) => VNode[] | - | | i18nRender | i18n | Function (key: string) => string \| `false` | `false` | | handleMediaQuery | media matchs callback | (querys: []) => void | - | | mediaQuery | media matchs | Array | - | ### PageHeaderWrapper | Property | Description | Type | Default Value | | --- | --- | --- | --- | | content | Content area | VNode \| v-slot | - | | extra | Extra content area, on the right side of content | VNode \| v-slot | - | | extraContent | Extra content area, on the right side of content | VNode \| v-slot | - | | tabList | Tabs title list | `Array<{key: string, tab: sting}>` | - | | tab-change | Switch panel callback | (key) => void | - | | tab-active-key | The currently highlighted tab item | string | - | ### SettingDrawer #### {settings} | Property | Description | Type | Default Value | | ---- | ---- | ---- | ---- | | theme | Theme | `dark` `light` `realDark` | `light` | | layout | Sider Layout | `sidemenu` `topmenu` | `sidemenu` | | primaryColor | Primary color (*development only) | `#1890ff` | |