我将 Tabulator 移至 Laravel,在加载示例测试数据时出现以下错误:
tabulator.min.js:2 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'verticalFillMode')
我已经用 rowHeight:40 修复了行高,但错误仍然存在 - 而且我不必在原始代码中设置它。
verticalFillMode 不是用户设置 - 在网上找不到太多相关信息。
知道可能出了什么问题吗? 谢谢
我想我发现了问题。 当 Tabulator 已加载时调用 setData() 会触发 verticalFillMode 上的 null 错误。不知道为什么,但现在它恢复了。
var table = new Tabulator("#mp3_table", {
data: tabledata,
..
});
table.setData(tabledata); // this call triggered the error