Browse Source
fix: collapse canExpand (#1501)
* fix(type): fix ant-design-vue ->
* fix: fix base64 blob
* fix: fix CollapseContainer canExpan
pull/1506/head
CXM
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
7 additions and
2 deletions
-
src/components/Container/src/collapse/CollapseContainer.vue
-
src/components/Container/src/collapse/CollapseHeader.vue
|
|
|
@ -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> |
|
|
|
|
|
|
|
@ -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> |
|
|
|
|