fix(grid): 修复表格type=operation时有插槽情况下,渲染为空白问题

This commit is contained in:
zzcr 2023-06-12 05:09:32 -07:00
parent 9fde21fdf1
commit 5164adcbfc
No known key found for this signature in database
GPG Key ID: F6C4DFD2EF53A673
1 changed files with 6 additions and 1 deletions

View File

@ -835,7 +835,12 @@ export const Cell = {
},
renderOperationCell(h, params) {
const { column, $table, row } = params
const { operationConfig = {} } = column
const { operationConfig = {}, slots } = column
if (slots && slots.default) {
return slots.default(params, h)
}
const { buttons = [], render, max = 3, disabledClass = '' } = operationConfig
const viewClass = $table.viewCls('operButton')