Skip to content

Commit

Permalink
修复插槽多级传递问题 (#65)
Browse files Browse the repository at this point in the history
* fix: fix slot multi-level transmission problem
  • Loading branch information
wendell0316 authored Oct 28, 2020
1 parent 34c09fc commit abde5c3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Container/src/collapse/CollapseContainer.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<template>
<div class="collapse-container p-2">
<CollapseHeader v-bind="$props" :show="show" @expand="handleExpand" />
<CollapseHeader v-bind="$props" :show="show" @expand="handleExpand">
<template #title>
<slot name="title" />
</template>
</CollapseHeader>
<CollapseTransition :enable="canExpan">
<Skeleton v-if="loading" />
<div class="collapse-container__body" v-else v-show="show">
Expand Down

0 comments on commit abde5c3

Please sign in to comment.