Skip to content

Commit

Permalink
📖 docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Nov 2, 2020
1 parent 992ef63 commit b17bf99
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ An out-of-box UI solution for enterprise applications as a React boilerplate.
- FAQ: http://pro.ant.design/docs/faq
- Mirror Site in China: http://ant-design-pro.gitee.io

## 4.0 Released Now! 🎉🎉🎉
## 5.0 is ready for trial! 🎉🎉🎉

[Announcing Ant Design Pro 4.0.0](https://medium.com/ant-design/ant-design-pro-v4-is-here-6f23098ae9d9)
[Try Ant Design Pro 5.0.0](https://beta-pro.ant.design/docs/upgrade-v5-cn)

## Translation Recruitment :loudspeaker:

Expand Down
4 changes: 2 additions & 2 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
- 常见问题:http://pro.ant.design/docs/faq-cn
- 国内镜像:http://ant-design-pro.gitee.io

## 现在我们发布了 4.0! 🎉🎉🎉
## 5.0 已经可以试用了 ! 🎉🎉🎉

[Announcing Ant Design Pro 4.0.0](https://zhuanlan.zhihu.com/p/67498559)
[尝试 Ant Design Pro 5.0.0](https://beta-pro.ant.design/docs/upgrade-v5-cn)

## 特性

Expand Down
5 changes: 1 addition & 4 deletions config/defaultSettings.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Settings as ProSettings } from '@ant-design/pro-layout';

type DefaultSettings = ProSettings & {
type DefaultSettings = Partial<ProSettings> & {
pwa: boolean;
};

Expand All @@ -13,9 +13,6 @@ const proSettings: DefaultSettings = {
fixedHeader: false,
fixSiderbar: true,
colorWeak: false,
menu: {
locale: true,
},
title: 'Ant Design Pro',
pwa: false,
iconfontUrl: '',
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/BasicLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => {
<ProLayout
logo={logo}
formatMessage={formatMessage}
{...props}
{...settings}
onCollapse={handleMenuCollapse}
onMenuHeaderClick={() => history.push('/')}
menuItemRender={(menuItemProps, defaultDom) => {
Expand Down Expand Up @@ -161,8 +163,6 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => {
menuDataRef.current = menuData || [];
return menuData || [];
}}
{...props}
{...settings}
>
<Authorized authority={authorized!.authority} noMatch={noMatch}>
{children}
Expand Down

0 comments on commit b17bf99

Please sign in to comment.