Skip to content

Commit

Permalink
docs: add target blank in example code (#6087)
Browse files Browse the repository at this point in the history
* Update plugin-layout.zh-CN.md

* Update plugin-layout.md

* Update plugin-layout.md
  • Loading branch information
afc163 authored Jan 29, 2021
1 parent bff5173 commit 10b4e02
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions docs/plugins/plugin-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ In the UI that is used to configure the default Layout at runtime, the processin
- Type: `(initialState) => React.ReactNode`
- Default: Display user name, avatar, logout related components

`InitialState`is obtained from the`@umijs/plugin-initial-state` plugin and needs to be used together.
`InitialState`is obtained from the `@umijs/plugin-initial-state` plugin and needs to be used together.

#### onError

Expand Down Expand Up @@ -186,6 +186,9 @@ export const routes: IBestAFSRoute[] = [
},
// more features view
// https://beta-pro.ant.design/docs/advanced-menu
// ---
// open path in new tab
target: '_blank',
// Do not show top bar
headerRender: false,
// Do not show footer
Expand Down Expand Up @@ -218,7 +221,7 @@ The name displayed on the menu, otherwise it will not be displayed.

The Icon displayed on the menu.

> The icon name is the lower case of the component name and then remove the `outlined`or`filled`or`twotone`to obtain the value. Example: The icon name of`<UserOutlined />`is: `user`.
> The icon name is the lower case of the component name and then remove the `outlined` or `filled` or `twotone` to obtain the value. Example: The icon name of`<UserOutlined />`is: `user`.
#### flatMenu

Expand Down
5 changes: 4 additions & 1 deletion docs/plugins/plugin-layout.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export const layout = ({

用于运行时配置默认 Layout 的 UI 中,点击退出登录的处理逻辑,默认不做处理。

> 注:默认在顶部右侧并不会显示退出按钮,需要在运行配置中配合`@umijs/plugin-intial-state``getInitialState`返回一个对象,才可以显示
> 注:默认在顶部右侧并不会显示退出按钮,需要在运行配置中配合 `@umijs/plugin-intial-state``getInitialState` 返回一个对象,才可以显示
#### rightRender

Expand Down Expand Up @@ -158,6 +158,9 @@ export const routes: IBestAFSRoute[] = [
},
// 更多功能查看
// https://beta-pro.ant.design/docs/advanced-menu
// ---
// 新页面打开
target: '_blank',
// 不展示顶栏
headerRender: false,
// 不展示页脚
Expand Down

0 comments on commit 10b4e02

Please sign in to comment.