2023-05-25 10:07:09 +00:00
|
|
|
<script>
|
|
|
|
import BaseComponent from 'primevue/basecomponent';
|
|
|
|
import { useStyle } from 'primevue/usestyle';
|
|
|
|
|
|
|
|
const styles = `
|
|
|
|
.p-avatar-group .p-avatar + .p-avatar {
|
|
|
|
margin-left: -1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-avatar-group {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const classes = {
|
|
|
|
root: 'p-avatar-group p-component'
|
|
|
|
};
|
|
|
|
|
2023-07-03 22:20:35 +00:00
|
|
|
const { load: loadStyle } = useStyle(styles, { name: 'avatargroup', manual: true });
|
2023-05-25 10:07:09 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'BaseAvatarGroup',
|
|
|
|
extends: BaseComponent,
|
|
|
|
css: {
|
2023-06-02 14:28:59 +00:00
|
|
|
classes,
|
|
|
|
loadStyle
|
2023-05-25 10:07:09 +00:00
|
|
|
},
|
2023-06-02 14:28:59 +00:00
|
|
|
provide() {
|
|
|
|
return {
|
|
|
|
$parentInstance: this
|
|
|
|
};
|
2023-05-25 10:07:09 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|