Vue2:父组件传子组件-属性传值
通过在子组件中用props["属性1","属性2","属性3"]接收父组件的值;
语法:
export default { props: [],//接收父组件传的属性 methods:{}, data(){}, computed:{},
components:{},
watch:{},
.... }
通过在子组件中用props["属性1","属性2","属性3"]接收父组件的值;
语法:
export default { props: [],//接收父组件传的属性 methods:{}, data(){}, computed:{},
components:{},
watch:{},
.... }