Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望Dropdown可以增加slots插槽 #4663

Closed
huyuan9479 opened this issue Mar 30, 2023 · 5 comments
Closed

希望Dropdown可以增加slots插槽 #4663

huyuan9479 opened this issue Mar 30, 2023 · 5 comments
Assignees
Labels
feature request New feature or request

Comments

@huyuan9479
Copy link

This function solves the problem (这个功能解决的问题)

由于Dropdown限制的不太灵活,希望Dropdown可以增加slots插槽,自定义按钮

Expected API (期望的 API)

slots

@github-actions github-actions bot added the feature request New feature or request label Mar 30, 2023
@XieZongChen XieZongChen self-assigned this Mar 31, 2023
@XieZongChen
Copy link
Collaborator

现在的按钮就是自定义的,default slots

@CHYYHC123
Copy link

下拉菜单里面展示的内容,除了使用提供的函数方法渲染,可以直接写类似div标签进行渲染吗

@fudiwei
Copy link

fudiwei commented Aug 21, 2023

毛遂自荐 @skit/x.naive-ui,基于 Naive-UI 二次封装了 Dropdown 组件,支持插槽式的写法。

@shiny
Copy link

shiny commented Sep 18, 2023

现在的写法没有 slot 写法直观、容易维护

@jahnli
Copy link
Collaborator

jahnli commented Mar 12, 2024

This issue does not have any recent activity. If you are still experiencing similar problems, open a new error, including a minimal copy of the problem

@jahnli jahnli closed this as completed Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants