We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46697f2 commit 7d87f76Copy full SHA for 7d87f76
src/components/primevue/menu/Breadcrumb.vue
@@ -42,13 +42,12 @@ defineExpose({ el: childRef });
42
>
43
<i
44
v-if="item.icon"
45
- :class="item.icon"
46
- class="p-breadcrumb-item-icon"
+ :class="['p-breadcrumb-item-icon', item.icon]"
47
/>
48
<component
49
:is="item.lucideIcon"
50
v-else-if="item.lucideIcon"
51
+ :class="['p-breadcrumb-item-icon', item.lucideIconClass]"
52
53
<span class="p-breadcrumb-item-label">{{ item.label }}</span>
54
</a>
@@ -64,13 +63,12 @@ defineExpose({ el: childRef });
64
63
65
66
67
68
69
70
71
72
73
74
75
76
src/components/primevue/menu/Menu.vue
@@ -51,13 +51,12 @@ defineExpose({
55
- class="p-menu-item-icon"
+ :class="['p-menu-item-icon', item.icon]"
56
57
58
59
60
+ :class="['p-menu-item-icon', item.lucideIconClass]"
61
62
<span class="p-menu-item-label">{{ item.label }}</span>
@@ -73,13 +72,12 @@ defineExpose({
77
78
79
80
81
82
83
84
85
src/components/primevue/menu/MenuBar.vue
@@ -52,13 +52,12 @@ defineExpose({ el: childRef });
- class="p-menubar-item-icon"
+ :class="['p-menubar-item-icon', item.icon]"
+ :class="['p-menubar-item-icon', item.lucideIconClass]"
<span class="p-menubar-item-label">{{ item.label }}</span>
@@ -74,13 +73,12 @@ defineExpose({ el: childRef });
86
<template v-if="hasSubmenu">
src/components/primevue/menu/PanelMenu.vue
@@ -62,6 +62,7 @@ defineExpose({ el: childRef });
:class="[
root ? 'p-panelmenu-header-icon' : 'p-panelmenu-item-icon',
+ item.lucideIconClass,
]"
<span>{{ item.label }}</span>
@@ -91,6 +92,7 @@ defineExpose({ el: childRef });
91
92
93
94
95
96
97
98
src/types/index.d.ts
@@ -16,4 +16,6 @@ export type PrimeVueDataFilters = {
16
export interface MenuItem extends PrimeVueMenuItem {
17
route?: string;
18
lucideIcon?: LucideIcon;
19
+ lucideIconClass?: string;
20
+ active?: boolean;
21
}
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments