mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-24 01:19:58 +00:00
update: nuxt-link docs
This commit is contained in:
parent
e01bb3d45f
commit
e59a350090
@ -271,7 +271,8 @@ export default defineNuxtConfig({
|
|||||||
prefetchedClass: undefined, // can be any valid string class name
|
prefetchedClass: undefined, // can be any valid string class name
|
||||||
trailingSlash: undefined // can be 'append' or 'remove'
|
trailingSlash: undefined // can be 'append' or 'remove'
|
||||||
prefetch: true,
|
prefetch: true,
|
||||||
prefetchOn: { visibility: true }
|
prefetchOn: { visibility: true },
|
||||||
|
whitelist: ['nuxtjs.org', '.nuxt.com']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -306,6 +307,7 @@ interface NuxtLinkOptions {
|
|||||||
visibility: boolean
|
visibility: boolean
|
||||||
interaction: boolean
|
interaction: boolean
|
||||||
}>
|
}>
|
||||||
|
whitelist?: string[]
|
||||||
}
|
}
|
||||||
function defineNuxtLink(options: NuxtLinkOptions): Component {}
|
function defineNuxtLink(options: NuxtLinkOptions): Component {}
|
||||||
```
|
```
|
||||||
@ -318,5 +320,6 @@ function defineNuxtLink(options: NuxtLinkOptions): Component {}
|
|||||||
- `prefetch`: Whether or not to prefetch links by default.
|
- `prefetch`: Whether or not to prefetch links by default.
|
||||||
- `prefetchOn`: Granular control of which prefetch strategies to apply by default.
|
- `prefetchOn`: Granular control of which prefetch strategies to apply by default.
|
||||||
- `prefetchedClass`: A default class to apply to links that have been prefetched.
|
- `prefetchedClass`: A default class to apply to links that have been prefetched.
|
||||||
|
- `whitelist`: A white list of domain that should be not set noreferrer.
|
||||||
|
|
||||||
:link-example{to="/docs/examples/routing/pages"}
|
:link-example{to="/docs/examples/routing/pages"}
|
||||||
|
Loading…
Reference in New Issue
Block a user