通过在子组件中用props["属性1","属性2","属性3"]接收父组件的值;
语法:
export default { props: [],//接收父组件传的属性 methods:{}, data(){}, computed:{},
components:{},
watch:{},
.... }
标签:Vue2,props,组件,接收,传值,属性 From: https://www.cnblogs.com/LIXI-/p/16667580.html
通过在子组件中用props["属性1","属性2","属性3"]接收父组件的值;
语法:
export default { props: [],//接收父组件传的属性 methods:{}, data(){}, computed:{},
components:{},
watch:{},
.... }
标签:Vue2,props,组件,接收,传值,属性 From: https://www.cnblogs.com/LIXI-/p/16667580.html