mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 04:30:06 +08:00
fix
This commit is contained in:
parent
041e38b5e6
commit
86e7b88ebb
@ -21,6 +21,9 @@ export const TypeIcon = {
|
||||
};
|
||||
|
||||
export function getCloseIcon(prefixCls: string, closeIcon?: React.ReactNode): React.ReactNode {
|
||||
if (closeIcon === null || closeIcon === false) {
|
||||
return null;
|
||||
}
|
||||
return (
|
||||
closeIcon || (
|
||||
<span className={`${prefixCls}-close-x`}>
|
||||
|
Loading…
Reference in New Issue
Block a user