Vue-tabilator:如何访问制表符功能?

Vue-tabilator: How do I access the tabulator functions?

我在 Nuxt.js 项目中使用 Tabulator。我为此使用 Vue-Tabulator。

如何通过 Vue 组件方法中的制表符函数访问?

我必须通过 this.$refs.tabulator.getInstance(); 使用 Tabulator 的实例吗?

看看Vue Tabulator Documentation

如您所说,您必须获取实例,然后才能调用任何制表符函数:

const tabulatorInstance = this.$refs.tabulator.getInstance();

//clear table data
tabulatorInstance.clearData();