[Bugfix] 修复拼写错误

This commit is contained in:
ibuler
2020-04-23 21:05:55 +08:00
parent f96f200a13
commit 2ecf33b092
2 changed files with 6 additions and 5 deletions

View File

@@ -96,8 +96,8 @@ export default {
cleanedActions() {
let actions = [...this.defaultActions, ...this.extraActions]
actions = actions.map((v) => {
v.has = this.cleanAction(v, 'has')
v.can = this.cleanAction(v, 'can')
v.has = this.cleanBoolean(v, 'has')
v.can = this.cleanBoolean(v, 'can')
v.callback = this.cleanCallback(v)
return v
})
@@ -111,12 +111,12 @@ export default {
}
},
methods: {
cleanAction(item, attr) {
cleanBoolean(item, attr) {
const ok = item[attr]
if (!ok || typeof ok !== 'function') {
return item
}
item.ok = function() {
item[attr] = function() {
return ok(this.row, this.cellValue)
}
return item

View File

@@ -42,7 +42,8 @@ export default {
name: 'activeSelected',
title: this.$tc('Active selected')
}
]
],
hasCreate: false
}
}
}