Skip to content

Commit

Permalink
fix: collapse canExpand (vbenjs#1501)
Browse files Browse the repository at this point in the history
* fix(type): fix ant-design-vue  ->

* fix: fix base64 blob

* fix: fix CollapseContainer canExpan
  • Loading branch information
littlecxm authored Dec 18, 2021
1 parent a2b594c commit fa33c6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/components/Container/src/collapse/CollapseContainer.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<template>
<div :class="prefixCls">
<CollapseHeader v-bind="$props" :prefixCls="prefixCls" :show="show" @expand="handleExpand">
<CollapseHeader
v-bind="$props"
:prefixCls="prefixCls"
:show="show"
@expand="canExpan ? handleExpand : undefined"
>
<template #title>
<slot name="title"></slot>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Container/src/collapse/CollapseHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<slot name="title"></slot>
</template>
</BasicTitle>
<div :class="`${prefixCls}__action`">
<div :class="`${prefixCls}__action`" v-if="canExpan">
<slot name="action"></slot>
<BasicArrow v-if="canExpan" up :expand="show" @click="$emit('expand')" />
</div>
Expand Down

0 comments on commit fa33c6b

Please sign in to comment.