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

模态框添加自定义 class 名称的疑问 #744

Closed
002269 opened this issue Aug 1, 2021 · 0 comments · Fixed by #747
Closed

模态框添加自定义 class 名称的疑问 #744

002269 opened this issue Aug 1, 2021 · 0 comments · Fixed by #747
Assignees
Labels
feature request New feature or request

Comments

@002269
Copy link

002269 commented Aug 1, 2021

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

模态框添加自定义 class 名称的疑问

Expected API (期望的 API)

[n-modal class="modal-form" preset="card"]
[n-modal class="modal-confirm" preset="card"]
当设置了 preset="card" 后添加自定义的 class 名称,不起作用,加不上,最终渲染出来的只有 [div class="n-modal n-card"],preset="dialog" 没有测试

[n-modal class="custom-modal"]
[n-card class="custom-card" /]
[/n-modal]
这样设置后,class 名称都能加上,最终为 [div class="n-modal n-card custom-modal custom-card"]

@github-actions github-actions bot added the feature request New feature or request label Aug 1, 2021
@Talljack Talljack self-assigned this Aug 1, 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.

2 participants