Commit a78c3a305b495dbf72a99c13204d9e9cfd079923
Committed by
GitHub
1 parent
bb8c2dea
Update CollapseHeader.vue (#2583)
#2582
Showing
1 changed file
with
5 additions
and
2 deletions
src/components/Container/src/collapse/CollapseHeader.vue
... | ... | @@ -31,8 +31,11 @@ |
31 | 31 | </BasicTitle> |
32 | 32 | |
33 | 33 | <div class={`${unref(_prefixCls)}__action`}> |
34 | - {slots.action ? slots.action() : null} | |
35 | - {props.canExpan && <BasicArrow up expand={props.show} onClick={() => emit('expand')} />} | |
34 | + {slots.action | |
35 | + ? slots.action({ expand: props.show, onClick: () => emit('expand') }) | |
36 | + : props.canExpan && ( | |
37 | + <BasicArrow up expand={props.show} onClick={() => emit('expand')} /> | |
38 | + )} | |
36 | 39 | </div> |
37 | 40 | </div> |
38 | 41 | ); | ... | ... |