baidu / baidu/amis

dropdown-button 首级菜单支持任意组件

Open
#3,086 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

是否关联于某个问题吗:

dropdown-button 首级菜单支持任意组件

预期的解决方案:

能直接在dropdown-button组件上使用其他组件

任何附加信息:

如图,将该组件三个点的按钮替换成头像,或者其他组件,amis暂时还不支持
image

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 with the dropdown-button component and its current first-level menu configuration. Check how the three-dot trigger is defined and whether the existing component API or schema supports custom components. Done means the trigger can be replaced by an avatar or another component while retaining dropdown behavior, with coverage for the supported configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.