Commit f1678a7cc0a12c2f3bdc39d413ab9b2bbfaba28f
Committed by
GitHub
1 parent
ed8cffb2
fix: 修复Container中头部组件插槽中的action不生效的问题 (#2582)
Co-authored-by: xuyang.geng <xuyang.geng@gaea.com>
Showing
1 changed file
with
1 additions
and
0 deletions
src/components/Container/src/collapse/CollapseHeader.vue
@@ -31,6 +31,7 @@ | @@ -31,6 +31,7 @@ | ||
31 | </BasicTitle> | 31 | </BasicTitle> |
32 | 32 | ||
33 | <div class={`${unref(_prefixCls)}__action`}> | 33 | <div class={`${unref(_prefixCls)}__action`}> |
34 | + {slots.action ? slots.action() : null} | ||
34 | {props.canExpan && <BasicArrow up expand={props.show} onClick={() => emit('expand')} />} | 35 | {props.canExpan && <BasicArrow up expand={props.show} onClick={() => emit('expand')} />} |
35 | </div> | 36 | </div> |
36 | </div> | 37 | </div> |