Browse Source

Update CollapseHeader.vue (#2583)

#2582
pull/2598/head
luocong2016 4 years ago
committed by GitHub
parent
commit
a78c3a305b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      src/components/Container/src/collapse/CollapseHeader.vue

7
src/components/Container/src/collapse/CollapseHeader.vue

@ -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>
);

Loading…
Cancel
Save