2023-10-02 10:46:09 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
|
|
|
const classes = {
|
|
|
|
root: 'p-tabmenu p-component',
|
2024-04-09 14:03:17 +00:00
|
|
|
menu: 'p-tabmenu-tablist',
|
2023-11-08 12:49:46 +00:00
|
|
|
menuitem: ({ instance, index, item }) => [
|
2024-04-09 14:03:17 +00:00
|
|
|
'p-tabmenu-item',
|
2023-10-02 10:46:09 +00:00
|
|
|
{
|
2024-04-09 14:03:17 +00:00
|
|
|
'p-tabmenu-item-active': instance.d_activeIndex === index,
|
2023-10-02 10:46:09 +00:00
|
|
|
'p-disabled': instance.disabled(item)
|
|
|
|
}
|
|
|
|
],
|
2024-04-09 14:03:17 +00:00
|
|
|
action: 'p-tabmenu-item-link',
|
|
|
|
icon: 'p-tabmenu-item-icon',
|
|
|
|
label: 'p-tabmenu-item-label',
|
2023-10-02 10:46:09 +00:00
|
|
|
inkbar: 'p-tabmenu-ink-bar'
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'tabmenu',
|
|
|
|
classes
|
|
|
|
});
|