primevue
Version:
PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBloc
41 lines (38 loc) • 1.12 kB
JavaScript
import BaseStyle from 'primevue/base/style';
var classes = {
root: function root(_ref) {
var props = _ref.props;
return ['p-image p-component', {
'p-image-preview-container': props.preview
}];
},
image: function image(_ref2) {
var props = _ref2.props;
return props.image;
},
button: 'p-image-preview-indicator',
icon: 'p-image-preview-icon',
mask: 'p-image-mask p-component-overlay p-component-overlay-enter',
toolbar: 'p-image-toolbar',
rotateRightButton: 'p-image-action p-link',
rotateLeftButton: 'p-image-action p-link',
zoomOutButton: function zoomOutButton(_ref3) {
var instance = _ref3.instance;
return ['p-image-action p-link', {
'p-disabled': instance.isZoomOutDisabled
}];
},
zoomInButton: function zoomInButton(_ref4) {
var instance = _ref4.instance;
return ['p-image-action p-link', {
'p-disabled': instance.isZoomInDisabled
}];
},
closeButton: 'p-image-action p-link',
preview: 'p-image-preview'
};
var ImageStyle = BaseStyle.extend({
name: 'image',
classes: classes
});
export { ImageStyle as default };