mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
update row to remove implicit any (#7803)
This commit is contained in:
parent
a4a0816e5a
commit
8ccd02139c
@ -13,7 +13,7 @@ export interface RowProps {
|
||||
prefixCls?: string;
|
||||
}
|
||||
|
||||
export default class Row extends React.Component<RowProps, any> {
|
||||
export default class Row extends React.Component<RowProps, {}> {
|
||||
static defaultProps = {
|
||||
gutter: 0,
|
||||
};
|
||||
@ -41,7 +41,7 @@ export default class Row extends React.Component<RowProps, any> {
|
||||
marginRight: (gutter as number) / -2,
|
||||
...style,
|
||||
} : style;
|
||||
const cols = Children.map(children, (col: React.ReactElement<any>) => {
|
||||
const cols = Children.map(children, (col: React.ReactElement<HTMLDivElement>) => {
|
||||
if (!col) {
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user