no message

Former-commit-id: ab58492ec6c0470cacbf53a126e8d72f9e0851de
Former-commit-id: 24b73991d7101c6fa10226862f4877fe21d0d195
Former-commit-id: 3d976787a217f0da541aada42ae9386ef2876c61
This commit is contained in:
李杨
2018-02-22 12:27:31 +08:00
parent 96f67a36db
commit 921f7e1cf6
8 changed files with 34 additions and 0 deletions

View 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>