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

[0.7.0-beta.1] tag: nzColor 应该允空字符串 #1176

Closed
cipchk opened this issue Mar 19, 2018 · 3 comments
Closed

[0.7.0-beta.1] tag: nzColor 应该允空字符串 #1176

cipchk opened this issue Mar 19, 2018 · 3 comments

Comments

@cipchk
Copy link
Member

cipchk commented Mar 19, 2018

重现

<nz-tag>Tag 1</nz-tag>
<nz-tag [nzColor]="''">Tag 1</nz-tag>

https://stackblitz.com/edit/angular-kn9rqm?file=app/app.component.ts

理由

一般 tag 受控于数据的 color 值,在模板必须 nzColor 的前提下,无法呈现默认颜色 。

@ng-zorro-bot
Copy link
Collaborator

Hello @cipchk, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you!

@ng-zorro-bot
Copy link
Collaborator

It will be better to write your issue/comment in English, so more people can understand you.
And this means that more people can help you or benefit from your issue/comment.

@lock
Copy link

lock bot commented Apr 11, 2019

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants