We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e348db commit 9c218c0Copy full SHA for 9c218c0
src/hooks/useColumns.tsx
@@ -12,7 +12,9 @@ import {
12
} from '../interface';
13
import { INTERNAL_COL_DEFINE } from '../utils/legacyUtil';
14
15
-function convertChildrenToColumns<RecordType>(children: React.ReactNode): ColumnsType<RecordType> {
+export function convertChildrenToColumns<RecordType>(
16
+ children: React.ReactNode,
17
+): ColumnsType<RecordType> {
18
return toArray(children)
19
.filter(node => React.isValidElement(node))
20
.map(({ key, props }: React.ReactElement) => {
0 commit comments