2023-05-23 13:16:38 +00:00
|
|
|
<script>
|
2023-10-02 10:46:09 +00:00
|
|
|
import AvatarStyle from 'primevue/avatar/style';
|
2023-05-23 13:16:38 +00:00
|
|
|
import BaseComponent from 'primevue/basecomponent';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'BaseAvatar',
|
|
|
|
extends: BaseComponent,
|
|
|
|
props: {
|
|
|
|
label: {
|
|
|
|
type: String,
|
|
|
|
default: null
|
|
|
|
},
|
|
|
|
icon: {
|
|
|
|
type: String,
|
|
|
|
default: null
|
|
|
|
},
|
|
|
|
image: {
|
|
|
|
type: String,
|
|
|
|
default: null
|
|
|
|
},
|
|
|
|
size: {
|
|
|
|
type: String,
|
|
|
|
default: 'normal'
|
|
|
|
},
|
|
|
|
shape: {
|
|
|
|
type: String,
|
|
|
|
default: 'square'
|
|
|
|
},
|
2023-11-24 12:15:40 +00:00
|
|
|
ariaLabelledby: {
|
2023-05-23 13:16:38 +00:00
|
|
|
type: String,
|
|
|
|
default: null
|
|
|
|
},
|
2023-11-24 12:15:40 +00:00
|
|
|
ariaLabel: {
|
2023-05-23 13:16:38 +00:00
|
|
|
type: String,
|
|
|
|
default: null
|
|
|
|
}
|
|
|
|
},
|
2023-10-02 10:46:09 +00:00
|
|
|
style: AvatarStyle,
|
2023-05-30 12:28:04 +00:00
|
|
|
provide() {
|
|
|
|
return {
|
|
|
|
$parentInstance: this
|
|
|
|
};
|
2023-05-23 13:16:38 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|