Ng-zorro-antd: Avatar 组件 在 List 中使用, nzText 属性样式生效的和单独使用不一致

Created on 18 Aug 2018  ·  6Comments  ·  Source: NG-ZORRO/ng-zorro-antd

Version

1.3.0

Environment

MacOS, Chrome 68.0.3440.106

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-start-edvwog?file=src%2Fapp%2Fapp.component.html

Steps to reproduce

打开 https://stackblitz.com/edit/ng-zorro-antd-start-edvwog?file=src%2Fapp%2Fapp.component.html, 单独使用 Avatar 和在列表中使用表现不一致

What is expected?

avatar 单独使用或嵌入其他组件自身表现一致

What is actually happening?

表现一致

Other?

💪 Enhancement

Most helpful comment

close via #2536

All 6 comments

@xcorpio 你说的表现一致是指的在用 nzText 时文字能自动缩小吗?

@wendzhue 是的 stackblitz 如图 :
image

不过我现在本地好了.
更新了stackblitz中的代码,如果初始时 设置 nzLoading

<nz-list ... [nzLoading]="loading">

数据异步加载进来, avatar 表现就正常了

@0maxxam0 funded this issue with $10. See it on IssueHunt

close via #2536

@hsuanxyz has submitted a pull request. See it on IssueHunt

@vthinkxie has rewarded $9.00 to @hsuanxyz. See it on IssueHunt

  • :moneybag: Total deposit: $10.00
  • :tada: Repository reward(0%): $0.00
  • :wrench: Service fee(10%): $1.00
Was this page helpful?
0 / 5 - 0 ratings

Related issues

JCqiu picture JCqiu  ·  3Comments

bambooj picture bambooj  ·  4Comments

DoesntWong picture DoesntWong  ·  3Comments

cipchk picture cipchk  ·  4Comments

linjianhong picture linjianhong  ·  3Comments