Skip to content
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

Closed
wants to merge 2 commits into from
Closed

deps: upgrade rc-menu, and close: #2837 #8058

wants to merge 2 commits into from

Conversation

benjycui
Copy link
Contributor

@benjycui benjycui commented Oct 30, 2017

Close: #2837

Close: #8089


class SubMenu extends React.Component<any, any> {
static contextTypes = {
antdMenuTheme: PropTypes.string,
Copy link
Contributor Author

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 |
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

close: #2837

@afc163
Copy link
Member

afc163 commented Nov 3, 2017

CI broken.

@yesmeck
Copy link
Member

yesmeck commented Nov 3, 2017

现在测试需要 mock rc-trigger(因为 enzyme 不支持 createPortal),但是 dist 的文件没办法 mock。需要考虑下是不是不针对 dist 文件跑测试了,还是怎么搞下。

@afc163
Copy link
Member

afc163 commented Nov 4, 2017

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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ant-menu-light 加到弹出层上就够了吧。

@yesmeck
Copy link
Member

yesmeck commented Nov 8, 2017

涉及到 rc-trigger 的组件我来统一升下好了。

@benjycui
Copy link
Contributor Author

Close, trace: #8150

@benjycui benjycui closed this Nov 10, 2017
@benjycui benjycui deleted the deps-menu branch November 10, 2017 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants