我可以请求你的帮助吗,我目前正在使用 vuetifyjs 使列显示/隐藏,我偶然发现了这些参考文献:
https://codepen.io/anon/pen/jeWRvN
computedHeaders () {
if(this.hideCalories){
return this.headers.filter(header => header.text !== "Calories")
}
return this.headers;
}
Run Code Online (Sandbox Code Playgroud)
},
我的问题是它只能隐藏 1 个标题/列。你能帮我让它隐藏多个标题吗?我想实现这些输出:
非常感谢。