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);