import { CSSProperties, ElementType } from 'react'; import { TransportStyleOwnProps } from '../transportStyle'; import { OverridableComponent, OverridableProps } from '../../types'; interface FlexOwnProps extends TransportStyleOwnProps { inline?: boolean; /** 排列方式,默认为`row` */ direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse'; /** 换行方式 */ wrap?: 'wrap' | 'nowrap' | 'wrap-reverse'; gap?: CSSProperties['gap']; columnGap?: CSSProperties['columnGap']; rowGap?: CSSProperties['rowGap']; /** 当compact为true时,gap无效,而且会清除子元素的圆角,让他们拼接起来 */ compact?: boolean; } export type FlexProps = OverridableProps; export declare const Flex: OverridableComponent; export {};