-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3872a80
commit 66f9aea
Showing
73 changed files
with
10,826 additions
and
7,617 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,51 @@ | ||
import React, { Component } from 'react'; | ||
import { Layout } from 'antd'; | ||
import RootHeader from './components/layout/RootHeader'; | ||
import { SiderMenusRoute, RootBreadcrumbRoute, ContentRoute } from './routes'; | ||
import './App.css'; | ||
import React, { Component } from 'react' | ||
import { Layout } from 'antd' | ||
import RootHeader from './components/layout/RootHeader' | ||
import { SiderMenusRoute, RootBreadcrumbRoute, ContentRoute } from './routes' | ||
import './App.css' | ||
|
||
const { Footer, Content, Sider } = Layout; | ||
const { Footer, Content, Sider } = Layout | ||
|
||
class App extends Component { | ||
state = { | ||
collapsed: false, | ||
}; | ||
onCollapse = (collapsed) => { | ||
this.setState({ collapsed }); | ||
collapsed: false | ||
} | ||
onCollapse = collapsed => { | ||
this.setState({ collapsed }) | ||
} | ||
render() { | ||
return ( | ||
<Layout style={{ minHeight: '100vh' }}> | ||
<RootHeader /> | ||
<Layout style={{paddingTop:'64px'}}> | ||
<Sider | ||
width={200} | ||
style={{ background: '#333' }} | ||
<Layout style={{ paddingTop: '64px' }}> | ||
<Sider | ||
width={200} | ||
style={{ background: '#333' }} | ||
collapsible | ||
collapsed={this.state.collapsed} | ||
onCollapse={this.onCollapse} | ||
className="fixed" | ||
> | ||
<SiderMenusRoute /> | ||
</Sider> | ||
<Layout className={this.state.collapsed ? 'content-normal' : 'content-max'} > | ||
<Layout | ||
className={this.state.collapsed ? 'content-normal' : 'content-max'} | ||
> | ||
<RootBreadcrumbRoute /> | ||
<Content style={{ margin: 0, minHeight: 280 }}> | ||
<ContentRoute /> | ||
</Content> | ||
<Footer style={{ textAlign: 'center' }}> | ||
<a href="https://github.com/nelsonkuang/ant-admin">Fork me on Github</a>, Mixed by Nelson Kuang @2017, currently under developing... | ||
<a href="https://github.com/nelsonkuang/ant-admin"> | ||
Fork me on Github | ||
</a> | ||
, Mixed by Nelson Kuang @2017, currently under developing... | ||
</Footer> | ||
</Layout> | ||
</Layout> | ||
</Layout> | ||
); | ||
) | ||
} | ||
} | ||
|
||
export default App; | ||
export default App |
Oops, something went wrong.