摘要: props(父传子,多用于 子组件需要渲染父组件中的数据) 【父】 <div> <comp-son :name="name" :age="age" /> //向子组件传值 </div> setup() { const state = reactive({ name: "Jack", age: 18 阅读全文
posted @ 2022-12-02 11:26 huihuihero 阅读(1153) 评论(0) 推荐(1)