Managing own invoices
This commit is contained in:
@@ -6,6 +6,11 @@ const props = defineProps({
|
||||
type: Array,
|
||||
required: true,
|
||||
// [{ title: "Titel", component: Component, endpoint: "/wp-json/..." }]
|
||||
},
|
||||
subTabIndex: {
|
||||
type: Number,
|
||||
required: false,
|
||||
default: 0
|
||||
}
|
||||
})
|
||||
|
||||
@@ -54,7 +59,7 @@ async function selectTab(index) {
|
||||
// ersten Tab automatisch laden
|
||||
onMounted(() => {
|
||||
if (props.tabs.length > 0) {
|
||||
selectTab(0)
|
||||
selectTab(props.subTabIndex)
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user