This commit is contained in:
栗嘉男 2023-07-05 16:03:41 +08:00
parent 041e38b5e6
commit 86e7b88ebb

View File

@ -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`}>