(_e?: MouseEvent)
| 268 | isExactActive: link?.isExactActive ?? computed(() => to.value === router.currentRoute.value.path), |
| 269 | route: link?.route ?? computed(() => router.resolve(to.value)), |
| 270 | async navigate (_e?: MouseEvent) { |
| 271 | if (href.value === null) { |
| 272 | if (import.meta.dev) { |
| 273 | console.warn(`[${componentName}] refused to navigate to a URL with a script-capable protocol.`) |
| 274 | } |
| 275 | return |
| 276 | } |
| 277 | await navigateTo(href.value, { replace: unref(props.replace), external: isExternal.value || hasTarget.value }) |
| 278 | }, |
| 279 | } satisfies Omit<ReturnType<typeof useLink>, 'href'> & { |
| 280 | to: ComputedRef<RouteLocationRaw> |
| 281 | href: ComputedRef<string | null> |
nothing calls this directly
no test coverage detected
searching dependent graphs…