[Vuejs]-How to transport property to slot in vue in jsx?

0๐Ÿ‘

โœ…

vm.$scopedSlots contains a map of slot names to render functions, which can receive slot props.

To pass myProp as a slot prop to the default slot:

<div>{this.$scopedSlots.default?.({ myProp: "hello world" })}</div>

demo

Leave a comment