From 5b32607911b7175803014bd6aa64802f505b91c6 Mon Sep 17 00:00:00 2001 From: Baorong Li Date: Tue, 19 Feb 2019 22:00:36 +0800 Subject: [PATCH 1/2] bump antd-admin@5.0.4 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5ec6f0b..b66e59f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "antd-admin", - "version": "5.0.3", + "version": "5.0.4", "private": true, "description": "An admin dashboard application demo built upon Ant Design and UmiJS", "dependencies": { From be083d81fc8d761611171ca890f8c27116c1bc15 Mon Sep 17 00:00:00 2001 From: cyan <790266922@qq.com> Date: Sun, 5 May 2019 00:38:43 +0800 Subject: [PATCH 2/2] fix markdown code block --- docs/layout.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/layout.md b/docs/layout.md index 6772fca..208fe9e 100644 --- a/docs/layout.md +++ b/docs/layout.md @@ -6,7 +6,7 @@ Take a new layout named `secondary` as an example to make the route starting wit 1. Add related configuration in `src/utils/config.js`. For details, please refer to [layouts](/configuration?id=layouts). -   ```javascript +```javascript    layouts: [            {                name: 'primary', @@ -18,11 +18,11 @@ Take a new layout named `secondary` as an example to make the route starting wit                include: [/(\/(en|zh))*\/seconday\/(.*)/],            },    ], -   ``` +``` 2. Add the `secondary` layout component to the `src/layouts/BaseLayout.js` file. -   ```javascript +```javascript    import SecondaryLayout from './SecondaryLayout'    const LayoutMap = { @@ -30,11 +30,11 @@ Take a new layout named `secondary` as an example to make the route starting wit      Public: PublicLayout,      Secondary: SecondaryLayout,    } -   ``` +``` 3. Add the `SecondaryLayout.js` file to the `src/layouts/` directory. -   ```javascript +```javascript    import React from 'react'    export default ({ children }) => { @@ -45,16 +45,16 @@ Take a new layout named `secondary` as an example to make the route starting wit              )    } -   ``` +``` 4. Add a `seconday/index.js` file to the `src/pages/` directory. -   ```javascript +```javascript    import React from 'react'    export default ({ children }) => {      Return
Seconday page Content
   } -   ``` +``` -5. Finally, start the development mode `npm run start`, open [http://localhost:7000/seconday/](http://localhost:7000/seconday/) and you will see the page for the `seconday` layout. \ No newline at end of file +5. Finally, start the development mode `npm run start`, open [http://localhost:7000/seconday/](http://localhost:7000/seconday/) and you will see the page for the `seconday` layout.