generated from Seekra/repository-template
Use icons instead of Unicode characters #91
@@ -40,5 +40,14 @@ const size = computed(() => ensureUnit(props.size))
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<div class="icon-container">
|
||||||
<img :src="Icon" :style="{ height: `${size}`, width: `${size}` }" />
|
<img :src="Icon" :style="{ height: `${size}`, width: `${size}` }" />
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.icon-container {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user