1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/renderer/_vue/components/hashicon/hashicon.vue

29 lines
533 B
Vue

<template>
<span class="hashicon" ref="hashicon" />
</template>
<script>
import hashicon from '@/_vue/components/hashicon/hashicon'
export default {
name:'Hashicon',
props:{
name: {
default: null,
type: String
},
size: {
default: null,
type: String
},
},
mounted() {
const params = {
size: this.size || 48,
lightness: { min: 45, max: 65 },
saturation: { min: 30, max: 60 }
}
this.$refs.hashicon.appendChild(hashicon(this.name, params))
}
}
</script>