forked from opentiny/tiny-vue
fix(grid): 修复表格type=operation时有插槽情况下,渲染为空白问题
This commit is contained in:
parent
9fde21fdf1
commit
5164adcbfc
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in New Issue