问题
There is nice documentation of vuetify version 2 about how override the default data table search filtering used with search prop by supplying a function to the custom-filter prop here.
Everything understood / it works fine.
But how can I retrieve the filtered data table items (as an array) within the custom search filter method in vuetify version 2?
methods: {
filterOnlyCapsText (value, search, item) {
...
//want to do sth like this here
this.filteredTableData = items;
...
},
Here is the complete pen from the vuetify documentation example.
来源:https://stackoverflow.com/questions/57576512/how-to-retrieve-the-filtered-data-table-items-as-an-array-when-using-a-custom