提交 f689ede0 编写于 作者: A afc163

The collapse trigger of Sider should be fixed and upon menus

close #7161
上级 30e4fa8a
......@@ -161,7 +161,7 @@ export default class Sider extends React.Component<SiderProps, any> {
const triggerDom = (
trigger !== null ?
zeroWidthTrigger || (
<div className={`${prefixCls}-trigger`} onClick={this.toggle}>
<div className={`${prefixCls}-trigger`} onClick={this.toggle} style={{ width: siderWidth }}>
{trigger || defaultTrigger}
</div>
) : null
......
......@@ -785,6 +785,7 @@ exports[`renders ./components/layout/demo/side.md correctly 1`] = `
</div>
<div
class="ant-layout-sider-trigger"
style="width:200px;"
>
<i
class="anticon anticon-left"
......
---
order: 3
iframe: 360
title:
zh-CN: 侧边布局
en-US: Sider
......@@ -65,7 +66,7 @@ class SiderDemo extends React.Component {
<Menu.Item key="6">Team 1</Menu.Item>
<Menu.Item key="8">Team 2</Menu.Item>
</SubMenu>
<Menu.Item key="8">
<Menu.Item key="9">
<Icon type="file" />
<span>File</span>
</Menu.Item>
......
......@@ -56,15 +56,15 @@
}
&-trigger {
position: absolute;
position: fixed;
text-align: center;
width: 100%;
bottom: 0;
cursor: pointer;
height: @layout-trigger-height;
line-height: @layout-trigger-height;
background: @layout-trigger-background;
color: @layout-trigger-color;
background: fade(@layout-trigger-background, 100);
z-index: 1;
}
&-zero-width {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册