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

style(Avatar): using css token #1076

Merged
merged 1 commit into from
Nov 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions src/avatar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ isComponent: true
}
```

### 主题定制
CSS 变量名|说明
--|--
--td-avatar-bg-color | 头像背景颜色;
--td-avatar-content-color | 头像内容(文字、图标)颜色;
--td-avatar-group-border-color | 组合头像边框颜色;

## 代码演示

### 基础头像
Expand Down Expand Up @@ -60,10 +53,12 @@ custom-style `v0.25.0` | String | - | 自定义组件样式 | N
external-classes | Array | - | 组件类名,用于设置组件外层元素类名。`['t-class', 't-class-image', 't-class-icon', 't-class-alt', 't-class-content']` | N
hide-on-load-failed | Boolean | false | 加载失败时隐藏图片 | N
icon | String / Slot | - | 图标 | N
icon-props | Object | {} | 图标属性,透传至 icon | N
image | String | - | 图片地址 | N
image-props | Object | - | 【开发中】透传至 Image 组件 | N
image-props | Object | - | 透传至 Image 组件 | N
shape | String | circle | 形状。可选项:circle/round。TS 类型:`ShapeEnum ` `type ShapeEnum = 'circle' \| 'round'`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/avatar/type.ts) | N
size | String | - | 尺寸,示例值:small/medium/large/24px/38px 等,默认为 large | N
bordered | Boolean | false | 是否显示外边框 | N

### Avatar Events

Expand Down
Loading