nuxt-attributes.json 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {
  2. "nuxtChildKey": {
  3. "description": "This prop will be set to <router-view/>, useful to make transitions inside a dynamic page and different route. Default: `$route.fullPath`"
  4. },
  5. "to": {
  6. "description": "Denotes the target route of the link. When clicked, the value of the to prop will be passed to router.push() internally, so the value can be either a string or a location descriptor object."
  7. },
  8. "prefetch": {
  9. "type": "boolean",
  10. "description": "Prefetch route target (overrides router.prefetchLinks value in nuxt.config.js)."
  11. },
  12. "no-prefetch": {
  13. "description": "Avoid prefetching route target."
  14. },
  15. "replace": {
  16. "type": "boolean",
  17. "description": "Setting replace prop will call router.replace() instead of router.push() when clicked, so the navigation will not leave a history record."
  18. },
  19. "append": {
  20. "type": "boolean",
  21. "description": "Setting append prop always appends the relative path to the current path. For example, assuming we are navigating from /a to a relative link b, without append we will end up at /b, but with append we will end up at /a/b."
  22. },
  23. "tag": {
  24. "description": "Specify which tag to render to, and it will still listen to click events for navigation."
  25. },
  26. "active-class": {
  27. "description": "Configure the active CSS class applied when the link is active."
  28. },
  29. "exact": {
  30. "description": "The default active class matching behavior is inclusive match. For example, <router-link to=\"/a\"> will get this class applied as long as the current path starts with /a/ or is /a.\nOne consequence of this is that <router-link to=\"/\"> will be active for every route! To force the link into \"exact match mode\", use the exact prop: <router-link to=\"/\" exact>"
  31. },
  32. "event": {
  33. "description": "Specify the event(s) that can trigger the link navigation."
  34. },
  35. "exact-active-class": {
  36. "description": "Configure the active CSS class applied when the link is active with exact match. Note the default value can also be configured globally via the linkExactActiveClass router constructor option."
  37. }
  38. }