mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Convert to PrimeVue monorepo
This commit is contained in:
parent
970ba75b06
commit
61929eae75
4144 changed files with 59008 additions and 36177 deletions
98
packages/primevue/scripts/components/image.js
Normal file
98
packages/primevue/scripts/components/image.js
Normal file
|
@ -0,0 +1,98 @@
|
|||
const ImageProps = [
|
||||
{
|
||||
name: 'preview',
|
||||
type: 'boolean',
|
||||
default: 'false',
|
||||
description: 'Controls the preview functionality.'
|
||||
},
|
||||
{
|
||||
name: 'indicatorIcon',
|
||||
type: 'string',
|
||||
default: 'pi pi-eye',
|
||||
description: 'Custom indicator icon.'
|
||||
},
|
||||
{
|
||||
name: 'zoomInDisabled',
|
||||
type: 'boolean',
|
||||
default: 'false',
|
||||
description: 'Disable the zoom-in button'
|
||||
},
|
||||
{
|
||||
name: 'zoomOutDisabled',
|
||||
type: 'boolean',
|
||||
default: 'false',
|
||||
description: 'Disable the zoom-out button'
|
||||
},
|
||||
{
|
||||
name: 'pt',
|
||||
type: 'any',
|
||||
default: 'null',
|
||||
description: 'Used to pass attributes to DOM elements inside the component.'
|
||||
},
|
||||
{
|
||||
name: 'unstyled',
|
||||
type: 'boolean',
|
||||
default: 'false',
|
||||
description: 'When enabled, it removes component related styles in the core.'
|
||||
}
|
||||
];
|
||||
|
||||
const ImageEvents = [
|
||||
{
|
||||
name: 'show',
|
||||
description: 'Triggered when the preview overlay is shown.'
|
||||
},
|
||||
{
|
||||
name: 'hide',
|
||||
description: 'Triggered when the preview overlay is hidden.'
|
||||
},
|
||||
{
|
||||
name: 'error',
|
||||
description: 'Triggered when an error occurs while loading an image file.'
|
||||
}
|
||||
];
|
||||
|
||||
const ImageSlots = [
|
||||
{
|
||||
name: 'indicator',
|
||||
description: 'Custom content for the preview indicator.'
|
||||
},
|
||||
{
|
||||
name: 'refresh',
|
||||
description: 'Custom content for the component refresh.'
|
||||
},
|
||||
{
|
||||
name: 'undo',
|
||||
description: 'Custom content for the component undo.'
|
||||
},
|
||||
{
|
||||
name: 'zoomout',
|
||||
description: 'Custom content for the component zoomout.'
|
||||
},
|
||||
{
|
||||
name: 'zoomin',
|
||||
description: 'Custom content for the component zoomin.'
|
||||
},
|
||||
{
|
||||
name: 'close',
|
||||
description: 'Custom content for the component close.'
|
||||
},
|
||||
{
|
||||
name: 'image',
|
||||
description: 'Custom content for the component image.'
|
||||
},
|
||||
{
|
||||
name: 'preview',
|
||||
description: 'Custom content for the component preview.'
|
||||
}
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
image: {
|
||||
name: 'Image',
|
||||
description: 'Displays an image with preview and tranformation options.',
|
||||
props: ImageProps,
|
||||
events: ImageEvents,
|
||||
slots: ImageSlots
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue