fix: collapse canExpand (#1501)

* fix(type): fix ant-design-vue  ->

* fix: fix base64 blob

* fix: fix CollapseContainer canExpan
This commit is contained in:
CXM 2021-12-18 22:24:28 +08:00 committed by GitHub
parent a2b594c962
commit fa33c6b0d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,11 @@
<template> <template>
<div :class="prefixCls"> <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> <template #title>
<slot name="title"></slot> <slot name="title"></slot>
</template> </template>

View File

@ -8,7 +8,7 @@
<slot name="title"></slot> <slot name="title"></slot>
</template> </template>
</BasicTitle> </BasicTitle>
<div :class="`${prefixCls}__action`"> <div :class="`${prefixCls}__action`" v-if="canExpan">
<slot name="action"></slot> <slot name="action"></slot>
<BasicArrow v-if="canExpan" up :expand="show" @click="$emit('expand')" /> <BasicArrow v-if="canExpan" up :expand="show" @click="$emit('expand')" />
</div> </div>