update: nuxt-link docs

This commit is contained in:
xjccc 2025-02-19 14:44:54 +08:00
parent e01bb3d45f
commit e59a350090

View File

@ -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"}