mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 01:12:37 +00:00
Refactor #3965 - Update for Image
This commit is contained in:
parent
61cd94c2e5
commit
9abaad7612
2 changed files with 15 additions and 6 deletions
|
@ -71,7 +71,6 @@ const styles = `
|
|||
const classes = {
|
||||
root: ({ props }) => [
|
||||
'p-image p-component',
|
||||
props.class,
|
||||
{
|
||||
'p-image-preview-container': props.preview
|
||||
}
|
||||
|
@ -82,8 +81,18 @@ const classes = {
|
|||
mask: 'p-image-mask p-component-overlay p-component-overlay-enter',
|
||||
rotateRightButton: 'p-image-action p-link',
|
||||
rotateLeftButton: 'p-image-action p-link',
|
||||
zoomOutButton: ({ instance }) => ['p-image-action p-link', { 'p-disabled': instance.isZoomOutDisabled }],
|
||||
zoomInButton: ({ instance }) => ['p-image-action p-link', { 'p-disabled': instance.isZoomInDisabled }],
|
||||
zoomOutButton: ({ instance }) => [
|
||||
'p-image-action p-link',
|
||||
{
|
||||
'p-disabled': instance.isZoomOutDisabled
|
||||
}
|
||||
],
|
||||
zoomInButton: ({ instance }) => [
|
||||
'p-image-action p-link',
|
||||
{
|
||||
'p-disabled': instance.isZoomInDisabled
|
||||
}
|
||||
],
|
||||
closeButton: 'p-image-action p-link',
|
||||
preview: 'p-image-preview'
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue