mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
e3ee4e87aa
* feat: 🎉 Image component
* fix color
* fix style naming and sort api doc order
* remove onPreviewClose doc
* use animation-duration var
* use box and modal-mask mixins
* use box and modal-mask mixins
* improve style
* improve fallback demo src
* add cover
* improve demo
* update demo snapshots
* upgrade rc-image, naming Random -> Reload
* extract modal mask common style, and improve demo
* update snapshots
* fix less var conflict
* upgrade rc-image, adjust maxSize with dark.min.css, improve placeholder demo desc
952 B
952 B
category | type | title | cols | cover |
---|---|---|---|---|
Components | Data Display | Image | 2 | https://gw.alipayobjects.com/zos/bmw-prod/a77ae075-27de-49c9-9f44-a505f2be07fa.svg |
Previewable image.
When To Use
- When you need to display pictures.
- Display when loading a large image or fault tolerant handling when loading fail.
API
Property | Description | Type | Default | Version |
---|---|---|---|---|
alt | Image description | string | - | 4.6.0 |
fallback | Load failure fault-tolerant src | string | - | 4.6.0 |
height | Image height | string | number | - | 4.6.0 |
placeholder | Load placeholder, use default placeholder when set true |
ReactNode | - | 4.6.0 |
preview | Whether to enable the preview | boolean | true | 4.6.0 |
src | Image path | string | - | 4.6.0 |
width | Image width | string | number | - | 4.6.0 |
Other attributes <img>