fix(Link): allow ariaLabel to be picked

This commit is contained in:
Benjamin Canac
2024-07-22 12:52:28 +02:00
parent 6cc635a8a7
commit c1ac3a9f9d

View File

@@ -1,6 +1,6 @@
import { reactivePick } from '@vueuse/core'
import type { LinkProps } from '../types'
export function pickLinkProps(link: LinkProps) {
return reactivePick(link, 'active', 'activeClass', 'ariaCurrentValue', 'as', 'disabled', 'exact', 'exactActiveClass', 'exactHash', 'exactQuery', 'external', 'href', 'inactiveClass', 'noPrefetch', 'noRel', 'prefetch', 'prefetchedClass', 'rel', 'replace', 'target', 'to', 'type')
export function pickLinkProps(link: LinkProps & { ariaLabel?: string }) {
return reactivePick(link, 'active', 'activeClass', 'ariaCurrentValue', 'ariaLabel', 'as', 'disabled', 'exact', 'exactActiveClass', 'exactHash', 'exactQuery', 'external', 'href', 'inactiveClass', 'noPrefetch', 'noRel', 'prefetch', 'prefetchedClass', 'rel', 'replace', 'target', 'to', 'type')
}