mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-23 18:50:06 +08:00
feat: init props
This commit is contained in:
parent
c9f7f5d8e6
commit
5f219d97e0
@ -20,9 +20,14 @@ const Flex = React.forwardRef<HTMLElement, FlexProps>((props, ref) => {
|
||||
children,
|
||||
vertical = false,
|
||||
component: Component = 'div',
|
||||
columns,
|
||||
spacing,
|
||||
sequential = false,
|
||||
...othersProps
|
||||
} = props;
|
||||
|
||||
console.log(columns, spacing, sequential);
|
||||
|
||||
const {
|
||||
flex: ctxFlex,
|
||||
direction: ctxDirection,
|
||||
|
@ -14,4 +14,12 @@ export interface FlexProps<P = AnyObject> extends React.HTMLAttributes<HTMLEleme
|
||||
gap?: React.CSSProperties['gap'] | SizeType;
|
||||
children: React.ReactNode;
|
||||
component?: CustomComponent<P>;
|
||||
columns?: number;
|
||||
spacing?: number;
|
||||
/**
|
||||
* Allows using sequential order rather than adding to shortest column
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
sequential?: boolean;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user