Skip to content

Commit a150291

Browse files
committed
fix(link): correctly warn wrong v-slot usage
Fix #3091
1 parent d2441b5 commit a150291

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/link.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ export default {
107107
warn(
108108
false,
109109
`RouterLink with to="${
110-
this.props.to
111-
}" is trying to use a scoped slot but it didn't provide exactly one child.`
110+
this.to
111+
}" is trying to use a scoped slot but it didn't provide exactly one child. Wrapping the content with a span element.`
112112
)
113113
}
114114
return scopedSlot.length === 0 ? h() : h('span', {}, scopedSlot)

0 commit comments

Comments
 (0)