From: Pine Date: Fri, 7 Aug 2020 10:12:17 +0000 (+0800) Subject: fix(vetur): update tags/attributes definition (#408) X-Git-Tag: v4.0.0-beta.7~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df8b2b140155d1e4ad5d00cd17d57ab2046a75e2;p=thirdparty%2Fvuejs%2Frouter.git fix(vetur): update tags/attributes definition (#408) --- diff --git a/vetur/attributes.json b/vetur/attributes.json index c2a5eb1f..7ca18ef5 100644 --- a/vetur/attributes.json +++ b/vetur/attributes.json @@ -13,6 +13,10 @@ "type": "boolean", "description": "Setting replace prop will call `router.replace()` instead of `router.push()` when clicked, so the navigation will replace the current history entry." }, + "custom": { + "type": "boolean", + "description": "Whether `` should not wrap its content in an `` tag." + }, "active-class": { "type": "string", "description": "Configure the active CSS class applied when the link is active. Note the default value can also be configured globally via the `linkActiveClass` router constructor option." diff --git a/vetur/tags.json b/vetur/tags.json index 73c5e275..dc4f77e7 100644 --- a/vetur/tags.json +++ b/vetur/tags.json @@ -4,7 +4,7 @@ "description": "Component that renders the matched component for the current location. Components rendered by `` can also contain their own `` to render nested routes." }, "router-link": { - "attributes": ["to", "activeClass","exactActiveClass", "custom"], + "attributes": ["to", "replace", "custom", "active-class","exact-active-class", "aria-current-value"], "description": "Component that renders an `` with the correct `href` attribute and click listeners to trigger a local navigation when clicked. Can also customize its rendering by providing the `custom` prop and using its `v-slot` API." } }