2016-12-30 21:41:28 +08:00
|
|
|
## 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
|
2016-12-30 21:41:28 +08:00
|
|
|
#components-layout-demo-custom-trigger .trigger {
|
2021-01-30 19:39:02 +08:00
|
|
|
padding: 0 24px;
|
2016-12-30 21:41:28 +08:00
|
|
|
font-size: 18px;
|
|
|
|
line-height: 64px;
|
|
|
|
cursor: pointer;
|
2019-05-07 14:57:32 +08:00
|
|
|
transition: color 0.3s;
|
2016-12-30 21:41:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#components-layout-demo-custom-trigger .trigger:hover {
|
2017-09-27 22:32:49 +08:00
|
|
|
color: #1890ff;
|
2016-12-30 21:41:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#components-layout-demo-custom-trigger .logo {
|
|
|
|
height: 32px;
|
|
|
|
margin: 16px;
|
2021-01-30 19:39:02 +08:00
|
|
|
background: rgba(255, 255, 255, 0.3);
|
2016-12-30 21:41:28 +08:00
|
|
|
}
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|