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

[Feature request] NDropdown support template option #520

Closed
cnguu opened this issue Jul 15, 2021 · 2 comments
Closed

[Feature request] NDropdown support template option #520

cnguu opened this issue Jul 15, 2021 · 2 comments
Labels
feature request New feature or request

Comments

@cnguu
Copy link

cnguu commented Jul 15, 2021

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

Custom rendering option

Expected API (期望的 API)

<template>
  <NDropdown>
    <template #trigger>
      <NButton>hover me</NButton>
    </template>

    <NDropdownOption>item 1</NDropdownOption>

    <RouterLink to="path">
      <NDropdownOption>item 2</NDropdownOption>
    </RouterLink>
  </NDropdown>
</template>
@github-actions github-actions bot added the feature request New feature or request label Jul 15, 2021
@07akioni
Copy link
Collaborator

We will never provide children API for dropdown, select or menu due to its horrible maintainability.

@fudiwei
Copy link

fudiwei commented Aug 21, 2023

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

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

3 participants