mirror of
https://github.com/element-plus/element-plus.git
synced 2025-03-01 15:35:51 +08:00
docs: image-viewer component support named slot viewer (#3357)
This commit is contained in:
parent
72774e95d1
commit
db28c4112f
@ -278,3 +278,9 @@ Besides the native features of img, support lazy load, custom placeholder and lo
|
||||
| ---------- | ---------------------------------------------------------------------------------------------- | -------------------------------------- |
|
||||
| close | Emitted when clicking on `X` button or when `hide-on-click-modal` enabled clicking on backdrop | None |
|
||||
| switch | When switching images | `(val: number)` switching target index |
|
||||
|
||||
### ImageViewer Slots
|
||||
|
||||
| Name | Description |
|
||||
| ------ | ---------------------------- |
|
||||
| viewer | Contents of the preview area |
|
||||
|
@ -278,3 +278,9 @@ Además de las características nativas de img, soporte de carga perezosa, marca
|
||||
| ---------- | ---------------------------------------------------------------------------------------------- | -------------------------------------- |
|
||||
| close | Emitted when clicking on `X` button or when `hide-on-click-modal` enabled clicking on backdrop | None |
|
||||
| switch | When switching images | `(val: number)` switching target index |
|
||||
|
||||
### ImageViewer Slots
|
||||
|
||||
| Nombre del slot | Descripción |
|
||||
| --------------- | ---------------------------------- |
|
||||
| viewer | Contenido del área de vista previa |
|
||||
|
@ -278,3 +278,9 @@ En plus des propriétés natives de img, ce composant supporte le lazy loading,
|
||||
| ---------- | ---------------------------------------------------------------------------------------------- | -------------------------------------- |
|
||||
| close | Emitted when clicking on `X` button or when `hide-on-click-modal` enabled clicking on backdrop | None |
|
||||
| switch | When switching images | `(val: number)` switching target index |
|
||||
|
||||
### ImageViewer Slots
|
||||
|
||||
| Nom | Description |
|
||||
| ------ | --------------------------- |
|
||||
| viewer | Contenu de la zone d'aperçu |
|
||||
|
@ -278,3 +278,9 @@ img のネイティブ機能の他に、遅延ロード、カスタムプレー
|
||||
| ---------- | ---------------------------------------------------------------------------------------------- | -------------------------------------- |
|
||||
| close | Emitted when clicking on `X` button or when `hide-on-click-modal` enabled clicking on backdrop | None |
|
||||
| switch | When switching images | `(val: number)` switching target index |
|
||||
|
||||
### ImageViewer スロット
|
||||
|
||||
| Slot Name | Description |
|
||||
| --------- | ---------------------- |
|
||||
| viewer | プレビューエリアの内容 |
|
||||
|
@ -278,3 +278,9 @@
|
||||
| -------- | ------------------------------------------------------------------ | ---------------------------- |
|
||||
| close | 当点击 X 按钮或者在 hide-on-click-modal 为 true 时点击遮罩层时触发 | 无 |
|
||||
| switch | 当图片切换时触发 | (val: number) 切换目标的下标 |
|
||||
|
||||
### ImageViewer Slots
|
||||
|
||||
| 名称 | 说明 |
|
||||
| ------ | -------------- |
|
||||
| viewer | 预览区域的内容 |
|
||||
|
Loading…
Reference in New Issue
Block a user