ant-design/components/avatar/demo/fallback.md
陈帅 f928baf52a
fix: Optimize the display of elements of the block type. (#25903)
* add flex style

* add new demo

* update snapshot

* Merge branch feature into fix-descriptions

* update snapshot

* update snapshot
2020-08-06 14:32:13 +08:00

452 B

order title debug
99
zh-CN en-US
图片不存在时 Fallback
true

zh-CN

图片不存在时,会回退到 src

en-US

图片不存在时,会回退到 src

import { Avatar } from 'antd';

ReactDOM.render(
  <>
    <Avatar shape="circle" src="http://abc.com/not-exist.jpg">
      A
    </Avatar>
    <Avatar shape="circle" src="http://abc.com/not-exist.jpg">
      ABC
    </Avatar>
  </>,
  mountNode,
);