25 lines
445 B
Vue
25 lines
445 B
Vue
<script>
|
|
import icon from '~/vue_shared/components/icon.vue';
|
|
|
|
export default {
|
|
components: {
|
|
icon,
|
|
},
|
|
props: {
|
|
isGroupOpen: {
|
|
type: Boolean,
|
|
required: true,
|
|
default: false,
|
|
},
|
|
},
|
|
computed: {
|
|
iconClass() {
|
|
return this.isGroupOpen ? 'angle-down' : 'angle-right';
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<span class="folder-caret gl-mr-2"> <icon :size="10" :name="iconClass" /> </span>
|
|
</template>
|