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

[Badge] Add the offset prop #4149

Closed
DannyFeliz opened this issue Dec 6, 2022 · 1 comment
Closed

[Badge] Add the offset prop #4149

DannyFeliz opened this issue Dec 6, 2022 · 1 comment
Labels
feature request New feature or request

Comments

@DannyFeliz
Copy link
Contributor

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

It would allow changing the position of the badge based on two coordinates [left, top]

Expected API (期望的 API)

<n-badge :offset="[10, 10]" :value="value">
  <n-avatar />
</n-badge>

The ant.design team has this feature https://ant.design/components/badge#components-badge-demo-offset

@DannyFeliz
Copy link
Contributor Author

Done in #4158

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

Successfully merging a pull request may close this issue.

1 participant