-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
inherit props #135
Merged
Merged
inherit props #135
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
2b4b08e
inherit props
jljsj33 573c1d1
update
jljsj33 47b0b64
update
jljsj33 ae9fd6c
update menu props mixin
jljsj33 3559f83
update
jljsj33 23b4bc3
update
jljsj33 7def68f
extract inherit props to util
jljsj33 a925c9c
fix lint
jljsj33 5e68def
item props store
jljsj33 28cb9c8
item props activeKey
jljsj33 2b5c70a
fix
jljsj33 b746abc
update menuInheritProps to menuAllProps
jljsj33 dd8ae62
all props remove mouser event
jljsj33 95a42e1
rebase master, fix inlineIndent propsTypes oneOfType is Array
jljsj33 537a9d6
add item onClick, related https://github.com/ant-design/ant-design/is…
jljsj33 0e2b180
Add test case
afc163 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`MenuItem rest props can render all props to sub component 1`] = ` | ||
<ul | ||
aria-activedescendant="" | ||
class="rc-menu rc-menu-root rc-menu-inline" | ||
role="menu" | ||
tabindex="0" | ||
> | ||
<li | ||
aria-selected="false" | ||
class="rc-menu-item className rc-menu-item-active" | ||
data-whatever="whatever" | ||
role="menuitem" | ||
style="font-size: 20px; padding-left: 24px;" | ||
title="title" | ||
> | ||
1 | ||
</li> | ||
<li | ||
class="rc-menu-submenu rc-menu-submenu-inline className" | ||
data-whatever="whatever" | ||
style="font-size: 20px;" | ||
> | ||
<div | ||
aria-expanded="false" | ||
aria-haspopup="true" | ||
aria-owns="item_1$Menu" | ||
class="rc-menu-submenu-title" | ||
style="padding-left: 24px;" | ||
title="title" | ||
> | ||
title | ||
<i | ||
class="rc-menu-submenu-arrow" | ||
/> | ||
</div> | ||
<div /> | ||
</li> | ||
<li | ||
class="className rc-menu-item-group" | ||
data-whatever="whatever" | ||
style="font-size: 20px;" | ||
> | ||
<div | ||
class="rc-menu-item-group-title" | ||
title="title" | ||
> | ||
title | ||
</div> | ||
<ul | ||
class="rc-menu-item-group-list" | ||
> | ||
<li | ||
aria-selected="false" | ||
class="rc-menu-item className" | ||
data-whatever="whatever" | ||
role="menuitem" | ||
style="font-size: 20px; padding-left: 24px;" | ||
title="title" | ||
> | ||
4 | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
`; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
这样 MenuItem 上的 onClick、onMouseEnter、onMouseLeave 就没了,这几个可以有的。
MenuItemGroup 和 SubMenu 同理。
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.
不对啊,,,这些事件不是在内部重写了吗???那还带上干啥???
有 { ...mouseEvent } 啊...
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.
好像只有 group 上有用,,加着吧。。。