fix(tag): prefixCls value (#4649)

pull/4655/head
gitplus 2021-09-14 22:09:24 +08:00 committed by GitHub
parent 752642afaf
commit 2ce3f44403
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -86,11 +86,11 @@ const Tag = defineComponent({
const renderCloseIcon = () => { const renderCloseIcon = () => {
if (closable) { if (closable) {
return closeIcon ? ( return closeIcon ? (
<div class={`${prefixCls}-close-icon`} onClick={handleCloseClick}> <div class={`${prefixCls.value}-close-icon`} onClick={handleCloseClick}>
{closeIcon} {closeIcon}
</div> </div>
) : ( ) : (
<CloseOutlined class={`${prefixCls}-close-icon`} onClick={handleCloseClick} /> <CloseOutlined class={`${prefixCls.value}-close-icon`} onClick={handleCloseClick} />
); );
} }
return null; return null;