mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-23 17:10:07 +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
|
||||
trailingSlash: undefined // can be 'append' or 'remove'
|
||||
prefetch: true,
|
||||
prefetchOn: { visibility: true }
|
||||
prefetchOn: { visibility: true },
|
||||
whitelist: ['nuxtjs.org', '.nuxt.com']
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -306,6 +307,7 @@ interface NuxtLinkOptions {
|
||||
visibility: boolean
|
||||
interaction: boolean
|
||||
}>
|
||||
whitelist?: string[]
|
||||
}
|
||||
function defineNuxtLink(options: NuxtLinkOptions): Component {}
|
||||
```
|
||||
@ -318,5 +320,6 @@ function defineNuxtLink(options: NuxtLinkOptions): Component {}
|
||||
- `prefetch`: Whether or not to prefetch links 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.
|
||||
- `whitelist`: A white list of domain that should be not set noreferrer.
|
||||
|
||||
:link-example{to="/docs/examples/routing/pages"}
|
||||
|
Loading…
Reference in New Issue
Block a user