You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
!warnedCustomSlot&&warn(false,'In Vue Router 4, the v-slot API will by default wrap its content with an <a> element. Use the custom prop to remove this warning:\n<router-link v-slot="{ navigate, href }" custom></router-link>\n')
115
+
if(!this.custom){
116
+
!warnedCustomSlot&&warn('In Vue Router 4, the v-slot API will by default wrap its content with an <a> element. Use the custom prop to remove this warning:\n<router-link v-slot="{ navigate, href }" custom></router-link>\n')
117
117
warnedCustomSlot=true
118
118
}
119
119
if (scopedSlot.length === 1) {
120
120
returnscopedSlot[0]
121
121
} else if (scopedSlot.length >1||!scopedSlot.length){
122
-
if(process.env.NODE_ENV!=='production'){
123
-
warn(
124
-
false,
125
-
`<router-link> with to="${
126
-
this.to
127
-
}" is trying to use a scoped slot but it didn't provide exactly one child. Wrapping the content with a span element.`
128
-
)
129
-
}
122
+
warn(
123
+
`<router-link> with to="${
124
+
this.to
125
+
}" is trying to use a scoped slot but it didn't provide exactly one child. Wrapping the content with a span element.`
`<router-link>'s tag prop is deprecated and has been removed in Vue Router 4. Use the v-slot API to remove this warning: https://next.router.vuejs.org/guide/migration/#removal-of-event-and-tag-props-in-router-link.`
139
-
)
140
-
warnedTagProp=true
141
-
}
142
-
if ('event' in this.$options.propsData &&!warnedEventProp){
143
-
warn(
144
-
false,
145
-
`<router-link>'s event prop is deprecated and has been removed in Vue Router 4. Use the v-slot API to remove this warning: https://next.router.vuejs.org/guide/migration/#removal-of-event-and-tag-props-in-router-link.`
`<router-link>'s tag prop is deprecated and has been removed in Vue Router 4. Use the v-slot API to remove this warning: https://next.router.vuejs.org/guide/migration/#removal-of-event-and-tag-props-in-router-link.`
134
+
)
135
+
warnedTagProp=true
136
+
}
137
+
if ('event' in this.$options.propsData &&!warnedEventProp){
138
+
warn(
139
+
`<router-link>'s event prop is deprecated and has been removed in Vue Router 4. Use the v-slot API to remove this warning: https://next.router.vuejs.org/guide/migration/#removal-of-event-and-tag-props-in-router-link.`
0 commit comments