mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-15 03:04:58 +00:00
30 lines
621 B
Vue
30 lines
621 B
Vue
<template>
|
|
<li>
|
|
<span class="badge badge-primary" :title="person.text">
|
|
<span class="chill_denomination">
|
|
{{ textCutted }}
|
|
</span>
|
|
<a class="fa fa-fw fa-times"
|
|
@click.prevent="$emit('remove', person)">
|
|
</a>
|
|
</span>
|
|
</li>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "PersonBadge",
|
|
props: ['person'],
|
|
computed: {
|
|
textCutted() {
|
|
let more = (this.person.text.length > 15) ?'…' : '';
|
|
return this.person.text.slice(0,15) + more;
|
|
}
|
|
},
|
|
emits: ['remove'],
|
|
}
|
|
</script>
|
|
|
|
<style lang="css" scoped>
|
|
</style>
|