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

32 lines
960 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
}
],
rootList: 'p-contextmenu-root-list',
item: ({ 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)
}
],
itemContent: 'p-contextmenu-item-content',
itemLink: 'p-contextmenu-item-link',
itemIcon: 'p-contextmenu-item-icon',
itemLabel: 'p-contextmenu-item-label',
2024-04-09 13:21:05 +00:00
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
});