zollero / el-search-table-pagination

🐶 Combine Form, Table and Pagination components of Element UI together.
MIT License
305 stars 79 forks source link

如果想触发 el-table 原生的函数该怎么办呢? #37

Open leonpun opened 5 years ago

leonpun commented 5 years ago

例如,toggleRowExpansion() 等该怎样触发?

leonpun commented 5 years ago
toggleRowExpansion(row) {
  this.$refs['deviveTable'].$children[1].toggleRowExpansion(row)
}

通过这种方式可以,请问还有更好的方式吗?

changming1987117 commented 5 years ago

应该就是这样调用吧

zollero commented 5 years ago

目前是这样的方式

leonpun commented 5 years ago

还有个问题,不知道总在这里问合适不? el-table 自定义表头的功能该怎么使用呢?自己尝试改了一下没成功。

zollero commented 5 years ago

@leonpun 暂不支持自定义表头,这个功能是element新增的,还没有支持。后面的版本中会添加这个功能的支持