Upgraded dependencies, bumped to Node 24.
This commit is contained in:
@@ -1,17 +1,6 @@
|
||||
<template>
|
||||
<div
|
||||
:class="{ active }"
|
||||
:title="title"
|
||||
class="icon"
|
||||
v-html="svg"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
|
||||
const svg = ref(null);
|
||||
|
||||
const props = defineProps({
|
||||
icon: {
|
||||
type: String,
|
||||
@@ -27,11 +16,22 @@ const props = defineProps({
|
||||
},
|
||||
});
|
||||
|
||||
const svg = ref(null);
|
||||
|
||||
import(`../../assets/img/icons/${props.icon}.svg?raw`).then((raw) => {
|
||||
svg.value = raw.default;
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div
|
||||
:class="{ active }"
|
||||
:title="title"
|
||||
class="icon"
|
||||
v-html="svg"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
.icon {
|
||||
fill: var(--text);
|
||||
|
||||
Reference in New Issue
Block a user