Skip to content

Commit

Permalink
feat(ui): add pt prop to ContextMenu for enhanced customization
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiinaKin committed Dec 6, 2024
1 parent da347c0 commit 5f2c232
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/components/ContextMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ref } from "vue";
import ContextMenu from "primevue/contextmenu";
import { Icon } from "@iconify/vue";
const { menuItems } = defineProps(["menuItems"]);
const { menuItems, pt } = defineProps(["menuItems", "pt"]);
const menuRef = ref();
Expand All @@ -19,7 +19,7 @@ defineExpose({ show, hide });
</script>

<template>
<ContextMenu class="text-sm rounded-xl" ref="menuRef" :model="menuItems">
<ContextMenu class="text-sm rounded-xl" ref="menuRef" :model="menuItems" :pt>
<template #item="{ item, props }">
<a class="flex items-center overflow-hidden" v-bind="props.action">
<Icon :icon="item.icon as string" class="size-4" />
Expand Down

0 comments on commit 5f2c232

Please sign in to comment.