react-component / react-component/menu

inline Menu, up to two level menus, more submenus right popover

Open
#420 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
701
Forks
266
Avg merge
4d 11h
Merged PRs (30d)
3

Description

What problem does this feature solve?

垂直内嵌菜单,子菜单内嵌在菜单区域。如果有三级、四级、五级菜单,内嵌层级太深显示不了。

What does the proposed API look like?

建议加一个 api: inlineMaxLevel。在 mode="inline" 下,指定最多内嵌几层子菜单,更深的子菜单右侧弹窗显示。

现在不好的效果预览:

Snipaste_2021-08-05_11-24-07

期望的好的效果预览:

Snipaste_2021-08-05_11-14-15

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.

Research direction

Start by tracing the menu implementation for mode="inline" and the proposed inlineMaxLevel API. Compare the current and expected behavior shown in the issue images, then verify that menus up to the configured depth remain inline while deeper submenus appear in a right-side popover.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.