added message pack dependency

This commit is contained in:
ori agranat
2019-10-10 22:40:51 +03:00
parent 8748dd2503
commit 5421bb09f7
7 changed files with 74 additions and 49 deletions

View File

@@ -2,7 +2,7 @@
<div>
<v-tooltip :right="right" :bottom="!right" nudge-right="10">
<template v-slot:activator="{ on }">
<v-icon @click="handleClick" v-on="on" :color="color">{{text}}</v-icon>
<v-icon :class="hoverClass" @click="handleClick" v-on="on" :color="color">{{text}}</v-icon>
</template>
<span>{{tooltip}}</span>
</v-tooltip>
@@ -12,7 +12,7 @@
<script>
export default {
name: 'Icon',
props:['color','tooltip','text','right'],
props:['color','tooltip','text','right','hover'],
data() {
return {
@@ -22,10 +22,20 @@
handleClick(){
this.$emit('click');
}
}
},
computed:{
hoverClass(){
if(this.hover !== undefined){
return "hover";
}
}
},
}
</script>
<style lang="" scoped>
<style scoped>
.hover:hover{
color: white !important;
}
</style>