-
-
Notifications
You must be signed in to change notification settings - Fork 49k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deps: upgrade rc-menu, and close: #2837 #8058
Conversation
|
||
class SubMenu extends React.Component<any, any> { | ||
static contextTypes = { | ||
antdMenuTheme: PropTypes.string, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
重构后,子菜单默认是渲染到 body 下面,所以无法再用 CSS Selector 实现 theme,所以用 context 传递
@@ -44,6 +44,8 @@ More layouts with navigation: [layout](/components/layout). | |||
| onDeselect | callback executed when a menu item is deselected, only supported for multiple mode | function({ item, key, selectedKeys }) | - | | |||
| onOpenChange | called when open/close sub menu | function(openKeys: string\[]) | noop | | |||
| onSelect | callback executed when a menu item is selected | function({ item, key, selectedKeys }) | none | | |||
| subMenuOpenDelay | delay time to show submenu when mouse enter, unit: second | number | 0 | | |||
| subMenuCloseDelay | delay time to hide submenu when mouse leave, unit: second | number | 0.1 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
close: #2837
CI broken. |
现在测试需要 mock rc-trigger(因为 enzyme 不支持 createPortal),但是 dist 的文件没办法 mock。需要考虑下是不是不针对 dist 文件跑测试了,还是怎么搞下。 |
Could #8089 be fixed in antd 2.x? |
role="menu" | ||
style="height:100%" | ||
tabindex="0" | ||
> | ||
<li | ||
class="ant-menu-submenu-inline ant-menu-submenu-open ant-menu-submenu-selected ant-menu-submenu" | ||
class="ant-menu-submenu ant-menu-submenu-inline ant-menu-light ant-menu-submenu-open ant-menu-submenu-selected" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ant-menu-light 加到弹出层上就够了吧。
涉及到 rc-trigger 的组件我来统一升下好了。 |
Close, trace: #8150 |
Close: #2837
Close: #8089