no message
Former-commit-id: ab58492ec6c0470cacbf53a126e8d72f9e0851de Former-commit-id: 24b73991d7101c6fa10226862f4877fe21d0d195 Former-commit-id: 3d976787a217f0da541aada42ae9386ef2876c61
This commit is contained in:
21
src/components/core/IconSvg/index.vue
Normal file
21
src/components/core/IconSvg/index.vue
Normal file
@@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<svg aria-hidden="true">
|
||||
<use :xlink:href="iconName"></use>
|
||||
</svg>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
name: {
|
||||
type: String,
|
||||
required: true
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
iconName() {
|
||||
return `#icon-${this.name}`
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user