eo-image
<eo-image>
Alias:
<basic.general-image>
通用图片构件。
Examples
Preview
Fallback
Properties
Name | Description | Type | Default | Required |
---|---|---|---|---|
imgList | 图片列表 | ImageConfig[] | ||
width | 图片宽度 | string | ||
height | 图片高度 | string | ||
onlyPreview | 纯预览模式 | boolean |
Events
Name | Description | Event Detail |
---|---|---|
visibleChange | 预览改变事件 | boolean - boolean |
Methods
Name | Description | Params | Returns |
---|---|---|---|
open | 打开预览框 | index: number | |
close | 关闭预览框 |
Type references
ImageConfig
Name | Type | Required | Description |
---|---|---|---|
src | string | ||
fallback | string | ||
placeholder | string | ||
alt | string | ||
width | number | string | ||
height | number | string | ||
preview | boolean | ||
style | React.CSSProperties |