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

Pass the CSS class name to the child component, like "<Components> -style" #1500

Closed
xby020 opened this issue Nov 2, 2021 · 0 comments · Fixed by #1503
Closed

Pass the CSS class name to the child component, like "<Components> -style" #1500

xby020 opened this issue Nov 2, 2021 · 0 comments · Fixed by #1503
Labels
feature request New feature or request

Comments

@xby020
Copy link

xby020 commented Nov 2, 2021

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

You can use global CSS variables like WindICSS to child component, reducing the workload of child components custom style.

Expected API (期望的 API)

 <n-tabs type="bar" pane-style="padding-top:0" size="medium"> ...</n-tabs>

would be like:

 <n-tabs type="bar" pane-class="pt-0" size="medium"> ...</n-tabs>
@github-actions github-actions bot added the feature request New feature or request label Nov 2, 2021
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