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

Avatar 初始样式错误 #107

Closed
LeeJim opened this issue Jan 12, 2022 · 2 comments
Closed

Avatar 初始样式错误 #107

LeeJim opened this issue Jan 12, 2022 · 2 comments

Comments

@LeeJim
Copy link
Collaborator

LeeJim commented Jan 12, 2022

对应的组件

Avatar

相关环境

基础库版本:最新

运行环境:开发者工具

出现的问题

按官网的示例使用:

<t-avatar icon="user" t-class-icon="default-user" />

是没有任何样式的。需要手动实现 default-user 相关的样式:

.default-user {
    background-color: #e7e7e7;
    color: #c5c5c5;
    font-size: 60rpx;
  }

我的预期

应该是有默认的样式,而不是通过 externClass 来实现这默认样式

附加信息

相关链接:https://txc.qq.com/products/293854/post/164195607783926055/

@LeeJim
Copy link
Collaborator Author

LeeJim commented Jan 12, 2022

@Perisiguiendo 麻烦跟进一下

@Perisiguiendo
Copy link
Contributor

Perisiguiendo commented Jan 19, 2022

本次修复

  1. avatar 组件增加默认样式
  2. avatar 展示页更新
  3. avatar-group 新增两个外部类,用于控制内置的默认折叠 avatar 样式(由于默认折叠元素是文字类型,因此新增 t-class-image和t-class-alt)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants