Vue2:父组件传子组件-属性传值

通过在子组件中用props["属性1","属性2","属性3"]接收父组件的值;

语法:

export default {
        props: [],//接收父组件传的属性
        methods:{},
        data(){},
     computed:{},
     components:{},
     watch:{},
     .... }

 

posted on 2022-09-07 22:39  香香鲲  阅读(252)  评论(0编辑  收藏  举报