Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add target blank in example code #6087

Merged
merged 3 commits into from
Jan 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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