Skip to content

Commit

Permalink
代码格式化
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonkuang committed Feb 28, 2019
1 parent 3872a80 commit 66f9aea
Show file tree
Hide file tree
Showing 73 changed files with 10,826 additions and 7,617 deletions.
15 changes: 9 additions & 6 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta name="theme-color" content="#000000" />
<!--
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Expand Down
41 changes: 23 additions & 18 deletions src/App.js
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
Loading

0 comments on commit 66f9aea

Please sign in to comment.