Accessing props in vue component data function

前端 未结 5 800
醉话见心
醉话见心 2021-02-03 16:59

I am passing a props to a component:





        
5条回答
  •  野的像风
    2021-02-03 17:19

    To assign a data property equal to a props, you can use watcher, as following:

    
    
                                     
                  
提交回复
热议问题