2023-10-02 10:46:09 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
|
|
|
const classes = {
|
|
|
|
root: ({ props }) => [
|
|
|
|
'p-avatar p-component',
|
|
|
|
{
|
|
|
|
'p-avatar-image': props.image != null,
|
|
|
|
'p-avatar-circle': props.shape === 'circle',
|
|
|
|
'p-avatar-lg': props.size === 'large',
|
|
|
|
'p-avatar-xl': props.size === 'xlarge'
|
|
|
|
}
|
|
|
|
],
|
2024-04-07 21:44:20 +00:00
|
|
|
label: 'p-avatar-label',
|
2023-10-02 10:46:09 +00:00
|
|
|
icon: 'p-avatar-icon'
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'avatar',
|
|
|
|
classes
|
|
|
|
});
|