mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
21 lines
323 B
Vue
21 lines
323 B
Vue
<template>
|
|
<div v-if="isActive">
|
|
<slot></slot>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'TabOption',
|
|
props: ['title', 'icon', 'selected'],
|
|
data() {
|
|
return {
|
|
isActive: false,
|
|
}
|
|
},
|
|
mounted() {
|
|
this.isActive = this.selected
|
|
},
|
|
}
|
|
</script>
|