diff --git a/api-generator/components/image.js b/api-generator/components/image.js new file mode 100644 index 000000000..80c588b4e --- /dev/null +++ b/api-generator/components/image.js @@ -0,0 +1,36 @@ +const ImageProps = [ + { + name: "preview", + type: "boolean", + default: "false", + description: "Controls the preview functionality." + } +]; + +const ImageEvents = [ + { + name: "show", + description: "Triggered when the preview overlay is shown." + }, + { + name: "hide", + description: "Triggered when the preview overlay is hidden." + } +]; + +const ImageSlots = [ + { + name: "indicator", + description: "Custom content for the preview indicator" + }- +]; + +module.exports = { + image: { + name: "Image", + description: "Displays an image with preview and tranformation options.", + props: ImageProps, + events: ImageEvents, + slots: ImageSlots + } +}; diff --git a/src/views/image/ImageDoc.vue b/src/views/image/ImageDoc.vue index d98c9e7c1..4e510e0d8 100644 --- a/src/views/image/ImageDoc.vue +++ b/src/views/image/ImageDoc.vue @@ -107,35 +107,35 @@ import Image from 'primevue/image';