假設我有一個通過 prop 提供的類別名稱數組。在vue-tables-2 中,如何category在listColumns選項中動態填充過濾器?listColumns: { type: [{ id: 1, text: 'User' }, { id: 2, text: 'Admin' }], category: function () { this.categories.map((cat, index) => { return { id: index, text: cat } }) }}這樣做會返回以下錯誤:[Vue warn]: Error in render: "TypeError: _this.opts.listColumns[column].filter is not a function"
如何在 vue-tables-2 中動態填充 listColumns?
胡說叔叔
2021-11-12 10:50:33