一。子组件接收的content必须是Number属性
![](https://img.haomeiwen.com/i14727534/354c99163c0e9dc1.png)
二。子组件接收的content必须是Number或String属性
![](https://img.haomeiwen.com/i14727534/4ef5e5dc0723c798.png)
Props特性,映射,父组件传,子组件接。
![](https://img.haomeiwen.com/i14727534/d2cd8cdc4d6a7d9c.png)
![](https://img.haomeiwen.com/i14727534/53a2c9f4ce6cf488.png)
下面是非Props特性,实际生产中很少用
![](https://img.haomeiwen.com/i14727534/3a2914d334632cb0.png)
一。子组件接收的content必须是Number属性
二。子组件接收的content必须是Number或String属性
Props特性,映射,父组件传,子组件接。
下面是非Props特性,实际生产中很少用
本文标题:Vue-父组件向子组件传递数据的约束
本文链接:https://www.haomeiwen.com/subject/sypltctx.html
网友评论