子组件
<button @click='increment()'>点击</button>
increment:function(){
this.mycontent=10;
alert(this.mycontent);
this.$emit("increment",this.mycontent);
}

父组件
<can-edit-table
refs="table4"
v-model="editInlineAndCellData"
@increment = "demo"
:editIncell="true"
:columns-list="editInlineAndCellColumn"
></can-edit-table>
methods: {
demo(){
alert("尼玛你说行不行");
}
}

即可实现同事我们还可以携带参数

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-23
  • 2022-12-23
  • 2021-10-16
猜你喜欢
  • 2022-03-04
  • 2022-12-23
  • 2021-11-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案