Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pro-layout
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
packages
pro-layout
Commits
9e06d375
Commit
9e06d375
authored
Apr 27, 2020
by
star
Committed by
言肆
May 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加中文文档
parent
8a2996eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
+46
-0
README.zh-CN.md
README.zh-CN.md
+46
-0
No files found.
README.zh-CN.md
0 → 100644
View file @
9e06d375
English |
[
简体中文
](
./README.zh-CN.md
)
<h1
align=
"center"
>
Ant Design Pro Layout
</h1>
## 使用
```
bash
npm i @ant-design-vue/pro-layout
--save
// 或者
yarn add @ant-design-vue/pro-layout
```
```
jsx
import
ProLayout
from
'@ant-design-vue/pro-layout'
export
default
{
name
:
'BasicLayout'
,
render
()
{
return
(
<
ProLayout
>
<
router
-
view
/>
</
ProLayout
>
)
}
}
```
## API
### ProLayout
| Property | Description | Type | Default Value |
| --- | --- | --- | --- |
| title | layout 的 左上角 的 title | VNode
\|
String |
`'Ant Design Pro'`
|
| logo | layout 的 左上角 logo 的 url | VNode
\|
render | - |
| loading
`*`
| layout 的加载态 | boolean | - |
| menuHeaderRender | 渲染 logo 和 title | VNode
\|
(logo,title)=>VNode | - |
| layout | layout 的菜单模式, sidemenu: 右侧导航, topmenu: 顶部导航 | 'sidemenu'
\|
'topmenu' |
`'sidemenu'`
|
| contentWidth | layout 的内容模式,Fluid:定宽 1200px,Fixed:自适应 | true
\|
false |
`false`
|
| theme | 导航的主题 | 'light'
\|
'dark' |
`'dark'`
|
| menus | Vue-router
`routes`
属性 | Object |
`[{}]`
|
| collapsed | 控制菜单的收起和展开 | boolean | true |
| handleCollapse | 菜单的折叠收起事件 | (collapsed: boolean) => void | - |
| headerRender | 自定义头的 render 方法 | (props: BasicLayoutProps) => VNode | - |
| rightContentRender | 自定义头右部的 render 方法 | (props: HeaderViewProps) => VNode | - |
| collapsedButtonRender | 自定义 collapsed button 的方法 | (collapsed: boolean) => VNode | - |
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment