vue3 & jsx, how to get the parameters obtained by writing and obtaining slot
code...
// parent.jsx
//...
render() {
return (
<div>
this.$slots.cell({
msg: 'parent'
})
<div>
)
}
//...
// children.jsx
//...
setup(props){
return <div>{ props.msg }</div>
}
//...
//use.jsx
//...
render() {
return (
<parent>
// How to use the slot and get the passed parameters?
<parent>
)
}
//...
Looks like thisHow to use template scope in vue jsx?.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…