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

46 lines
899 B
Vue

<script>
import AvatarStyle from 'primevue/avatar/style';
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: {
type: String,
default: null
},
ariaLabel: {
type: String,
default: null
}
},
style: AvatarStyle,
provide() {
return {
$parentInstance: this
};
}
};
</script>