mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-22 22:48:29 +08:00
365 B
365 B
zh-CN
图片不存在时,如果 src
本身是个 ReactElement,会尝试回退到 src
,否则尝试回退到 icon
,最后回退到显示 children
。
en-US
When the image does not exist, if src
is a ReactElement, it will try to fall back to src
, otherwise it will try to fall back to icon
, and finally fall back to displaying children
.