提交 344c9f74 编写于 作者: 柴茂源 提交者: 陈帅

fix: fixed header width (#1614)

上级 e0cf86a3
......@@ -21,16 +21,12 @@ class HeaderView extends PureComponent {
document.getElementById('root').removeEventListener('scroll', this.handScroll);
}
getHeadWidth = () => {
const { fixedHeader, layout, fixSiderbar } = this.props.setting;
if (!fixedHeader || layout === 'topmenu' || fixSiderbar) {
const { isMobile, collapsed, setting } = this.props;
const { fixedHeader, layout } = setting;
if (isMobile || !fixedHeader || layout === 'topmenu') {
return '100%';
}
if (!this.props.collapsed) {
return 'calc(100% - 256px)';
}
if (this.props.collapsed) {
return 'calc(100% - 80px)';
}
return collapsed ? 'calc(100% - 80px)' : 'calc(100% - 256px)';
};
handleNoticeClear = type => {
message.success(`清空了${type}`);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册