react-component / react-component/tree
右键菜单功能需要再次封装
Open
@warmhug is already working on this.
Since Jul 5, 2016.
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 490
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 5
Description
现在用户做的有点多,用户应该只实现 action 部分。
http://react-component.github.io/tree/examples/contextmenu.html
<Tree contextMenu={
require('tree/lib/context-menu-plugin')([
{
name:'item1',
action(info) {
// tree node key
console.log(info.key)
}
}])
}>
或者实现个 ContextMenuTree
const ContextMenuTree = require('rc-tree/lib/ContextMenuTree');
<ContextMenuTree contextMenu={[{name,action}]}/>
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.