mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +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;
|
prefixCls?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Row extends React.Component<RowProps, any> {
|
export default class Row extends React.Component<RowProps, {}> {
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
gutter: 0,
|
gutter: 0,
|
||||||
};
|
};
|
||||||
@ -40,8 +40,8 @@ export default class Row extends React.Component<RowProps, any> {
|
|||||||
marginLeft: (gutter as number) / -2,
|
marginLeft: (gutter as number) / -2,
|
||||||
marginRight: (gutter as number) / -2,
|
marginRight: (gutter as number) / -2,
|
||||||
...style,
|
...style,
|
||||||
} : style;
|
} : style;
|
||||||
const cols = Children.map(children, (col: React.ReactElement<any>) => {
|
const cols = Children.map(children, (col: React.ReactElement<HTMLDivElement>) => {
|
||||||
if (!col) {
|
if (!col) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user