mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Updated menu usage to new slotname
This commit is contained in:
parent
df9e4ddcf6
commit
4bd1028a38
@ -29,7 +29,7 @@
|
||||
:routes="routes"
|
||||
>
|
||||
<ds-menu-item
|
||||
slot="Navigation"
|
||||
slot="menuitem"
|
||||
slot-scope="item"
|
||||
class="locale-menu-item"
|
||||
:route="item.route"
|
||||
|
||||
@ -62,7 +62,7 @@
|
||||
:matcher="matcher"
|
||||
>
|
||||
<ds-menu-item
|
||||
slot="Navigation"
|
||||
slot="menuitem"
|
||||
slot-scope="item"
|
||||
:route="item.route"
|
||||
:parents="item.parents"
|
||||
|
||||
@ -99,6 +99,15 @@ export default {
|
||||
return route.name
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Function that matches items exactly
|
||||
*/
|
||||
matcher: {
|
||||
type: Function,
|
||||
default: () => {
|
||||
return false
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Function that checks if the url must be matched exactly in order to activate the menu item. By default only '/' must be matched exactly.
|
||||
*/
|
||||
|
||||
@ -214,7 +214,7 @@ If you want to keep the sub menu for this menu item, be sure to use the `ds-menu
|
||||
<ds-menu :routes="routes">
|
||||
<ds-menu-item
|
||||
@click="handleClick"
|
||||
slot="Navigation"
|
||||
slot="menuitem"
|
||||
slot-scope="item"
|
||||
:route="item.route"
|
||||
:parents="item.parents">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user