ant-design/components/layout/demo/custom-trigger.md

28 lines
572 B
Markdown
Raw Normal View History

## zh-CN
要使用自定义触发器,可以设置 `trigger={null}` 来隐藏默认设定。
## en-US
If you want to use a customized trigger, you can hide the default one by setting `trigger={null}`.
2019-05-07 14:57:32 +08:00
```css
#components-layout-demo-custom-trigger .trigger {
padding: 0 24px;
font-size: 18px;
line-height: 64px;
cursor: pointer;
2019-05-07 14:57:32 +08:00
transition: color 0.3s;
}
#components-layout-demo-custom-trigger .trigger:hover {
color: #1890ff;
}
#components-layout-demo-custom-trigger .logo {
height: 32px;
margin: 16px;
background: rgba(255, 255, 255, 0.3);
}
2019-05-07 14:57:32 +08:00
```