feat(fe playlist): adding sources tabs to editor
This commit is contained in:
parent
9a9f344e15
commit
191f8d8951
1 changed files with 45 additions and 0 deletions
45
resources/js/components/content/partials/Sources.vue
Normal file
45
resources/js/components/content/partials/Sources.vue
Normal file
|
@ -0,0 +1,45 @@
|
|||
<script setup lang="ts">
|
||||
import {ref} from "vue";
|
||||
import Archive from "@/components/content/Archive.vue";
|
||||
import TableDraggable from "@/components/content/partials/TableDraggable.vue";
|
||||
|
||||
const tab = ref(null)
|
||||
const tabs = [
|
||||
{
|
||||
id: 'archive',
|
||||
title: 'Archivio',
|
||||
},
|
||||
{
|
||||
id: 'blocks',
|
||||
title: 'Blocchi dinamici',
|
||||
},
|
||||
]
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<v-tabs
|
||||
v-model="tab"
|
||||
bg-color="primary"
|
||||
>
|
||||
<v-tab
|
||||
v-for="tab in tabs"
|
||||
:value="tab.id"
|
||||
>{{ tab.title }}</v-tab>
|
||||
</v-tabs>
|
||||
<v-tabs-window v-model="tab">
|
||||
<v-tabs-window-item
|
||||
v-for="tab in tabs"
|
||||
:value="tab.id">
|
||||
<Archive
|
||||
v-if="tab.id === 'archive'"
|
||||
:show-select="false"
|
||||
:is-draggable="true"
|
||||
:hideColumns="['mtime', 'actions']"
|
||||
/>
|
||||
</v-tabs-window-item>
|
||||
</v-tabs-window>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue