@@ -597,58 +597,57 @@ function getLinkEventHandlers(
597597 }
598598}
599599
600- const propsUnsafeToSpread = new Set ( [
601- 'activeProps' ,
602- 'inactiveProps' ,
603- 'activeOptions' ,
604- 'to' ,
605- 'preload' ,
606- 'preloadDelay' ,
607- 'hashScrollIntoView' ,
608- 'replace' ,
609- 'startTransition' ,
610- 'resetScroll' ,
611- 'viewTransition' ,
612- 'children' ,
613- 'target' ,
614- 'disabled' ,
615- 'style' ,
616- 'class' ,
617- 'onClick' ,
618- 'onBlur' ,
619- 'onFocus' ,
620- 'onMouseEnter' ,
621- 'onMouseenter' ,
622- 'onMouseLeave' ,
623- 'onMouseleave' ,
624- 'onMouseOver' ,
625- 'onMouseover' ,
626- 'onMouseOut' ,
627- 'onMouseout' ,
628- 'onTouchStart' ,
629- 'onTouchstart' ,
630- 'ignoreBlocker' ,
631- 'params' ,
632- 'search' ,
633- 'hash' ,
634- 'state' ,
635- 'mask' ,
636- 'reloadDocument' ,
637- '_asChild' ,
638- 'from' ,
639- 'additionalProps' ,
640- ] )
641-
642- // Create safe props that can be spread
643600const getPropsSafeToSpread = ( options : AnyLinkPropsOptions ) => {
644- const result : Record < string , unknown > = { }
645- for ( const key in options ) {
646- if ( ! propsUnsafeToSpread . has ( key ) ) {
647- result [ key ] = ( options as Record < string , unknown > ) [ key ]
648- }
649- }
650-
651- return result
601+ const {
602+ activeProps : _activeProps ,
603+ inactiveProps : _inactiveProps ,
604+ activeOptions : _activeOptions ,
605+ to : _to ,
606+ preload : _preload ,
607+ preloadDelay : _preloadDelay ,
608+ preloadIntentProximity : _preloadIntentProximity ,
609+ hashScrollIntoView : _hashScrollIntoView ,
610+ replace : _replace ,
611+ startTransition : _startTransition ,
612+ resetScroll : _resetScroll ,
613+ viewTransition : _viewTransition ,
614+ children : _children ,
615+ target : _target ,
616+ disabled : _disabled ,
617+ style : _style ,
618+ class : _class ,
619+ onClick : _onClick ,
620+ onBlur : _onBlur ,
621+ onFocus : _onFocus ,
622+ onMouseEnter : _onMouseEnter ,
623+ onMouseenter : _onMouseenter ,
624+ onMouseLeave : _onMouseLeave ,
625+ onMouseleave : _onMouseleave ,
626+ onMouseOver : _onMouseOver ,
627+ onMouseover : _onMouseover ,
628+ onMouseOut : _onMouseOut ,
629+ onMouseout : _onMouseout ,
630+ onTouchStart : _onTouchStart ,
631+ onTouchstart : _onTouchstart ,
632+ ignoreBlocker : _ignoreBlocker ,
633+ params : _params ,
634+ search : _search ,
635+ hash : _hash ,
636+ state : _state ,
637+ mask : _mask ,
638+ reloadDocument : _reloadDocument ,
639+ unsafeRelative : _unsafeRelative ,
640+ _asChild : __asChild ,
641+ from : _from ,
642+ additionalProps : _additionalProps ,
643+ ...propsSafeToSpread
644+ } = options as AnyLinkPropsOptions & {
645+ additionalProps ?: unknown
646+ children ?: unknown
647+ _asChild ?: unknown
648+ }
649+
650+ return propsSafeToSpread
652651}
653652
654653function getIsActive ( {
@@ -872,6 +871,7 @@ const LinkImpl = Vue.defineComponent({
872871 'to' ,
873872 'preload' ,
874873 'preloadDelay' ,
874+ 'preloadIntentProximity' ,
875875 'activeProps' ,
876876 'inactiveProps' ,
877877 'activeOptions' ,
0 commit comments