@nutui/nutui-react-taro
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
32 lines (31 loc) • 758 B
TypeScript
import { FunctionComponent, ReactNode, CSSProperties } from 'react';
import { ImageProps as TImageProps } from '@tarojs/components';
export interface ImageProps extends Omit<TImageProps, 'style'> {
style?: CSSProperties;
/**
* 宽度,默认单位px
* @default -
*/
width: string | number
/**
* 高度,默认单位px
* @default -
*/
height: string | number
/**
* 圆角大小
* @default -
*/
radius: string | number
/**
* 是否展示图片加载失败
* @default true
*/
error: boolean | ReactNode
/**
* 是否展示加载中图片
* @default true
*/
loading: boolean | ReactNode
}
export declare const Image: FunctionComponent<Partial<ImageProps>>;