2023-10-02 10:46:09 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
|
|
|
const classes = {
|
|
|
|
root: ({ instance, props }) => [
|
|
|
|
'p-menu p-component',
|
|
|
|
{
|
|
|
|
'p-menu-overlay': props.popup,
|
|
|
|
'p-ripple-disabled': instance.$primevue.config.ripple === false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
start: 'p-menu-start',
|
2024-04-30 13:02:03 +00:00
|
|
|
list: 'p-menu-list',
|
|
|
|
submenuItem: 'p-menu-submenu-item',
|
2024-04-09 11:59:41 +00:00
|
|
|
separator: 'p-menu-separator',
|
2023-10-02 10:46:09 +00:00
|
|
|
end: 'p-menu-end',
|
2024-04-30 13:02:03 +00:00
|
|
|
item: ({ instance }) => [
|
2024-04-09 11:59:41 +00:00
|
|
|
'p-menu-item',
|
2023-10-02 10:46:09 +00:00
|
|
|
{
|
|
|
|
'p-focus': instance.id === instance.focusedOptionId,
|
|
|
|
'p-disabled': instance.disabled()
|
|
|
|
}
|
|
|
|
],
|
2024-04-30 13:02:03 +00:00
|
|
|
itemContent: 'p-menu-item-content',
|
|
|
|
itemLink: 'p-menu-item-link',
|
|
|
|
itemIcon: 'p-menu-item-icon',
|
2024-04-09 13:21:05 +00:00
|
|
|
label: 'p-menu-item-label'
|
2023-10-02 10:46:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'menu',
|
|
|
|
classes
|
|
|
|
});
|