primevue-mirror/components/lib/tieredmenu/style/TieredMenuStyle.js

40 lines
1.2 KiB
JavaScript
Raw Normal View History

import BaseStyle from 'primevue/base/style';
const inlineStyles = {
submenu: ({ instance, processedItem }) => ({ display: instance.isItemActive(processedItem) ? 'block' : 'none' })
};
const classes = {
root: ({ instance, props }) => [
'p-tieredmenu p-component',
{
'p-tieredmenu-overlay': props.popup,
'p-ripple-disabled': instance.$primevue.config.ripple === false
}
],
start: 'p-tieredmenu-start',
menu: 'p-tieredmenu-root-list',
menuitem: ({ instance, processedItem }) => [
2024-04-09 13:11:24 +00:00
'p-tieredmenu-item',
{
2024-04-09 13:11:24 +00:00
'p-tieredmenu-item-active': instance.isItemActive(processedItem),
'p-focus': instance.isItemFocused(processedItem),
'p-disabled': instance.isItemDisabled(processedItem)
}
],
2024-04-09 13:11:24 +00:00
content: 'p-tieredmenu-item-content',
action: 'p-tieredmenu-item-link',
icon: 'p-tieredmenu-item-icon',
2024-04-09 13:21:05 +00:00
text: 'p-tieredmenu-item-label',
2024-04-09 13:11:24 +00:00
submenuIcon: 'p-tieredmenu-submenu-icon',
2024-04-09 13:43:12 +00:00
submenu: 'p-tieredmenu-submenu',
2024-04-09 13:11:24 +00:00
separator: 'p-tieredmenu-separator',
end: 'p-tieredmenu-end'
};
export default BaseStyle.extend({
name: 'tieredmenu',
classes,
inlineStyles
});