Image 图片使用场景#用来快捷展示一张图片。示例#基本用法#inlinefunction Basic() { return ( <Group> <Image src="https://img.alicdn.com/tfs/TB1gjPyp9slXu8jSZFuXXXg7FXa-750-272.png" width="400px" /> </Group> ); }function Basic() { return ( <Group> <Image src="https://img.alicdn.com/tfs/TB1gjPyp9slXu8jSZFuXXXg7FXa-750-272.png" width="400px" /> </Group> );}图片尺寸#inlinefunction Size() { const sourceUrl = 'https://img.alicdn.com/tfs/TB1atWRDgHqK1RjSZFkXXX.WFXa-460-462.png'; return ( <Group> <Image width="100px" height="100px" src={sourceUrl} /> <Image width="150px" height="150px" src={sourceUrl} /> </Group> ); }function Size() { const sourceUrl = 'https://img.alicdn.com/tfs/TB1atWRDgHqK1RjSZFkXXX.WFXa-460-462.png'; return ( <Group> <Image width="100px" height="100px" src={sourceUrl} /> <Image width="150px" height="150px" src={sourceUrl} /> </Group> );}备选图片#inlinefunction Fallback() { return <Image src="notfound.png" fallbackSrc="https://via.placeholder.com/150" />; }function Fallback() { return <Image src="notfound.png" fallbackSrc="https://via.placeholder.com/150" />;}API#字段描述fallbackSrcstring备选图片地址fallbackReactElement<any, string | JSXElementConstructor<any>>备选渲染元素widthstring图片宽度heightstring图片高度classNamestringstyleCSSPropertiessrcstring图片地址onLoadany图片加载后的回调onErrorany图片加载出错的回调ignoreFallbackboolean是否忽略 fallback