primevue-mirror/components/lib/tabview/BaseTabView.vue

56 lines
1.2 KiB
Vue
Raw Normal View History

2023-05-24 06:24:33 +00:00
<script>
import BaseComponent from 'primevue/basecomponent';
import TabViewStyle from 'primevue/tabview/style';
2023-05-24 06:24:33 +00:00
export default {
name: 'BaseTabView',
extends: BaseComponent,
props: {
activeIndex: {
type: Number,
default: 0
},
lazy: {
type: Boolean,
default: false
},
scrollable: {
type: Boolean,
default: false
},
tabindex: {
type: Number,
default: 0
},
selectOnFocus: {
type: Boolean,
default: false
},
2024-05-27 08:48:42 +00:00
prevButtonProps: {
2023-05-24 06:24:33 +00:00
type: null,
default: null
},
nextButtonProps: {
type: null,
default: null
},
prevIcon: {
type: String,
default: undefined
},
nextIcon: {
type: String,
default: undefined
}
},
style: TabViewStyle,
provide() {
return {
2024-04-19 13:49:58 +00:00
$pcTabs: undefined, // Backwards compatible to prevent <TabPanel> component from breaking
$pcTabView: this,
$parentInstance: this
};
2023-05-24 06:24:33 +00:00
}
};
</script>