fix: Tag component close icon display bug (#5956)
Co-authored-by: Tony <tony.chen@omnichat.ai>pull/5966/head
parent
31800cb99c
commit
b35f63788d
|
@ -87,9 +87,9 @@ const Tag = defineComponent({
|
||||||
const renderCloseIcon = () => {
|
const renderCloseIcon = () => {
|
||||||
if (closable) {
|
if (closable) {
|
||||||
return closeIcon ? (
|
return closeIcon ? (
|
||||||
<div class={`${prefixCls.value}-close-icon`} onClick={handleCloseClick}>
|
<span class={`${prefixCls.value}-close-icon`} onClick={handleCloseClick}>
|
||||||
{closeIcon}
|
{closeIcon}
|
||||||
</div>
|
</span>
|
||||||
) : (
|
) : (
|
||||||
<CloseOutlined class={`${prefixCls.value}-close-icon`} onClick={handleCloseClick} />
|
<CloseOutlined class={`${prefixCls.value}-close-icon`} onClick={handleCloseClick} />
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue