mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 20:49:14 +08:00
25 lines
580 B
Markdown
25 lines
580 B
Markdown
|
## zh-CN
|
||
|
|
||
|
使用 `dropdownRender` 对下拉菜单进行自由扩展。如果你并不需要 Menu 内容,请直接使用 Popover 组件。
|
||
|
|
||
|
## en-US
|
||
|
|
||
|
Customize the dropdown menu via `dropdownRender`. If you don't need the Menu content, use the Popover component directly.
|
||
|
|
||
|
```css
|
||
|
.dropdown-content {
|
||
|
background: #fff;
|
||
|
box-shadow: 0 3px 6px -4px rgb(0 0 0 / 12%), 0 6px 16px 0 rgb(0 0 0 / 8%),
|
||
|
0 9px 28px 8px rgb(0 0 0 / 5%);
|
||
|
}
|
||
|
.dropdown-content .ant-dropdown-menu {
|
||
|
box-shadow: none;
|
||
|
}
|
||
|
```
|
||
|
|
||
|
<style>
|
||
|
[data-theme="dark"] .head-example {
|
||
|
background: #1f1f1f;
|
||
|
}
|
||
|
</style>
|