Updated menu usage to new slotname

This commit is contained in:
Grzegorz Leoniec 2019-01-17 10:45:53 +01:00
parent df9e4ddcf6
commit 4bd1028a38
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377
4 changed files with 12 additions and 3 deletions

View File

@ -29,7 +29,7 @@
:routes="routes"
>
<ds-menu-item
slot="Navigation"
slot="menuitem"
slot-scope="item"
class="locale-menu-item"
:route="item.route"

View File

@ -62,7 +62,7 @@
:matcher="matcher"
>
<ds-menu-item
slot="Navigation"
slot="menuitem"
slot-scope="item"
:route="item.route"
:parents="item.parents"

View File

@ -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.
*/

View File

@ -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">