Saber2pr's Blog

右键菜单

item组件右键点击弹出菜单

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

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