Skip to content

Commit

Permalink
chore(avatar): update event description
Browse files Browse the repository at this point in the history
  • Loading branch information
NWYLZW committed May 16, 2024
1 parent 65e5b43 commit 18e5500
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/avatar/avatar.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ imageProps | Object | - | Typescript:`ImageProps`,[Image API Documents](./im
shape | String | circle | shape。options:circle/round。Typescript:`ShapeEnum ` `type ShapeEnum = 'circle' \| 'round'`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/avatar/type.ts) | N
size | String | - | size | N
onError | Function | | Typescript:`(context: { e: ImageEvent }) => void`<br/>trigger on image load failed | N
onClick | Function | | Typescript:`(context: { e: React.MouseEvent }) => void`<br/>click event | N
onHover | Function | | Typescript:`(context: { e: React.MouseEvent }) => void`<br/>hover event | N
onContextmenu | Function | | Typescript:`(context: { e: React.MouseEvent }) => void`<br/>right click event | N
onClick | Function | | Typescript:`(context: { e: React.MouseEvent }) => void`<br/>trigger on click | N
onHover | Function | | Typescript:`(context: { e: React.MouseEvent }) => void`<br/>trigger on hover | N
onContextmenu | Function | | Typescript:`(context: { e: React.MouseEvent }) => void`<br/>trigger on right click | N

### AvatarGroup Props

Expand Down
6 changes: 3 additions & 3 deletions src/avatar/avatar.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ imageProps | Object | - | 透传至 Image 组件。TS 类型:`ImageProps`,[I
shape | String | circle | 形状。可选项:circle/round。TS 类型:`ShapeEnum ` `type ShapeEnum = 'circle' \| 'round'`[详细类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/avatar/type.ts) | N
size | String | - | 尺寸,示例值:small/medium/large/24px/38px 等。优先级高于 AvatarGroup.size 。Avatar 单独存在时,默认值为 medium。如果父组件存在 AvatarGroup,默认值便由 AvatarGroup.size 决定 | N
onError | Function | | TS 类型:`(context: { e: ImageEvent }) => void`<br/>图片加载失败时触发 | N
onClick | Function | | TS 类型:`(context: { e: React.MouseEvent }) => void`<br/>点击事件 | N
onHover | Function | | TS 类型:`(context: { e: React.MouseEvent }) => void`<br/>鼠标悬浮事件 | N
onContextmenu | Function | | TS 类型:`(context: { e: React.MouseEvent }) => void`<br/>右键点击事件 | N
onClick | Function | | TS 类型:`(context: { e: React.MouseEvent }) => void`<br/>点击时触发 | N
onHover | Function | | TS 类型:`(context: { e: React.MouseEvent }) => void`<br/>鼠标移入时触发 | N
onContextmenu | Function | | TS 类型:`(context: { e: React.MouseEvent }) => void`<br/>右键点击时触发 | N

### AvatarGroup Props

Expand Down

0 comments on commit 18e5500

Please sign in to comment.