Files
luos/resources/assets/js/components/Tabs.vue

38 lines
564 B
Vue
Raw Normal View History

2020-12-07 14:33:27 -04:00
<template>
<Tabs>
<Tab
v-for="item in data.items"
:key="item.title"
:title="item.title"
v-on:click="selectedTab"
>
{{ item.title }}
</Tab>
</Tabs>
</template>
<script>
import { Tabs, Tab } from "vue-slim-tabs";
2020-12-07 14:33:27 -04:00
export default {
props: {
data: Object,
2020-12-07 14:33:27 -04:00
},
components: {
Tabs,
Tab,
2020-12-07 14:33:27 -04:00
},
data() {
return {
0: function () {},
2020-12-07 14:33:27 -04:00
};
},
methods: {
selectedTab(e, index) {
if (index === 0) {
}
},
2020-12-07 14:33:27 -04:00
},
};
2020-12-07 14:33:27 -04:00
</script>
<style src="vue-slim-tabs/themes/default.css"></style>