Accessing props in vue component data function

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

I am passing a props to a component:





        
5条回答
  •  梦毁少年i
    2021-02-03 17:21

    I think you have done your solution since the question posted a couple of month earlier. I faced the same problem yesterday, so tried out above solutions without no luck. However, I would like to share an alternative solution for this case that helps someone considerably. watch has some attributes to handle those type of cases. Below scrips shows that how do we accept the props value is data.

    
    

提交回复
热议问题