fix(vue/grid/src/edit/src/methods): [grid] fix-1383 The activeMethod method in the editConfig of the grid component does not support asynchronous (#1407)

Co-authored-by: dush <dush@nancal.com>
This commit is contained in:
David 2024-03-01 16:35:14 +08:00 committed by GitHub
parent da3f6ca167
commit 41fa0ce946
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -351,7 +351,7 @@ export default {
/**
*
*/
handleActived(params, event) {
async handleActived(params, event) {
let { editConfig, editStore, tableColumn } = this
let { cell, column, row } = params
let { editor } = column
@ -361,7 +361,7 @@ export default {
if (editor && cell && isActiveCell) {
// 判断是否禁用编辑
let type = 'edit-disabled'
let canActive = handleActivedCanActive({ editConfig, params })
let canActive = await handleActivedCanActive({ editConfig, params })
let args = { _vm: this, actived, canActive, cell, column, editConfig }
Object.assign(args, { event, params, row, tableColumn, type })