mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
clean up unused code
This commit is contained in:
parent
a3d821a534
commit
aa6b55be7e
@ -128,25 +128,16 @@ export default class Input extends React.Component<InputProps, any> {
|
|||||||
|
|
||||||
// Need another wrapper for changing display:table to display:inline-block
|
// Need another wrapper for changing display:table to display:inline-block
|
||||||
// and put style prop in wrapper
|
// and put style prop in wrapper
|
||||||
if (addonBefore || addonAfter) {
|
|
||||||
return (
|
|
||||||
<span
|
|
||||||
className={groupClassName}
|
|
||||||
style={props.style}
|
|
||||||
>
|
|
||||||
<span className={className}>
|
|
||||||
{addonBefore}
|
|
||||||
{React.cloneElement(children, { style: null })}
|
|
||||||
{addonAfter}
|
|
||||||
</span>
|
|
||||||
</span>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return (
|
return (
|
||||||
<span className={className}>
|
<span
|
||||||
{addonBefore}
|
className={groupClassName}
|
||||||
{children}
|
style={props.style}
|
||||||
{addonAfter}
|
>
|
||||||
|
<span className={className}>
|
||||||
|
{addonBefore}
|
||||||
|
{React.cloneElement(children, { style: null })}
|
||||||
|
{addonAfter}
|
||||||
|
</span>
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user