25 lines
466 B
Vue
25 lines
466 B
Vue
<template>
|
|
<span
|
|
:class="['user', $options.filters.colorClass(user.original.nick), { active: active }]"
|
|
:data-name="user.original.nick"
|
|
role="button"
|
|
@mouseover="hover"
|
|
v-html="user.original.mode + user.string" />
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "UsernameFiltered",
|
|
props: {
|
|
user: Object,
|
|
active: Boolean,
|
|
onHover: Function,
|
|
},
|
|
methods: {
|
|
hover() {
|
|
this.onHover ? this.onHover(this.user.original) : null;
|
|
},
|
|
},
|
|
};
|
|
</script>
|