Use SVG sprite icons
This commit is contained in:
parent
1d2b822993
commit
bed16f4828
1 changed files with 10 additions and 5 deletions
|
@ -1,4 +1,6 @@
|
|||
<script>
|
||||
import icon from '~/vue_shared/components/icon.vue';
|
||||
|
||||
export default {
|
||||
props: {
|
||||
isGroupOpen: {
|
||||
|
@ -7,9 +9,12 @@ export default {
|
|||
default: false,
|
||||
},
|
||||
},
|
||||
components: {
|
||||
icon,
|
||||
},
|
||||
computed: {
|
||||
iconClass() {
|
||||
return this.isGroupOpen ? 'fa-caret-down' : 'fa-caret-right';
|
||||
return this.isGroupOpen ? 'angle-down' : 'angle-right';
|
||||
},
|
||||
},
|
||||
};
|
||||
|
@ -17,9 +22,9 @@ export default {
|
|||
|
||||
<template>
|
||||
<span class="folder-caret">
|
||||
<i
|
||||
:class="iconClass"
|
||||
class="fa"
|
||||
aria-hidden="true"/>
|
||||
<icon
|
||||
:size="12"
|
||||
:name="iconClass"
|
||||
/>
|
||||
</span>
|
||||
</template>
|
||||
|
|
Loading…
Reference in a new issue