Saber2pr's Blog

RightClickMenu

Item component right-click pop-up menu

const menu = <Menu>
  <Menu.Item onClick={() => onCollapseAll(node)}>
    {i18n.format('collapseAll')}
  </Menu.Item>
</Menu>

<Dropdown trigger={['contextMenu']} overlay={menu}>
  <Item />
</Dropdown>