26 lines
423 B
Vue
26 lines
423 B
Vue
<script setup>
|
|
import { shallowRef } from 'vue'
|
|
|
|
const props = defineProps({
|
|
src: {
|
|
type: Object,
|
|
required: true
|
|
},
|
|
color: {
|
|
type: Object,
|
|
required: false
|
|
}
|
|
})
|
|
|
|
let svgComponent = shallowRef(null)
|
|
|
|
props.src
|
|
.then((module) => {
|
|
svgComponent.value = module.default
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<component :is="svgComponent" fill-class-name="blue" />
|
|
</template>
|