How to use template scope in vue jsx?
问题 I define a simple child component(testSlot.vue) like this: <template> <section> <div>this is title</div> <slot text="hello from child slot"></slot> </section> </template> <script> export default {} </script> and we can use it in html template like this <test-slot> <template scope="props"> <div> {{props.text}}</div> <div> this is real body</div> </template> </test-slot> but how can I use it in jsx ? 回答1: After read the doc three times , I can answer the question myself now O(∩_∩)O . <test-slot