Vuejs : How to pass an object as prop and have the component update sub-objects

前端 未结 5 1303
小鲜肉
小鲜肉 2021-01-02 23:16

I am trying to create a component that accepts an object as prop and can modify different properties of that object and return the value to the parent, using either sync or

5条回答
  •  春和景丽
    2021-01-02 23:41

    
    

    In upper step, we generated id for each rows.

    And in TradeTableItem (your template where we are populating, the table rows), Write id as :id="this.id" where this.id is a part of props.

    Hope this helps

提交回复
热议问题