Small changes to deploy
This commit is contained in:
25
resources/js/components/SvgIcon.vue
Normal file
25
resources/js/components/SvgIcon.vue
Normal file
@@ -0,0 +1,25 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user