UNPKG

@flatbiz/antd

Version:
24 lines (21 loc) 755 B
import { CSSProperties, ReactNode } from 'react'; export type FlexLayoutProps = { className?: string; /** 子组件铺满的索引值,从0开始 */ fullIndex: number | number[]; /**方向,默认值vertical */ direction?: "vertical" | "horizontal"; onClick?: (event: React.MouseEvent<HTMLDivElement>) => void; style?: CSSProperties; /** 间隙尺寸 */ gap?: number; children?: ReactNode | null | Array<ReactNode | null>; }; /** * flex布局,主要用于Flex结构性布局 * ``` * 4.2.87版本中将fullIndex改为了必填属性,如果在升级中遇到问题,不确定怎么写,可设置 fullIndex=[] 保持原样 * ``` */ export declare const FlexLayout: (props: FlexLayoutProps) => import("react").JSX.Element; export {};