<component :is="item.template" :tabData.sync="tabsItem"></component>
数据双向流通,父组件中的数据修改===》 子组件中的数据同步更新
子组件中的数据修改===》 父组件中的数据同步更新
this.$emit('update:tabData',[]) 修改父组件中的数据 【注意:在参数传递时一定要使用sync 修饰,否则无法修改】
·参考地址:https://cn.vuejs.org/v2/guide/components-custom-events.html#sync-%E4%BF%AE%E9%A5%B0%E7%AC%A6·