mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
project restructuring and initial refactoring
This commit is contained in:
1 parent
5af12bdbbd
commit
aa0eca2dc4
807 files changed
+11848
-22947
No files matched your search
@@ -0,0 +1,28 @@
|
||||
<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>
|
||||
Reference in new issue
Block a user