摘要: 首先看父传子 自定义一个子组件 <template> <div> 子组件: <span>{{inputName}}</span> </div> </template> <script> export default { //接收父组件传递的数据 props: { inputName: String, 阅读全文
posted @ 2022-02-24 18:48 程序员hg 阅读(525) 评论(0) 推荐(0) 编辑