mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-13 11:34:02 +08:00
Image: add initialIndex prop (#22346)
This commit is contained in:
@@ -147,6 +147,7 @@ Besides the native features of img, support lazy load, custom placeholder and lo
|
||||
| scroll-container | The container to add scroll listener when using lazy load | string / HTMLElement | — | The nearest parent container whose overflow property is auto or scroll |
|
||||
| preview-src-list | allow big image preview | Array | — | - |
|
||||
| z-index | set image preview z-index | Number | — | 2000 |
|
||||
| initial-index | set image preview array index | Number | — | - |
|
||||
|
||||
### Events
|
||||
| Event Name | Description | Parameters |
|
||||
|
||||
@@ -149,6 +149,7 @@ Además de las características nativas de img, soporte de carga perezosa, marca
|
||||
| scroll-container | El contenedor para añadir el scroll listener cuando se utiliza lazy load | string / HTMLElement | — | El contenedor padre más cercano cuya propiedad de desbordamiento es auto o scroll |
|
||||
| preview-src-list | permitir una vista previa grande de la imagen | Array | — | - |
|
||||
| z-index | establecer el z-index de la vista previa de la imagen | Number | — | 2000 |
|
||||
| initial-index | set image preview array index | Number | — | - |
|
||||
|
||||
### Eventos
|
||||
| Nombre del evento | Descripción | Parámetros |
|
||||
|
||||
@@ -148,6 +148,7 @@ En plus des propriétés natives de img, ce composant supporte le lazy loading,
|
||||
| scroll-container | Le conteneur auquel ajouter le listener du scroll en mode lazy loading. | string / HTMLElement | — | Le conteneur parent le plus proche avec la propriété overflow à auto ou scroll. |
|
||||
| preview-src-list | allow big image preview | Array | — | - |
|
||||
| z-index | set image preview z-index | Number | — | 2000 |
|
||||
| initial-index | set image preview array index | Number | — | - |
|
||||
|
||||
### Évènements
|
||||
| Nom | Description | Paramètres |
|
||||
|
||||
@@ -147,6 +147,7 @@
|
||||
| scroll-container | 开启懒加载后,监听 scroll 事件的容器 | string / HTMLElement | — | 最近一个 overflow 值为 auto 或 scroll 的父元素 |
|
||||
| preview-src-list | 开启图片预览功能 | Array | — | - |
|
||||
| z-index | 设置图片预览的 z-index | Number | — | 2000 |
|
||||
| initial-index | 图片预览初始图片index | Number | — | - |
|
||||
|
||||
### Events
|
||||
| 事件名称 | 说明 | 回调参数 |
|
||||
|
||||
Reference in New Issue
Block a user