Update CollapseHeader.vue (#2583)

#2582
This commit is contained in:
luocong2016 2023-03-02 15:14:00 +08:00 committed by GitHub
parent bb8c2dea40
commit a78c3a305b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,8 +31,11 @@
</BasicTitle>
<div class={`${unref(_prefixCls)}__action`}>
{slots.action ? slots.action() : null}
{props.canExpan && <BasicArrow up expand={props.show} onClick={() => emit('expand')} />}
{slots.action
? slots.action({ expand: props.show, onClick: () => emit('expand') })
: props.canExpan && (
<BasicArrow up expand={props.show} onClick={() => emit('expand')} />
)}
</div>
</div>
);