2018-03-17 18:26:18 +05:30
|
|
|
<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>
|
2019-01-03 12:48:30 +05:30
|
|
|
<span class="folder-caret">
|
|
|
|
<icon
|
|
|
|
:size="12"
|
|
|
|
:name="iconClass"
|
|
|
|
/>
|
|
|
|
</span>
|
2018-03-17 18:26:18 +05:30
|
|
|
</template>
|