|
|
|
@ -1,11 +1,15 @@
@@ -1,11 +1,15 @@
|
|
|
|
|
<template> |
|
|
|
|
<div :class="prefixCls"> |
|
|
|
|
<CollapseHeader v-bind="$props" :prefixCls="prefixCls" :show="show" @expand="handleExpand"> |
|
|
|
|
<CollapseHeader v-bind="$props" |
|
|
|
|
:prefixCls="prefixCls" |
|
|
|
|
:show="show" |
|
|
|
|
@expand="handleExpand" |
|
|
|
|
> |
|
|
|
|
<template #title> |
|
|
|
|
<slot name="title"></slot> |
|
|
|
|
<slot name="title"/> |
|
|
|
|
</template> |
|
|
|
|
<template #action> |
|
|
|
|
<slot name="action"></slot> |
|
|
|
|
<slot name="action"/> |
|
|
|
|
</template> |
|
|
|
|
</CollapseHeader> |
|
|
|
|
|
|
|
|
@ -13,12 +17,12 @@
@@ -13,12 +17,12 @@
|
|
|
|
|
<CollapseTransition :enable="canExpan"> |
|
|
|
|
<Skeleton v-if="loading" :active="loading" /> |
|
|
|
|
<div :class="`${prefixCls}__body`" v-else v-show="show"> |
|
|
|
|
<slot></slot> |
|
|
|
|
<slot/> |
|
|
|
|
</div> |
|
|
|
|
</CollapseTransition> |
|
|
|
|
</div> |
|
|
|
|
<div :class="`${prefixCls}__footer`" v-if="$slots.footer"> |
|
|
|
|
<slot name="footer"></slot> |
|
|
|
|
<slot name="footer"/> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|