Update navigation icons
This commit is contained in:
parent
5404b81193
commit
63375d0f37
3 changed files with 27 additions and 9 deletions
18
resources/assets/scripts/components/Icon.vue
Normal file
18
resources/assets/scripts/components/Icon.vue
Normal file
|
@ -0,0 +1,18 @@
|
|||
<template>
|
||||
<i class="ion" :class="iconClass"></i>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
type: {type: String, required: true},
|
||||
iconStyle: {type: String, default: 'ios'},
|
||||
},
|
||||
|
||||
computed: {
|
||||
iconClass: function () {
|
||||
return `ion-${this.iconStyle}-${this.type}`;
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
Reference in a new issue