优化表格显隐功能

This commit is contained in:
不做码农
2022-09-27 20:22:22 +08:00
parent e0a8a25b22
commit d1295e55cc
5 changed files with 109 additions and 40 deletions
+10 -1
View File
@@ -4,7 +4,7 @@ import cache from './cache'
import modal from './modal'
import download from './download'
export default function installPlugins(app){
export default function installPlugins(app) {
// 页签操作
app.config.globalProperties.$tab = tab
// 认证对象
@@ -15,4 +15,13 @@ export default function installPlugins(app){
app.config.globalProperties.$modal = modal
// 下载文件
app.config.globalProperties.$download = download
Array.prototype.showColumn = function (column) {
var item = this.find((x) => x.prop == column)
// console.log('showColumn方法', this, column, item)
if (item) {
return item.visible
}
return true
}
}