2022-09-06 12:03:37 +00:00
|
|
|
import { VNode } from 'vue';
|
|
|
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
|
|
|
|
|
|
export interface ImageProps {
|
|
|
|
/**
|
|
|
|
* Controls the preview functionality.
|
|
|
|
*/
|
|
|
|
preview?: boolean | undefined;
|
|
|
|
/**
|
|
|
|
* Inline style of the image element.
|
|
|
|
*/
|
|
|
|
imageStyle?: any;
|
|
|
|
/**
|
|
|
|
* Style class of the image element.
|
|
|
|
*/
|
|
|
|
imageClass?: any;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ImageSlots {
|
|
|
|
/**
|
|
|
|
* Custom indicator template.
|
|
|
|
*/
|
|
|
|
indicator: () => VNode[];
|
|
|
|
}
|
|
|
|
|
2022-09-14 11:26:01 +00:00
|
|
|
export declare type ImageEmits = {};
|
2022-09-06 12:03:37 +00:00
|
|
|
|
|
|
|
declare class Image extends ClassComponent<ImageProps, ImageSlots, ImageEmits> {
|
|
|
|
/**
|
|
|
|
* Triggered when the preview overlay is shown.
|
|
|
|
*
|
|
|
|
* @memberof Image
|
|
|
|
*/
|
|
|
|
show: () => void;
|
|
|
|
/**
|
|
|
|
* Triggered when the preview overlay is hidden.
|
|
|
|
*
|
|
|
|
* @memberof Image
|
|
|
|
*/
|
|
|
|
hide: () => void;
|
|
|
|
/**
|
|
|
|
* Triggered when an error occurs while loading an image file.
|
2022-09-14 11:26:01 +00:00
|
|
|
*
|
2022-09-06 12:03:37 +00:00
|
|
|
* @memberof Image
|
|
|
|
*/
|
|
|
|
error: () => void;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare module '@vue/runtime-core' {
|
|
|
|
interface GlobalComponents {
|
2022-09-14 11:26:01 +00:00
|
|
|
Image: GlobalComponentConstructor<Image>;
|
2022-09-06 12:03:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Displays an image with preview and tranformation options. For multiple image, see Galleria.
|
|
|
|
*
|
|
|
|
* Demos:
|
|
|
|
*
|
2022-09-14 11:26:01 +00:00
|
|
|
* - [Image](https://www.primefaces.org/primevue/image)
|
2022-09-06 12:03:37 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
export default Image;
|