"files": [
"dist/*.js",
"dist/vue-router.d.ts",
+ "vetur/tags.json",
+ "vetur/attributes.json",
"README.md"
],
"scripts": {
"peerDependencies": {
"vue": "^3.0.0-beta.20"
},
+ "vetur": {
+ "tags": "vetur/tags.json",
+ "attributes": "vetur/attributes.json"
+ },
"devDependencies": {
"@microsoft/api-documenter": "^7.8.21",
"@microsoft/api-extractor": "^7.8.1",
--- /dev/null
+{
+ "name": {
+ "type": "string | symbol",
+ "description": "When a `<router-view>` has a `name` prop, it will render the component with the corresponding name in the matched route record's components option."
+ },
+ "route": {
+ "description": "When a `<router-view>` has a `route` prop, it will use that resolved Route Location instead of the current location."
+ },
+ "to": {
+ "description": "Denotes the target route of the link. When clicked, the value of the `to` prop will be internally passed to `router.push()`, so the value can be either a string or a location descriptor object."
+ },
+ "replace": {
+ "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."
+ },
+ "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."
+ },
+ "exact-active-class": {
+ "type": "string",
+ "description": "Configure the active CSS class applied when the link is exactly active. Note the default value can also be configured globally via the `linkExactActiveClass` router constructor option."
+ }
+}
--- /dev/null
+{
+ "router-view": {
+ "attributes": ["name", "route"],
+ "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"],
+ "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."
+ }
+}