diff --git a/components/vc-table/Cell/index.tsx b/components/vc-table/Cell/index.tsx index 0350590ac..fcb210f0b 100644 --- a/components/vc-table/Cell/index.tsx +++ b/components/vc-table/Cell/index.tsx @@ -162,7 +162,15 @@ export default defineComponent({ index, column: column.__originColumn__, }, - () => [childNode === undefined ? value : childNode], + () => { + const fallback = childNode === undefined ? value : childNode; + return [ + (typeof fallback === 'object' && isValidElement(fallback)) || + typeof fallback !== 'object' + ? fallback + : null, + ]; + }, ); childNode = flattenChildren(child as any); }