Unverified 提交 fa33c6b0 作者: CXM 提交者: GitHub

fix: collapse canExpand (#1501)

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

* fix: fix base64 blob

* fix: fix CollapseContainer canExpan
上级 a2b594c9
<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>
......
...@@ -8,7 +8,7 @@ ...@@ -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>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论