Skip to main content

Image 图片

例子#

基本用法#

export function App() {    const src = assetsPath('Clock#6.png');    return (        <Window>            <DemoLayout width="1" height="1">                <Image src={src} />            </DemoLayout>        </Window>    );}

这个例子演示了如何显示一张图片:

picture basic

API#

export interface IImageComponentProps extends IComponentProps {    /**     * 图片文件的绝对路径 或 AveImage     */    src: string | AveImage;}