Skip to content

Commit

Permalink
feat: About>Line圖標使用替代icon
Browse files Browse the repository at this point in the history
  • Loading branch information
SidStraw committed Apr 22, 2021
1 parent e63b680 commit b23fd42
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .vuepress/theme/components/About.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
class="mx-1 white--text"
icon
>
<v-icon size="24px">{{ 'mdi-' + item.type.toLowerCase() }}</v-icon>
<v-icon size="24px">{{ handleIcon(item.type) }}</v-icon>
</v-btn>
</div>
<!-- </v-card-text> -->
Expand All @@ -43,5 +43,11 @@
<script>
export default {
components: {},
methods: {
handleIcon(icon) {
const iconType = icon.toLowerCase()
return iconType === 'line' ? 'mdi-chat-processing-outline' : 'mdi-' + iconType
},
},
}
</script>

0 comments on commit b23fd42

Please sign in to comment.