From aae6fd9a03244fa1b555fa3de16d4a5052c776f2 Mon Sep 17 00:00:00 2001 From: Wendell Hu Date: Sun, 6 Jun 2021 09:51:06 +0800 Subject: [PATCH] fix: fix header content not rendered --- src/Cell/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cell/index.tsx b/src/Cell/index.tsx index 9dc92dfd5..9492ccc32 100644 --- a/src/Cell/index.tsx +++ b/src/Cell/index.tsx @@ -11,7 +11,7 @@ import type { AlignType, CellEllipsisType, } from '../interface'; -import { getPathValue } from '../utils/valueUtil'; +import { getPathValue, validateValue } from '../utils/valueUtil'; function isRenderCell( data: React.ReactNode | RenderedCell, @@ -97,7 +97,7 @@ function Cell( let cellProps: CellType; let childNode: React.ReactNode; - if (children) { + if (validateValue(children)) { childNode = children; } else { const value = getPathValue(record, dataIndex);