react-masonry-component2
Version:
react 的瀑布流组件库,支持 columns 布局、弹性布局、绝对定位布局三种方法实现
16 lines (15 loc) • 353 B
TypeScript
import React from 'react';
export declare const getListAndHeight: ({ children, columnCount, wrapRef, gutter, }: {
children: React.ReactNode;
columnCount: number;
wrapRef: any;
gutter: number;
}) => {
list: {
node: React.ReactNode;
style: {
[props: string]: any;
};
}[];
height: number;
};