|
|
@ -70,7 +70,7 @@ const titleComputed = computed(() => { |
|
|
|
if (tools.table.columns.length > 0) { |
|
|
|
const column = tools.table.columns.find((item) => item['name'] === props.col.name); |
|
|
|
if (column && column['title'] && typeof column['title'] === 'function') { |
|
|
|
return column.title({ grid: tools.instance, row: toRaw(props.scope.row), value: props.scope.row[props.col.name] }); |
|
|
|
return column.title(props.scope.row[props.col.name], toRaw(props.scope.row)); |
|
|
|
} else if (column && column['title']) { |
|
|
|
return column['title']; |
|
|
|
} |
|
|
|