primevue-mirror/components/lib/avatar/BaseAvatar.vue

47 lines
928 B
Vue
Raw Normal View History

2023-05-23 13:16:38 +00:00
<script>
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'
},
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>