https://www.cnblogs.com/lan-sir/p/14956242.html
父组件
export default {
components: {
Son
},
setup () {
const father = ref(‘我是父组件我要在子组件显示’)
return {
father
}
}
}
子组件
{{father}}
https://www.cnblogs.com/lan-sir/p/14956242.html
父组件
export default {
components: {
Son
},
setup () {
const father = ref(‘我是父组件我要在子组件显示’)
return {
father
}
}
}
子组件