This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
seepur/resources/scripts/applications/home/components/AvatarBadge.vue

29 lines
598 B
Vue
Raw Permalink Normal View History

2020-04-12 14:25:42 +00:00
<template>
<div :class="['has-text-centered' ,'p-t-sm', {'has-pointer': !!isLink}]" @click="onClick()">
<div class="avatar-badge-image">
<figure class="image is-48x48">
<img :src="img" alt="Placeholder image" class="is-rounded is-avatar" />
</figure>
</div>
<div class>{{text}}</div>
</div>
</template>
<script lang="ts">
export interface IChildAvatar {
url: string;
name: string;
}
export default {
name: "AvatarBadge",
props: ["img", "text", "isLink"],
created() {},
methods: {
onClick() {
this.$emit("onClick");
}
}
};
</script>