From e4c902e0bc4943913466f1dbdec20fa8408b8a41 Mon Sep 17 00:00:00 2001 From: Maksin Kutishchev Date: Mon, 21 May 2018 21:49:18 +0400 Subject: [PATCH] Added 2 properties (exact & event) to the MenuItem component and documented them --- docs/markdown/en/menu.md | 2 ++ src/components/menu/src/menu-item.vue | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/markdown/en/menu.md b/docs/markdown/en/menu.md index 2dbb23b..2252f18 100644 --- a/docs/markdown/en/menu.md +++ b/docs/markdown/en/menu.md @@ -288,6 +288,8 @@ Used together with `vue-router`. Set `router` property to `at-menu`, and Passed | to | the object of `vue-router`, same as the `to` property in `vue-router` | String / Object | - | - | | replace | whether to add new history when using `to` | Boolean | - | false | | disabled | whether the MenuItem is disabled | Boolean | - | false | +| exact | The default active class matching behavior is inclusive match. For example, `` will get this class applied as long as the current path starts with /a/ or is /a. To force the link into "exact match mode", use the `exact` prop. This prop work when using `to` | Boolean | - | false | +| event |Specify the event(s) that can trigger the link navigation. This prop work when using `to` | String / Array | - | "click" |