primevue-mirror/packages/primevue/src/avatar/BaseAvatar.vue

47 lines
934 B
Vue
Raw Normal View History

2023-05-23 13:16:38 +00:00
<script>
2024-06-11 12:21:12 +00:00
import BaseComponent from '@primevue/core/basecomponent';
import AvatarStyle from 'primevue/avatar/style';
2023-05-23 13:16:38 +00:00
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'
},
ariaLabelledby: {
2023-05-23 13:16:38 +00:00
type: String,
default: null
},
ariaLabel: {
2023-05-23 13:16:38 +00:00
type: String,
default: null
}
},
style: AvatarStyle,
provide() {
return {
$pcAvatar: this,
$parentInstance: this
};
2023-05-23 13:16:38 +00:00
}
};
</script>