42 lines
894 B
Vue
42 lines
894 B
Vue
<script>
|
|
import BaseComponent from 'primevue/basecomponent';
|
|
import TabPanelStyle from 'primevue/tabpanel/style';
|
|
|
|
export default {
|
|
name: 'BaseTabPanel',
|
|
extends: BaseComponent,
|
|
props: {
|
|
// in Tabs
|
|
value: {
|
|
type: String,
|
|
default: undefined
|
|
},
|
|
as: {
|
|
type: String,
|
|
default: 'DIV'
|
|
},
|
|
asChild: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
// in TabView
|
|
header: null,
|
|
headerStyle: null,
|
|
headerClass: null,
|
|
headerProps: null,
|
|
headerActionProps: null,
|
|
contentStyle: null,
|
|
contentClass: null,
|
|
contentProps: null,
|
|
disabled: Boolean
|
|
},
|
|
style: TabPanelStyle,
|
|
provide() {
|
|
return {
|
|
$pcTabPanel: this,
|
|
$parentInstance: this
|
|
};
|
|
}
|
|
};
|
|
</script>
|