Fixed ref being used for component and not shallowRef
This commit is contained in:
@@ -93,7 +93,7 @@ onMounted(() => {
|
|||||||
|
|
||||||
setCurrentMenu([
|
setCurrentMenu([
|
||||||
{
|
{
|
||||||
phIcon: PhMagnifyingGlass,
|
phIcon: shallowRef(PhMagnifyingGlass),
|
||||||
tooltip: 'Recherche avancée',
|
tooltip: 'Recherche avancée',
|
||||||
action: 'event-search'
|
action: 'event-search'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
|
import type { ShallowRef } from "vue"
|
||||||
|
|
||||||
export type SidebarMenuActionType = "event-search"
|
export type SidebarMenuActionType = "event-search"
|
||||||
|
|
||||||
export interface SidebarMenuItem {
|
export interface SidebarMenuItem {
|
||||||
phIcon: Component
|
phIcon: ShallowRef
|
||||||
tooltip: string
|
tooltip: string
|
||||||
action?: SidebarMenuActionType
|
action?: SidebarMenuActionType
|
||||||
to?: string
|
to?: string
|
||||||
|
|||||||
Reference in New Issue
Block a user