diff --git a/components/avatar/index.en-US.md b/components/avatar/index.en-US.md index d4618f4660..d9315c23c1 100644 --- a/components/avatar/index.en-US.md +++ b/components/avatar/index.en-US.md @@ -20,6 +20,7 @@ Avatars can be used to represent people or objects. It supports images, `Icon`s, | size | The size of the avatar | number \| `large` \| `small` \| `default` \| { xs: number, sm: number, ...} | `default` | 4.7.0 | | src | The address of the image for an image avatar or image element | string \| ReactNode | - | ReactNode: 4.8.0 | | srcSet | A list of sources to use for different screen resolutions | string | - | | +| draggable | Whether the picture is allowed to be dragged | boolean \| `'true'` \| `'false'` | - | | | onError | Handler when img load error, return false to prevent default fallback behavior | () => boolean | - | | > Tip: You can set `icon` or `children` as the fallback for image load error, with the priority of `icon` > `children` diff --git a/components/avatar/index.zh-CN.md b/components/avatar/index.zh-CN.md index 7ec6ec8cf2..f94ffae892 100644 --- a/components/avatar/index.zh-CN.md +++ b/components/avatar/index.zh-CN.md @@ -25,6 +25,7 @@ cover: https://gw.alipayobjects.com/zos/antfincdn/aBcnbw68hP/Avatar.svg | size | 设置头像的大小 | number \| `large` \| `small` \| `default` \| { xs: number, sm: number, ...} | `default` | 4.7.0 | | src | 图片类头像的资源地址或者图片元素 | string \| ReactNode | - | ReactNode: 4.8.0 | | srcSet | 设置图片类头像响应式资源地址 | string | - | | +| draggable | 图片是否允许拖动 | boolean \| `'true'` \| `'false'` | - | | | onError | 图片加载失败的事件,返回 false 会关闭组件默认的 fallback 行为 | () => boolean | - | | > Tip:你可以设置 `icon` 或 `children` 作为图片加载失败的默认 fallback 行为,优先级为 `icon` > `children`