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