]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
fix(vetur): update tags/attributes definition (#408)
authorPine <octref@gmail.com>
Fri, 7 Aug 2020 10:12:17 +0000 (18:12 +0800)
committerGitHub <noreply@github.com>
Fri, 7 Aug 2020 10:12:17 +0000 (12:12 +0200)
vetur/attributes.json
vetur/tags.json

index c2a5eb1f9147a79edb3088027e918d6f0af16e22..7ca18ef5b0981733f624d1bda08a03eba1f01e22 100644 (file)
     "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 `<router-link>` should not wrap its content in an `<a>` 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."
index 73c5e2756092ab634df4b525057581b6f3ce0d50..dc4f77e7d3986c83598c89db347b25d28318f5dc 100644 (file)
@@ -4,7 +4,7 @@
     "description": "Component that renders the matched component for the current location. Components rendered by `<router-view>` can also contain their own `<router-view>` 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 `<a>` 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."
   }
 }