2023-10-02 10:46:09 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
|
|
|
const classes = {
|
|
|
|
root: ({ props }) => [
|
|
|
|
'p-tabview p-component',
|
|
|
|
{
|
|
|
|
'p-tabview-scrollable': props.scrollable
|
|
|
|
}
|
|
|
|
],
|
2024-04-09 08:27:15 +00:00
|
|
|
navContainer: 'p-tabview-tablist-container',
|
|
|
|
previousButton: 'p-tabview-prev-button',
|
|
|
|
navContent: 'p-tabview-tablist-scroll-container',
|
|
|
|
nav: 'p-tabview-tablist',
|
2023-10-02 10:46:09 +00:00
|
|
|
tab: {
|
|
|
|
header: ({ instance, tab, index }) => [
|
2024-04-09 08:27:15 +00:00
|
|
|
'p-tabview-tablist-item',
|
2023-10-02 10:46:09 +00:00
|
|
|
instance.getTabProp(tab, 'headerClass'),
|
|
|
|
{
|
2024-04-09 08:27:15 +00:00
|
|
|
'p-tabview-tablist-item-active': instance.d_activeIndex === index,
|
2023-10-02 10:46:09 +00:00
|
|
|
'p-disabled': instance.getTabProp(tab, 'disabled')
|
|
|
|
}
|
|
|
|
],
|
2024-04-09 08:27:15 +00:00
|
|
|
headerAction: 'p-tabview-tab-header',
|
|
|
|
headerTitle: 'p-tabview-tab-title',
|
2023-10-02 10:46:09 +00:00
|
|
|
content: ({ instance, tab }) => ['p-tabview-panel', instance.getTabProp(tab, 'contentClass')]
|
|
|
|
},
|
|
|
|
inkbar: 'p-tabview-ink-bar',
|
2024-04-09 08:27:15 +00:00
|
|
|
nextButton: 'p-tabview-next-button',
|
2023-10-02 10:46:09 +00:00
|
|
|
panelContainer: 'p-tabview-panels'
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'tabview',
|
|
|
|
classes
|
|
|
|
});
|