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

Slot to change the default icon for the NTimePicker #2228

Closed
DannyFeliz opened this issue Jan 20, 2022 · 0 comments · Fixed by #2231
Closed

Slot to change the default icon for the NTimePicker #2228

DannyFeliz opened this issue Jan 20, 2022 · 0 comments · Fixed by #2231
Labels
feature request New feature or request pr welcome

Comments

@DannyFeliz
Copy link
Contributor

DannyFeliz commented Jan 20, 2022

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

My team needs a custom icon for the time picker, and currently, there's no slot available to replace the default one.

Expected API (期望的 API)

<n-time-picker>
  <template #icon>
    <n-icon>
      <clock-icon />
    </n-icon>
  </template>
</n-time-picker>
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 pr welcome
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants