-
Notifications
You must be signed in to change notification settings - Fork 4k
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
feat(module:tree-select): support customized icon #3395
Conversation
Deploy preview for ng-zorro-master ready! Built with commit d95c32f |
Codecov Report
@@ Coverage Diff @@
## master #3395 +/- ##
==========================================
- Coverage 96.66% 95.48% -1.19%
==========================================
Files 609 609
Lines 13187 13189 +2
Branches 1803 1803
==========================================
- Hits 12747 12593 -154
- Misses 199 215 +16
- Partials 241 381 +140
Continue to review full report at Codecov.
|
components/tree/nz-tree.component.ts
Outdated
@@ -83,6 +83,8 @@ export class NzTreeComponent extends NzTreeBase implements OnInit, OnDestroy, Co | |||
@Input() @InputBoolean() nzCheckStrictly = false; | |||
@Input() @InputBoolean() nzBlockNode = false; | |||
|
|||
@Input() nzTreeSelectTemplate: TemplateRef<void>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Input() nzTreeSelectTemplate: TemplateRef<void>; | |
@Input() nzTreeSelectTemplate: TemplateRef<{ $implicit: NzTreeNode }>; |
还有其他几个漏掉的地方,应该一起补上
fix: change tree template type
1537e9c
to
09225ca
Compare
https://stackblitz.com/edit/contentchild-input-sametime 测了下,同时存在会优先取 |
* feat(module:tree-select): support customized icon * feat: support nzTreeTemplate to customize icon fix: change tree template type * feat: support tree template as @input and @ContentChild
* feat(module:tree-select): support customized icon * feat: support nzTreeTemplate to customize icon fix: change tree template type * feat: support tree template as @input and @ContentChild
Close #3330
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
tree-select 初始状态下无法获取
treeRef
,所以在 tree 里面加了nzTreeSelectTemplate
来传递 template