dtd
Version:
根据数梦工场视觉规范打造的组件库,感谢react-components和ant design
43 lines (42 loc) • 1.33 kB
TypeScript
import * as React from 'react';
import * as PropTypes from 'prop-types';
export declare type Breakpoint = 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
export declare type BreakpointMap = {
xs?: string;
sm?: string;
md?: string;
lg?: string;
xl?: string;
xxl?: string;
};
export interface RowProps {
className?: string;
gutter?: number | BreakpointMap;
type?: 'flex';
align?: 'top' | 'middle' | 'bottom';
justify?: 'start' | 'end' | 'center' | 'space-around' | 'space-between';
style?: React.CSSProperties;
prefixCls?: string;
}
export interface RowState {
screens: BreakpointMap;
}
export default class Row extends React.Component<RowProps, RowState> {
static defaultProps: {
gutter: number;
};
static propTypes: {
type: PropTypes.Requireable<string>;
align: PropTypes.Requireable<string>;
justify: PropTypes.Requireable<string>;
className: PropTypes.Requireable<string>;
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
gutter: PropTypes.Requireable<number | object>;
prefixCls: PropTypes.Requireable<string>;
};
state: RowState;
componentDidMount(): void;
componentWillUnmount(): void;
getGutter(): string | number | BreakpointMap | undefined;
render(): JSX.Element;
}