Commit 07e3f632 authored by afc163's avatar afc163

Fix typo, silderTheme => navTheme

parent 1f63d13d
...@@ -111,7 +111,7 @@ class SettingDrawer extends PureComponent { ...@@ -111,7 +111,7 @@ class SettingDrawer extends PureComponent {
render() { render() {
const { setting } = this.props; const { setting } = this.props;
const { collapse, silderTheme, primaryColor, layout, colorWeak } = setting; const { collapse, navTheme, primaryColor, layout, colorWeak } = setting;
return ( return (
<Drawer <Drawer
visible={collapse} visible={collapse}
...@@ -157,8 +157,8 @@ class SettingDrawer extends PureComponent { ...@@ -157,8 +157,8 @@ class SettingDrawer extends PureComponent {
url: 'https://gw.alipayobjects.com/zos/rmsportal/jpRkZQMyYRryryPNtyIC.svg', url: 'https://gw.alipayobjects.com/zos/rmsportal/jpRkZQMyYRryryPNtyIC.svg',
}, },
]} ]}
value={silderTheme} value={navTheme}
onChange={value => this.changeSetting('silderTheme', value)} onChange={value => this.changeSetting('navTheme', value)}
/> />
</Body> </Body>
......
module.exports = { module.exports = {
collapse: false, collapse: false,
silderTheme: 'dark', navTheme: 'dark',
primaryColor: '#1890FF', primaryColor: '#1890FF',
layout: 'sidemenu', layout: 'sidemenu',
grid: 'Fluid', grid: 'Fluid',
......
...@@ -217,7 +217,7 @@ class BasicLayout extends React.PureComponent { ...@@ -217,7 +217,7 @@ class BasicLayout extends React.PureComponent {
render() { render() {
const { const {
silderTheme, navTheme,
layout: PropsLayout, layout: PropsLayout,
children, children,
location: { pathname }, location: { pathname },
...@@ -231,7 +231,7 @@ class BasicLayout extends React.PureComponent { ...@@ -231,7 +231,7 @@ class BasicLayout extends React.PureComponent {
<SiderMenu <SiderMenu
logo={logo} logo={logo}
Authorized={Authorized} Authorized={Authorized}
theme={silderTheme} theme={navTheme}
onCollapse={this.handleMenuCollapse} onCollapse={this.handleMenuCollapse}
menuData={menuData} menuData={menuData}
{...this.props} {...this.props}
......
...@@ -106,7 +106,7 @@ class HeaderView extends PureComponent { ...@@ -106,7 +106,7 @@ class HeaderView extends PureComponent {
render() { render() {
const { isMobile, handleMenuCollapse, setting } = this.props; const { isMobile, handleMenuCollapse, setting } = this.props;
const { silderTheme, layout, fixedHeader } = setting; const { navTheme, layout, fixedHeader } = setting;
const { visible } = this.state; const { visible } = this.state;
const isTop = layout === 'topmenu'; const isTop = layout === 'topmenu';
const HeaderDom = visible ? ( const HeaderDom = visible ? (
...@@ -116,7 +116,7 @@ class HeaderView extends PureComponent { ...@@ -116,7 +116,7 @@ class HeaderView extends PureComponent {
> >
{isTop && !isMobile ? ( {isTop && !isMobile ? (
<TopNavHeader <TopNavHeader
theme={silderTheme} theme={navTheme}
mode="horizontal" mode="horizontal"
Authorized={Authorized} Authorized={Authorized}
onCollapse={handleMenuCollapse} onCollapse={handleMenuCollapse}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment