/
githubmirror
/
element
Обзор
Документация
Войти
/
githubmirror
/
element
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
types/image.d.ts
43 строки
981 B
inkroom
Image: add initialIndex prop (#22346)
09 фев 2023, 15:50
Не верифицирован
09 фев 2023, 15:50
e7d6893
Код
Авторство
О чём код?
import { VNode } from 'vue' import { ElementUIComponent } from './component' export type ObjectFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down' export interface ImageSlots { /** Placeholder content when image hasn't loaded yet */ placeholder: VNode[] /** Error content when error occurs to image load */ error: VNode[] [key: string]: VNode[] } /** Image Component */ export declare class ElImage extends ElementUIComponent { /** Image source */ src: string /** Indicate how the image should be resized to fit its container, same as native 'object-fit' */ fit: ObjectFit /** Whether to use lazy load */ lazy: boolean /** Scroll container that to add scroll listener when using lazy load */ scrollContainer: string | HTMLElement /** Native 'alt' attribute */ alt: string /** Native 'referrerPolicy' attribute */ referrerPolicy: string $slots: ImageSlots previewSrcList: string[] zIndex: number initialIndex: number }