2023-10-02 10:46:09 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
|
|
|
const classes = {
|
|
|
|
root: ({ props }) => [
|
|
|
|
'p-image p-component',
|
|
|
|
{
|
|
|
|
'p-image-preview-container': props.preview
|
|
|
|
}
|
|
|
|
],
|
|
|
|
image: ({ props }) => props.image,
|
|
|
|
button: 'p-image-preview-indicator',
|
|
|
|
icon: 'p-image-preview-icon',
|
|
|
|
mask: 'p-image-mask p-component-overlay p-component-overlay-enter',
|
2023-10-05 07:08:28 +00:00
|
|
|
toolbar: 'p-image-toolbar',
|
2023-10-02 10:46:09 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
],
|
|
|
|
closeButton: 'p-image-action p-link',
|
|
|
|
preview: 'p-image-preview'
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'image',
|
|
|
|
classes
|
|
|
|
});
|