-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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, tree-select): support customize icons #2933
feat(module:tree, tree-select): support customize icons #2933
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2933 +/- ##
==========================================
+ Coverage 97.38% 97.38% +<.01%
==========================================
Files 559 559
Lines 11634 11639 +5
Branches 835 835
==========================================
+ Hits 11330 11335 +5
Misses 193 193
Partials 111 111
Continue to review full report at Codecov.
|
Deploy preview for ng-zorro-master ready! Built with commit 076400e |
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.
consider my comment and rebase master pls
抽时间考虑一下string支持问题,如果支持要么取消旋转class,要么对用户说明旋转属于设计问题,之后rebase一下master |
@simplejason 移除了 string 的支持,新增了 show line 时也支持自定义图标。 |
@hsuanxyz @simplejason 没其他问题的话,麻烦 merge 一下吧,不然隔段时间就要 rebase |
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.
除了提的几个小问题,其他没什么,微调一下可以直接合到下个更新
* feat(module:tree and tree-select): customized icon * feat(module:tree and tree-select): add template context * feat(module:tree and tree-select): fix lint * feat(module:tree and tree-select): fix type * feat(module:tree and tree-select): support customize icons with show line * feat(module:tree and tree-select): fix test * feat(module:tree and tree-select): update doc * feat(module:tree and tree-select): fix quotation * feat(module:tree and tree-select): fix testing * feat(module:tree and tree-select): modify dome variable
[type]="node.isExpanded ? 'folder-open' : 'folder'" | ||
class="ant-tree-switcher-line-icon" | ||
></i> | ||
<i *ngIf="node.origin.isLeaf" nz-icon type="file" class="ant-tree-switcher-line-icon"></i> |
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.
@danranVm @simplejason demo 要改一下,nzExpandedIcon
就是 非叶子节点才有的。。会造成误解
* feat(module:tree and tree-select): customized icon * feat(module:tree and tree-select): add template context * feat(module:tree and tree-select): fix lint * feat(module:tree and tree-select): fix type * feat(module:tree and tree-select): support customize icons with show line * feat(module:tree and tree-select): fix test * feat(module:tree and tree-select): update doc * feat(module:tree and tree-select): fix quotation * feat(module:tree and tree-select): fix testing * feat(module:tree and tree-select): modify dome variable
* feat(module:tree and tree-select): customized icon * feat(module:tree and tree-select): add template context * feat(module:tree and tree-select): fix lint * feat(module:tree and tree-select): fix type * feat(module:tree and tree-select): support customize icons with show line * feat(module:tree and tree-select): fix test * feat(module:tree and tree-select): update doc * feat(module:tree and tree-select): fix quotation * feat(module:tree and tree-select): fix testing * feat(module:tree and tree-select): modify dome variable
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: #2890 #2503
What is the new behavior?
Does this PR introduce a breaking change?
Other information