2022-11-13 17:34:33 -03:00
|
|
|
<template>
|
|
|
|
<div class="block">
|
|
|
|
<div class="tabs is-boxed" id="tabs">
|
|
|
|
<ul class="has-bottom-line">
|
|
|
|
<li v-for="(tab, index) in tabs" class="is-size-6"
|
2024-07-11 16:32:25 -03:00
|
|
|
:key="index"
|
|
|
|
:id="tab.id + '-tab'"
|
2022-11-13 17:34:33 -03:00
|
|
|
:class="{'is-active': tab.id === tabActiva}">
|
|
|
|
<a @click="setTabActiva(tab.id)">
|
2024-07-11 16:32:25 -03:00
|
|
|
<span>
|
2022-11-13 17:34:33 -03:00
|
|
|
{{ tab.nombre }}
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name: "PedidosAdminTabsSecciones",
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
tabActiva: "pedidos",
|
|
|
|
tabs: [
|
|
|
|
{
|
|
|
|
id: "pedidos",
|
|
|
|
nombre: "Pedidos"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: "bonos",
|
|
|
|
nombre: "Bonos"
|
2024-07-11 16:32:25 -03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
id: "caracteristicas",
|
|
|
|
nombre: "Caracteristicas opcionales"
|
2022-11-13 17:34:33 -03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
setTabActiva(tabId) {
|
|
|
|
this.$parent.setSeccionActiva(tabId);
|
|
|
|
this.tabActiva = tabId
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2022-11-13 18:01:01 -03:00
|
|
|
@import 'bulma';
|
2022-11-13 17:34:33 -03:00
|
|
|
hr {
|
|
|
|
border: none;
|
|
|
|
height: 1px;
|
|
|
|
}
|
|
|
|
.has-bottom-line {
|
|
|
|
border-bottom-color: #dbdbdb !important;
|
|
|
|
border-bottom-style: solid !important;
|
|
|
|
border-bottom-width: 1px !important;
|
|
|
|
}
|
2022-11-13 18:01:01 -03:00
|
|
|
.tabs li.is-active a {
|
|
|
|
border-bottom-color: #e3342f;
|
|
|
|
color: #e3342f;
|
|
|
|
}
|
2024-07-11 16:32:25 -03:00
|
|
|
</style>
|