style migrate v3

pull/289/head
vapao 2020-11-27 16:20:05 +08:00
parent dbee03069e
commit ead0364f46
2 changed files with 21 additions and 27 deletions

View File

@ -5,6 +5,7 @@
*/ */
import React from 'react'; import React from 'react';
import { Menu } from 'antd'; import { Menu } from 'antd';
import { Breadcrumb } from 'components';
import Basic from './Basic'; import Basic from './Basic';
import Reset from './Reset'; import Reset from './Reset';
import styles from './index.module.css'; import styles from './index.module.css';
@ -20,6 +21,11 @@ class Index extends React.Component {
render() { render() {
const {selectedKeys} = this.state; const {selectedKeys} = this.state;
return ( return (
<div>
<Breadcrumb>
<Breadcrumb.Item>首页</Breadcrumb.Item>
<Breadcrumb.Item>个人中心</Breadcrumb.Item>
</Breadcrumb>
<div className={styles.container}> <div className={styles.container}>
<div className={styles.left}> <div className={styles.left}>
<Menu <Menu
@ -36,6 +42,7 @@ class Index extends React.Component {
{selectedKeys[0] === 'reset' && <Reset/>} {selectedKeys[0] === 'reset' && <Reset/>}
</div> </div>
</div> </div>
</div>
) )
} }
} }

View File

@ -1,13 +0,0 @@
/**
* Copyright (c) OpenSpug Organization. https://github.com/openspug/spug
* Copyright (c) <spug.dev@gmail.com>
* Released under the AGPL-3.0 License.
*/
import { makeRoute } from 'libs/router';
import Index from './index';
import Info from './info';
export default [
makeRoute('/index', Index),
makeRoute('/info', Info),
]