fix(Drawer): closeIcon customization is invalid (#5616)

pull/5627/head
bqy_fe 2022-05-20 16:18:31 +08:00 committed by GitHub
parent 03c41177a3
commit bb85f1f372
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ const Drawer = defineComponent({
return ( return (
closable && ( closable && (
<button key="closer" onClick={close} aria-label="Close" class={`${prefixCls}-close`}> <button key="closer" onClick={close} aria-label="Close" class={`${prefixCls}-close`}>
{$closeIcon === undefined ? <CloseOutlined></CloseOutlined> : null} {$closeIcon === undefined ? <CloseOutlined></CloseOutlined> : $closeIcon}
</button> </button>
) )
); );