Browse Source

fix: 修复Container中头部组件插槽中的action不生效的问题 (#2582)

Co-authored-by: xuyang.geng <xuyang.geng@gaea.com>
珍藏的小板凳 2 years ago
parent
commit
f1678a7cc0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/components/Container/src/collapse/CollapseHeader.vue

+ 1 - 0
src/components/Container/src/collapse/CollapseHeader.vue

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