waterfalljs-layout
Version:
js实现瀑布流布局、React瀑布流布局组件
16 lines (15 loc) • 514 B
TypeScript
import { ReactElement } from 'react';
interface Iprops {
mode?: 'position' | 'grid';
el?: string;
children?: ReactElement[];
columnWidth: number;
columnCount: number;
columnGap: number;
rowGap: number;
delay?: number;
customStyle?: string;
onChangeUlMaxH?: (h: number) => void;
}
export default function WaterfallComps({ children, el, mode, columnWidth, columnCount, columnGap, rowGap, delay, customStyle, onChangeUlMaxH, }: Iprops): ReactElement;
export {};