From df8b2b140155d1e4ad5d00cd17d57ab2046a75e2 Mon Sep 17 00:00:00 2001 From: Pine Date: Fri, 7 Aug 2020 18:12:17 +0800 Subject: [PATCH] fix(vetur): update tags/attributes definition (#408) --- vetur/attributes.json | 4 ++++ vetur/tags.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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." } } -- 2.47.2