react-component / react-component/tree

右键菜单功能需要再次封装

Open
#19 0 comments 0 reactions 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.