一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

vue props如何一次传多个值 vue props一次传多个值代码实例

时间:2020-07-22 编辑:袖梨 来源:一聚教程网

vue props如何一次传多个值?本篇文章小编给大家分享一下vue props一次传多个值代码实例,文章代码介绍的很详细,小编觉得挺不错的,现在分享给大家供大家参考,有需要的小伙伴们可以来看看。

数组:

对象:

或者:

子组件:

  • {{propsText.seleTime}}

  • {{propsText.carsStart}}

  • {{propsText.carEnd}}

  • {{propsText.Remark}}

props: { propsText:{ type: Object, default:{} } },

父组件:

 
   
import appFooterCar from "../FooterCarList/FooterCarList"; data() { return { propsText:{ seleTime:11, carsStart:22, carEnd:33, Remark:44, confirmationCar:55 } };

热门栏目