mirror of https://github.com/openspug/spug
				
				
				
			style migrate v3
							parent
							
								
									dbee03069e
								
							
						
					
					
						commit
						ead0364f46
					
				| 
						 | 
				
			
			@ -5,6 +5,7 @@
 | 
			
		|||
 */
 | 
			
		||||
import React from 'react';
 | 
			
		||||
import { Menu } from 'antd';
 | 
			
		||||
import { Breadcrumb } from 'components';
 | 
			
		||||
import Basic from './Basic';
 | 
			
		||||
import Reset from './Reset';
 | 
			
		||||
import styles from './index.module.css';
 | 
			
		||||
| 
						 | 
				
			
			@ -20,6 +21,11 @@ class Index extends React.Component {
 | 
			
		|||
  render() {
 | 
			
		||||
    const {selectedKeys} = this.state;
 | 
			
		||||
    return (
 | 
			
		||||
      <div>
 | 
			
		||||
        <Breadcrumb>
 | 
			
		||||
          <Breadcrumb.Item>首页</Breadcrumb.Item>
 | 
			
		||||
          <Breadcrumb.Item>个人中心</Breadcrumb.Item>
 | 
			
		||||
        </Breadcrumb>
 | 
			
		||||
        <div className={styles.container}>
 | 
			
		||||
          <div className={styles.left}>
 | 
			
		||||
            <Menu
 | 
			
		||||
| 
						 | 
				
			
			@ -32,8 +38,9 @@ class Index extends React.Component {
 | 
			
		|||
            </Menu>
 | 
			
		||||
          </div>
 | 
			
		||||
          <div className={styles.right}>
 | 
			
		||||
          {selectedKeys[0] === 'basic' && <Basic />}
 | 
			
		||||
          {selectedKeys[0] === 'reset' && <Reset />}
 | 
			
		||||
            {selectedKeys[0] === 'basic' && <Basic/>}
 | 
			
		||||
            {selectedKeys[0] === 'reset' && <Reset/>}
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    )
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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),
 | 
			
		||||
]
 | 
			
		||||
		Loading…
	
		Reference in New Issue