primevue-mirror/components/lib/contextmenu/style/ContextMenuStyle.js

32 lines
946 B
JavaScript
Raw Normal View History

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