From 9c218c050eb3d863d189256f2220eb38e1448e91 Mon Sep 17 00:00:00 2001 From: zombiej Date: Sun, 1 Mar 2020 11:28:44 +0800 Subject: [PATCH] feat: export convertChildrenToColumns functon --- src/hooks/useColumns.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hooks/useColumns.tsx b/src/hooks/useColumns.tsx index b246871d5..ff6460877 100644 --- a/src/hooks/useColumns.tsx +++ b/src/hooks/useColumns.tsx @@ -12,7 +12,9 @@ import { } from '../interface'; import { INTERNAL_COL_DEFINE } from '../utils/legacyUtil'; -function convertChildrenToColumns(children: React.ReactNode): ColumnsType { +export function convertChildrenToColumns( + children: React.ReactNode, +): ColumnsType { return toArray(children) .filter(node => React.isValidElement(node)) .map(({ key, props }: React.ReactElement) => {