【发布时间】:2021-04-12 19:38:49
【问题描述】:
vue3 & jsx,如何获取通过写获取slot得到的参数 代码...
// 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>
)
}
//...
【问题讨论】: