Skip to content

Commit

Permalink
明天有空优化下,今天有点忙
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-fe committed Jan 2, 2020
1 parent 1a3f738 commit 58ac1b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/common/less/private.less
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ textarea{
}
#g_body{
.ismini{
width:50px!important;
width:0px!important;
max-width:auto!important;
min-width:auto!important;
}
Expand Down
10 changes: 6 additions & 4 deletions src/core/view.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ class BaseView extends Component {
renderSider() {

return (
<Sider class={this.state.isMini?'ismini':''} style={{ overflow: 'auto', height: '100vh', position: 'fixed', left: 0, zIndex: 1 }}>
<div>
<div style={{textAlign: 'right',height: '40px',lineHeight: '40px',paddingRight: '20px'}} onClick={this.isminiFn.bind(this)}>{!this.state.isMini?<Icon type="left"></Icon>:<Icon type="right"></Icon>}</div>
<SideMenu routepath={this.props.location.pathname} pluginStatus={this.state.pluginStatus} />
</Sider>
<Sider class={this.state.isMini?'ismini':''} style={{ overflow: 'auto', height: '100vh', position: 'fixed', left: 0, zIndex: 1 }}>
<SideMenu routepath={this.props.location.pathname} pluginStatus={this.state.pluginStatus} />
</Sider>
</div>
);

}
Expand All @@ -61,7 +63,7 @@ class BaseView extends Component {
<div id="g_body" ref={(viewContainer) => { this.viewContainer = viewContainer }}>
<Layout>
{this.renderSider()}
<Content style={{ paddingLeft: !this.state.isMini?200:50}}>
<Content style={{ paddingLeft: !this.state.isMini?200:0}}>
<Nav></Nav>
{this.renderMain()}
<div style={{textAlign: "center",marginRight: '22px'}}>Copyright @ 2019-2020 GoGo Easy Team</div>
Expand Down

0 comments on commit 58ac1b4

Please sign in to comment.